How do u set caps for udpsrc

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

How do u set caps for udpsrc

Puneeth
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How do u set caps for udpsrc

Wes Miller
Administrator
You can't just specify the caps string as you do with gst-launch.  But it's almost as simple.  See the help for Gstcaps and this function:  

GstCaps *  gst_caps_from_string( const gchar *string );

Wes
Reply | Threaded
Open this post in threaded view
|

Re: How do u set caps for udpsrc

Puneeth
Thank u very much but i did this using gst_caps_new_simple it is working fine....when i m saving to file it is working fine but facing problem when i m listening live audio data,there is little disturbance in playback.
Reply | Threaded
Open this post in threaded view
|

Re: How do u set caps for udpsrc

Wes Miller
Administrator
Hi,

I'm not sure what you mean here:

   "but facing problem when i m listening live audio data,there is little disturbance in playback. "

Are you using a different live audio source as input to the sender or did you replace the filesink with something like alsasink or pulsesink?  If you are using alsasink or pulsesink you may need to set their sync propeerties to FALSE.

And by "little disturbance" do you mean there is noise in the playback?  There may be a problem with the sync properties of the sink (alsa- or file-) as noted above  or your receiver caps could be mismatched to your sender.

Wes