Log in

View Full Version : x264: non-default merange on first pass ?


vucloutr
10th February 2009, 19:38
After the first pass of my encode finished I noticed that
x264 did not use the merange that I've set, it used the default of 16 instead.

my commandline:
avs2yuv -raw 720p.avs - | x264.x64.exe --bframes 3 --b-adapt 2 --b-pyramid --ref 1
--bitrate 4315 --vbv-maxrate 40000 --vbv-bufsize 40000 --aq-strength 0.8 --pass 1
--partitions none --direct auto --weightb --me hex --merange 24 --subme 5
--output NUL --fps 24000/1001 --progress --no-psnr --threads auto --thread-input - 1280x532
stats file:
#options: 1280x532 fps=24000/1001 cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0
me=hex subme=5 psy_rd=0.0:0.0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
8x8dct=0 cqm=0 deadzone=21,11 chroma_qp_offset=0 threads=6 nr=0 decimate=1
mbaff=0 bframes=3 b_pyramid=1 b_adapt=2 b_bias=0 direct=3 wpredb=1 keyint=250 keyint_min=25
scenecut=40(pre) rc=cbr bitrate=4315 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4
vbv_maxrate=40000 vbv_bufsize=40000 ip_ratio=1.40 pb_ratio=1.30 aq=1:0.80

Since I'm no x264 expert I do not know if this is a bug or a feature.
Actually the final encode (pass 2) shall have --merange 24 but I don't know if the first pass can safely go without --merange 24.

If it's a feature, would there be any gain (even if minimalistic)
in forcing the first pass to use somehow --merange 24 ?


software used:
imk's x264 rev1106 x64 ssse3
avs2yuv 0.24


PS: I've used the forum search and google and couldn't find anything useful/related.

Dark Shikari
10th February 2009, 19:41
ME range for dia/hex is clipped to [4,16].

vucloutr
10th February 2009, 19:57
Ok and ME range 16 on first pass does not make ME range 24 on second pass somehow useless ?

Dark Shikari
10th February 2009, 19:59
Ok and ME range 16 on first pass does not make ME range 24 on second pass somehow useless ?no....

vucloutr
10th February 2009, 20:11
Okay, thanks.