How to modify parameters of NvEncoding ?

Hi !

Driver : Nvidia Tesla P4
Version: 24.21.14.1182

NVIDIA GPU Computing Toolkit: cuda_9.2.148_win10

CodecSDK: Video_Codec_SDK_8.2.16

error:

\Test\Video_Codec_SDK_8.2.16\Samples\x64.Release>AppEncCuda.exe -i HeavyHand_1080p.yuv -o test.h264 -s 1280x720 -if iyuv -gpu 0 -codec h264 -preset hq -profile baseline -rc cbr_hq -fps 20 -bf 0 -bitrate 1500K -maxbitrate 2000 -vbvbufsize 2000 -lookahead 1 -cq 0 -initqp 10,0,10 -qmin 8,0,8 -qmax 15,0,15 -aq 1 -gop 20
GPU in use: Tesla P4
[INFO ][13:52:51] Encoding Parameters:
codec : h264
preset : hq
profile : baseline(h264)
chroma : yuv420
bitdepth : 8
rc : cbr_hq
fps : 20/1
gop : 20
bf : 0
size : 1280x720
bitrate : 1500000
maxbitrate : 2000
vbvbufsize : 2000
vbvinit : 0
aq : 1
temporalaq : disabled
lookahead : 1
cq :
qmin : P,B,I=8,0,8
qmax : P,B,I=15,0,15
initqp : P,B,I=10,0,10
NvEncoder::CreateEncoder : m_nvenc.nvEncInitializeEncoder(m_hEncoder, &m_initializeParams) returned error 8 at …..\NvCodec\NvEncoder\NvEncoder.cpp:273

How to modify parameters of NvEncoding ?
Please give an example.
Thanks!

Have you looked into the code of AppEncCUDA? Most likely this is happening because you are specifying max bitrate much smaller than average bitrate.

Also, if you want to specify CQ, use VBR. Do not set rcmode to CBR.

Please read through the documentation and sample applications included in the SDK.