『漫游』酷论坛>『影音数码技术学习交流』>(x264 r2037) --subme 11 相 ..

(x264 r2037) --subme 11 相关简要测试(添加表格汇总)

upyzl@2011-07-24 22:48

x264在r2036引入了subme 11, 从Changelog来看我觉得Trellis和ME应该都是要更新配合才对,不过貌似现在直接用subme 11也没问题的样子(要使用的话,subme11跟subme10的需求一致)

测试工具:sada5编译的x264 r2037,主要是有logger,比2>方便不少

样片:命运石之门游戏TrueED,妖精的尾巴OP6(手头上就这2片;另网络太差就不上传了,刚好一个场景变化不大且偏暗色,一个场景变化很大且偏亮色)

方式:2pass;主要是subme11 vs subme 10 为了直观引入subme11+umh和subme10+tesa的比较;每个测试跑3遍
参数:(pass 1为crf,均不使用--slow-firstpass)
SG的 --fps 30000/1001 --seek 500 --frames 900 --vf resize:768,432 -p2 --stats "tmp.stat" -B 500 --log-file "%~dpn1_%%i.txt" --me umh/tesa -t 2 -m 10/11 --tune ssim --ssim
FT的 --fps 24000/1001 --seek 500 --frames 600 --vf resize:768,432 -p2 --stats "tmp.stat" -B 600 --log-file "%~dpn1_%%i.txt" --me umh/tesa -t 2 -m 10/11 --tune ssim --ssim

结果
SG的--me umh + --subme 10
复制代码
  1. x264 [info]: frame I:4     Avg QP:22.97  size: 17795
  2. x264 [info]: frame P:435   Avg QP:27.55  size:  3563
  3. x264 [info]: frame B:461   Avg QP:32.50  size:   547
  4. x264 [info]: consecutive B-frames:  3.0% 82.7% 10.3%  4.0%
  5. x264 [info]: mb I  I16..4: 47.8% 21.5% 30.7%
  6. x264 [info]: mb P  I16..4:  3.4%  0.5%  0.3%  P16..4: 24.4%  8.2%  2.6%  0.0%  0.0%    skip:60.5%
  7. x264 [info]: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 15.5%  2.1%  0.1%  direct: 0.6%  skip:81.6%  L0:33.9% L1:54.5% BI:11.5%
  8. x264 [info]: 8x8 transform intra:14.1% inter:18.9%
  9. x264 [info]: coded y,uvDC,uvAC intra: 7.7% 14.7% 8.6% inter: 5.8% 3.0% 1.0%
  10. x264 [info]: i16 v,h,dc,p: 63% 28%  7%  1%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 14% 67%  1%  1%  1%  2%  1%  4%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 21% 42%  3%  4%  2%  3%  3%  6%
  13. x264 [info]: i8c dc,h,v,p: 60% 27% 12%  2%
  14. x264 [info]: Weighted P-Frames: Y:5.5% UV:3.4%
  15. x264 [info]: ref P L0: 71.7%  7.4% 12.9%  7.5%  0.5%
  16. x264 [info]: ref B L0: 83.6% 15.9%  0.4%
  17. x264 [info]: ref B L1: 94.5%  5.5%
  18. x264 [info]: SSIM Mean Y:0.9942365 (22.393db)
  19. x264 [info]: kb/s:499.09
  20. x264 [info]: encoded 900 frames, 29.70 fps, 499.09 kb/s

3次速度分别为29.70  29.66  29.72 fps
平均29.697fps   ssim=0.9942365

SG的--me umh + --subme 11
复制代码
  1. x264 [info]: frame I:4     Avg QP:22.70  size: 17831
  2. x264 [info]: frame P:435   Avg QP:27.57  size:  3541
  3. x264 [info]: frame B:461   Avg QP:32.51  size:   563
  4. x264 [info]: consecutive B-frames:  3.0% 82.7% 10.3%  4.0%
  5. x264 [info]: mb I  I16..4: 23.5% 24.7% 51.8%
  6. x264 [info]: mb P  I16..4:  2.2%  0.4%  1.0%  P16..4: 22.7% 11.0%  2.3%  0.0%  0.0%    skip:60.3%
  7. x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 15.5%  2.6%  0.2%  direct: 0.6%  skip:81.0%  L0:33.9% L1:54.5% BI:11.6%
  8. x264 [info]: 8x8 transform intra:14.1% inter:18.6%
  9. x264 [info]: coded y,uvDC,uvAC intra: 9.0% 15.8% 9.5% inter: 5.7% 2.9% 0.9%
  10. x264 [info]: i16 v,h,dc,p: 50% 39%  9%  2%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 14% 57%  1%  1%  1%  2%  1%  4%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 12% 67%  1%  1%  1%  1%  1%  3%
  13. x264 [info]: i8c dc,h,v,p: 38% 47% 12%  2%
  14. x264 [info]: Weighted P-Frames: Y:5.5% UV:3.4%
  15. x264 [info]: ref P L0: 67.9%  6.9% 15.0%  9.7%  0.6%
  16. x264 [info]: ref B L0: 84.9% 14.7%  0.4%
  17. x264 [info]: ref B L1: 94.8%  5.2%
  18. x264 [info]: SSIM Mean Y:0.9943463 (22.477db)
  19. x264 [info]: kb/s:498.50
  20. x264 [info]: encoded 900 frames, 18.59 fps, 498.50 kb/s

3次速度分别为18.59  18.59  18.60 fps
平均18.593fps   ssim=0.9943463

SG的--me tesa + --subme 10
复制代码
  1. x264 [info]: frame I:4     Avg QP:23.03  size: 17839
  2. x264 [info]: frame P:435   Avg QP:27.59  size:  3559
  3. x264 [info]: frame B:461   Avg QP:32.51  size:   548
  4. x264 [info]: consecutive B-frames:  3.0% 82.7% 10.3%  4.0%
  5. x264 [info]: mb I  I16..4: 42.9% 26.3% 30.8%
  6. x264 [info]: mb P  I16..4:  3.7%  0.5%  0.2%  P16..4: 24.5%  8.5%  2.6%  0.0%  0.0%    skip:60.0%
  7. x264 [info]: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 15.5%  2.2%  0.1%  direct: 0.6%  skip:81.5%  L0:34.2% L1:54.3% BI:11.5%
  8. x264 [info]: 8x8 transform intra:14.1% inter:19.2%
  9. x264 [info]: coded y,uvDC,uvAC intra: 7.1% 13.4% 7.8% inter: 5.8% 2.9% 0.9%
  10. x264 [info]: i16 v,h,dc,p: 64% 28%  7%  1%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 14% 63%  1%  1%  1%  2%  1%  4%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 39%  3%  4%  2%  3%  3%  6%
  13. x264 [info]: i8c dc,h,v,p: 60% 26% 12%  2%
  14. x264 [info]: Weighted P-Frames: Y:5.5% UV:3.4%
  15. x264 [info]: ref P L0: 71.3%  7.2% 13.2%  7.8%  0.5%
  16. x264 [info]: ref B L0: 83.3% 16.2%  0.5%
  17. x264 [info]: ref B L1: 94.7%  5.3%
  18. x264 [info]: SSIM Mean Y:0.9943326 (22.466db)
  19. x264 [info]: kb/s:498.74
  20. x264 [info]: encoded 900 frames, 24.22 fps, 498.74 kb/s

3次速度分别为24.22  24.03  24.20 fps
平均24.150fps   ssim=0.9943326

----

FT的--me umh + --subme 10
复制代码
  1. x264 [info]: frame I:6     Avg QP:28.19  size: 24650
  2. x264 [info]: frame P:375   Avg QP:31.63  size:  4108
  3. x264 [info]: frame B:219   Avg QP:37.06  size:   773
  4. x264 [info]: consecutive B-frames: 31.8% 56.7%  5.5%  6.0%
  5. x264 [info]: mb I  I16..4: 14.6% 37.2% 48.2%
  6. x264 [info]: mb P  I16..4:  4.7%  6.3%  2.3%  P16..4: 26.6%  9.6%  4.3%  0.0%  0.0%    skip:46.2%
  7. x264 [info]: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 17.8%  3.6%  1.0%  direct: 1.0%  skip:76.4%  L0:33.1% L1:62.0% BI: 4.9%
  8. x264 [info]: 8x8 transform intra:46.2% inter:53.1%
  9. x264 [info]: coded y,uvDC,uvAC intra: 36.7% 40.2% 14.2% inter: 8.2% 7.0% 0.6%
  10. x264 [info]: i16 v,h,dc,p: 27% 32% 17% 24%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 14% 33%  5%  5%  5%  7%  5% 11%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 25%  8%  6%  6%  5%  6%  7%
  13. x264 [info]: i8c dc,h,v,p: 39% 35% 16% 10%
  14. x264 [info]: Weighted P-Frames: Y:4.0% UV:3.5%
  15. x264 [info]: ref P L0: 65.2% 15.2% 12.0%  7.5%  0.1%
  16. x264 [info]: ref B L0: 89.7%  9.9%  0.5%
  17. x264 [info]: ref B L1: 99.3%  0.7%
  18. x264 [info]: SSIM Mean Y:0.9742235 (15.888db)
  19. x264 [info]: kb/s:593.87
  20. x264 [info]: encoded 600 frames, 17.00 fps, 593.87 kb/s

3次速度分别为17.00  16.99  17.01 fps
平均17.000fps   ssim=0.9742235

FT的--me umh + --subme 11
复制代码
  1. x264 [info]: frame I:6     Avg QP:28.18  size: 24658
  2. x264 [info]: frame P:375   Avg QP:31.68  size:  4099
  3. x264 [info]: frame B:219   Avg QP:37.11  size:   782
  4. x264 [info]: consecutive B-frames: 31.8% 56.7%  5.5%  6.0%
  5. x264 [info]: mb I  I16..4: 12.7% 35.6% 51.7%
  6. x264 [info]: mb P  I16..4:  4.0%  6.1%  3.0%  P16..4: 22.9% 14.1%  3.8%  0.0%  0.0%    skip:46.1%
  7. x264 [info]: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 16.9%  4.6%  1.2%  direct: 1.0%  skip:76.1%  L0:32.6% L1:62.4% BI: 4.9%
  8. x264 [info]: 8x8 transform intra:45.1% inter:52.1%
  9. x264 [info]: coded y,uvDC,uvAC intra: 37.1% 41.1% 14.3% inter: 8.0% 6.9% 0.6%
  10. x264 [info]: i16 v,h,dc,p: 23% 29% 17% 31%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 13% 34%  5%  5%  5%  7%  5% 11%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 13% 35%  7%  5%  5%  4%  5%  6%
  13. x264 [info]: i8c dc,h,v,p: 30% 40% 16% 14%
  14. x264 [info]: Weighted P-Frames: Y:4.0% UV:3.5%
  15. x264 [info]: ref P L0: 65.5% 14.5% 12.2%  7.7%  0.1%
  16. x264 [info]: ref B L0: 92.2%  7.4%  0.4%
  17. x264 [info]: ref B L1: 99.5%  0.5%
  18. x264 [info]: SSIM Mean Y:0.9745654 (15.946db)
  19. x264 [info]: kb/s:593.43
  20. x264 [info]: encoded 600 frames, 11.06 fps, 593.43 kb/s

3次速度分别为11.06  11.06  11.07 fps
平均11.063fps   ssim=0.9745654

FT的--me tesa + --subme 10

复制代码
  1. x264 [info]: frame I:6     Avg QP:28.19  size: 24664
  2. x264 [info]: frame P:375   Avg QP:31.62  size:  4106
  3. x264 [info]: frame B:219   Avg QP:37.20  size:   770
  4. x264 [info]: consecutive B-frames: 31.8% 56.7%  5.5%  6.0%
  5. x264 [info]: mb I  I16..4: 14.9% 36.7% 48.4%
  6. x264 [info]: mb P  I16..4:  4.6%  6.2%  2.3%  P16..4: 26.3%  9.8%  4.5%  0.0%  0.0%    skip:46.4%
  7. x264 [info]: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 17.3%  3.6%  1.1%  direct: 1.0%  skip:76.8%  L0:32.9% L1:62.2% BI: 5.0%
  8. x264 [info]: 8x8 transform intra:46.3% inter:54.5%
  9. x264 [info]: coded y,uvDC,uvAC intra: 36.6% 40.4% 14.4% inter: 8.3% 7.1% 0.6%
  10. x264 [info]: i16 v,h,dc,p: 27% 32% 16% 24%
  11. x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 14% 33%  5%  5%  5%  7%  5% 11%
  12. x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 25%  8%  6%  6%  5%  6%  7%
  13. x264 [info]: i8c dc,h,v,p: 39% 35% 16% 10%
  14. x264 [info]: Weighted P-Frames: Y:4.0% UV:3.5%
  15. x264 [info]: ref P L0: 65.6% 15.8% 11.3%  7.2%  0.1%
  16. x264 [info]: ref B L0: 90.8%  8.7%  0.4%
  17. x264 [info]: ref B L1: 99.3%  0.7%
  18. x264 [info]: SSIM Mean Y:0.9745798 (15.948db)
  19. x264 [info]: kb/s:593.39
  20. x264 [info]: encoded 600 frames, 12.79 fps, 593.39 kb/s

3次速度分别为12.79  12.81  12.81 fps
平均12.803fps   ssim=0.9745798

汇总:
Clip SGClip FT
123Avg fpsSSIM123Avg fpsSSIM
umh+subme1029.70 29.66 29.72 29.693 0.994236517.00 16.99 17.01 17.000 0.9742235
umh+subme1118.59 18.59 18.60 18.593 0.994346311.06 11.06 11.07 11.063 0.9745654
tesa+subme1024.22 24.03 24.20 24.150 0.994332612.79 12.81 12.81 12.803 0.9745798




因为每次3遍测试里,除了fps外其余信息完全相同,故相同片源+参数的只提供1个信息

可见umh+subme11总是慢于tesa+subme10的
效果则是有优有劣(估计是现在Trellis和ME跟subme11不完全匹配的关系...)
tesa+subme11我是不想跑了……

当然这只是潦草的理论测试
但主观上我也看不出个所以然来(主观评判至少也不会用到--tune ssim里的--no-psy),各位有兴趣可继续研究,并且欢迎分享成果~~~





[ 此帖被upyzl在2011-07-25 09:32重新编辑 ]
引用

roozhou@2011-07-25 18:58

主观看不出就降低码率啊,用个200k的码率就看得出来了。
引用

upyzl@2011-07-26 09:01

确实能看出区别了
均270kbps,此时I帧的平均QP大于34
图是同一帧

subme10 http://i.imgur.com/DJZIF.png
subme11 http://i.imgur.com/sLiYb.png

2张png加起来有1MB左右,就不用img代码了
引用

| TOP