mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +00:00
[MOVED FROM BAD 50/57] flv: Add documentation to flvmux and flvdemux
Partially fixes bug #573737.
This commit is contained in:
parent
6d82cda0ff
commit
046311d3ea
4 changed files with 30 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -56,6 +56,8 @@ struct _GstFLVDemux
|
|||
|
||||
GstPad *audio_pad;
|
||||
GstPad *video_pad;
|
||||
|
||||
/* <private> */
|
||||
|
||||
GstIndex *index;
|
||||
gint index_id;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -67,6 +67,8 @@ typedef struct _GstFlvMux {
|
|||
|
||||
GstPad *srcpad;
|
||||
GstCollectPads *collect;
|
||||
|
||||
/* <private> */
|
||||
GstPadEventFunction collect_event;
|
||||
|
||||
GstFlvMuxState state;
|
||||
|
|
Loading…
Reference in a new issue