flv: Add documentation to flvmux and flvdemux
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 22 Apr 2009 17:52:05 +0000 (19:52 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 22 Apr 2009 17:52:05 +0000 (19:52 +0200)
Partially fixes bug #573737.

docs/plugins/Makefile.am
docs/plugins/gst-plugins-bad-plugins-docs.sgml
docs/plugins/gst-plugins-bad-plugins-sections.txt
gst/flv/gstflvdemux.c
gst/flv/gstflvdemux.h
gst/flv/gstflvmux.c
gst/flv/gstflvmux.h

index d723b6ac792e207f21fb8675d7cfadb1a760181e..bef7f6d1935a15cc07e526ea522a7b6a8bf5f6a8 100644 (file)
@@ -131,6 +131,8 @@ EXTRA_HFILES = \
        $(top_srcdir)/gst/dtmf/gstrtpdtmfdepay.h \
        $(top_srcdir)/gst/dvdspu/gstdvdspu.h \
        $(top_srcdir)/gst/festival/gstfestival.h \
+       $(top_srcdir)/gst/flv/gstflvdemux.h \
+       $(top_srcdir)/gst/flv/gstflvmux.h \
        $(top_srcdir)/gst/legacyresample/gstlegacyresample.h \
        $(top_srcdir)/gst/liveadder/liveadder.h \
        $(top_srcdir)/gst/mxf/mxfdemux.h \
index f9178b00a0f587ad754fbf2200d143927ce232e9..04b5828b77b4cacfa1a5bc7ae2b359f6c60656b0 100644 (file)
@@ -40,6 +40,8 @@
     <xi:include href="xml/element-dvbsrc.xml" />
     <xi:include href="xml/element-dvdspu.xml" />
     <xi:include href="xml/element-festival.xml" />
+    <xi:include href="xml/element-flvdemux.xml" />
+    <xi:include href="xml/element-flvmux.xml" />
     <xi:include href="xml/element-gstrtpbin.xml" />
     <xi:include href="xml/element-gstrtpclient.xml" />
     <xi:include href="xml/element-gstrtpjitterbuffer.xml" />
     <xi:include href="xml/plugin-fbdevsink.xml" />
     <xi:include href="xml/plugin-festival.xml" />
     <xi:include href="xml/plugin-filter.xml" />
-    <xi:include href="xml/plugin-flvdemux.xml" />
+    <xi:include href="xml/plugin-flv.xml" />
     <xi:include href="xml/plugin-freeze.xml" />
     <xi:include href="xml/plugin-gsm.xml" />
     <xi:include href="xml/plugin-gstinterlace.xml" />
index 0973d7ef0119f1224b3abe0c80ab3ed4ac151d83..689ffd82902dda0a47e1b78444f3bdfff483a59d 100644 (file)
@@ -356,6 +356,36 @@ FESTIVAL_DEFAULT_SERVER_PORT
 FESTIVAL_DEFAULT_TEXT_MODE
 </SECTION>
 
+<SECTION>
+<FILE>element-flvdemux</FILE>
+<TITLE>flvdemux</TITLE>
+GstFLVDemux
+<SUBSECTION Standard>
+GstFLVDemuxClass
+GstFLVDemuxFlags
+GST_FLV_DEMUX
+GST_FLV_DEMUX_CLASS
+GST_IS_FLV_DEMUX
+GST_IS_FLV_DEMUX_CLASS
+GST_TYPE_FLV_DEMUX
+gst_flv_demux_get_type
+</SECTION>
+
+<SECTION>
+<FILE>element-flvmux</FILE>
+<TITLE>flvmux</TITLE>
+GstFlvMux
+<SUBSECTION Standard>
+GstFlvMuxClass
+GstFlvMuxFlags
+GST_FLV_MUX
+GST_FLV_MUX_CLASS
+GST_IS_FLV_MUX
+GST_IS_FLV_MUX_CLASS
+GST_TYPE_FLV_MUX
+gst_flv_mux_get_type
+</SECTION>
+
 <SECTION>
 <FILE>element-input-selector</FILE>
 <TITLE>input-selector</TITLE>
index a2bbd7cbf966155ce9a814d57dc7195f01e07428..f31a22e81e337abea7214f2a5f08efb7aaa9da12 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+/**
+ * SECTION:element-flvdemux
+ *
+ * flvdemux demuxes an FLV file into the different contained streams.
+ *
+ * <refsect2>
+ * <title>Example launch line</title>
+ * |[
+ * gst-launch -v filesrc location=/path/to/flv ! flvdemux ! audioconvert ! autoaudiosink
+ * ]| This pipeline demuxes an FLV file and outputs the contained raw audio streams.
+ * </refsect2>
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
index 1a675e7c77d2838fd428f71e3263fff7664787da..72c0bcd4ec63a69f13ab46c95cdc52ec5a42b5a0 100644 (file)
@@ -56,6 +56,8 @@ struct _GstFLVDemux
 
   GstPad *audio_pad;
   GstPad *video_pad;
+
+  /* <private> */
   
   GstIndex *index;
   gint index_id;
index 2a7c916968d1a5363655dc425aeda4a4b9943e46..c1bd1205268fc90a29e55c79466a586d91cc67b2 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+/**
+ * SECTION:element-flvmux
+ *
+ * flvmux muxes different streams into an FLV file.
+ *
+ * <refsect2>
+ * <title>Example launch line</title>
+ * |[
+ * gst-launch -v filesrc location=/path/to/audio ! decodebin2 ! queue ! flvmux name=m ! filesink location=file.flv   filesrc location=/path/to/video ! decodebin2 ! queue ! m. 
+ * ]| This pipeline muxes an audio and video file into a single FLV file.
+ * </refsect2>
+ */
+
 /* TODO:
  *   - Write metadata for the file, see FLV spec page 13
  */
index c0af8e8f14014be42b944ceb5fc3f0b07e8f2bd0..3d634a4c52ad79508391655bbcc4e4057a9342c8 100644 (file)
@@ -67,6 +67,8 @@ typedef struct _GstFlvMux {
 
   GstPad         *srcpad;
   GstCollectPads *collect;
+
+  /* <private> */
   GstPadEventFunction collect_event;
 
   GstFlvMuxState state;