Region of Interest Coding - Region of Interest Coding - 3.0 English - PG447

H.264/H.265/JPEG Video Codec Unit 2 (VCU2) Solutions LogiCORE IP Product Guide (PG447)

Document ID
PG447
Release Date
2026-03-06
Version
3.0 English

The VCU2 encoder supports ROI encoding allowing several independent or overlapped regions within a frame. The ROI encoding tags regions in a video frame to be encoded with user supplied quality (high, medium, low, and dont-care) relative to the picture background (untagged region).

Example use of ROI and ROI_BY_VALUE keywords:

vcu2-gst-encode -w 3840 -h 2160 -e avc -o out.h264 -i in.yuv -d ROI:100:1280x360:1220x1500:high

vcu2-gst-encode -w 1920 -h 1080 -e avc -f 60 -c 2 -g 30 -o out.h264 -i in.yuv -d ROI_BY_VALUE:0:1200x300:200x200:10 -q 1

Limitation: ROI_BY_VALUE must be enabled at start of the stream (frame 0).