Razorblade2000
1st May 2004, 08:57
I want to encode from a DVD source to a MPEG4 avi file. The standard commandline isn't the way to go as there can be achieved way better results using other params.
My problem is the speed I get using my current parameters.
Using this:
cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -nosoun video.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:trell:vpass=1:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 - && cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -nosound -o video.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:trell:vpass=2:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 -
I'll get about 11 fps (just realizing that I forgot to resize :o )
Leaving out trellis would give me a speed boost I think, but also a visible loss of quality (?!) :(
So now my question: Which are your favourite parameters for mencoder?
EDIT:
cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -vop crop=640:270:0:46,scale -zoom -xy 640 -nosound -o vido.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 - && cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -vop crop=640:270:0:46,scale -zoom -xy 640 -nosound -o vido.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=2:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 -
gives me 20 fps :D
EDIT2:
In case you are wondering where to get you audio from:
cat *.vob|mencoder -o ger.avi -aid 0x80 -ovc frameno -oac mp3lame -lameopts abr:br=128:aq=1:vol=10 -
will give you an ger.avi file containing mp3 audio (can be dumped via mplayer)
My problem is the speed I get using my current parameters.
Using this:
cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -nosoun video.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:trell:vpass=1:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 - && cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -nosound -o video.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:trell:vpass=2:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 -
I'll get about 11 fps (just realizing that I forgot to resize :o )
Leaving out trellis would give me a speed boost I think, but also a visible loss of quality (?!) :(
So now my question: Which are your favourite parameters for mencoder?
EDIT:
cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -vop crop=640:270:0:46,scale -zoom -xy 640 -nosound -o vido.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 - && cat *.vob|mencoder -mc 0 -noskip -skiplimit 0 -vop crop=640:270:0:46,scale -zoom -xy 640 -nosound -o vido.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=2:mbd=2:vbitrate=1000:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4 -
gives me 20 fps :D
EDIT2:
In case you are wondering where to get you audio from:
cat *.vob|mencoder -o ger.avi -aid 0x80 -ovc frameno -oac mp3lame -lameopts abr:br=128:aq=1:vol=10 -
will give you an ger.avi file containing mp3 audio (can be dumped via mplayer)