gi-gsttag-1.0.12: GStreamer Tag bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstTag.Objects.TagDemux

Contents

Description

<refsect2> <para> Provides a base class for demuxing tags at the beginning or end of a stream and handles things like typefinding, querying, seeking, and different modes of operation (chain-based, pull_range-based, and providing downstream elements with random access if upstream supports that). The tag is stripped from the output, and all offsets are adjusted for the tag sizes, so that to the downstream element the stream will appear as if there was no tag at all. Also, once the tag has been parsed, GstTagDemux will try to determine the media type of the resulting stream and add a source pad with the appropriate caps in order to facilitate auto-plugging. </para> <title>Deriving from GstTagDemux</title> <para> Subclasses have to do four things: <itemizedlist> <listitem><para> In their base init function, they must add a pad template for the sink pad to the element class, describing the media type they can parse in the caps of the pad template. </para></listitem> <listitem><para> In their class init function, they must override GST_TAG_DEMUX_CLASS(demux_klass)->identify_tag with their own identify function. </para></listitem> <listitem><para> In their class init function, they must override GST_TAG_DEMUX_CLASS(demux_klass)->parse_tag with their own parse function. </para></listitem> <listitem><para> In their class init function, they must also set GST_TAG_DEMUX_CLASS(demux_klass)->min_start_size and/or GST_TAG_DEMUX_CLASS(demux_klass)->min_end_size to the minimum size required for the identify function to decide whether the stream has a supported tag or not. A class parsing ID3v1 tags, for example, would set min_end_size to 128 bytes. </para></listitem> </itemizedlist> </para> </refsect2>

Synopsis

Exported types