Skip to content

Instantly share code, notes, and snippets.

@wrzlbrmft
Created December 30, 2015 12:44
Show Gist options
  • Save wrzlbrmft/2b49485ad0e3f22a4fe7 to your computer and use it in GitHub Desktop.
Save wrzlbrmft/2b49485ad0e3f22a4fe7 to your computer and use it in GitHub Desktop.
Crop video to a given time range.
# starting at 00:00:00, duration of 00:00:30 (hh:mm:ss)
ffmpeg -ss 00:00:00 -t 00:00:30 -i input.mp4 -acodec copy -vcodec copy output.mp4
avconv -ss 00:00:00 -t 00:00:30 -i input.mp4 -acodec copy -vcodec copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment