mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 16:02:59 +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.
|
* 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
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -56,6 +56,8 @@ struct _GstFLVDemux
|
||||||
|
|
||||||
GstPad *audio_pad;
|
GstPad *audio_pad;
|
||||||
GstPad *video_pad;
|
GstPad *video_pad;
|
||||||
|
|
||||||
|
/* <private> */
|
||||||
|
|
||||||
GstIndex *index;
|
GstIndex *index;
|
||||||
gint index_id;
|
gint index_id;
|
||||||
|
|
|
@ -18,6 +18,19 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* 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:
|
/* TODO:
|
||||||
* - Write metadata for the file, see FLV spec page 13
|
* - Write metadata for the file, see FLV spec page 13
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -67,6 +67,8 @@ typedef struct _GstFlvMux {
|
||||||
|
|
||||||
GstPad *srcpad;
|
GstPad *srcpad;
|
||||||
GstCollectPads *collect;
|
GstCollectPads *collect;
|
||||||
|
|
||||||
|
/* <private> */
|
||||||
GstPadEventFunction collect_event;
|
GstPadEventFunction collect_event;
|
||||||
|
|
||||||
GstFlvMuxState state;
|
GstFlvMuxState state;
|
||||||
|
|
Loading…
Reference in a new issue