Created
April 26, 2011 21:01
-
-
Save marceloandrader/943137 to your computer and use it in GitHub Desktop.
convert a file from divx to mpeg1 to reproduce on sony 32bx300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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