Skip to content

Instantly share code, notes, and snippets.

@weakish
Created May 19, 2011 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weakish/980883 to your computer and use it in GitHub Desktop.
Save weakish/980883 to your computer and use it in GitHub Desktop.
scripts to cut #video clips
#!/usr/bin/env bash
### cut a slient clip of film using mencoder
mencoder -nosound -ss $1 -endpos $2 -ovc copy -o $3 $4
#!/usr/bin/env bash
### cut a silent clip of a rmvb film using mencoder
# your mplayer should be able to play rmvb
mencoder -nosound -ss $1 -endpos $2 -ovc lavc -lavcopts vcodec=mpeg4 -o $3 $4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment