mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
flv: Add documentation to flvmux and flvdemux
Partially fixes bug #573737.
This commit is contained in:
parent
8e84633120
commit
6734a9980e
7 changed files with 65 additions and 1 deletions
|
@ -131,6 +131,8 @@ EXTRA_HFILES = \
|
||||||
$(top_srcdir)/gst/dtmf/gstrtpdtmfdepay.h \
|
$(top_srcdir)/gst/dtmf/gstrtpdtmfdepay.h \
|
||||||
$(top_srcdir)/gst/dvdspu/gstdvdspu.h \
|
$(top_srcdir)/gst/dvdspu/gstdvdspu.h \
|
||||||
$(top_srcdir)/gst/festival/gstfestival.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/legacyresample/gstlegacyresample.h \
|
||||||
$(top_srcdir)/gst/liveadder/liveadder.h \
|
$(top_srcdir)/gst/liveadder/liveadder.h \
|
||||||
$(top_srcdir)/gst/mxf/mxfdemux.h \
|
$(top_srcdir)/gst/mxf/mxfdemux.h \
|
||||||
|
|
|
@ -40,6 +40,8 @@
|
||||||
<xi:include href="xml/element-dvbsrc.xml" />
|
<xi:include href="xml/element-dvbsrc.xml" />
|
||||||
<xi:include href="xml/element-dvdspu.xml" />
|
<xi:include href="xml/element-dvdspu.xml" />
|
||||||
<xi:include href="xml/element-festival.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-gstrtpbin.xml" />
|
||||||
<xi:include href="xml/element-gstrtpclient.xml" />
|
<xi:include href="xml/element-gstrtpclient.xml" />
|
||||||
<xi:include href="xml/element-gstrtpjitterbuffer.xml" />
|
<xi:include href="xml/element-gstrtpjitterbuffer.xml" />
|
||||||
|
@ -115,7 +117,7 @@
|
||||||
<xi:include href="xml/plugin-fbdevsink.xml" />
|
<xi:include href="xml/plugin-fbdevsink.xml" />
|
||||||
<xi:include href="xml/plugin-festival.xml" />
|
<xi:include href="xml/plugin-festival.xml" />
|
||||||
<xi:include href="xml/plugin-filter.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-freeze.xml" />
|
||||||
<xi:include href="xml/plugin-gsm.xml" />
|
<xi:include href="xml/plugin-gsm.xml" />
|
||||||
<xi:include href="xml/plugin-gstinterlace.xml" />
|
<xi:include href="xml/plugin-gstinterlace.xml" />
|
||||||
|
|
|
@ -356,6 +356,36 @@ FESTIVAL_DEFAULT_SERVER_PORT
|
||||||
FESTIVAL_DEFAULT_TEXT_MODE
|
FESTIVAL_DEFAULT_TEXT_MODE
|
||||||
</SECTION>
|
</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>
|
<SECTION>
|
||||||
<FILE>element-input-selector</FILE>
|
<FILE>element-input-selector</FILE>
|
||||||
<TITLE>input-selector</TITLE>
|
<TITLE>input-selector</TITLE>
|
||||||
|
|
|
@ -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