Log in

View Full Version : Do setting change weighted p-frames ?


juGGaKNot
30th November 2009, 12:46
x264 "C:\x264\movie.avi" -o lol.mp4

C:\New Folder>x264 "C:\x264\movie.avi" -o lol.mp4
avs [info]: Trying AVISource... succeeded
avs [warning]: converting input clip to YV12
avs [info]: 1280x540 @ 30.00 fps (1472 frames)
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile High, level 3.1
mp4 [info]: initial delay 1 (scale 30)
x264 [info]: frame I:14 Avg QP:19.36 size: 24773
x264 [info]: frame P:892 Avg QP:23.91 size: 12796
x264 [info]: frame B:566 Avg QP:26.69 size: 3530
x264 [info]: consecutive B-frames: 39.2% 24.3% 8.8% 27.7%
x264 [info]: mb I I16..4: 22.5% 68.7% 8.8%
x264 [info]: mb P I16..4: 10.1% 18.5% 2.2% P16..4: 36.9% 9.1% 3.7% 0.0% 0
.0% skip:19.5%
x264 [info]: mb B I16..4: 1.9% 1.5% 0.2% B16..8: 25.3% 0.7% 0.9% direct:
3.5% skip:66.0% L0:43.3% L1:50.5% BI: 6.2%
x264 [info]: 8x8 transform intra:59.3% inter:82.6%
x264 [info]: coded y,uvDC,uvAC intra: 43.9% 43.5% 4.5% inter: 20.3% 15.6% 0.3%
x264 [info]: i16 v,h,dc,p: 25% 22% 4% 48%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 25% 20% 4% 6% 5% 11% 5% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 29% 14% 4% 8% 5% 13% 3% 6%
x264 [info]: Weighted P-Frames: Y:9.4%
x264 [info]: ref P L0: 50.9% 10.5% 31.4% 5.5% 1.7%
x264 [info]: ref B L0: 86.1% 13.9%
x264 [info]: kb/s:2243.30

encoded 1472 frames, 7.34 fps, 2243.30 kb/s

Writing library : x264 core 79 r1354M 636f98f
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 / pulldown=0 / nal_hrd=0

avs [info]: 1280x540 @ 30.00 fps (1472 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile Main, level 4.0
x264 [info]: frame I:9 Avg QP:16.11 size: 74379
x264 [info]: frame P:759 Avg QP:17.62 size: 23736
x264 [info]: frame B:704 Avg QP:21.43 size: 16107
x264 [info]: consecutive B-frames: 21.0% 33.1% 34.4% 11.5%
x264 [info]: mb I I16..4: 37.4% 0.0% 62.6%
x264 [info]: mb P I16..4: 33.9% 0.0% 0.0% P16..4: 36.0% 0.0% 0.0% 0.0% 0
.0% skip:30.1%
x264 [info]: mb B I16..4: 12.7% 0.0% 0.0% B16..8: 32.1% 0.0% 0.0% direct:
16.5% skip:38.7% L0:35.0% L1:41.2% BI:23.8%
x264 [info]: final ratefactor: 15.12
x264 [info]: direct mvs spatial:97.0% temporal:3.0%
x264 [info]: coded y,uvDC,uvAC intra: 39.7% 45.5% 12.4% inter: 29.0% 17.2% 1.8%
x264 [info]: i16 v,h,dc,p: 25% 32% 18% 25%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 25% 13% 6% 8% 6% 11% 5% 8%
x264 [info]: Weighted P-Frames: Y:9.1%
x264 [info]: kb/s:4895.28

encoded 1472 frames, 16.60 fps, 4895.28 kb/s
avs [info]: 1280x540 @ 30.00 fps (1472 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile High, level 4.0
x264 [info]: frame I:9 Avg QP:17.18 size: 68827
x264 [info]: frame P:759 Avg QP:19.71 size: 23277
x264 [info]: frame B:704 Avg QP:21.69 size: 16019
x264 [info]: consecutive B-frames: 21.0% 33.1% 34.4% 11.5%
x264 [info]: mb I I16..4: 21.2% 61.8% 17.0%
x264 [info]: mb P I16..4: 7.5% 19.3% 2.0% P16..4: 24.4% 9.9% 5.8% 0.4% 0
.3% skip:30.4%
x264 [info]: mb B I16..4: 1.6% 5.0% 0.8% B16..8: 36.8% 3.9% 4.1% direct:
12.4% skip:35.4% L0:43.3% L1:42.2% BI:14.5%
x264 [info]: 8x8 transform intra:66.8% inter:79.5%
x264 [info]: direct mvs spatial:93.9% temporal:6.1%
x264 [info]: coded y,uvDC,uvAC intra: 62.1% 57.8% 17.8% inter: 32.1% 21.9% 2.1%
x264 [info]: i16 v,h,dc,p: 23% 19% 6% 52%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 6% 7% 10% 9% 16% 9% 16%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 14% 5% 6% 13% 10% 20% 8% 14%
x264 [info]: Weighted P-Frames: Y:9.1%
x264 [info]: ref P L0: 49.8% 12.0% 29.3% 6.6% 2.3%
x264 [info]: ref B L0: 83.4% 16.6%
x264 [info]: kb/s:4820.17

encoded 1472 frames, 1.77 fps, 4820.17 kb/s

AVIsource("C:\x264\movie.avi")
Crop(0, height%2, -width%2, 0)
ConvertToYV12()

--preset veryslow --level 4.0 --ref 5 --min-keyint fps --keyint fpx10 --bframes 3 --merange 32 --aq-mode 2 --sar 1:1 --aud

Writing library : x264 core 79 r1354M 636f98f
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=300 / keyint_min=30 / scenecut=40 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4800 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00 / pulldown=0 / nal_hrd=0

Same x264 ( jeeb r1354 )
Same AVS ( Crop(0, height%2, -width%2, 0) does nothing here, AVIsource and ConvertToYV12() are used in the first one also )

Is it normal ? Do setting change the amount of weighted p-frames ?

ajp_anton
30th November 2009, 18:35
They don't even have the same number of I, P and B-frames. Try the same b-adapt (and others that may affect the frame types).

juGGaKNot
30th November 2009, 18:56
I'm just asking because i had the same problem ( just with the same setting ) with an older build and ds said its not normal ( i was unable to reproduce the error ).

Weird thing is that its the same, 9.4 and 9.1, first time i noticed the "problem" i had 9.4 on the last encode and 9.1 on the current encode.
Since then i have 9.1 all the time ( for the same settings ) and now i tried the enhanced Avisynth input version and it jumped up to 9.4 again
Then i tried the enhanced Avisynth input version and the normal 9.1 is back.

So its normal here because of the number of p frames not being the same right ?

JEEB
30th November 2009, 19:06
Funny enough I couldn't replicate it on that version either :V And you didn't want to post complete settings and a small piece of the source that would reproduce it.

So I guess you're changing more than just your AQ mode and it causes the changes in frametypes etc. :V

juGGaKNot
30th November 2009, 19:24
I would but i have 56k net so ...

It was weird at that time, now all seems fine 9.1 all the time with the same settings.