Last active
May 29, 2019 11:24
-
-
Save gartenfeld/c184d9eafbb41fed795dbc814d8524d4 to your computer and use it in GitHub Desktop.
Cut video with ffmpeg
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
# -i Input | |
# -ss Starting timestamp HH:MM:SS.xxx | |
# -t duration | |
# https://superuser.com/questions/138331/using-ffmpeg-to-cut-up-video | |
# https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg | |
# -c copy | |
ffmpeg -ss 00:00:05 -i input.mp4 -t 00:00:15 output.mp4 | |
# First -ss helps with fast seeking | |
ffmpeg -ss 00:10:09 -i input.mp4 -ss 00:00:01.000 -t 00:00:12 cut.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment