Issue to send video using RTP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue to send video using RTP

Damien Picard
Hi,

I'm trying to stream a video using RTP over UDP, using this command :

gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 do-timestamp=true  ! "image/jpeg,width=1920,height=1080" ! queue ! jpegdec ! videoconvert ! videorate ! omxh264enc ! rtph264pay ! udpsink host=192.168.2.174 port=9070

This one seems to work since I can netcat its content.

I also want to retrieve this content using a gstreamer udpsrc :

gst-launch-1.0 -vvv udpsrc port=9070 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtpmp2tdepay ! decodebin ! autovideosink

But I get this error :
AVERTISSEMENT : pipeline erroné : impossible de connecter udpsrc0 à rtpmp2tdepay0

I check the RTP caps on the udpsink side, and there seem to be the same :

/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"J2QAKKwrQDwBE/LgIDxImoAA\,KO4CXLA\=", payload=(int)96, seqnum-offset=(uint)10817, timestamp-offset=(uint)938058964, ssrc=(uint)1868780195, a-framerate=(string)30

What am I doing wrong ?

Thank you in advance.

--
Damien Picard
Expert GWT
Mob : 06 11 51 47 78

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue to send video using RTP

Nicolas Dufresne-5
Le vendredi 17 mars 2017 à 22:01 +0100, Damien Picard a écrit :

> gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 do-timestamp=true
>  ! "image/jpeg,width=1920,height=1080" ! queue ! jpegdec !
> videoconvert ! videorate ! omxh264enc ! rtph264pay ! udpsink
> host=192.168.2.174 port=9070
>
> This one seems to work since I can netcat its content.
>
> I also want to retrieve this content using a gstreamer udpsrc :
>
> gst-launch-1.0 -vvv udpsrc port=9070 caps="application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-
> name=(string)H264, payload=(int)96" ! rtpmp2tdepay ! decodebin !
> autovideosink
>
> But I get this error :
> AVERTISSEMENT : pipeline erroné : impossible de connecter udpsrc0 à
> rtpmp2tdepay0
Your payloader is rtph264pay, you should use rtph264depay the. If you
really wanted MPEG TS, then use mpegtsmux ! rtpmp2tpay on the sender.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue to send video using RTP

Damien Picard
Thank you !

In the end, I use gdppay and gdpdepay ; it simplifies some things.



2017-03-18 2:13 GMT+01:00 Nicolas Dufresne <[hidden email]>:
Le vendredi 17 mars 2017 à 22:01 +0100, Damien Picard a écrit :
> gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 do-timestamp=true
>  ! "image/jpeg,width=1920,height=1080" ! queue ! jpegdec !
> videoconvert ! videorate ! omxh264enc ! rtph264pay ! udpsink
> host=192.168.2.174 port=9070
>
> This one seems to work since I can netcat its content.
>
> I also want to retrieve this content using a gstreamer udpsrc :
>
> gst-launch-1.0 -vvv udpsrc port=9070 caps="application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-
> name=(string)H264, payload=(int)96" ! rtpmp2tdepay ! decodebin !
> autovideosink
>
> But I get this error :
> AVERTISSEMENT : pipeline erroné : impossible de connecter udpsrc0 à
> rtpmp2tdepay0

Your payloader is rtph264pay, you should use rtph264depay the. If you
really wanted MPEG TS, then use mpegtsmux ! rtpmp2tpay on the sender.

Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Damien Picard
Expert GWT
Mob : 06 11 51 47 78

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...