[MEncoder-users] merging avi and ogg
Zelos
zelos at wanadoo.fr
Sun Jan 9 12:16:10 CET 2005
Hi everybody!
I got a problem with the following script. Video and audio are not
synchronized.
Any tricks?
#!/bin/bash
LAVCOPT="mbd=2:trell:v4mv:cmp=2:subcmp=6:vb_strategy=1:vmax_b_frames=2:preme=2:dia=4:predia=4:last_pred=2:mv0:cbp:qprd:qns=2"
FILTER="-vf scale=640:512"
NICELEVEL=15
TITLE=my_movie
LANG=en
nice -n $NICELEVEL cat *.vob| nice -n $NICELEVEL mplayer -vc null -vo
null -af volume=+16db -alang $LANG -ao pcm -aofile $LANG.wav -
nice -n $NICELEVEL oggenc -q $AQUALITY $LANG.wav
nice -n $NICELEVEL cat *.vob| nice -n $NICELEVEL mencoder -o foo.avi
-nosound $FILTER -ovc lavc -lavcopts vpass=1:vqscale=2:$LAVCOPT -
nice -n $NICELEVEL cat *.vob| nice -n $NICELEVEL mencoder -o foo.avi
-nosound $FILTER -ovc lavc -lavcopts vpass=2:vbitrate=$VBITRATE:$LAVCOPT -
nice -n $NICELEVEL mkvmerge -o $TITLE.mkv foo.avi $LANG.ogg
Thanks,
Zelos
More information about the MEncoder-users
mailing list