UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor bilal5330
Visitor
331 Views
Registered: ‎10-01-2019

VCU TRD 2019.1 Streaming RTP video to Board using VLC Player

Jump to solution

Hi,

I am using HDMI Tx example design in VCU TRD 2019.1 on ZCU106 board to display VCU decompressed video on HDMI.
The example works fine if I read video file from SD Card or USB.
However I want to stream the same video now from VLC player on Desktop PC to the ZCU106 board, connected through a nework.
I have disabled the firewall and both Desktop PC and ZCU106 can ping each other.

However when I run the application 'vcu_gst_app' with cfg file containing the information to get input from network stream, I get the following error immediately and application returns.
/*************************Pipeline Information End*************************/
ERROR: vgst_start_pipeline() failed error code "state change failed"
pipeline stopped successfully
/**************************************************/

When I run the following command (APPENDIX-B, VCU HDMI Tx) https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/116031534/Zynq+UltraScale+MPSoC+VCU+TRD+2019.1+-+HDMI+Video+Display
$ gst-launch-1.0 udpsrc port=5004 buffer-size=60000000 caps="application/x-rtp, clock-rate=90000" ! rtpjitterbuffer latency=1000 ! rtpmp2tdepay ! tsparse ! video/mpegts ! tsdemux name=demux ! queue ! h265parse ! video/x-h265, profile=main, alignment=au ! omxh265dec internal-entropy-buffers=5 low-latency=0 ! queue max-size-bytes=0 ! kmssink bus-id="a0070000.v_mix"

I get the following error.
../../../git/gst/rtpmanager/gstrtpjitterbuffer.c(3247): gst_rtp_jitter_buffer_chain (): /GstPipeline:pipeline0/GstRtpJitterBuff er:rtpjitterbuffer0:
Received invalid RTP payload, dropping

Can anyone guide me what settings I should do at VLC end to successully stream the video from VLC to the ZCU106 board.
Or is there any guide/discussion link for this. I searched whole forums but couldn't get related information.

PS: I can stream the video between two PCs on the network using VLC using RTP, and it works fine.

Thank you in advance,
Bilal

0 Kudos
1 Solution

Accepted Solutions
Visitor bilal5330
Visitor
227 Views
Registered: ‎10-01-2019

Re: VCU TRD 2019.1 Streaming RTP video to Board using VLC Player

Jump to solution

I solved the issue by using GStreamer to stream out video pattern from PC, instead of VLC.
I used the following settings on PC end.

PC IP: 192.168.0.9
ZCU106 IP: 192.168.0.10

On PC End:
gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12, width=1920, height=1080, framerate=50/1 ! 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=192.168.0.10 port=5004

On ZCU106 End:
gst-launch-1.0 udpsrc port=5004 buffer-size=60000000 caps="application/x-rtp, clock-rate=90000" ! rtpjitterbuffer latency=1000 ! rtpmp2tdepay ! tsparse ! video/mpegts ! tsdemux name=demux ! queue ! h265parse ! video/x-h265, profile=main, alignment=au ! omxh265dec internal-entropy-buffers=5 low-latency=0 ! queue max-size-bytes=0 ! kmssink bus-id="a0070000.v_mix"

It worked fine.

 

View solution in original post

2 Replies
Scholar watari
Scholar
299 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Streaming RTP video to Board using VLC Player

Jump to solution

Hi @bilal5330 

 

Would you run gst-launch-1.0 with an option as "gst-debug-level=5" ?

 

Best regards,

0 Kudos
Visitor bilal5330
Visitor
228 Views
Registered: ‎10-01-2019

Re: VCU TRD 2019.1 Streaming RTP video to Board using VLC Player

Jump to solution

I solved the issue by using GStreamer to stream out video pattern from PC, instead of VLC.
I used the following settings on PC end.

PC IP: 192.168.0.9
ZCU106 IP: 192.168.0.10

On PC End:
gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12, width=1920, height=1080, framerate=50/1 ! 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=192.168.0.10 port=5004

On ZCU106 End:
gst-launch-1.0 udpsrc port=5004 buffer-size=60000000 caps="application/x-rtp, clock-rate=90000" ! rtpjitterbuffer latency=1000 ! rtpmp2tdepay ! tsparse ! video/mpegts ! tsdemux name=demux ! queue ! h265parse ! video/x-h265, profile=main, alignment=au ! omxh265dec internal-entropy-buffers=5 low-latency=0 ! queue max-size-bytes=0 ! kmssink bus-id="a0070000.v_mix"

It worked fine.

 

View solution in original post