[RFC] autoparse element

Olivier Crête olivier.crete at collabora.com
Thu Dec 5 13:32:59 PST 2013


On Thu, 2013-12-05 at 22:23 +0100, Sebastian Dröge wrote:
> On Do, 2013-12-05 at 23:14 +0200, Andrey Utkin wrote:
> > I think i need such element, which allows to pass streams uniformly
> > (codec-independently) from demuxer to muxer, to provide easy remuxing.
> > For example:
> > 
> > udpsrc ! tsdemux name=demux
> > mpegtsmux name=mux ! udpsink
> > demux.video_0100 ! autoparse ! .mux
> > demux.audio_0101 ! autoparse ! .mux
> > demux.audio_0102 ! autoparse ! .mux
> > 
> > I think it should be GstBin subclass, and contain one of existing
> > parsers, chosen by incoming buf (or pad?) format. The choise probably
> > will be a large if-elseif-elseif... block.
> > 
> > Is the proposed plan valid? Any comments?
> > Thanks in advance.
> 
> The idea for such an element sounds good, but the implementation should
> not have hardcoded formats but instead do autoplugging like decodebin.
> You would use the GstElementFactory API to find appropiate parsers for
> the caps you get.

Or you can just set the template caps from the muxer and set these as
the "caps" property on decodebin. then you can do
udpsrc ! video/mpeg-ts ! decodebin caps="the template caps from mpegtsmux" ! mpegtsmux ! udpsink

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



More information about the gstreamer-devel mailing list