How to set the max bitrate for video encoder in MMAPI?

I think the max bitrate of video encoder is very common, but in MMAPI, i cannot find it.

How to set the max bitrate for video encoder? And by default, what is the max bitrate?

Thanks!

Please refer to max capability of each encoder listed in [Software Features] -> [Video Encoders]
https://developer.nvidia.com/embedded/dlc/l4t-documentation-27-1

Thank you for the replys!

I think you misunderstood my question. I want to kown how to set the max bitrate of video encoding in MMAPI, not the max capability of encoder.

Please share more information about max bitrate of video encoding. Looks like we don’t have implementation for this.

Yes, I cannot find this api for NvVideoEncoder in MMAPI.

For example, In ffmpeg, the “-maxrate” param is the max bitrate of video encoding.

./ffmpeg -i 1.mp4 -vcodec h264 -acodec aac -b:a 96k -b:v 1000k -maxrate 3000k 2.mp4

Hi zcs, we don’t have the implementation. You probably can achieve similar functionality by setting

-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

-MinQpB               Specify minimum Qp Value for B frame

-MaxQpB               Specify maximum Qp Value for B frame

But it is still different from -maxrate in ffmpeg.

Yes, there is a big difference between them.

In our application, we must know and set exactly max bitrate.

Do NVIDIA have any plans to implement it?

For now we don’t have plan. Do you have idea how ffmpeg implements ‘-maxrate’? Does it ensure each frame does not exceed 3000k bits?

As far as I know, it is the basic function of the video encoder.

It donot ensure each frame, but the duration of VBR.