Xilinx ZYNQ UltraScale+ Video Encoding using GStreamer pipelines

Revision as of 18:15, 6 December 2022 by Jrodriguez (talk | contribs) (Created page with "<noinclude> {{Xilinx ZYNQ UltraScale+ MPSoC/Head|previous=Display to FPGA|next=Video Decoding|keywords=}} </noinclude> {{DISPLAYTITLE:Xilinx ZYNQ UltraScale+ Video Encoding u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)







Previous: Display to FPGA Index Next: Video Decoding






The following pipelines were tested using the smartcam firmware, which is based on the kv260_ispMipiRx_vcu_DP Vitis platform provided by Xilinx. This platform contains the following input pipeline:

AR1335 camera -> AP1302 ISP -> MIPI CSI-2 RX Subsystem -> Video Frame Buffer Write

Camera to disk

4K

H.264

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=30/1 ! omxh264enc ! h264parse ! mp4mux ! filesink location=test.mp4

H.265

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=30/1 ! omxh265enc ! h265parse ! mp4mux ! filesink location=test.mp4

1080p

H.264

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=1920, height=1080, format=NV12, framerate=30/1 ! omxh264enc ! h264parse ! mp4mux ! filesink location=test.mp4

H.265

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=1920, height=1080, format=NV12, framerate=30/1 ! omxh265enc ! h265parse ! mp4mux ! filesink location=test.mp4

Camera to network

For the receiving pipeline please see the Video Decoding examples.

4K

H.264

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=30/1 ! omxh264enc ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000

H.265

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=30/1 ! omxh265enc ! h265parse ! rtph265pay ! udpsink host=127.0.0.1 port=5000

1080p

H.264

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=1920, height=1080, format=NV12, framerate=30/1 ! omxh264enc ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000

H.265

gst-launch-1.0 -e mediasrcbin media-device=/dev/media0 v4l2src0::io-mode=4 ! video/x-raw, width=1920, height=1080, format=NV12, framerate=30/1 ! omxh265enc ! h265parse ! rtph265pay ! udpsink host=127.0.0.1 port=5000


Previous: Display to FPGA Index Next: Video Decoding