Memory-Based Scene Change Detection

Multimedia User Guide (UG1449)

Document ID
Release Date
1.7 English

Use the following pipeline to play a captured video stream from an input source device with scene change detection (SCD), to a host device on the same network.

gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! \
video/x-raw, format=NV12, width=3840, height=2160, framerate=60/1 ! \
xilinxscdio-mode=5 ! omxh265enc qp-mode=auto gop-mode=basic \
gop-length=60 b-frames=0 target-bitrate=60000 num-slices=8 \
control-rate=constant prefetch-buffer=true low-bandwidth=false \
filler-data=true cpb-size=1000 initial-delay=500 periodicity-idr=60 ! \
video/x-h265, profile=main, alignment=au ! queue ! \
mpegtsmux alignment=7 name=mux ! rtpmp2tpay ! \
udpsink host= port=5004

In the preceding example, the live source device link is present under the /dev directory. Resolution is 4k with 60fps and bitrate is 60 Mb/s. AMD SCD enables detecting a scene change in a video stream. The encoder can insert an I-frame to improve video quality.

For 1080p60 resolution, replace the width and height with 1920 and 1080 respectively.