Skip to content

Instantly share code, notes, and snippets.

@bloopletech
Created October 9, 2009 16:46
Show Gist options
  • Save bloopletech/206169 to your computer and use it in GitHub Desktop.
Save bloopletech/206169 to your computer and use it in GitHub Desktop.
First step:
Note that vf scale/expand sizes will need to be tweaked for different input sizes.
mencoder <input file> -o output.avi -vf scale=480:270,expand=0:-50:0:0:1,harddup -subfont-autoscale 0 -subfont-text-scale 20 -subpos 99 -subfont-blur 2 -subfont-outline 1 -noskip -mc 0 -oac faac -faacopts mpeg=4:object=2:raw:br=128 -ovc x264 -x264encopts bframes=0:nocabac:global_header:threads=2:no8x8dct
Second step:
ffmpeg -i output.avi -acodec copy -vcodec copy <output file>.m4v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment