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)