25.08.2021, 22:19
(25.08.2021, 21:14)Selur Wrote:Quote:One problem still persists: same config is slower in Hybrid than in FFmpeg, but Hybrid uses more CPU than FFmpeg.You are not using the same config,....
Any idea why this might be?
Looking at the x264 encoding setting there are quire a few differences,... you especiall use a way higher sub-pixel precision in Hybrid.
vs."D:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -c:v h264_cuvid -deint 2 -i "G:\F1\DIGI Sport 4 HD - F3 Cursa 2021.07.31 21.47.mkv" -map 0:0 -an -sn -vf scale=in_range=tv:out_range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "D:\Program Files\Hybrid\64bit\x264.exe" --preset veryfast --profile high --level 4.2 --ref 3 --direct auto --b-adapt 0 --sync-lookahead 18 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --partitions i4x4,p8x8,b8x8 --no-fast-pskip --subme 5 --aq-mode 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1920x1080 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output "C:\Users\Alexa\AppData\Local\Temp\2021-08-25@21_45_31_9010_02.264" -
ffmpeg -r 50 -c:v h264_cuvid -deint 2 -i <input> -c:v libx264 -profile:v high -preset veryfast -crf 18 -x264opts "keyint=500" -c:a copy <output.mkv>
looking at what 'preset veryfast' does:
you use a '--subme 5' instead of '--subme 2', which is a lot slower.- veryfast:
--no-mixed-refs --rc-lookahead 10
--ref 1 --subme 2 --trellis 0 --weightp 1
-> You use different way slower encoding settings in Hybrid.
You're right. I tried reducing the command to a minimum and it seems fine now.
Thanks!
I believe it's stable enough at this point, but you decide whether or not to launch it now.
I'll also check those other CUVID options and let you know once I do. But for now, to me, it's stable and works fine.