Discussion:
[gst-devel] Cannot set caps on udpsrc0 to application/x-rtp under OS X
Matthew Braun
2010-12-14 16:42:21 UTC
Permalink
Greetings!

I'm streaming from a webcam attached to a BeagleBoard using:
gst-launch -v v4l2src ! video/x-raw-yuv, width=640, height=480 !
ffmpegcolorspace ! TIVidenc1 codecName=h264enc engineName=codecServer !
rtph264pay pt=96 ! udpsink host=<DEST> port=5000

Which runs and outputs caps of:
caps = application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\
=\", payload=(int)96, ssrc=(uint)1421770711, clock-base=(uint)3676471020,
seqnum-base=(uint)12939


But when I run gst-launch on my OS X destination with
% CAPS="application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\
=\", payload=(int)96, ssrc=(uint)3775499150, clock-base=(uint)2462209911,
seqnum-base=(uint)27054"
% gst-launch -v udpsrc caps=$CAPS port=5000 ! rtph264depay ! ffdec_h264
! Autovideosink

I get

WARNING: erroneous pipeline: could not set property "caps" in element
"udpsrc0" to "application/x-rtp,"

Trying without caps gives:
"Input buffers need to have RTP caps set on them. This is usually
achieved by setting the 'caps' property of the upstream source element
(often udpsrc or appsrc), or by putting a capsfilter element before the
depayloader and setting the 'caps' property on that. Also see
http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README"

Any ideas as to what I'm missing? Thanks for any guidance and/or
suggestions!


(% gst-launch --version
gst-launch-0.10 version 0.10.31
GStreamer 0.10.31
)


--
Matthew Braun
***@leydenjar.com
Marco Ballesio
2010-12-15 07:30:09 UTC
Permalink
Hi,

I've never used a MAC, but maybe a general comment will help you..
Post by Matthew Braun
Greetings!
 gst-launch -v v4l2src ! video/x-raw-yuv, width=640, height=480 !
ffmpegcolorspace ! TIVidenc1 codecName=h264enc engineName=codecServer !
rtph264pay pt=96 ! udpsink host=<DEST> port=5000
 caps = application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\
=\", payload=(int)96, ssrc=(uint)1421770711, clock-base=(uint)3676471020,
seqnum-base=(uint)12939
it's unlikely the real cause of your issue, but sprop-paramerters-set
may change from session to session, more or less like ssrc, clock base
and seqnum-base. A pipeline with such caps won't work more than once
unless you copy and paste those details each time. As a suggestion,
it's better not to specify them and let the RTP stack doing its work.
Post by Matthew Braun
But when I run gst-launch on my OS X destination with
 % CAPS="application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\
=\", payload=(int)96, ssrc=(uint)3775499150, clock-base=(uint)2462209911,
seqnum-base=(uint)27054"
"application/x-rtp,media=(string)video,encoding-name=(string)H264,clock-rate=(int)90000"
should be enough
Post by Matthew Braun
 %  gst-launch -v udpsrc caps=$CAPS port=5000 ! rtph264depay ! ffdec_h264
! Autovideosink
I get
WARNING: erroneous pipeline: could not set property "caps" in element
"udpsrc0" to "application/x-rtp,"
It looks like your caps have been cut right after the comma (,). Maybe
you've a CLI syntactical issue with the way you specify them.

Regards
Post by Matthew Braun
 "Input buffers need to have RTP caps set on them. This is usually
achieved by setting the 'caps' property of the upstream source element
(often udpsrc or appsrc), or by putting a capsfilter element before the
depayloader and setting the 'caps' property on that. Also see
http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README"
Any ideas as to what I'm missing? Thanks for any guidance and/or
suggestions!
(% gst-launch --version
 gst-launch-0.10 version 0.10.31
 GStreamer 0.10.31
)
--
Matthew Braun
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
gstreamer-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
ori333
2016-01-09 01:19:22 UTC
Permalink
remove all the spaces in the CAPS string to get rid of:
WARNING: erroneous pipeline: could not set property "caps" in element
"udpsrc0" to "application/x-rtp,"



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Cannot-set-caps-on-udpsrc0-to-application-x-rtp-under-OS-X-tp3087484p4675169.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Loading...