PDA

View Full Version : mencoder (mpeg2video)


lithoc
21st February 2005, 06:24
Hi,

I've download mencoder from http://oss.netfarm.it/mplayer-win32.php

This version have mpeg2video encoder build-in and it's using libavcodec which QuEnc is using.


1st Pass:
mencoder video.avs -nosound -noskip -ovc lavc -lavcopts vcodec=mpeg2video:keyint=24:vqscale=2:vb_strategy=1:vmax_b_frames=4:vrc_buf_size=224:vpass=1:vstrict=-1:vrc_override=3000,3450,31 -o nul: -of rawvideo

2nd Pass:
mencoder video.avs -nosound -noskip -ovc lavc -lavcopts vcodec=mpeg2video:last_pred=9:vhq:keyint=24:vrc_maxrate=9000:trell:vb_strategy=1:vb_qfactor=1.99:vb_qoffset=1.99:vi_qfactor=0.9:scplx_mask=0.2:cmp=3:subcmp=3:mbcmp=3:mbd=2:lumi_mask=0.1:dark_mask=0.1:vmax_b_frames=4:vbitrate=512:vrc_buf_size=224:vpass=2:psnr:vstrict=-1:vrc_override=3000,3450,31 -passlogfile "divx2pass.log" -o out1.m2v -of rawvideo


I think vrc_override is broken or is not working with mpeg2video.
It coulb be I apply it wrongly.

Anyone can confirm/help?


Thanks in advance.

unixfs
21st February 2005, 11:13
yes vrc_override has been reportedly broken for ages.
I have some advises:
-always use the exact same settings in both passes,
obviously with the exception of vpass=1. Some say that adding
turbo to the first pass works well and faster, too.
- using B-frames is generally a bad idea, using even 4 is terrible.
- I observed that using adaptive quantization (*mask) and trellis always resulted in much worse encodes than without
- always use mbd=2

lithoc
22nd February 2005, 02:35
Thanks a lot for the reply & sugestions.

I'm agree 4 B-frames was really bad but I was gearing towards 1 cd movies(352x480 letterboxed).

Any suggestions?

unixfs
22nd February 2005, 08:16
the resolution is so low, and letterboxed, that I wouldn't mind.
In any case you should lower your expectatins, given that level of resize.
THe only suggestions I have are the ones given above, plus to use
a very up to date cvs checkout of mencoder: I've just committed
a new mpeg muxer with support for dvd/x[s]vcd formats.
The command line to use is: mencoder -of mpeg -mpegopts format=xvcd ...