could not set property "caps" in element "udpsrc0"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

could not set property "caps" in element "udpsrc0"

Durgesh Mishra
Hi Experts,

I am trying to run following pipeline but I end up getting error. I am running it on ubuntu.

durgesh@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® 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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: could not set property "caps" in element "udpsrc0"

Aurelien Grimaud (elzz)
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@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® 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 list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel® 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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: could not set property "caps" in element "udpsrc0"

Durgesh Mishra
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 <[hidden email]> 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@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.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
"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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: could not set property "caps" in element "udpsrc0"

michael smith-6-3
On Fri, Mar 19, 2010 at 2:50 PM, Durgesh Mishra
<[hidden email]> wrote:

> 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.

You need to pass a GstCaps * as the argument here, not a string. You
can use gst_caps_from_string() to convert. Remember to unref if when
you're done.

Mike

------------------------------------------------------------------------------
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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel