Issue to send video using RTP

Damien Picard picard.damien at gmail.com
Fri Mar 17 21:01:05 UTC 2017


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
<http://www.editions-eni.fr/livres/gwt-google-web-toolkit-developpez-des-applications-internet-riches-ria-en-java/.97a1a26e7d5be94763fc45ac2a1e961a.html>
Mob : 06 11 51 47 78
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170317/980a40b3/attachment-0001.html>


More information about the gstreamer-devel mailing list