Handling force-caps from playbin

Sebastian Dröge 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:
> 
> Hi,
> 
> > 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
case.

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...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140217/e22578b8/attachment.pgp>


More information about the gstreamer-devel mailing list