Skip to content

Instantly share code, notes, and snippets.

@marceloandrader
Created April 26, 2011 21:01
Show Gist options
  • Save marceloandrader/943137 to your computer and use it in GitHub Desktop.
Save marceloandrader/943137 to your computer and use it in GitHub Desktop.
convert a file from divx to mpeg1 to reproduce on sony 32bx300
#!/bin/bash
INPUT_FILE=$1
SUB_FILE=$2
OUTPUT_FILE=$3
mencoder $INPUT_FILE -sub $SUB_FILE -o $OUTPUT_FILE -ofps 25 -vf scale=1280:720 -of lavf \
-lavfopts format=mpg -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
-lavcopts vcodec=mpeg1video:vrc_buf_size=1835:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0:aspect=16/9 \
-of mpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment