Skip to content

Instantly share code, notes, and snippets.

@cmfcmf
Last active August 29, 2015 13:56
Show Gist options
  • Save cmfcmf/8823769 to your computer and use it in GitHub Desktop.
Save cmfcmf/8823769 to your computer and use it in GitHub Desktop.
Cut video from Ubuntu command line, taken from here: http://askubuntu.com/a/59388/161884
mencoder -ss 00:30:00 -endpos 00:00:05 -oac copy -ovc copy originalfile -o newfile
ffmpeg -ss 00:00:30 -t 00:00:05 -i orginalfile -vcodec copy -acodec copy newfile
@cmfcmf
Copy link
Author

cmfcmf commented Feb 5, 2014

Replace originalfile and newfile respectively. Adjust 00:30:00 to the desired start time and 00:00:05 to the desired duration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment