<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>mplex</title> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="index.html" title="GStreamer Bad Plugins 0.10 Plugins Reference Manual"> <link rel="up" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="prev" href="gst-plugins-bad-plugins-mpeg2enc.html" title="mpeg2enc"> <link rel="next" href="gst-plugins-bad-plugins-mythtvsrc.html" title="mythtvsrc"> <meta name="generator" content="GTK-Doc V1.13 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="chapter" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="chapter" href="ch02.html" title="gst-plugins-bad Plugins"> <link rel="chapter" href="ch03.html" title="gst-plugins-bad Classes"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> <tr valign="middle"> <td><a accesskey="p" href="gst-plugins-bad-plugins-mpeg2enc.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">GStreamer Bad Plugins 0.10 Plugins Reference Manual</th> <td><a accesskey="n" href="gst-plugins-bad-plugins-mythtvsrc.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr> <tr><td colspan="5" class="shortcuts"> <a href="#gst-plugins-bad-plugins-mplex.synopsis" class="shortcut">Top</a> | <a href="#gst-plugins-bad-plugins-mplex.description" class="shortcut">Description</a> | <a href="#gst-plugins-bad-plugins-mplex.properties" class="shortcut">Properties</a> </td></tr> </table> <div class="refentry" title="mplex"> <a name="gst-plugins-bad-plugins-mplex"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-mplex.top_of_page"></a>mplex</span></h2> <p>mplex — High-quality MPEG/DVD/SVCD/VCD video/audio multiplexer</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv" title="Synopsis"> <a name="gst-plugins-bad-plugins-mplex.synopsis"></a><h2>Synopsis</h2> <pre class="synopsis"> <a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex" title="GstMplex">GstMplex</a>; </pre> </div> <div class="refsect1" title="Properties"> <a name="gst-plugins-bad-plugins-mplex.properties"></a><h2>Properties</h2> <pre class="synopsis"> "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--bufsize" title='The "bufsize" property'>bufsize</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--format" title='The "format" property'>format</a>" <span class="type">GstMplexFormat</span> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--mux-bitrate" title='The "mux-bitrate" property'>mux-bitrate</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--packets-per-pack" title='The "packets-per-pack" property'>packets-per-pack</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--sector-size" title='The "sector-size" property'>sector-size</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--system-headers" title='The "system-headers" property'>system-headers</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-mplex.html#GstMplex--vbr" title='The "vbr" property'>vbr</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write </pre> </div> <div class="refsect1" title="Description"> <a name="gst-plugins-bad-plugins-mplex.description"></a><h2>Description</h2> <p> This element is an audio/video multiplexer for MPEG-1/2 video streams and (un)compressed audio streams such as AC3, MPEG layer I/II/III. It is based on the <a class="ulink" href="http://mjpeg.sourceforge.net/" target="_top">mjpegtools</a> library. Documentation on creating MPEG videos in general can be found in the <a class="ulink" href="https://sourceforge.net/docman/display_doc.php?docid=3456&group_id=5776" target="_top">MJPEG Howto</a> and the man-page of the mplex tool documents the properties of this element, which are shared with the mplex tool. </p> <p> </p> <div class="refsect2" title="Example pipeline"> <a name="id398850"></a><h3>Example pipeline</h3> <div class="informalexample"> <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="listing_lines" align="right"><pre>1</pre></td> <td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>v videotestsrc num<span class="symbol">-</span>buffers<span class="symbol">=</span><span class="number">1000</span> <span class="symbol">!</span> mpeg2enc <span class="symbol">!</span> mplex <span class="symbol">!</span> filesink location<span class="symbol">=</span>videotestsrc<span class="symbol">.</span>mpg</pre></td> </tr> </tbody> </table> </div> This example pipeline will encode a test video source to an MPEG1 elementary stream and multiplexes this to an MPEG system stream. <p> If several streams are being multiplexed, there should (as usual) be a queue in each stream, and due to mplex' buffering the capacities of these may have to be set to a few times the default settings to prevent the pipeline stalling. </p> </div> </div> <div class="refsect1" title="Details"> <a name="gst-plugins-bad-plugins-mplex.details"></a><h2>Details</h2> <div class="refsect2" title="GstMplex"> <a name="GstMplex"></a><h3>GstMplex</h3> <pre class="programlisting">typedef struct { GstElement parent; /* pads */ GSList *pads; GstPad *srcpad; guint num_apads, num_vpads; /* options wrapper */ GstMplexJob *job; /* lock for syncing */ GMutex *tlock; /* with TLOCK */ /* muxer writer generated eos */ gboolean eos; /* flowreturn obtained by muxer task */ GstFlowReturn srcresult; } GstMplex; </pre> <p> </p> </div> </div> <div class="refsect1" title="Property Details"> <a name="gst-plugins-bad-plugins-mplex.property-details"></a><h2>Property Details</h2> <div class="refsect2" title='The "bufsize" property'> <a name="GstMplex--bufsize"></a><h3>The <code class="literal">"bufsize"</code> property</h3> <pre class="programlisting"> "bufsize" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Target decoders video buffer size (kB) [default determined by format if not explicitly set].</p> <p>Allowed values: [20,4000]</p> <p>Default value: 46</p> </div> <hr> <div class="refsect2" title='The "format" property'> <a name="GstMplex--format"></a><h3>The <code class="literal">"format"</code> property</h3> <pre class="programlisting"> "format" <span class="type">GstMplexFormat</span> : Read / Write</pre> <p>Encoding profile format.</p> <p>Default value: Generic MPEG-1</p> </div> <hr> <div class="refsect2" title='The "mux-bitrate" property'> <a name="GstMplex--mux-bitrate"></a><h3>The <code class="literal">"mux-bitrate"</code> property</h3> <pre class="programlisting"> "mux-bitrate" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Bitrate of output stream in kbps (0 = autodetect).</p> <p>Allowed values: [0,15360]</p> <p>Default value: 0</p> </div> <hr> <div class="refsect2" title='The "packets-per-pack" property'> <a name="GstMplex--packets-per-pack"></a><h3>The <code class="literal">"packets-per-pack"</code> property</h3> <pre class="programlisting"> "packets-per-pack" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Number of packets per pack for generic formats.</p> <p>Allowed values: [1,100]</p> <p>Default value: 1</p> </div> <hr> <div class="refsect2" title='The "sector-size" property'> <a name="GstMplex--sector-size"></a><h3>The <code class="literal">"sector-size"</code> property</h3> <pre class="programlisting"> "sector-size" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Specify sector size in bytes for generic formats.</p> <p>Allowed values: [256,16384]</p> <p>Default value: 2048</p> </div> <hr> <div class="refsect2" title='The "system-headers" property'> <a name="GstMplex--system-headers"></a><h3>The <code class="literal">"system-headers"</code> property</h3> <pre class="programlisting"> "system-headers" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> <p>Create system header in every pack for generic formats.</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2" title='The "vbr" property'> <a name="GstMplex--vbr"></a><h3>The <code class="literal">"vbr"</code> property</h3> <pre class="programlisting"> "vbr" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> <p>Whether the input video stream is variable bitrate.</p> <p>Default value: FALSE</p> </div> </div> <div class="refsect1" title="See Also"> <a name="gst-plugins-bad-plugins-mplex.see-also"></a><h2>See Also</h2> mpeg2enc </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.13</div> </body> </html>