Skip to content

Instantly share code, notes, and snippets.

@cmlewis
Last active August 29, 2015 14:05
Show Gist options
  • Save cmlewis/296e3b5b6c78672bf05b to your computer and use it in GitHub Desktop.
Save cmlewis/296e3b5b6c78672bf05b to your computer and use it in GitHub Desktop.
How to trim a video using ffmpeg (without reencoding)
rem Tell ffmpeg to copy the video and audio codecs and specify the start time (ss) and duration (t).
ffmpeg -i video.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:04 trimmed_video.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment