How to Cut a Portion of a Video
Use ffmpeg to extract a specific time segment from a video file with a single command.
How to Cut a Portion of a Video
Trim a video with ffmpeg
The following ffmpeg command extracts a portion of a video. The -ss flag sets the start time and -t sets the duration (or end time). Replace <input-file> and <output-file> with your actual filenames.
1
2
3
4
5
ffmpeg \
-t 4:12 \
-i <input-file>.mp4 \
-ss 4:07 \
<output-file>.mp4
This post is licensed under CC BY 4.0 by the author.