From a3ac6db8d27bf30fce84380f14f70935888cf320 Mon Sep 17 00:00:00 2001 From: Francesco Yoshi Gobbo Date: Sun, 6 May 2018 20:28:30 +0200 Subject: [PATCH] ffmpeg: added trim example plus augmented precision to seconds (#2099) --- pages/common/ffmpeg.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/ffmpeg.md b/pages/common/ffmpeg.md index ca22b7d93..e9e9191c1 100644 --- a/pages/common/ffmpeg.md +++ b/pages/common/ffmpeg.md @@ -18,6 +18,10 @@ `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): + +`ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -codec copy -t {{mm2:ss2}} {{output.mp4}}` + - Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23: `ffmpeg -i {{input_video}}.avi -codec:audio aac -b:audio 128k -codec:video libx264 -crf 23 {{output_video}}.mp4`