[MOVED FROM BAD 50/57] flv: Add documentation to flvmux and flvdemux

Partially fixes bug #573737.
This commit is contained in:
Sebastian Dröge 2009-04-22 19:52:05 +02:00
parent 6d82cda0ff
commit 046311d3ea
4 changed files with 30 additions and 0 deletions

View file

@ -17,6 +17,19 @@
* 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

View file

@ -56,6 +56,8 @@ struct _GstFLVDemux
GstPad *audio_pad;
GstPad *video_pad;
/* <private> */
GstIndex *index;
gint index_id;

View file

@ -18,6 +18,19 @@
* 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
*/

View file

@ -67,6 +67,8 @@ typedef struct _GstFlvMux {
GstPad *srcpad;
GstCollectPads *collect;
/* <private> */
GstPadEventFunction collect_event;
GstFlvMuxState state;