Skip to content

Instantly share code, notes, and snippets.

@gartenfeld
Last active May 29, 2019 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gartenfeld/c184d9eafbb41fed795dbc814d8524d4 to your computer and use it in GitHub Desktop.
Save gartenfeld/c184d9eafbb41fed795dbc814d8524d4 to your computer and use it in GitHub Desktop.
Cut video with ffmpeg
# -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