闲着EP试了下用crf直接压制,crf做1pass然后用码率模式2pass压制,还有1pass和2pass都是码率模式压制这三个压制方法
我是看到楼上有同学说到crf完了还有没有必要2pass才有的这个想法,我想试试看到底有没有必要。片源是Clannad的OP,交叉264版本为megui更新998
参数如下
--crf 18 --level 4.1 --keyint 240 --min-keyint 24 --ref 8 --mixed-refs --no-fast-pskip --bframes 5 --b-adapt 2 --b-pyramid --weightb --subme 9 --trellis 2 --psy-rd 0.0:0 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me umh --merange 24 --threads 2 --thread-input --aq-mode 0 --progress --no-dct-decimate --no-psnr --no-ssim --output "bitrate_2pass" "test.avs" --sar 40:33 --stats "log.stats"
crf模式是建立在crf18基础上的,码率模式的码率使用crf18结束之后log中的最终码率
首先来看直接用crf18压制的log:
avis [info]: 704x480 @ 23.98 fps (2155 frames)
x264 [info]: using SAR=40/33
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
mp4 [info]: initial delay 2002 (scale 24000)
x264 [info]: slice I:29Avg QP:17.14 size: 8674
x264 [info]: slice P:966 Avg QP:19.66 size: 14535
x264 [info]: slice B:1160 Avg QP:21.24 size: 4483
x264 [info]: consecutive B-frames: 8.3% 44.4% 40.1% 3.6% 1.6% 2.0%
x264 [info]: mb I I16..4: 42.1% 49.8% 8.1%
x264 [info]: mb P I16..4: 12.5% 18.9% 3.6% P16..4: 30.4% 12.2% 8.5% 0.0% 0.0%skip:13.8%
x264 [info]: mb B I16..4: 2.2% 3.9% 0.4% B16..8: 33.5% 2.8% 3.3% direct: 6.5% skip:47.5% L0:43.0% L1:49.2% BI: 7.8%
x264 [info]: 8x8 transform intra:54.7% inter:65.9%
x264 [info]: ref P L0 61.1% 15.6% 8.9% 4.1% 3.3% 2.8% 2.6% 1.7%
x264 [info]: ref B L0 78.6% 9.6% 4.7% 2.4% 2.0% 1.8% 1.0%
x264 [info]: ref B L1 95.1% 4.9%
x264 [info]: kb/s:1734.9
encoded 2155 frames, 6.58 fps, 1735.01 kb/s
用crf18做1pass,之后码率2pass模式的log:
avis [info]: 704x480 @ 23.98 fps (2155 frames)
x264 [info]: using SAR=40/33
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
mp4 [info]: initial delay 2002 (scale 24000)
x264 [info]: slice I:29Avg QP:16.83 size: 8250
x264 [info]: slice P:966 Avg QP:19.74 size: 14582
x264 [info]: slice B:1160 Avg QP:21.15 size: 4498
x264 [info]: consecutive B-frames: 8.3% 44.4% 40.1% 3.6% 1.6% 2.0%
x264 [info]: mb I I16..4: 38.5% 54.5% 7.0%
x264 [info]: mb P I16..4: 13.2% 18.3% 3.5% P16..4: 29.8% 12.1% 8.6% 0.0% 0.0%skip:14.5%
x264 [info]: mb B I16..4: 2.4% 3.8% 0.4% B16..8: 33.4% 2.9% 3.4% direct: 6.6% skip:47.1% L0:43.8% L1:48.4% BI: 7.8%
x264 [info]: 8x8 transform intra:53.4% inter:66.0%
x264 [info]: ref P L0 60.4% 15.9% 9.1% 4.1% 3.3% 2.8% 2.6% 1.7%
x264 [info]: ref B L0 77.9% 9.8% 4.7% 2.6% 2.1% 1.8% 1.0%
x264 [info]: ref B L1 94.9% 5.1%
x264 [info]: kb/s:1739.4
encoded 2155 frames, 7.45 fps, 1739.56 kb/s
1pass和2pass都是用码率模式:
avis [info]: 704x480 @ 23.98 fps (2155 frames)
x264 [info]: using SAR=40/33
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: slice I:29Avg QP:16.69 size: 8918
x264 [info]: slice P:966 Avg QP:19.75 size: 14399
x264 [info]: slice B:1160 Avg QP:20.94 size: 4651
x264 [info]: consecutive B-frames: 8.3% 44.4% 40.1% 3.6% 1.6% 2.0%
x264 [info]: mb I I16..4: 38.7% 53.2% 8.0%
x264 [info]: mb P I16..4: 12.2% 18.6% 3.8% P16..4: 29.6% 12.4% 8.6% 0.0% 0.0%skip:14.7%
x264 [info]: mb B I16..4: 2.6% 4.1% 0.4% B16..8: 34.1% 3.1% 3.5% direct: 7.1% skip:45.1% L0:44.1% L1:48.0% BI: 7.9%
x264 [info]: 8x8 transform intra:54.5% inter:62.8%
x264 [info]: ref P L0 59.8% 16.1% 9.1% 4.2% 3.3% 3.0% 2.7% 1.8%
x264 [info]: ref B L0 76.5% 10.5% 4.9% 2.8% 2.2% 2.0% 1.1%
x264 [info]: ref B L1 94.5% 5.5%
x264 [info]: kb/s:1741.2
encoded 2155 frames, 7.18 fps, 1741.37 kb/s
从数据上看,似乎相差并不是非常大,这么小的差别再用一次2pass花一倍的时间我觉得似乎不是很值得。
先去睡了……睡醒把压出来的成品下载补上来,有兴趣的同学研究下看看主观观感上有没有什么不同……