Gstreamer network streaming issue

Hello,
I am trying to do video stream from my raspberry pi camera to i.MX6 toradex board.

In Raspberry:

raspivid -t 0 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse !  rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=192.168.0.54 port=4953

In Toradex

gst-launch-1.0 udpsrc port=4953 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! vpudec ! imxv4l2sink

Where,
192.168.0.54 → Toradex IP address

Issue while streaming in toradex:

Received invalid RTP payload, dropping
WARNING: from element /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0: Could not decode stream.
Additional debug info:
../../../../gst-plugins-base-1.8.3/gst-libs/gst/rtp/gstrtpbasedepayload.c(492): gst_rtp_base_depayload_handle_buffer (): /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0:

Can you please help me to fix the issue ?
Thanks for the help.

Please note that 2.7b3 is no longer supported and you are advices to update to a stable (e.g. V2.6 or 2.7) or the latest beta (e.g. 2.8b1 at the time of this writing) BSP at your earliest convenience.

Hi marcel.tx,

Yes, updated with newer BSP, but still getting the same errors in this BSP too :frowning:

What could be the problem in this gstreamer pipeline ?

Can you please help me on this ?

Thanks.

You’re sending application/x-gdp stream but trying to receive application/x-rtp. You need to choose which format you want and use the same one on both sides.

Hi dominik.tx,
Thanks for the reply and hint.
Still not sure what to change since I am new to the gstreaming, can you please help me what to use to get streaming working.

If I use like below, getting pipeline link issue.
"erroneous pipeline: could not link udpsrc0 to rtph264depay0"

 gst-launch-1.0 udpsrc port=4953 caps="application/x-gdp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! vpudec ! imxv4l2sink

Thanks for the help.

You should either remove gdppay from pipeline on raspberrypi, or add gdpdepay to the pipeline(right before rtph264depay ) and change application/x-rtp to application/x-gdp on apalis imx6

Hi Dominik,
Thanks for the reply.
The below commands worked.

At Toradex: (192.168.0.53)
gst-launch-1.0 udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! vpudec ! imxv4l2sink

At Rpi:
raspivid -n -t 0 -rot 180 -w 640 -h 480 -fps 30 -b 1000000 -o - | gst-launch-1.0 -e -vvvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=192.168.0.53 port=5000

You are welcome