View Single Post
Old 27th July 2020, 13:25   #16  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by Richard1485 View Post
Thanks, guys. Unfortunately, I can't switch on temporal-aq or increase rc-lookahead without receving a "No NVENC capable devices found" warning, which despite what it sounds like means that my hardware doesn't support such settings.

Anyway, here's a second attempt:

Code:
ffmpeg -i clip.mkv -vcodec h264_nvenc -preset 6 -profile:v high -level 41 -rc vbr_hq -2pass 1 -qmin 0 -qmax 51 -maxrate:v 40000k -b:v 25000k -bufsize:v 30000k -bf 3 -refs:v 3 -spatial-aq 1 -temporal-aq 1 -aq-strength 4 -b_ref_mode 2 -rc-lookahead 32 -surfaces 48 -no-scenecut 0 -nonref_p 1 -weighted_pred 1 -strict_gop 1 -coder:v cabac -g 24 -bluray-compat 1 output.264
Let me know if I've overlooked anything. I wondered if it might be worth setting a minimum bitrate.
You should remove (or disable) -weighted_pred. According to NVIDIA's SDK Doc:
Quote:
NVENCODE API supports weighed prediction for HEVC and H.264 starting from Pascal generation GPUs.
Weighted prediction is not supported if the encode session is configured with B frames.
Sharc is offline   Reply With Quote