diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-23 10:34:40 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-23 10:34:40 +0000 |
commit | afa31cfea03063a848ba4db5aa03001301839aa2 (patch) | |
tree | a2aabe70dff5cfe05fb056c6251da88143ec05fb /gst/xingheader/gstxingmux.c | |
parent | 960b1c5b08839e6e2727ae5fcad3c00be1916583 (diff) | |
download | gst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.tar.gz gst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.tar.bz2 gst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.zip |
Add documentation for the xingheader plugin.
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-bad-plugins-docs.sgml:
* docs/plugins/gst-plugins-bad-plugins-sections.txt:
* gst/xingheader/gstxingmux.c:
* gst/xingheader/gstxingmux.h:
Add documentation for the xingheader plugin.
* tests/check/elements/xingmux.c: (GST_START_TEST):
Set element state to PLAYING before doing something else.
Diffstat (limited to 'gst/xingheader/gstxingmux.c')
-rw-r--r-- | gst/xingheader/gstxingmux.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gst/xingheader/gstxingmux.c b/gst/xingheader/gstxingmux.c index d10006cc..49a4628b 100644 --- a/gst/xingheader/gstxingmux.c +++ b/gst/xingheader/gstxingmux.c @@ -20,6 +20,31 @@ /* Xing SDK: http://www.mp3-tech.org/programmer/sources/vbrheadersdk.zip */ + +/** + * SECTION:element-xingmux + * @short_description: Adds a Xing header to MP3 files + * + * <refsect2> + * <para> + * xingmux adds a Xing header to MP3 files. This contains information about the duration and size + * of the file and a seek table and is very useful for getting an almost correct duration and better + * seeking on VBR MP3 files. + * </para> + * <para> + * This element will remove any existing Xing, LAME or VBRI headers from the beginning of the file. + * </para> + * <title>Example launch line</title> + * <para> + * <programlisting> + * gst-launch audiotestsrc num-buffers=1000 ! audioconvert ! lame ! xingmux ! filesink location=test.mp3 + * gst-launch filesrc location=test.mp3 ! xingmux ! filesink location=test2.mp3 + * gst-launch filesrc location=test.mp3 ! mp3parse ! xingmux ! filesink location=test2.mp3 + * </programlisting> + * </para> + * </refsect2> + */ + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -38,6 +63,12 @@ GST_BOILERPLATE (GstXingMux, gst_xing_mux, GstElement, GST_TYPE_ELEMENT); #define GST_XING_TOC_FIELD (1 << 2) #define GST_XING_QUALITY_FIELD (1 << 3) +typedef struct _GstXingSeekEntry +{ + gint64 timestamp; + gint byte; +} GstXingSeekEntry; + static void gst_xing_mux_finalize (GObject * obj); static GstStateChangeReturn gst_xing_mux_change_state (GstElement * element, GstStateChange transition); |