Handling force-caps from playbin
sebastian at centricular.com
Mon Feb 17 00:08:16 PST 2014
On So, 2014-02-16 at 23:15 +0000, Tim Müller wrote:
> On Mon, 2014-02-17 at 07:48 +0900, Jeongseok Kim/Joy wrote:
> > Appsrc can be used with playbin if uri set as "appsrc://".
> > However, in my case, I can handle and extract all data from stream so I
> > don't need help from typefind.
> > In addition, when I set caps into appsrc, it is discarded by typefind in
> > decodebin.
> > Is there any proper solution to handle force-caps with using playbin?
> I believe if upstream (here: appsrc) sends caps, typefind will not do
> any typefinding and will just accept the caps it got.
> $ gst-launch-1.0 appsrc caps=foo/bar ! typefind ! fakesink -v
> appears to confirm this. Is this not what's happening for you?
That's how it is supposed to work, unless your source activates in pull
mode. Then it can't send a CAPS event and typefind is also not asking
the upstream from which it pulls about the caps, so will typefind in any
I think typefind should do a CAPS query in pull mode before trying to
guess caps. If it gets fixed caps it should just use those.
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 949 bytes
Desc: This is a digitally signed message part
More information about the gstreamer-devel