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>flacparse: GStreamer Good 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 Good Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gst-plugins-good Elements"> 9<link rel="prev" href="gst-plugins-good-plugins-flacenc.html" title="flacenc"> 10<link rel="next" href="gst-plugins-good-plugins-flactag.html" title="flactag"> 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-good-plugins-flacparse.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-good-plugins-flacparse.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> 20 <a href="#gst-plugins-good-plugins-flacparse.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-good-plugins-flacenc.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 25<td><a accesskey="n" href="gst-plugins-good-plugins-flactag.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-good-plugins-flacparse"></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-good-plugins-flacparse.top_of_page"></a>flacparse</span></h2> 32<p>flacparse</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-good-plugins-flacparse.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><tr> 45<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> 46<td class="property_name"><a class="link" href="gst-plugins-good-plugins-flacparse.html#GstFlacParse--check-frame-checksums" title="The “check-frame-checksums” property">check-frame-checksums</a></td> 47<td class="property_flags">Read / Write</td> 48</tr></tbody> 49</table></div> 50</div> 51<a name="GstFlacParse"></a><div class="refsect1"> 52<a name="gst-plugins-good-plugins-flacparse.other"></a><h2>Types and Values</h2> 53<div class="informaltable"><table class="informaltable" width="100%" border="0"> 54<colgroup> 55<col width="150px" class="name"> 56<col class="description"> 57</colgroup> 58<tbody><tr> 59<td class="datatype_keyword">struct</td> 60<td class="function_name"><a class="link" href="gst-plugins-good-plugins-flacparse.html#GstFlacParse-struct" title="struct GstFlacParse">GstFlacParse</a></td> 61</tr></tbody> 62</table></div> 63</div> 64<div class="refsect1"> 65<a name="gst-plugins-good-plugins-flacparse.object-hierarchy"></a><h2>Object Hierarchy</h2> 66<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 67 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 68 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 69 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 70 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseParse.html#GstBaseParse-struct">GstBaseParse</a> 71 <span class="lineart">╰──</span> GstFlacParse 72</pre> 73</div> 74<div class="refsect1"> 75<a name="gst-plugins-good-plugins-flacparse.description"></a><h2>Description</h2> 76<p>The flacparse element will parse the header packets of the FLAC 77stream and put them as the streamheader in the caps. This is used in the 78multifdsink case where you want to stream live FLAC streams to multiple 79clients, each client has to receive the streamheaders first before they can 80consume the FLAC packets.</p> 81<p>This element also makes sure that the buffers that it pushes out are properly 82timestamped and that their offset and offset_end are set. The buffers that 83flacparse outputs have all of the metadata that oggmux expects to receive, 84which allows you to (for example) remux an ogg/flac or convert a native FLAC 85format file to an ogg bitstream.</p> 86<div class="refsect2"> 87<a name="id-1.2.59.7.4"></a><h3>Example pipelines</h3> 88<div class="informalexample"> 89 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 90 <tbody> 91 <tr> 92 <td class="listing_lines" align="right"><pre>1 932</pre></td> 94 <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>v filesrc location<span class="gtkdoc opt">=</span>sine<span class="gtkdoc opt">.</span>flac <span class="gtkdoc opt">!</span> flacparse <span class="gtkdoc opt">!</span> identity \ 95 <span class="gtkdoc opt">!</span> oggmux <span class="gtkdoc opt">!</span> filesink location<span class="gtkdoc opt">=</span>sine<span class="gtkdoc opt">-</span>remuxed<span class="gtkdoc opt">.</span>ogg</pre></td> 96 </tr> 97 </tbody> 98 </table> 99</div> 100 This pipeline converts a native FLAC format file to an ogg bitstream. 101It also illustrates that the streamheader is set in the caps, and that each 102buffer has the timestamp, duration, offset, and offset_end set. 103</div> 104<div class="refsynopsisdiv"> 105<h2>Synopsis</h2> 106<div class="refsect2"> 107<a name="id-1.2.59.7.5.1"></a><h3>Element Information</h3> 108<div class="variablelist"><table border="0" class="variablelist"> 109<colgroup> 110<col align="left" valign="top"> 111<col> 112</colgroup> 113<tbody> 114<tr> 115<td><p><span class="term">plugin</span></p></td> 116<td> 117 <a class="link" href="gst-plugins-good-plugins-plugin-audioparsers.html#plugin-audioparsers">audioparsers</a> 118 </td> 119</tr> 120<tr> 121<td><p><span class="term">author</span></p></td> 122<td>Sebastian Dröge <sebastian.droege@collabora.co.uk></td> 123</tr> 124<tr> 125<td><p><span class="term">class</span></p></td> 126<td>Codec/Parser/Audio</td> 127</tr> 128</tbody> 129</table></div> 130</div> 131<hr> 132<div class="refsect2"> 133<a name="id-1.2.59.7.5.2"></a><h3>Element Pads</h3> 134<div class="variablelist"><table border="0" class="variablelist"> 135<colgroup> 136<col align="left" valign="top"> 137<col> 138</colgroup> 139<tbody> 140<tr> 141<td><p><span class="term">name</span></p></td> 142<td>sink</td> 143</tr> 144<tr> 145<td><p><span class="term">direction</span></p></td> 146<td>sink</td> 147</tr> 148<tr> 149<td><p><span class="term">presence</span></p></td> 150<td>always</td> 151</tr> 152<tr> 153<td><p><span class="term">details</span></p></td> 154<td>audio/x-flac</td> 155</tr> 156</tbody> 157</table></div> 158<div class="variablelist"><table border="0" class="variablelist"> 159<colgroup> 160<col align="left" valign="top"> 161<col> 162</colgroup> 163<tbody> 164<tr> 165<td><p><span class="term">name</span></p></td> 166<td>src</td> 167</tr> 168<tr> 169<td><p><span class="term">direction</span></p></td> 170<td>source</td> 171</tr> 172<tr> 173<td><p><span class="term">presence</span></p></td> 174<td>always</td> 175</tr> 176<tr> 177<td><p><span class="term">details</span></p></td> 178<td>audio/x-flac, framed=(boolean)true, channels=(int)[ 1, 8 ], rate=(int)[ 1, 655350 ]</td> 179</tr> 180</tbody> 181</table></div> 182</div> 183</div> 184</div> 185<div class="refsect1"> 186<a name="gst-plugins-good-plugins-flacparse.functions_details"></a><h2>Functions</h2> 187<p></p> 188</div> 189<div class="refsect1"> 190<a name="gst-plugins-good-plugins-flacparse.other_details"></a><h2>Types and Values</h2> 191<div class="refsect2"> 192<a name="GstFlacParse-struct"></a><h3>struct GstFlacParse</h3> 193<pre class="programlisting">struct GstFlacParse;</pre> 194</div> 195</div> 196<div class="refsect1"> 197<a name="gst-plugins-good-plugins-flacparse.property-details"></a><h2>Property Details</h2> 198<div class="refsect2"> 199<a name="GstFlacParse--check-frame-checksums"></a><h3>The <code class="literal">“check-frame-checksums”</code> property</h3> 200<pre class="programlisting"> “check-frame-checksums” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> 201<p>Check the overall checksums of every frame.</p> 202<p>Flags: Read / Write</p> 203<p>Default value: FALSE</p> 204</div> 205</div> 206<div class="refsect1"> 207<a name="gst-plugins-good-plugins-flacparse.see-also"></a><h2>See Also</h2> 208<p>flacdec, oggdemux, vorbisparse</p> 209</div> 210</div> 211<div class="footer"> 212<hr>Generated by GTK-Doc V1.28</div> 213</body> 214</html>