Xilinx ZYNQ UltraScale+ MPSoC/GStreamer/Example Pipelines/Video Decoding: Difference between revisions

From RidgeRun Developer Wiki
mNo edit summary
Line 9: Line 9:
== File to display ==
== File to display ==


'''H.264'''
===H.264===
<syntaxhighlight>
<syntaxhighlight lang="bash">
gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-h264.mkv ! matroskademux ! h264parse ! omxh264dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-h264.mkv ! matroskademux ! h264parse ! omxh264dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
</syntaxhighlight>
</syntaxhighlight>


'''H.265'''
===H.265===
<syntaxhighlight>
<syntaxhighlight lang="bash">
gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-hevc.mkv ! matroskademux ! h265parse ! omxh265dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-hevc.mkv ! matroskademux ! h265parse ! omxh265dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
</syntaxhighlight>
</syntaxhighlight>


== Network to display ==  
==Network to display==


We optimized these pipelines to show the low-latency capabilities of this device.  
We optimized these pipelines to show the low-latency capabilities of this device.  
Line 25: Line 25:
For the sending pipeline please see the [[Xilinx ZYNQ UltraScale+ MPSoC/GStreamer/Example Pipelines/Video Encoding|Video Encoding examples]].
For the sending pipeline please see the [[Xilinx ZYNQ UltraScale+ MPSoC/GStreamer/Example Pipelines/Video Encoding|Video Encoding examples]].


'''H.264'''
===H.264===
<syntaxhighlight>
<syntaxhighlight lang="bash">
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96 ! rtpjitterbuffer latency=7 ! rtph264depay ! h264parse ! video/x-h264,alignment=nal ! omxh264dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96 ! rtpjitterbuffer latency=7 ! rtph264depay ! h264parse ! video/x-h264,alignment=nal ! omxh264dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
</syntaxhighlight>
</syntaxhighlight>


'''H.265'''
===H.265===
<syntaxhighlight>
<syntaxhighlight lang="bash">
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H265,payload=96 ! rtpjitterbuffer latency=7 ! rtph265depay ! h265parse ! video/x-h265,alignment=nal ! omxh265dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H265,payload=96 ! rtpjitterbuffer latency=7 ! rtph265depay ! h265parse ! video/x-h265,alignment=nal ! omxh265dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v
</syntaxhighlight>
</syntaxhighlight>


<noinclude>{{Xilinx ZYNQ UltraScale+ MPSoC/Foot|GStreamer/Example Pipelines/Video Encoding|GStreamer/Example Pipelines/Video Transformation}}</noinclude>
<noinclude>{{Xilinx ZYNQ UltraScale+ MPSoC/Foot|GStreamer/Example Pipelines/Video Encoding|GStreamer/Example Pipelines/Video Transformation}}</noinclude>

Revision as of 18:13, 17 May 2024







Previous: GStreamer/Example Pipelines/Video Encoding Index Next: GStreamer/Example Pipelines/Video Transformation






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 doesn't use the Video Mixer for the video out, so we use the display directly.

File to display

H.264

gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-h264.mkv ! matroskademux ! h264parse ! omxh264dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v

H.265

gst-launch-1.0 filesrc location=jellyfish-100-mbps-hd-hevc.mkv ! matroskademux ! h265parse ! omxh265dec ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v

Network to display

We optimized these pipelines to show the low-latency capabilities of this device.

For the sending pipeline please see the Video Encoding examples.

H.264

gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96 ! rtpjitterbuffer latency=7 ! rtph264depay ! h264parse ! video/x-h264,alignment=nal ! omxh264dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v

H.265

gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,media=video,clock-rate=90000,encoding-name=H265,payload=96 ! rtpjitterbuffer latency=7 ! rtph265depay ! h265parse ! video/x-h265,alignment=nal ! omxh265dec low-latency=true ! fpsdisplaysink text-overlay=false video-sink="kmssink driver-name=xlnx bus-id=fd4a0000.display fullscreen-overlay=true" -v


Previous: GStreamer/Example Pipelines/Video Encoding Index Next: GStreamer/Example Pipelines/Video Transformation