[gst-devel] Cannot set caps on udpsrc0 to application/x-rtp under OS X
Marco Ballesio
gibrovacco at gmail.com
Wed Dec 15 08:30:09 CET 2010
Hi,
I've never used a MAC, but maybe a general comment will help you..
On Tue, Dec 14, 2010 at 6:42 PM, Matthew Braun <mjbraun at leydenjar.com> wrote:
> 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
>
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.
>
> 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
> % 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
>
> 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
> mjbraun at leydenjar.com
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list