Skip to content

Instantly share code, notes, and snippets.

@wklchris
Created March 8, 2019 10:26
Show Gist options
  • Save wklchris/f70ead3bbe9d5a7276030564a8cc52df to your computer and use it in GitHub Desktop.
Save wklchris/f70ead3bbe9d5a7276030564a8cc52df to your computer and use it in GitHub Desktop.
FFmpeg General Commands

FFmpeg Video Commands

Clip Video

Use start timestamp and duration:

ffmpeg -i "inupt.avi" -ss 00:20:15 -t 12 -c copy "output.avi"

A video clip of 12 seconds will be created.

Or more often, we prefer using start and end timestamp:

ffmpeg -i "inupt.avi" -ss 00:20:15 -to 00:20:27 -c copy "output.avi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment