Monochrome Capture Pipeline

Multimedia User Guide (UG1449)

Document ID
UG1449
Release Date
2023-10-19
Revision
1.7 English

Use the following pipeline to play GRAY8 and GRAY10_LE32 format.

The following example uses the video test source. The video stream resolution is 1080p and 30fps, and the video stream color format is GRAY8.

gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1920, height=1080, format=GRAY8, \
framerate=30/1 ! queue ! omxh265enc gop-mode=low-delay-p periodicity-idr=240 \
target-bitrate=6250 num-slices=8 control-rate=low-latency prefetch-buffer=TRUE \
filler-data=0 cpb-size=500 initial-delay=250 gdr-mode=horizontal ! video/x-h265, \
alignment=nal ! queue max-size-buffers=0 ! omxh265dec low-latency=1 ! \
queue max-size-bytes=0 ! kmssink bus-id="fd4a0000.display"

The following example uses the video test source. The video stream resolution is 1080p and 30fps, and the video stream color format is GRAY10_LE32.

gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1920, height=1080, format=GRAY10_LE32, \
framerate=30/1 ! queue ! omxh265enc gop-mode=low-delay-p periodicity-idr=240 \
target-bitrate=6250 num-slices=8 control-rate=low-latency filler-data=0 cpb-size=500 \
initial-delay=250 gdr-mode=horizontal ! video/x-h265, alignment=nal ! queue max-size-buffers=0 ! \
omxh265dec low-latency=1 ! queue max-size-bytes=0 ! kmssink bus-id="fd4a0000.display"

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