[RFC] autoparse element

Olivier Crête olivier.crete at collabora.com
Thu Dec 5 15:14:03 PST 2013


On Fri, 2013-12-06 at 00:43 +0200, Andrey Utkin wrote:
> 2013/12/6 Olivier Crête <olivier.crete at collabora.com>:
> > If the muxer requires parsed content, then its sink caps should include
> > the required framed/parsed/etc properties (at least mpegtsdemux doesn't,
> > but that's a bug that should be fixed).
> 
> Probably you meant to say that mpegtsmux (not demux) has bug?
> Do you mean that this place should be edited by adding this property
> in each caps entry?
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsmux/mpegtsmux.c#n123

Yes and yes

> > When you've gotten a list of all parsers, then you can set the list of
> > GstElementFactories onto autoconvert. You can probably add "identity" at
> > the top of that list for the case where the data is already parsed (or
> > doesn't need parsing).
> 
> A bit hard to comprehend.
> 1. How can i get a list of all parsers via API?
> 2. Will it work if i just place an autoconvert element without setting
> any of its properties?

You want to do something like:

list = gst_element_factory_list_get_elements(GST_ELEMENT_FACTORY_TYPE_PARSER, 1);
g_object_set (autoconvert, "factories", list, NULL);
gst_plugin_feature_list_free (list);


-- 
Olivier Crête
olivier.crete at collabora.com



More information about the gstreamer-devel mailing list