Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
9th November 2009, 12:39 | #1 | Link |
Registered User
Join Date: Apr 2007
Posts: 35
|
Worse Quality in Dissolve() Fades With Weightp Than Without
My avisynth script consists of this line repeated and concatenated for each image in the source folder.
Code:
Dissolve(ImageSource("IMG_2040.jpg",end=5).Spline36Resize(1024,768),BlankClip(6,1024,768,"RGB24").KillAudio(),5) Code:
for %%A in (0 1 2) DO ( ..\x264.weightp --weightp %%A --bitrate 1500 --pass 1 --preset slow --bframes 8 --ref 8 --tune ssim --ssim "fades.avs" --output NUL ..\x264.weightp --weightp %%A --bitrate 1500 --pass 2 --preset slow --bframes 8 --ref 8 --tune ssim --ssim "fades.avs" --output "weightp.%%A.264" ) Code:
WEIGHTP 0 avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Main, level 3.1 x264 [info]: frame I:2 Avg QP:27.48 size: 66136 x264 [info]: frame P:80 Avg QP:30.22 size: 22919 x264 [info]: frame B:191 Avg QP:31.43 size: 76 x264 [info]: consecutive B-frames: 14.4% 1.5% 1.1% 1.5% 1.8% 79.7% 0.0% 0. 0% 0.0% x264 [info]: mb I I16..4: 49.6% 0.0% 50.4% x264 [info]: mb P I16..4: 96.2% 0.0% 0.0% P16..4: 0.2% 0.0% 0.0% 0.0% 0 .0% skip: 3.6% x264 [info]: mb B I16..4: 0.4% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.2% skip:99.3% L0: 8.9% L1:81.3% BI: 9.8% x264 [info]: final ratefactor: 26.00 x264 [info]: direct mvs spatial:52.4% temporal:47.6% x264 [info]: coded y,uvDC,uvAC intra: 35.6% 27.2% 13.4% inter: 0.1% 0.1% 0.0% x264 [info]: i16 v,h,dc,p: 61% 14% 14% 10% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 29% 15% 6% 7% 7% 10% 5% 9% x264 [info]: SSIM Mean Y:0.9611572 x264 [info]: kb/s:1392.76 encoded 273 frames, 2.08 fps, 1392.76 kb/s avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile High, level 4.0 x264 [info]: frame I:2 Avg QP:30.05 size: 52183 x264 [info]: frame P:80 Avg QP:28.61 size: 24588 x264 [info]: frame B:191 Avg QP:28.58 size: 286 x264 [info]: consecutive B-frames: 14.4% 1.5% 1.1% 1.5% 1.8% 79.7% 0.0% 0. 0% 0.0% x264 [info]: mb I I16..4: 38.8% 37.8% 23.5% x264 [info]: mb P I16..4: 55.6% 27.5% 11.0% P16..4: 2.1% 0.3% 0.1% 0.0% 0 .0% skip: 3.5% x264 [info]: mb B I16..4: 0.8% 0.5% 0.1% B16..8: 0.2% 0.0% 0.0% direct: 0.1% skip:98.2% L0:43.9% L1:21.9% BI:34.2% x264 [info]: 8x8 transform intra:29.6% inter:72.1% x264 [info]: direct mvs spatial:55.0% temporal:45.0% x264 [info]: coded y,uvDC,uvAC intra: 36.2% 31.6% 15.9% inter: 0.5% 0.4% 0.0% x264 [info]: i16 v,h,dc,p: 81% 5% 7% 7% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 22% 26% 5% 6% 6% 6% 6% 8% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 26% 12% 5% 7% 7% 6% 6% 8% x264 [info]: ref P L0: 1.3% 67.8% 5.8% 5.4% 0.8% 8.7% 2.6% 7.6% x264 [info]: ref B L0: 48.0% 34.5% 6.4% 3.7% 5.0% 0.2% 2.3% x264 [info]: SSIM Mean Y:0.9711909 x264 [info]: kb/s:1495.20 encoded 273 frames, 1.88 fps, 1495.20 kb/s WEIGHTP 1 avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Main, level 3.1 x264 [info]: frame I:2 Avg QP:27.48 size: 66136 x264 [info]: frame P:80 Avg QP:30.22 size: 22919 x264 [info]: frame B:191 Avg QP:31.43 size: 76 x264 [info]: consecutive B-frames: 14.4% 1.5% 1.1% 1.5% 1.8% 79.7% 0.0% 0. 0% 0.0% x264 [info]: mb I I16..4: 49.6% 0.0% 50.4% x264 [info]: mb P I16..4: 96.2% 0.0% 0.0% P16..4: 0.2% 0.0% 0.0% 0.0% 0 .0% skip: 3.6% x264 [info]: mb B I16..4: 0.4% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.2% skip:99.3% L0: 8.9% L1:81.3% BI: 9.8% x264 [info]: final ratefactor: 26.00 x264 [info]: direct mvs spatial:52.4% temporal:47.6% x264 [info]: coded y,uvDC,uvAC intra: 35.6% 27.2% 13.4% inter: 0.1% 0.1% 0.0% x264 [info]: i16 v,h,dc,p: 61% 14% 14% 10% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 29% 15% 6% 7% 7% 10% 5% 9% x264 [info]: SSIM Mean Y:0.9611572 x264 [info]: kb/s:1392.76 encoded 273 frames, 1.89 fps, 1392.76 kb/s avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile High, level 4.0 x264 [info]: frame I:2 Avg QP:30.05 size: 52183 x264 [info]: frame P:80 Avg QP:28.60 size: 24588 x264 [info]: frame B:191 Avg QP:28.59 size: 286 x264 [info]: consecutive B-frames: 14.4% 1.5% 1.1% 1.5% 1.8% 79.7% 0.0% 0. 0% 0.0% x264 [info]: mb I I16..4: 38.8% 37.8% 23.5% x264 [info]: mb P I16..4: 55.7% 27.5% 10.9% P16..4: 2.0% 0.2% 0.1% 0.0% 0 .0% skip: 3.5% x264 [info]: mb B I16..4: 0.8% 0.5% 0.1% B16..8: 0.3% 0.0% 0.0% direct: 0.1% skip:98.2% L0:45.3% L1:22.3% BI:32.4% x264 [info]: 8x8 transform intra:29.7% inter:73.7% x264 [info]: direct mvs spatial:55.0% temporal:45.0% x264 [info]: coded y,uvDC,uvAC intra: 36.2% 31.6% 15.9% inter: 0.5% 0.4% 0.0% x264 [info]: i16 v,h,dc,p: 80% 5% 7% 7% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 22% 26% 5% 6% 6% 6% 6% 9% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 26% 12% 5% 7% 7% 6% 6% 8% x264 [info]: ref P L0: 0.6% 71.6% 0.8% 2.1% 5.0% 0.5% 9.2% 2.5% 7.7% x264 [info]: ref B L0: 45.6% 36.4% 6.9% 4.3% 4.5% 0.2% 2.1% x264 [info]: SSIM Mean Y:0.9711826 x264 [info]: kb/s:1495.24 encoded 273 frames, 1.59 fps, 1495.24 kb/s WEIGHTP 2 avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Main, level 3.1 x264 [info]: frame I:2 Avg QP:26.77 size: 81072 x264 [info]: frame P:96 Avg QP:34.31 size: 16358 x264 [info]: frame B:175 Avg QP:36.94 size: 1000 x264 [info]: consecutive B-frames: 8.1% 25.1% 14.4% 17.7% 0.0% 24.4% 10.3% 0. 0% 0.0% x264 [info]: mb I I16..4: 33.8% 0.0% 66.2% x264 [info]: mb P I16..4: 91.1% 0.0% 0.0% P16..4: 4.3% 0.0% 0.0% 0.0% 0 .0% skip: 4.6% x264 [info]: mb B I16..4: 22.2% 0.0% 0.0% B16..8: 1.0% 0.0% 0.0% direct: 0.5% skip:76.3% L0:64.1% L1:31.9% BI: 4.0% x264 [info]: final ratefactor: 30.23 x264 [info]: direct mvs spatial:98.9% temporal:1.1% x264 [info]: coded y,uvDC,uvAC intra: 22.3% 19.8% 6.1% inter: 2.0% 2.0% 0.1% x264 [info]: i16 v,h,dc,p: 54% 22% 14% 10% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 28% 14% 7% 7% 7% 9% 6% 9% x264 [info]: Weighted P-Frames: Y:0.0% x264 [info]: SSIM Mean Y:0.9169969 x264 [info]: kb/s:1341.53 encoded 273 frames, 2.00 fps, 1341.53 kb/s avis [info]: 1024x768 @ 24.00 fps (273 frames) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile High, level 4.0 x264 [info]: frame I:2 Avg QP:30.95 size: 46367 x264 [info]: frame P:96 Avg QP:32.87 size: 17927 x264 [info]: frame B:175 Avg QP:34.44 size: 1686 x264 [info]: consecutive B-frames: 8.1% 25.1% 14.4% 17.7% 0.0% 24.4% 10.3% 0. 0% 0.0% x264 [info]: mb I I16..4: 24.6% 55.1% 20.3% x264 [info]: mb P I16..4: 26.4% 56.0% 9.4% P16..4: 2.9% 0.6% 0.1% 0.0% 0 .0% skip: 4.6% x264 [info]: mb B I16..4: 10.0% 5.6% 0.4% B16..8: 1.6% 0.0% 0.0% direct: 2.7% skip:79.6% L0:77.8% L1:20.4% BI: 1.8% x264 [info]: 8x8 transform intra:54.7% inter:90.0% x264 [info]: direct mvs spatial:98.3% temporal:1.7% x264 [info]: coded y,uvDC,uvAC intra: 31.1% 27.2% 8.3% inter: 4.7% 2.3% 0.0% x264 [info]: i16 v,h,dc,p: 38% 26% 16% 20% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 16% 51% 3% 3% 4% 3% 3% 4% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 27% 16% 5% 6% 6% 5% 5% 6% x264 [info]: Weighted P-Frames: Y:0.0% x264 [info]: ref P L0: 15.6% 26.2% 32.9% 9.9% 2.7% 3.2% 3.3% 4.0% 2.1% x264 [info]: ref B L0: 26.4% 3.3% 8.2% 6.4% 9.3% 4.3% 42.1% x264 [info]: SSIM Mean Y:0.9459391 x264 [info]: kb/s:1483.12 encoded 273 frames, 1.64 fps, 1483.12 kb/s Dropping --tune ssim from the command line resulted in nearly identical results with and without weightp. |
9th November 2009, 12:42 | #2 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
And on a hunch, change Code:
static void weights_plane_analyse( Code:
static void NOINLINE weights_plane_analyse(
__________________
Follow x264 development progress | akupenguin quotes | x264 git status ffmpeg and x264-related consulting/coding contracts | Doom10 Last edited by Dark Shikari; 9th November 2009 at 12:52. |
|
9th November 2009, 13:00 | #3 | Link | |
Registered User
Join Date: Jan 2003
Location: Silicon Valley
Posts: 455
|
Quote:
Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net |
|
9th November 2009, 13:06 | #4 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
More specifically, I have never had a miscompilation issue with gcc 3.4 that wasn't also in 4.X, but I've constantly had issues with miscompilation in 4.X that weren't in 3.4. |
|
9th November 2009, 13:11 | #5 | Link |
Registered User
Join Date: Apr 2007
Posts: 35
|
Thanks for the quick reply.
NOINLINE weights_plane_analyse didn't fix it for TDM GCC 4.4.1 I'm afraid. bob0r's build with gcc 3.4.5 used Weighted P-Frames 36.5% of the time, but still with --tune ssim the SSIM dropped from 0.9711910 to 0.9604006. |
10th November 2009, 17:28 | #6 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Conquerist, I think the real question should be: Am I seeing a noticeable difference in visual quality when I view the Weight P vs non-weight P?
Any change in PSNR or SSIM doesn't always correlate with a corresponding change in actual visual quality. Take Psy-RDO and AQ for example. Both are known to decrease metrics but vastly improve quality.
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame. Last edited by Sagekilla; 10th November 2009 at 17:35. |
11th November 2009, 20:29 | #11 | Link | |
Registered User
Join Date: Feb 2008
Posts: 733
|
jeebs 4.3.4, 2 seconds, now encoding 6 minutes and posting screens
Quote:
__________________
Last edited by juGGaKNot; 11th November 2009 at 20:31. |
|
11th November 2009, 21:21 | #14 | Link | |
Registered User
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
|
Quote:
|
|
11th November 2009, 21:53 | #16 | Link | |
Registered User
Join Date: Feb 2008
Posts: 733
|
Code:
--preset veryslow --level 3.2 --bitrate 4300 --ref 5 --min-keyint 30 --keyint 300 --bframes 3 --ratetol 2.0 --merange 32 --direct temporal --aq-mode 2 --no-fast-pskip --no-dct-decimate --sar 1:1 --aud Encoding settings : cabac=1 / ref=5 / 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=0 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=2 / wpredb=1 / wpredp=2 / keyint=300 / keyint_min=30 / scenecut=40 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4300 / ratetol=2.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00 Encoding X264 : avis [info]: 1184x666 @ 30.00 fps (10800 frames) x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX2 SSE2Slow x264 [info]: profile Main, level 3.2 x264 [info]: frame I:116 Avg QP:21.45 size: 61227 x264 [info]: frame P:4608 Avg QP:24.67 size: 25584 x264 [info]: frame B:6076 Avg QP:27.46 size: 11411 x264 [info]: consecutive B-frames: 10.0% 29.7% 38.3% 22.0% x264 [info]: mb I I16..4: 33.2% 0.0% 66.8% x264 [info]: mb P I16..4: 38.7% 0.0% 0.0% P16..4: 49.8% 0.0% 0.0% 0.0% 0 .0% skip:11.6% x264 [info]: mb B I16..4: 10.3% 0.0% 0.0% B16..8: 53.6% 0.0% 0.0% direct: 2.6% skip:33.5% L0:36.7% L1:43.9% BI:19.5% x264 [info]: final ratefactor: 21.38 x264 [info]: coded y,uvDC,uvAC intra: 47.1% 32.3% 8.2% inter: 28.7% 11.1% 3.2% x264 [info]: i16 v,h,dc,p: 33% 26% 21% 19% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 25% 13% 6% 8% 6% 10% 6% 8% x264 [info]: Weighted P-Frames: Y:11.3% x264 [info]: kb/s:4318.31 encoded 10800 frames, 12.39 fps, 4318.31 kb/s avis [info]: 1184x666 @ 30.00 fps (10800 frames) x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX2 SSE2Slow x264 [info]: profile High, level 3.2 x264 [info]: frame I:116 Avg QP:22.63 size: 59549 x264 [info]: frame P:4608 Avg QP:25.73 size: 23512 x264 [info]: frame B:6076 Avg QP:28.36 size: 12892 x264 [info]: consecutive B-frames: 10.0% 29.7% 38.3% 22.0% x264 [info]: mb I I16..4: 14.9% 75.2% 9.9% x264 [info]: mb P I16..4: 7.8% 17.7% 1.6% P16..4: 37.3% 11.1% 8.8% 0.3% 0 .2% skip:15.2% x264 [info]: mb B I16..4: 1.1% 4.3% 0.5% B16..8: 64.8% 2.8% 3.9% direct: 2.0% skip:20.6% L0:47.2% L1:42.6% BI:10.2% x264 [info]: 8x8 transform intra:67.4% inter:81.8% x264 [info]: coded y,uvDC,uvAC intra: 59.0% 45.1% 12.7% inter: 28.8% 13.2% 3.4% x264 [info]: i16 v,h,dc,p: 36% 23% 7% 34% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 11% 5% 8% 13% 11% 17% 10% 15% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 10% 4% 7% 16% 12% 19% 8% 13% x264 [info]: Weighted P-Frames: Y:11.0% x264 [info]: ref P L0: 52.6% 12.9% 18.0% 6.5% 5.5% 4.2% 0.4% x264 [info]: ref B L0: 75.5% 12.0% 7.8% 4.7% x264 [info]: kb/s:4301.88 encoded 10800 frames, 1.30 fps, 4301.88 kb/s AVC-H264 import - frame size 1184 x 666 at 30.000 FPS Import results: 10800 samples - Slices: 116 I 4608 P 6076 B - 1 SEI - 108 IDR IsoMedia import - track ID 1 - Audio (SR 44100 - 2 channels) Saving C:\x264\Movie_2D\1.Movie_X264_2D.mp4: 0.500 secs Interleaving X264 Encoding started at 07:57 PM and finished at 10:31 PM Overall Encoding started at 07:57 PM and finished at 10:31 PM Quote:
__________________
Last edited by juGGaKNot; 11th November 2009 at 21:56. |
|
11th November 2009, 22:16 | #19 | Link |
Registered User
Join Date: Mar 2005
Posts: 128
|
From my personal tests I have concluded that weightp (2) improves ssim at the same bitrate, but makes it worse at the same crf, compared to no weightp. What you see visually follows this.
May not be true in all cases I guess, but at least in everything I tested. P.S. Tested with --no-psy. Last edited by Daemon404; 11th November 2009 at 22:22. |
12th November 2009, 03:46 | #20 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
@Daemon404: At the same crf, does the bitrate decrease on the weightp encoded sample? If so, that explains the decrease in SSIM. 2-pass with fixed bitrate is the only way you can really show whether a setting improves quality, as in CRF mode there is a change in bitrate with different options.
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame. |
Thread Tools | Search this Thread |
Display Modes | |
|
|