Created
April 1, 2017 20:59
-
-
Save evantbyrne/1d68ddf2822177f0d945200b7915815e to your computer and use it in GitHub Desktop.
ffmpeg cut video time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cut five seconds off beginning | |
ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 cut.mkv | |
# Cut to ten seconds in length, starting at five seconds (5-15s) | |
ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 -t 00:00:10 cut.mkv | |
# Cut everything before five seconds, cut everything after eight seconds (5-8s) | |
ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 -to 00:00:08 cut.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment