How to use ROI encoding on XavierNX

I want to use ROI encoding, and try it base on the tegra_multimedia_api/samples/01_video_encode.
I run the sample code as:

./video_encode input.yuv 1920 1080 H264 out.264 --eroi -roi roi.cfg --input-metadata

And the content of roi.cfg is just like:
3 -4 34 34 16 16 -5 70 70 18 18 -3 100 100 34 34
3 -4 34 34 16 16 -5 70 70 18 18 -3 100 100 34 34
3 -4 34 34 16 16 -5 70 70 18 18 -3 100 100 34 34

but I found that all Qps are the same in a frame in file out.264, it means ROI doesn’t take effect, so what should I do? Thanks.roi.zip (194 Bytes)

Hi,
Please attach roi.cfg for our reference.

Attached the roi.cfg, thanks. roi.zip (194 Bytes)

I am facing exactly the same problem.
Do I have to set any other options like vbr?

Hi @DaneLLL any updates on this issue? Would you be able to provide a minimum working example of the ROI encoding working with H.265?

Hi,
Our teams are checking the issue. Will update once there is progress.

Hi,
Please upgrade to JetPack 4.5.1 and give it a try.