Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
Sebastian Dröge | 42ff240 | 2015-06-07 10:56:31 +0200 | [diff] [blame] | 5 | <title>splitmuxsink: GStreamer Good Plugins 1.0 Plugins Reference Manual</title> |
Sebastian Dröge | ffda836 | 2016-02-19 11:16:13 +0200 | [diff] [blame] | 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 7 | <link rel="home" href="index.html" title="GStreamer Good Plugins 1.0 Plugins Reference Manual"> |
| 8 | <link rel="up" href="ch01.html" title="gst-plugins-good Elements"> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 9 | <link rel="prev" href="gst-plugins-good-plugins-splitfilesrc.html" title="splitfilesrc"> |
| 10 | <link rel="next" href="gst-plugins-good-plugins-splitmuxsrc.html" title="splitmuxsrc"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 11 | <meta name="generator" content="GTK-Doc V1.25 (XML mode)"> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 | <td width="100%" align="left" class="shortcuts"> |
| 17 | <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 | <a href="#gst-plugins-good-plugins-splitmuxsink.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 | <a href="#gst-plugins-good-plugins-splitmuxsink.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> |
| 20 | <a href="#gst-plugins-good-plugins-splitmuxsink.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 21 | <a href="#gst-plugins-good-plugins-splitmuxsink.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span> |
| 22 | <a href="#gst-plugins-good-plugins-splitmuxsink.signals" class="shortcut">Signals</a></span> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 23 | </td> |
| 24 | <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 25 | <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 26 | <td><a accesskey="p" href="gst-plugins-good-plugins-splitfilesrc.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 27 | <td><a accesskey="n" href="gst-plugins-good-plugins-splitmuxsrc.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 28 | </tr></table> |
| 29 | <div class="refentry"> |
| 30 | <a name="gst-plugins-good-plugins-splitmuxsink"></a><div class="titlepage"></div> |
| 31 | <div class="refnamediv"><table width="100%"><tr> |
| 32 | <td valign="top"> |
| 33 | <h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-splitmuxsink.top_of_page"></a>splitmuxsink</span></h2> |
| 34 | <p>splitmuxsink — Muxer wrapper for splitting output stream by size or time</p> |
| 35 | </td> |
| 36 | <td class="gallery_image" valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsect1"> |
| 39 | <a name="gst-plugins-good-plugins-splitmuxsink.properties"></a><h2>Properties</h2> |
Sebastian Dröge | ffda836 | 2016-02-19 11:16:13 +0200 | [diff] [blame] | 40 | <div class="informaltable"><table class="informaltable" border="0"> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 41 | <colgroup> |
| 42 | <col width="150px" class="properties_type"> |
| 43 | <col width="300px" class="properties_name"> |
| 44 | <col width="200px" class="properties_flags"> |
| 45 | </colgroup> |
| 46 | <tbody> |
| 47 | <tr> |
| 48 | <td class="property_type"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 49 | <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 50 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--location" title="The “location” property">location</a></td> |
| 51 | <td class="property_flags">Read / Write</td> |
| 52 | </tr> |
| 53 | <tr> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 54 | <td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint64"><span class="type">guint64</span></a></td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 55 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--max-size-bytes" title="The “max-size-bytes” property">max-size-bytes</a></td> |
| 56 | <td class="property_flags">Read / Write</td> |
| 57 | </tr> |
| 58 | <tr> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 59 | <td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint64"><span class="type">guint64</span></a></td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 60 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--max-size-time" title="The “max-size-time” property">max-size-time</a></td> |
| 61 | <td class="property_flags">Read / Write</td> |
| 62 | </tr> |
| 63 | <tr> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 64 | <td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 65 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--mux-overhead" title="The “mux-overhead” property">mux-overhead</a></td> |
| 66 | <td class="property_flags">Read / Write</td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td class="property_type"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 70 | <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *</td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 71 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--muxer" title="The “muxer” property">muxer</a></td> |
| 72 | <td class="property_flags">Read / Write</td> |
| 73 | </tr> |
| 74 | <tr> |
| 75 | <td class="property_type"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 76 | <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *</td> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 77 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--sink" title="The “sink” property">sink</a></td> |
| 78 | <td class="property_flags">Read / Write</td> |
| 79 | </tr> |
Sebastian Dröge | da98cd5 | 2016-04-20 18:12:15 +0300 | [diff] [blame] | 80 | <tr> |
| 81 | <td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint"><span class="type">guint</span></a></td> |
| 82 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--max-files" title="The “max-files” property">max-files</a></td> |
| 83 | <td class="property_flags">Read / Write</td> |
| 84 | </tr> |
Sebastian Dröge | fd64c29 | 2016-09-01 12:04:20 +0300 | [diff] [blame^] | 85 | <tr> |
| 86 | <td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> |
| 87 | <td class="property_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink--send-keyframe-requests" title="The “send-keyframe-requests” property">send-keyframe-requests</a></td> |
| 88 | <td class="property_flags">Read / Write</td> |
| 89 | </tr> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 90 | </tbody> |
| 91 | </table></div> |
| 92 | </div> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 93 | <div class="refsect1"> |
| 94 | <a name="gst-plugins-good-plugins-splitmuxsink.signals"></a><h2>Signals</h2> |
Sebastian Dröge | ffda836 | 2016-02-19 11:16:13 +0200 | [diff] [blame] | 95 | <div class="informaltable"><table class="informaltable" border="0"> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 96 | <colgroup> |
| 97 | <col width="150px" class="signals_return"> |
| 98 | <col width="300px" class="signals_name"> |
| 99 | <col width="200px" class="signals_flags"> |
| 100 | </colgroup> |
| 101 | <tbody><tr> |
| 102 | <td class="signal_type"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 103 | <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*</td> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 104 | <td class="signal_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink-format-location" title="The “format-location” signal">format-location</a></td> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 105 | <td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobjectgobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 106 | </tr></tbody> |
| 107 | </table></div> |
| 108 | </div> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 109 | <a name="GstSplitMuxSink"></a><div class="refsect1"> |
| 110 | <a name="gst-plugins-good-plugins-splitmuxsink.other"></a><h2>Types and Values</h2> |
Sebastian Dröge | ffda836 | 2016-02-19 11:16:13 +0200 | [diff] [blame] | 111 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 112 | <colgroup> |
| 113 | <col width="150px" class="name"> |
| 114 | <col class="description"> |
| 115 | </colgroup> |
| 116 | <tbody><tr> |
| 117 | <td class="datatype_keyword">struct</td> |
| 118 | <td class="function_name"><a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink-struct" title="struct GstSplitMuxSink">GstSplitMuxSink</a></td> |
| 119 | </tr></tbody> |
| 120 | </table></div> |
| 121 | </div> |
| 122 | <div class="refsect1"> |
| 123 | <a name="gst-plugins-good-plugins-splitmuxsink.object-hierarchy"></a><h2>Object Hierarchy</h2> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 124 | <pre class="screen"> <a href="/usr/share/gtk-doc/html/gobjectgobject-The-Base-Object-Type.html#GObject-struct">GObject</a> |
| 125 | <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobjectgobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> |
| 126 | <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstObject.html#GstObject-struct">GstObject</a> |
| 127 | <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct">GstElement</a> |
| 128 | <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstBin.html#GstBin-struct">GstBin</a> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 129 | <span class="lineart">╰──</span> GstSplitMuxSink |
| 130 | </pre> |
| 131 | </div> |
| 132 | <div class="refsect1"> |
| 133 | <a name="gst-plugins-good-plugins-splitmuxsink.implemented-interfaces"></a><h2>Implemented Interfaces</h2> |
| 134 | <p> |
| 135 | GstSplitMuxSink implements |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 136 | <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstChildProxy.html#GstChildProxy-struct">GstChildProxy</a>.</p> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 137 | </div> |
| 138 | <div class="refsect1"> |
| 139 | <a name="gst-plugins-good-plugins-splitmuxsink.description"></a><h2>Description</h2> |
| 140 | <p>This element wraps a muxer and a sink, and starts a new file when the mux |
| 141 | contents are about to cross a threshold of maximum size of maximum time, |
| 142 | splitting at video keyframe boundaries. Exactly one input video stream |
Sebastian Dröge | 2e22695 | 2015-10-30 16:36:27 +0200 | [diff] [blame] | 143 | can be muxed, with as many accompanying audio and subtitle streams as |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 144 | desired.</p> |
| 145 | <p>By default, it uses mp4mux and filesink, but they can be changed via |
| 146 | the 'muxer' and 'sink' properties.</p> |
| 147 | <p>The minimum file size is 1 GOP, however - so limits may be overrun if the |
| 148 | distance between any 2 keyframes is larger than the limits.</p> |
Sebastian Dröge | 2e22695 | 2015-10-30 16:36:27 +0200 | [diff] [blame] | 149 | <p>If a video stream is available, the splitting process is driven by the video |
| 150 | stream contents, and the video stream must contain closed GOPs for the output |
| 151 | file parts to be played individually correctly. In the absence of a video |
| 152 | stream, the first available stream is used as reference for synchronization.</p> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 153 | <div class="refsect2"> |
Sebastian Dröge | 3a50aa7 | 2016-07-06 12:38:23 +0300 | [diff] [blame] | 154 | <a name="id-1.2.240.9.6"></a><h3>Example pipelines</h3> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 155 | <div class="informalexample"> |
| 156 | <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> |
| 157 | <tbody> |
| 158 | <tr> |
| 159 | <td class="listing_lines" align="right"><pre>1</pre></td> |
| 160 | <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> <span class="gtkdoc opt">-</span>e v4l2src num<span class="gtkdoc opt">-</span>buffers<span class="gtkdoc opt">=</span><span class="number">500</span> <span class="gtkdoc opt">!</span> video<span class="gtkdoc opt">/</span>x<span class="gtkdoc opt">-</span>raw<span class="gtkdoc opt">,</span>width<span class="gtkdoc opt">=</span><span class="number">320</span><span class="gtkdoc opt">,</span>height<span class="gtkdoc opt">=</span><span class="number">240</span> <span class="gtkdoc opt">!</span> videoconvert <span class="gtkdoc opt">!</span> queue <span class="gtkdoc opt">!</span> timeoverlay <span class="gtkdoc opt">!</span> x264enc key<span class="gtkdoc opt">-</span><span class="gtkdoc kwb">int</span><span class="gtkdoc opt">-</span>max<span class="gtkdoc opt">=</span><span class="number">10</span> <span class="gtkdoc opt">!</span> h264parse <span class="gtkdoc opt">!</span> splitmuxsink location<span class="gtkdoc opt">=</span>video<span class="gtkdoc opt">%</span><span class="number">02</span>d<span class="gtkdoc opt">.</span>mov max<span class="gtkdoc opt">-</span>size<span class="gtkdoc opt">-</span>time<span class="gtkdoc opt">=</span><span class="number">10000000000</span> max<span class="gtkdoc opt">-</span>size<span class="gtkdoc opt">-</span>bytes<span class="gtkdoc opt">=</span><span class="number">1000000</span></pre></td> |
| 161 | </tr> |
| 162 | </tbody> |
| 163 | </table> |
| 164 | </div> |
| 165 | |
| 166 | Records a video stream captured from a v4l2 device and muxes it into |
| 167 | ISO mp4 files, splitting as needed to limit size/duration to 10 seconds |
| 168 | and 1MB maximum size. |
| 169 | </div> |
| 170 | <div class="refsynopsisdiv"> |
| 171 | <h2>Synopsis</h2> |
| 172 | <div class="refsect2"> |
Sebastian Dröge | 3a50aa7 | 2016-07-06 12:38:23 +0300 | [diff] [blame] | 173 | <a name="id-1.2.240.9.7.1"></a><h3>Element Information</h3> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 174 | <div class="variablelist"><table border="0" class="variablelist"> |
| 175 | <colgroup> |
| 176 | <col align="left" valign="top"> |
| 177 | <col> |
| 178 | </colgroup> |
| 179 | <tbody> |
| 180 | <tr> |
| 181 | <td><p><span class="term">plugin</span></p></td> |
| 182 | <td> |
| 183 | <a class="link" href="gst-plugins-good-plugins-plugin-multifile.html#plugin-multifile">multifile</a> |
| 184 | </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td><p><span class="term">author</span></p></td> |
| 188 | <td>Jan Schmidt <jan@centricular.com></td> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td><p><span class="term">class</span></p></td> |
| 192 | <td>Generic/Bin/Muxer</td> |
| 193 | </tr> |
| 194 | </tbody> |
| 195 | </table></div> |
| 196 | </div> |
| 197 | <hr> |
| 198 | <div class="refsect2"> |
Sebastian Dröge | 3a50aa7 | 2016-07-06 12:38:23 +0300 | [diff] [blame] | 199 | <a name="id-1.2.240.9.7.2"></a><h3>Element Pads</h3> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 200 | <div class="variablelist"><table border="0" class="variablelist"> |
| 201 | <colgroup> |
| 202 | <col align="left" valign="top"> |
| 203 | <col> |
| 204 | </colgroup> |
| 205 | <tbody> |
| 206 | <tr> |
| 207 | <td><p><span class="term">name</span></p></td> |
| 208 | <td>audio_%u</td> |
| 209 | </tr> |
| 210 | <tr> |
| 211 | <td><p><span class="term">direction</span></p></td> |
| 212 | <td>sink</td> |
| 213 | </tr> |
| 214 | <tr> |
| 215 | <td><p><span class="term">presence</span></p></td> |
| 216 | <td>request</td> |
| 217 | </tr> |
| 218 | <tr> |
| 219 | <td><p><span class="term">details</span></p></td> |
| 220 | <td>ANY</td> |
| 221 | </tr> |
| 222 | </tbody> |
| 223 | </table></div> |
| 224 | <div class="variablelist"><table border="0" class="variablelist"> |
| 225 | <colgroup> |
| 226 | <col align="left" valign="top"> |
| 227 | <col> |
| 228 | </colgroup> |
| 229 | <tbody> |
| 230 | <tr> |
| 231 | <td><p><span class="term">name</span></p></td> |
| 232 | <td>subtitle_%u</td> |
| 233 | </tr> |
| 234 | <tr> |
| 235 | <td><p><span class="term">direction</span></p></td> |
| 236 | <td>sink</td> |
| 237 | </tr> |
| 238 | <tr> |
| 239 | <td><p><span class="term">presence</span></p></td> |
| 240 | <td>request</td> |
| 241 | </tr> |
| 242 | <tr> |
| 243 | <td><p><span class="term">details</span></p></td> |
| 244 | <td>ANY</td> |
| 245 | </tr> |
| 246 | </tbody> |
| 247 | </table></div> |
| 248 | <div class="variablelist"><table border="0" class="variablelist"> |
| 249 | <colgroup> |
| 250 | <col align="left" valign="top"> |
| 251 | <col> |
| 252 | </colgroup> |
| 253 | <tbody> |
| 254 | <tr> |
| 255 | <td><p><span class="term">name</span></p></td> |
| 256 | <td>video</td> |
| 257 | </tr> |
| 258 | <tr> |
| 259 | <td><p><span class="term">direction</span></p></td> |
| 260 | <td>sink</td> |
| 261 | </tr> |
| 262 | <tr> |
| 263 | <td><p><span class="term">presence</span></p></td> |
| 264 | <td>request</td> |
| 265 | </tr> |
| 266 | <tr> |
| 267 | <td><p><span class="term">details</span></p></td> |
| 268 | <td>ANY</td> |
| 269 | </tr> |
| 270 | </tbody> |
| 271 | </table></div> |
| 272 | </div> |
| 273 | </div> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 274 | </div> |
| 275 | <div class="refsect1"> |
| 276 | <a name="gst-plugins-good-plugins-splitmuxsink.functions_details"></a><h2>Functions</h2> |
Sebastian Dröge | 42ff240 | 2015-06-07 10:56:31 +0200 | [diff] [blame] | 277 | <p></p> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 278 | </div> |
| 279 | <div class="refsect1"> |
| 280 | <a name="gst-plugins-good-plugins-splitmuxsink.other_details"></a><h2>Types and Values</h2> |
| 281 | <div class="refsect2"> |
| 282 | <a name="GstSplitMuxSink-struct"></a><h3>struct GstSplitMuxSink</h3> |
| 283 | <pre class="programlisting">struct GstSplitMuxSink;</pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 284 | </div> |
| 285 | </div> |
| 286 | <div class="refsect1"> |
| 287 | <a name="gst-plugins-good-plugins-splitmuxsink.property-details"></a><h2>Property Details</h2> |
| 288 | <div class="refsect2"> |
| 289 | <a name="GstSplitMuxSink--location"></a><h3>The <code class="literal">“location”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 290 | <pre class="programlisting"> “location” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 291 | <p>Format string pattern for the location of the files to write (e.g. video%05d.mp4).</p> |
| 292 | <p>Flags: Read / Write</p> |
| 293 | <p>Default value: NULL</p> |
| 294 | </div> |
| 295 | <hr> |
| 296 | <div class="refsect2"> |
| 297 | <a name="GstSplitMuxSink--max-size-bytes"></a><h3>The <code class="literal">“max-size-bytes”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 298 | <pre class="programlisting"> “max-size-bytes” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint64"><span class="type">guint64</span></a></pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 299 | <p>Max. amount of data per file (in bytes, 0=disable).</p> |
| 300 | <p>Flags: Read / Write</p> |
| 301 | <p>Default value: 0</p> |
| 302 | </div> |
| 303 | <hr> |
| 304 | <div class="refsect2"> |
| 305 | <a name="GstSplitMuxSink--max-size-time"></a><h3>The <code class="literal">“max-size-time”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 306 | <pre class="programlisting"> “max-size-time” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint64"><span class="type">guint64</span></a></pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 307 | <p>Max. amount of time per file (in ns, 0=disable).</p> |
| 308 | <p>Flags: Read / Write</p> |
| 309 | <p>Default value: 0</p> |
| 310 | </div> |
| 311 | <hr> |
| 312 | <div class="refsect2"> |
| 313 | <a name="GstSplitMuxSink--mux-overhead"></a><h3>The <code class="literal">“mux-overhead”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 314 | <pre class="programlisting"> “mux-overhead” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 315 | <p>Extra size overhead of muxing (0.02 = 2%).</p> |
| 316 | <p>Flags: Read / Write</p> |
| 317 | <p>Allowed values: [0,1]</p> |
| 318 | <p>Default value: 0.02</p> |
| 319 | </div> |
| 320 | <hr> |
| 321 | <div class="refsect2"> |
| 322 | <a name="GstSplitMuxSink--muxer"></a><h3>The <code class="literal">“muxer”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 323 | <pre class="programlisting"> “muxer” <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *</pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 324 | <p>The muxer element to use (NULL = default mp4mux).</p> |
| 325 | <p>Flags: Read / Write</p> |
| 326 | </div> |
| 327 | <hr> |
| 328 | <div class="refsect2"> |
| 329 | <a name="GstSplitMuxSink--sink"></a><h3>The <code class="literal">“sink”</code> property</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 330 | <pre class="programlisting"> “sink” <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *</pre> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 331 | <p>The sink element (or element chain) to use (NULL = default filesink).</p> |
| 332 | <p>Flags: Read / Write</p> |
| 333 | </div> |
Sebastian Dröge | da98cd5 | 2016-04-20 18:12:15 +0300 | [diff] [blame] | 334 | <hr> |
| 335 | <div class="refsect2"> |
| 336 | <a name="GstSplitMuxSink--max-files"></a><h3>The <code class="literal">“max-files”</code> property</h3> |
| 337 | <pre class="programlisting"> “max-files” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> |
| 338 | <p>Maximum number of files to keep on disk. Once the maximum is reached,old files start to be deleted to make room for new ones.</p> |
| 339 | <p>Flags: Read / Write</p> |
| 340 | <p>Default value: 0</p> |
| 341 | </div> |
Sebastian Dröge | fd64c29 | 2016-09-01 12:04:20 +0300 | [diff] [blame^] | 342 | <hr> |
| 343 | <div class="refsect2"> |
| 344 | <a name="GstSplitMuxSink--send-keyframe-requests"></a><h3>The <code class="literal">“send-keyframe-requests”</code> property</h3> |
| 345 | <pre class="programlisting"> “send-keyframe-requests” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> |
| 346 | <p>Request a keyframe every max-size-time ns to try splitting at that point. Needs max-size-bytes to be 0 in order to be effective.</p> |
| 347 | <p>Flags: Read / Write</p> |
| 348 | <p>Default value: FALSE</p> |
| 349 | </div> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 350 | </div> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 351 | <div class="refsect1"> |
| 352 | <a name="gst-plugins-good-plugins-splitmuxsink.signal-details"></a><h2>Signal Details</h2> |
| 353 | <div class="refsect2"> |
| 354 | <a name="GstSplitMuxSink-format-location"></a><h3>The <code class="literal">“format-location”</code> signal</h3> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 355 | <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 356 | user_function (<a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink"><span class="type">GstSplitMuxSink</span></a> *splitmux, |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 357 | <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#guint"><span class="type">guint</span></a> fragment_id, |
| 358 | <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 359 | <div class="refsect3"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 360 | <a name="GstSplitMuxSink-format-location.parameters"></a><h4>Parameters</h4> |
Sebastian Dröge | ffda836 | 2016-02-19 11:16:13 +0200 | [diff] [blame] | 361 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 362 | <colgroup> |
| 363 | <col width="150px" class="parameters_name"> |
| 364 | <col class="parameters_description"> |
| 365 | <col width="200px" class="parameters_annotations"> |
| 366 | </colgroup> |
| 367 | <tbody> |
| 368 | <tr> |
| 369 | <td class="parameter_name"><p>splitmux</p></td> |
| 370 | <td class="parameter_description"><p>the <a class="link" href="gst-plugins-good-plugins-splitmuxsink.html#GstSplitMuxSink"><span class="type">GstSplitMuxSink</span></a></p></td> |
| 371 | <td class="parameter_annotations"> </td> |
| 372 | </tr> |
| 373 | <tr> |
| 374 | <td class="parameter_name"><p>fragment_id</p></td> |
| 375 | <td class="parameter_description"><p>the sequence number of the file to be created</p></td> |
| 376 | <td class="parameter_annotations"> </td> |
| 377 | </tr> |
| 378 | <tr> |
| 379 | <td class="parameter_name"><p>user_data</p></td> |
| 380 | <td class="parameter_description"><p>user data set when the signal handler was connected.</p></td> |
| 381 | <td class="parameter_annotations"> </td> |
| 382 | </tr> |
| 383 | </tbody> |
| 384 | </table></div> |
| 385 | </div> |
| 386 | <div class="refsect3"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 387 | <a name="GstSplitMuxSink-format-location.returns"></a><h4>Returns</h4> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 388 | <p> the location to be used for the next output file</p> |
| 389 | </div> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 390 | <p>Flags: <a href="/usr/share/gtk-doc/html/gobjectgobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p> |
Sebastian Dröge | b04f972 | 2015-08-19 13:19:08 +0300 | [diff] [blame] | 391 | </div> |
| 392 | </div> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 393 | </div> |
| 394 | <div class="footer"> |
Sebastian Dröge | 1901d5d | 2016-03-24 12:22:42 +0200 | [diff] [blame] | 395 | <hr>Generated by GTK-Doc V1.25</div> |
Sebastian Dröge | 8704117 | 2015-03-17 09:12:48 +0100 | [diff] [blame] | 396 | </body> |
| 397 | </html> |