From 4a2d83c6aff35d25f3099779e5d2e4a2210cab6f Mon Sep 17 00:00:00 2001 From: Francesco Yoshi Gobbo Date: Sun, 12 Aug 2018 18:20:09 +0200 Subject: [PATCH] ffmpeg: simplified video trimming (#2232) --- pages/common/ffmpeg.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ffmpeg.md b/pages/common/ffmpeg.md index e9e9191c1a..24f98560c8 100644 --- a/pages/common/ffmpeg.md +++ b/pages/common/ffmpeg.md @@ -18,9 +18,9 @@ `ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -frames 1 -s {{128x128}} -f image2 {{image.png}}` -- Trim a video from a given start time mm:ss to a duration of mm2:ss2 from that time. (Omit the -t flag to trim till the end): +- Trim a video from a given start time mm:ss to an end time mm2:ss2 (omit the -to flag to trim till the end): -`ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -codec copy -t {{mm2:ss2}} {{output.mp4}}` +`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{video.mp4}} -codec copy {{output.mp4}}` - Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23: