Creating GstCaps for "audio/*" mediatype

4ernov 4ernov at gmail.com
Tue Aug 27 09:21:23 PDT 2013


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?


More information about the gstreamer-devel mailing list