HLG Pipeline

Multimedia User Guide (UG1449)

Document ID
UG1449
Release Date
2022-04-21
Revision
1.4 English

Two HLG modes can be enabled for the VCU:

Backwards compatible (SDR EOTF + HLG SEI)
This mode uses the BT2020 value in the SPS/VUI parameters instead of the HLG transfer characteristics. The VCU encoder inserts alternative transfer characteristics (ATC) SEI with the HLG value. The following is a sample serial pipeline:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw, width=3840, \
height=2160, framerate=60/1, format=NV16_10LE32 ! queue max-size-bytes=0 \
! omxh265enc control-rate=constant target-bitrate=25000 prefetch-buffer=TRUE num-slices=8 \
! omxh265dec ! queue max-size-bytes=0 ! fpsdisplaysink name=fpssink text-overlay=false \
'video-sink=kmssink connector-properties="props,sdi_mode=5,sdi_data_stream=8,is_frac=0,\
sdi_420_in=0,c_encoding=1" show-preroll-frame=false sync=true'
HLG only (HLG EOTF)
This mode directly uses the HLG value in the SPS/VUI parameters. The following is a sample serial pipeline:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw, width=3840, \
height=2160, framerate=60/1, format=NV16_10LE32 ! queue max-size-bytes=0 \
! omxh265enc control-rate=constant target-bitrate=25000 prefetch-buffer=TRUE num-slices=8 \
! omxh265dec ! queue max-size-bytes=0 ! fpsdisplaysink name=fpssink text-overlay=false \
'video-sink=kmssink connector-properties="props,sdi_mode=5,sdi_data_stream=8,is_frac=0,\
sdi_420_in=0,c_encoding=1" show-preroll-frame=false sync=true'

For more information, see H.264/H.265 Video Codec Unit LogiCORE IP Product Guide (PG252).