Skip to content

Instantly share code, notes, and snippets.

@danp
Created September 10, 2008 16:23
Show Gist options
  • Save danp/9935 to your computer and use it in GitHub Desktop.
Save danp/9935 to your computer and use it in GitHub Desktop.
#!/bin/sh
input=$1
output="$(dirname $input)/$(basename $input .mkv).avi"
vbitrate=4096
if [ ! -e "$output" ]; then
mencoder $input -ffourcc XVID -ovc lavc -lavcopts vcodec=mpeg4:threads=8:vbitrate=$vbitrate:mbd=2:trell=yes:v4mv=yes -oac mp3lame -o $output
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment