The peak bit rate of the encoder is invalid


We use mmapi at jetpack3.3. We set the peak bit rate to deal with large dynamic motion
picture, but no matter how we set the peak bit rate, the encoding rate can never be improved.

./video_encode ~/test.yuv 1920 1080 H264 ~/out.h264 -vbs 8000000 -pbr 20000000 -nrf 4 -nbf 2 -p high -rc vbr -fps 30 1 -ifi 90 -hpt 4 --copy-timestamp 10

Then we test it by ffmpeg, the encoding rate can be improved.

ffmpeg -r 30 -s 1920x1080 -i test.yuv -c:v libx264 -g 90 -profile high -preset medium -bf 2 -crf 23 -maxrate 20M -bufsize 8M out.h264


Hi zcs,
You also need to tune QP range.

-MinQpI               Specify minimum Qp Value for I frame

-MaxQpI               Specify maximum Qp Value for I frame

-MinQpP               Specify minimum Qp Value for P frame

-MaxQpP               Specify maximum Qp Value for P frame

Hi, DaneLLL

Thank you for your reply.

I think the QP range and the peak bitrate are two different things, just like the ffmpeg does not need to set QP range, and the peak bitrate is also valid.

We also try to tune QP range, it can’t cope with the general situation.

Hi, DaneLLL

Can you fix this bug?
Thank you!

Hi zcs,
We have the qp-range property in R21, R23, R24, R27, and R28, R31. If you need different SW design, please contact NVIDIA salesperson to have further cooperation.

OK, Thanks!