[gst-devel] could not set property "caps" in element "udpsrc0"

Durgesh Mishra durgesh.mishra at gmail.com
Fri Mar 19 22:50:05 CET 2010


Thanks Aurelien. I made it out after some time.

Actually I am writing an application that uses udpsrc.

This is the piece of code that is giving problem while setting CAPS.

#define ALAW_CAPS "\"application/x-rtp, media = (string)\"audio\",
clock-rate = (int) 8000, encoding-name = (string)\"PCMA\"\""

mUdpSrc = gst_element_factory_make("udpsrc",NULL);
g_object_set (mUdpSrc, "caps", ALAW_CAPS, NULL);

But in the last statement, it gives segmentation fault.

Please help.

Kind Regards
-Durgesh O Mishra

On 20 March 2010 02:54, Aurelien Grimaud <gstelzz at yahoo.fr> wrote:

>  There is a whitespace missing after the end quote of your caps and the
> pipe "!" :
> gst-launch-0.10 -v udpsrc port=19790
> caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA"
> *whitespace* ! rtppcmadepay ! alawdec ! audioconvert ! audioresample !
> fakesink
>
> Aurelien
> Le 19/03/2010 21:25, Durgesh Mishra a écrit :
>
> Hi Experts,
>
> I am trying to run following pipeline but I end up getting error. I am
> running it on ubuntu.
>
> durgesh at durgesh-desktop:~/mydroid$ gst-launch-0.10 -v udpsrc port=19790
> caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA"!
> rtppcmadepay ! alawdec ! audioconvert ! audioresample ! fakesink
> WARNING: erroneous pipeline: could not set property "caps" in element
> "udpsrc0" to
> "application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA!"
>
> Any help will be greatly appreciated.
>
> Kind Regards
> -Durgesh O Mishra
>
> --
> "If you only have a hammer, you tend to see every problem as a nail."
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> gstreamer-devel mailing listgstreamer-devel at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>


-- 
"If you only have a hammer, you tend to see every problem as a nail."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100320/2cc38c16/attachment.htm>


More information about the gstreamer-devel mailing list