View Single Post
Old 13th February 2018, 04:24   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Okay, so you are saying that using b-frames makes 1st pass naturally slower than 2nd pass?

Disabling all b-frames:
Code:
ffmpeg -y -loglevel fatal -hwaccel dxva2 -threads 1 -i "C:\Users\Selur\Desktop\Dragonball.Z.-.001.-.1080p.BluRay.x264.DHD (1)-001.mkv" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f rawvideo - | x264 --pass 1 --bitrate 527 --profile high --level 4.1 --bframes 0 --lookahead-threads 10 --rc-lookahead 50 --chroma-qp-offset -2 --aq-strength 0.6 --sar 1:1 --deblock 1:1 --non-deterministic --range tv --stats "H:\Temp\Dragonball.Z.-.001.-.1080p.BluRay.x264.DHD (1)-001_new_20_01_11_2010_01.stats" --demuxer raw --input-res 1920x1080 --input-csp i420 --input-depth 8 --fps 24000/1001 --output-depth 8 --output NUL -
I get:
Code:
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.1
x264 [info]: frame I:332   Avg QP:39.50  size: 11202
x264 [info]: frame P:6957  Avg QP:39.88  size:  2295
x264 [info]: mb I  I16..4: 96.1%  0.0%  3.9%
x264 [info]: mb P  I16..4:  7.5%  0.0%  0.0%  P16..4:  6.2%  0.0%  0.0%  0.0%  0.0%    skip:86.3%
x264 [info]: final ratefactor: 39.47
x264 [info]: coded y,uvDC,uvAC intra: 4.3% 26.3% 3.6% inter: 0.4% 1.7% 0.0%
x264 [info]: i16 v,h,dc,p: 59% 24% 11%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 15% 33% 10%  5%  5%  4%  5%  4%
x264 [info]: i8c dc,h,v,p: 82%  9%  7%  1%
x264 [info]: Weighted P-Frames: Y:0.7% UV:0.4%
x264 [info]: kb/s:518.05

encoded 7289 frames, 115.64 fps, 518.05 kb/s
(also setting b-frame count to 16 slows it down to ~20fps)

But is it just me not having payed attention to the speeds that close. I don't remember the impact of having more b-frames being that heavy.

Cu Selur

Ps.: using '--slow-firstpass':
Code:
ffmpeg -y -loglevel fatal -hwaccel dxva2 -threads 1 -i "C:\Users\Selur\Desktop\Dragonball.Z.-.001.-.1080p.BluRay.x264.DHD (1)-001.mkv" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f rawvideo - | x264 --pass 1 --bitrate 527 --profile high --level 4.1  --slow-firstpass --bframes 5 --b-pyramid none --direct auto --b-adapt 2 --lookahead-threads 10 --rc-lookahead 50 --chroma-qp-offset -2 --aq-strength 0.6 --sar 1:1 --deblock 1:1 --non-deterministic --range tv --stats "H:\Temp\Dragonball.Z.-.001.-.1080p.BluRay.x264.DHD (1)-001_new_20_01_11_2010_01.stats" --demuxer raw --input-res 1920x1080 --input-csp i420 --input-depth 8 --fps 24000/1001 --output-depth 8 --output NUL -
still gives me still gives me:
Code:
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1
x264 [info]: frame I:66    Avg QP:37.10  size: 21874
x264 [info]: frame P:3470  Avg QP:40.24  size:  4151
x264 [info]: frame B:3753  Avg QP:42.47  size:  1059
x264 [info]: consecutive B-frames: 13.2% 46.0% 29.7%  5.2%  3.8%  2.1%
x264 [info]: mb I  I16..4: 22.8% 72.6%  4.6%
x264 [info]: mb P  I16..4:  2.6% 13.7%  0.1%  P16..4: 12.1%  0.7%  0.4%  0.0%  0.0%    skip:70.4%
x264 [info]: mb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 11.7%  0.1%  0.0%  direct: 0.1%  skip:87.9%  L0:37.3% L1:62.5% BI: 0.2%
x264 [info]: final ratefactor: 39.23
x264 [info]: 8x8 transform intra:81.9% inter:92.8%
x264 [info]: direct mvs  spatial:94.5% temporal:5.5%
x264 [info]: coded y,uvDC,uvAC intra: 5.4% 28.9% 4.3% inter: 0.6% 2.2% 0.0%
x264 [info]: i16 v,h,dc,p: 42% 35%  8% 15%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23%  6% 66%  1%  1%  1%  1%  1%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 19% 20%  6%  7%  7%  6%  5%  3%
x264 [info]: i8c dc,h,v,p: 87%  6%  5%  1%
x264 [info]: Weighted P-Frames: Y:2.5% UV:1.6%
x264 [info]: ref P L0: 62.0% 11.6% 17.7%  8.5%  0.2%
x264 [info]: ref B L0: 73.1% 26.9%
x264 [info]: kb/s:521.63

encoded 7289 frames, 52.96 fps, 521.63 kb/s
So when using multiple b-frames using fast-firstpass might not really be worth it,..
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 13th February 2018 at 05:27.
Selur is offline   Reply With Quote