Multiple Caps for udpsrc

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

Multiple Caps for udpsrc

qwerty-1
Hi All,

Can we set more than one caps for udpsrc?
like "application/x-rtp, media=audio, clock-rate=8000, media=video, clock-rate=90000"
if yes, then please share how it can be done.

Thanks in Advance

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Caps for udpsrc

Tim-Philipp Müller-2
On Sat, 2011-01-01 at 02:48 +0530, Umakant Goyal wrote:
>
> Can we set more than one caps for udpsrc?
> like "application/x-rtp, media=audio, clock-rate=8000, media=video,
> clock-rate=90000"
> if yes, then please share how it can be done.

You can do this when setting caps on a capsfilter element
("foo/bar,x=5;mon/key,y=5"), but in this case, receiving rtp packets,
setting the output caps of a source element, you don't want to restrict
the caps allowed, but set them. And when you set caps, they need to be
simple fixed caps. Incoming RTP packets are either audio or video or
something else, but not both audio and video, so I don't quite see how
what you ask makes sense. Maybe you need to provide more context..

Cheers
 -Tim



------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Caps for udpsrc

Dani
I would like to have one udpsrc that can recieve different types of audio packets, with different payload types. Is this possible?