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"> 5<title>timecodestamper: GStreamer Bad Plugins 1.0 Plugins Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gst-plugins-bad Elements"> 9<link rel="prev" href="gst-plugins-bad-plugins-tiger.html" title="tiger"> 10<link rel="next" href="gst-plugins-bad-plugins-tonegeneratesrc.html" title="tonegeneratesrc"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 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-bad-plugins-timecodestamper.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-bad-plugins-timecodestamper.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> 20 <a href="#gst-plugins-bad-plugins-timecodestamper.properties" class="shortcut">Properties</a></span> 21</td> 22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 23<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 24<td><a accesskey="p" href="gst-plugins-bad-plugins-tiger.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 25<td><a accesskey="n" href="gst-plugins-bad-plugins-tonegeneratesrc.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 26</tr></table> 27<div class="refentry"> 28<a name="gst-plugins-bad-plugins-timecodestamper"></a><div class="titlepage"></div> 29<div class="refnamediv"><table width="100%"><tr> 30<td valign="top"> 31<h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-timecodestamper.top_of_page"></a>timecodestamper</span></h2> 32<p>timecodestamper — Attach a timecode into incoming video frames</p> 33</td> 34<td class="gallery_image" valign="top" align="right"></td> 35</tr></table></div> 36<div class="refsect1"> 37<a name="gst-plugins-bad-plugins-timecodestamper.properties"></a><h2>Properties</h2> 38<div class="informaltable"><table class="informaltable" border="0"> 39<colgroup> 40<col width="150px" class="properties_type"> 41<col width="300px" class="properties_name"> 42<col width="200px" class="properties_flags"> 43</colgroup> 44<tbody> 45<tr> 46<td class="property_type"> 47<a href="/usr/share/gtk-doc/html/glib/glib-GDateTime.html#GDateTime"><span class="type">GDateTime</span></a> *</td> 48<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--daily-jam" title="The “daily-jam” property">daily-jam</a></td> 49<td class="property_flags">Read / Write</td> 50</tr> 51<tr> 52<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 53<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--drop-frame" title="The “drop-frame” property">drop-frame</a></td> 54<td class="property_flags">Read / Write</td> 55</tr> 56<tr> 57<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 58<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--override-existing" title="The “override-existing” property">override-existing</a></td> 59<td class="property_flags">Read / Write</td> 60</tr> 61<tr> 62<td class="property_type"> 63<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClock-struct"><span class="type">GstClock</span></a> *</td> 64<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--source-clock" title="The “source-clock” property">source-clock</a></td> 65<td class="property_flags">Read / Write</td> 66</tr> 67<tr> 68<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 69<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--post-messages" title="The “post-messages” property">post-messages</a></td> 70<td class="property_flags">Read / Write</td> 71</tr> 72<tr> 73<td class="property_type"> 74<a href="/usr/share/gtk-doc/html/gst-plugins-base-libs-1.0/gst-plugins-base-libs-GstVideo.html#GstVideoTimeCode"><span class="type">GstVideoTimeCode</span></a> *</td> 75<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--first-timecode" title="The “first-timecode” property">first-timecode</a></td> 76<td class="property_flags">Read / Write</td> 77</tr> 78<tr> 79<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 80<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper--first-timecode-to-now" title="The “first-timecode-to-now” property">first-timecode-to-now</a></td> 81<td class="property_flags">Read / Write</td> 82</tr> 83</tbody> 84</table></div> 85</div> 86<a name="GstTimeCodeStamper"></a><div class="refsect1"> 87<a name="gst-plugins-bad-plugins-timecodestamper.other"></a><h2>Types and Values</h2> 88<div class="informaltable"><table class="informaltable" width="100%" border="0"> 89<colgroup> 90<col width="150px" class="name"> 91<col class="description"> 92</colgroup> 93<tbody><tr> 94<td class="datatype_keyword">struct</td> 95<td class="function_name"><a class="link" href="gst-plugins-bad-plugins-timecodestamper.html#GstTimeCodeStamper-struct" title="struct GstTimeCodeStamper">GstTimeCodeStamper</a></td> 96</tr></tbody> 97</table></div> 98</div> 99<div class="refsect1"> 100<a name="gst-plugins-bad-plugins-timecodestamper.object-hierarchy"></a><h2>Object Hierarchy</h2> 101<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 102 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 103 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 104 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 105 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseTransform.html#GstBaseTransform-struct">GstBaseTransform</a> 106 <span class="lineart">╰──</span> GstTimeCodeStamper 107</pre> 108</div> 109<div class="refsect1"> 110<a name="gst-plugins-bad-plugins-timecodestamper.description"></a><h2>Description</h2> 111<p>This element attaches a timecode into every incoming video frame. It starts 112counting from the stream time of each segment start, which it converts into 113a timecode.</p> 114<div class="refsect3"> 115<a name="id-1.2.220.7.3"></a><h4>Example launch line</h4> 116<div class="informalexample"> 117 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 118 <tbody> 119 <tr> 120 <td class="listing_lines" align="right"><pre>1</pre></td> 121 <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> videotestsrc <span class="gtkdoc opt">!</span> timecodestamper <span class="gtkdoc opt">!</span> autovideosink</pre></td> 122 </tr> 123 </tbody> 124 </table> 125</div> 126 127<p></p> 128</div> 129<div class="refsynopsisdiv"> 130<h2>Synopsis</h2> 131<div class="refsect2"> 132<a name="id-1.2.220.7.4.1"></a><h3>Element Information</h3> 133<div class="variablelist"><table border="0" class="variablelist"> 134<colgroup> 135<col align="left" valign="top"> 136<col> 137</colgroup> 138<tbody> 139<tr> 140<td><p><span class="term">plugin</span></p></td> 141<td> 142 <a class="link" href="gst-plugins-bad-plugins-plugin-timecode.html#plugin-timecode">timecode</a> 143 </td> 144</tr> 145<tr> 146<td><p><span class="term">author</span></p></td> 147<td>Vivia Nikolaidou <vivia@toolsonair.com</td> 148</tr> 149<tr> 150<td><p><span class="term">class</span></p></td> 151<td>Filter/Video</td> 152</tr> 153</tbody> 154</table></div> 155</div> 156<hr> 157<div class="refsect2"> 158<a name="id-1.2.220.7.4.2"></a><h3>Element Pads</h3> 159<div class="variablelist"><table border="0" class="variablelist"> 160<colgroup> 161<col align="left" valign="top"> 162<col> 163</colgroup> 164<tbody> 165<tr> 166<td><p><span class="term">name</span></p></td> 167<td>sink</td> 168</tr> 169<tr> 170<td><p><span class="term">direction</span></p></td> 171<td>sink</td> 172</tr> 173<tr> 174<td><p><span class="term">presence</span></p></td> 175<td>always</td> 176</tr> 177<tr> 178<td><p><span class="term">details</span></p></td> 179<td>video/x-raw</td> 180</tr> 181</tbody> 182</table></div> 183<div class="variablelist"><table border="0" class="variablelist"> 184<colgroup> 185<col align="left" valign="top"> 186<col> 187</colgroup> 188<tbody> 189<tr> 190<td><p><span class="term">name</span></p></td> 191<td>src</td> 192</tr> 193<tr> 194<td><p><span class="term">direction</span></p></td> 195<td>source</td> 196</tr> 197<tr> 198<td><p><span class="term">presence</span></p></td> 199<td>always</td> 200</tr> 201<tr> 202<td><p><span class="term">details</span></p></td> 203<td>video/x-raw</td> 204</tr> 205</tbody> 206</table></div> 207</div> 208</div> 209</div> 210<div class="refsect1"> 211<a name="gst-plugins-bad-plugins-timecodestamper.functions_details"></a><h2>Functions</h2> 212<p></p> 213</div> 214<div class="refsect1"> 215<a name="gst-plugins-bad-plugins-timecodestamper.other_details"></a><h2>Types and Values</h2> 216<div class="refsect2"> 217<a name="GstTimeCodeStamper-struct"></a><h3>struct GstTimeCodeStamper</h3> 218<pre class="programlisting">struct GstTimeCodeStamper;</pre> 219<p>Opaque data structure.</p> 220</div> 221</div> 222<div class="refsect1"> 223<a name="gst-plugins-bad-plugins-timecodestamper.property-details"></a><h2>Property Details</h2> 224<div class="refsect2"> 225<a name="GstTimeCodeStamper--daily-jam"></a><h3>The <code class="literal">“daily-jam”</code> property</h3> 226<pre class="programlisting"> “daily-jam” <a href="/usr/share/gtk-doc/html/glib/glib-GDateTime.html#GDateTime"><span class="type">GDateTime</span></a> *</pre> 227<p>The daily jam of the timecode.</p> 228<p>Flags: Read / Write</p> 229</div> 230<hr> 231<div class="refsect2"> 232<a name="GstTimeCodeStamper--drop-frame"></a><h3>The <code class="literal">“drop-frame”</code> property</h3> 233<pre class="programlisting"> “drop-frame” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 234<p>Use drop-frame timecodes for 29.97 and 59.94 FPS.</p> 235<p>Flags: Read / Write</p> 236<p>Default value: FALSE</p> 237</div> 238<hr> 239<div class="refsect2"> 240<a name="GstTimeCodeStamper--override-existing"></a><h3>The <code class="literal">“override-existing”</code> property</h3> 241<pre class="programlisting"> “override-existing” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 242<p>If set to true, any existing timecode will be overridden.</p> 243<p>Flags: Read / Write</p> 244<p>Default value: FALSE</p> 245</div> 246<hr> 247<div class="refsect2"> 248<a name="GstTimeCodeStamper--source-clock"></a><h3>The <code class="literal">“source-clock”</code> property</h3> 249<pre class="programlisting"> “source-clock” <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClock-struct"><span class="type">GstClock</span></a> *</pre> 250<p>If unset, the timecode will refer to the stream time.</p> 251<p>Flags: Read / Write</p> 252</div> 253<hr> 254<div class="refsect2"> 255<a name="GstTimeCodeStamper--post-messages"></a><h3>The <code class="literal">“post-messages”</code> property</h3> 256<pre class="programlisting"> “post-messages” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 257<p>Post element message containing the current timecode.</p> 258<p>Flags: Read / Write</p> 259<p>Default value: FALSE</p> 260</div> 261<hr> 262<div class="refsect2"> 263<a name="GstTimeCodeStamper--first-timecode"></a><h3>The <code class="literal">“first-timecode”</code> property</h3> 264<pre class="programlisting"> “first-timecode” <a href="/usr/share/gtk-doc/html/gst-plugins-base-libs-1.0/gst-plugins-base-libs-GstVideo.html#GstVideoTimeCode"><span class="type">GstVideoTimeCode</span></a> *</pre> 265<p>If set, take this timecode for the first frame and increment from it. Only the values itself are taken, flags and frame rate are always determined by timecodestamper itself. If unset (and to-now is also not set), the timecode will start at 0.</p> 266<p>Flags: Read / Write</p> 267</div> 268<hr> 269<div class="refsect2"> 270<a name="GstTimeCodeStamper--first-timecode-to-now"></a><h3>The <code class="literal">“first-timecode-to-now”</code> property</h3> 271<pre class="programlisting"> “first-timecode-to-now” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 272<p>If true and first-timecode is unset, set it to system time automatically when the first media segment is received.</p> 273<p>Flags: Read / Write</p> 274<p>Default value: FALSE</p> 275</div> 276</div> 277</div> 278<div class="footer"> 279<hr>Generated by GTK-Doc V1.28</div> 280</body> 281</html>