Skip to content

Instantly share code, notes, and snippets.

@wilensky
Last active December 11, 2016 14:09
Show Gist options
  • Save wilensky/5140a736822b482b23a9e9c77af19fd8 to your computer and use it in GitHub Desktop.
Save wilensky/5140a736822b482b23a9e9c77af19fd8 to your computer and use it in GitHub Desktop.
'mencoder' command to merge 1+ videos
mencoder -ovc copy -oac mp3lame GOPR3934.MP4 GP013934.MP4 GP023934.MP4 -o finalcut.avi
@wilensky
Copy link
Author

wilensky commented Dec 11, 2016

Video trim

mencoder -ss 00:02:00 -oac copy -ovc copy -noskip -mc 0 GOPR0123.mp4 -o trimmed.mp4 # Trimming start (-noskip -mc 0 is used to prevent  (duplicate) frame drop)
mencoder -endpos 00:50:00 -oac copy -ovc copy GOPR0123.mp4 -o trimmed.mp4 # Trimming end

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