Creating GstCaps for "audio/*" mediatype

Sebastian Dröge slomo at circular-chaos.org
Tue Aug 27 10:01:03 PDT 2013


On Di, 2013-08-27 at 20:21 +0400, 4ernov wrote:
> 2013/8/27 Sebastian Dröge:
> > On Di, 2013-08-27 at 14:09 +0400, 4ernov wrote:
> > > > On Di, 2013-08-27 at 13:24 +0400, 4ernov wrote:
> > > > > I'm trying to create caps for some common audio stream without
> > > > > specifying any details to let decodebin and typefind detect the format
> > > > > and create proper pipeline. List of defined types
> > > > > (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-types-definitions.html)
> > > > > says, that "audio/*" is right for it. But when I'm trying to write
> > > >
> > > > The caps names must be complete and are compared by equality, not by
> > > > prefix match. "audio/*" is just not possible :)
> > > >
> > > > What exactly do you want to do, what's the bigger picture?
> > >
> > > I'm trying to push an audio data stream to pipeline with appsrc. This
> > > stream is encoded with one of several formats (aac or celt and
> > > potentially others) and I'd like typefind to detect the actual format
> > > rather than define it explicitly in caps of appsrc. Still I have to
> > > set some caps to appsrc itself and the question is what caps should I
> > > set for this use case.
> >
> > Just do it like filesrc and set no caps at all.
> 
> Oh, thanks, Sebastian. Didn't know it's possible)
> And is it possible to pass codec-data if it's available? Can I create
> empty caps with codec-data and set it to appsrc?

No, when you know codec_data you should also know what kind of format
you're sending.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130827/acfbde19/attachment-0001.pgp>


More information about the gstreamer-devel mailing list