Unable to send and receive RTP packets over UDP successfully

gugovind gxguru at gmail.com
Mon May 24 23:26:50 UTC 2021


Hi There,
I am trying to send a rtp video over UDP and then the receive it using
udpsrc

```
*GST_DEBUG=4 gst-launch-1.0 rtspsrc
location="rtsp://admin:pass@10.0.0.207:554/cam/realmonitor?channel=1&subtype=0"
! udpsink host=127.0.0.1 port=5555*
```

And then receive it using a udpsrc.

*GST_DEBUG=3 gst-launch-1.0 -v udpsrc port=5555 ! application/x-rtp,
encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! decodebin !
mp4mux ! filesink location=/tmp/dipoza.mp4*

 But It keep getting "rtph264depay
gstrtph264depay.c:1308:gst_rtp_h264_depay_process:<rtph264depay0> warning:
Undefined packet type" bad NAL type errors. 

I am not sure what is the mistake I am making. 

I also tried a very simple udp transfer with the following send
```
*gst-launch-1.0 -v videotestsrc ! videobalance saturation=0 ! x264enc !
video/x-h264, stream-format=byte-stream ! rtph264pay ! udpsink
host=127.0.0.1 port=5555*
```
and receive it like this
```
*GST_DEBUG=3 gst-launch-1.0 -v udpsrc port=5555 ! application/x-rtp,
encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! decodebin !
mp4mux ! filesink location=/tmp/test.mp4*
```

I copied the caps from what was displayed in the send but that did not help
either. 

Can you please let me know what mistake I am making.

Thanks a lot for your help!



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list