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>filesrc: GStreamer Core 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 Core Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gstreamer Elements"> 9<link rel="prev" href="gstreamer-plugins-filesink.html" title="filesink"> 10<link rel="next" href="gstreamer-plugins-funnel.html" title="funnel"> 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="#gstreamer-plugins-filesrc.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gstreamer-plugins-filesrc.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> 20 <a href="#gstreamer-plugins-filesrc.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> 21 <a href="#gstreamer-plugins-filesrc.properties" class="shortcut">Properties</a></span> 22</td> 23<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 24<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 25<td><a accesskey="p" href="gstreamer-plugins-filesink.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 26<td><a accesskey="n" href="gstreamer-plugins-funnel.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 27</tr></table> 28<div class="refentry"> 29<a name="gstreamer-plugins-filesrc"></a><div class="titlepage"></div> 30<div class="refnamediv"><table width="100%"><tr> 31<td valign="top"> 32<h2><span class="refentrytitle"><a name="gstreamer-plugins-filesrc.top_of_page"></a>filesrc</span></h2> 33<p>filesrc</p> 34</td> 35<td class="gallery_image" valign="top" align="right"></td> 36</tr></table></div> 37<div class="refsect1"> 38<a name="gstreamer-plugins-filesrc.properties"></a><h2>Properties</h2> 39<div class="informaltable"><table class="informaltable" border="0"> 40<colgroup> 41<col width="150px" class="properties_type"> 42<col width="300px" class="properties_name"> 43<col width="200px" class="properties_flags"> 44</colgroup> 45<tbody><tr> 46<td class="property_type"> 47<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 48<td class="property_name"><a class="link" href="gstreamer-plugins-filesrc.html#GstFileSrc--location" title="The “location” property">location</a></td> 49<td class="property_flags">Read / Write</td> 50</tr></tbody> 51</table></div> 52</div> 53<a name="GstFileSrc"></a><div class="refsect1"> 54<a name="gstreamer-plugins-filesrc.other"></a><h2>Types and Values</h2> 55<div class="informaltable"><table class="informaltable" width="100%" border="0"> 56<colgroup> 57<col width="150px" class="name"> 58<col class="description"> 59</colgroup> 60<tbody><tr> 61<td class="datatype_keyword">struct</td> 62<td class="function_name"><a class="link" href="gstreamer-plugins-filesrc.html#GstFileSrc-struct" title="struct GstFileSrc">GstFileSrc</a></td> 63</tr></tbody> 64</table></div> 65</div> 66<div class="refsect1"> 67<a name="gstreamer-plugins-filesrc.object-hierarchy"></a><h2>Object Hierarchy</h2> 68<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 69 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 70 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 71 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 72 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSrc.html#GstBaseSrc-struct">GstBaseSrc</a> 73 <span class="lineart">╰──</span> GstFileSrc 74</pre> 75</div> 76<div class="refsect1"> 77<a name="gstreamer-plugins-filesrc.implemented-interfaces"></a><h2>Implemented Interfaces</h2> 78<p> 79GstFileSrc implements 80 <a href="/usr/share/gtk-doc/html/gstreamer-1.0/gstreamer-GstUriHandler.html#GstURIHandler-struct">GstURIHandler</a>.</p> 81</div> 82<div class="refsect1"> 83<a name="gstreamer-plugins-filesrc.description"></a><h2>Description</h2> 84<p>Read data from a file in the local file system.</p> 85<div class="refsect3"> 86<a name="id-1.2.11.8.3"></a><h4>Example launch line</h4> 87<div class="informalexample"> 88 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 89 <tbody> 90 <tr> 91 <td class="listing_lines" align="right"><pre>1</pre></td> 92 <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> filesrc location<span class="gtkdoc opt">=</span>song<span class="gtkdoc opt">.</span>ogg <span class="gtkdoc opt">!</span> decodebin <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> audioresample <span class="gtkdoc opt">!</span> autoaudiosink</pre></td> 93 </tr> 94 </tbody> 95 </table> 96</div> 97 98<p> Play song.ogg audio file which must be in the current working directory.</p> 99</div> 100<div class="refsynopsisdiv"> 101<h2>Synopsis</h2> 102<div class="refsect2"> 103<a name="id-1.2.11.8.4.1"></a><h3>Element Information</h3> 104<div class="variablelist"><table border="0" class="variablelist"> 105<colgroup> 106<col align="left" valign="top"> 107<col> 108</colgroup> 109<tbody> 110<tr> 111<td><p><span class="term">plugin</span></p></td> 112<td> 113 <a class="link" href="gstreamer-plugins-plugin-coreelements.html#plugin-coreelements">coreelements</a> 114 </td> 115</tr> 116<tr> 117<td><p><span class="term">author</span></p></td> 118<td>Erik Walthinsen <omega@cse.ogi.edu></td> 119</tr> 120<tr> 121<td><p><span class="term">class</span></p></td> 122<td>Source/File</td> 123</tr> 124</tbody> 125</table></div> 126</div> 127<hr> 128<div class="refsect2"> 129<a name="id-1.2.11.8.4.2"></a><h3>Element Pads</h3> 130<div class="variablelist"><table border="0" class="variablelist"> 131<colgroup> 132<col align="left" valign="top"> 133<col> 134</colgroup> 135<tbody> 136<tr> 137<td><p><span class="term">name</span></p></td> 138<td>src</td> 139</tr> 140<tr> 141<td><p><span class="term">direction</span></p></td> 142<td>source</td> 143</tr> 144<tr> 145<td><p><span class="term">presence</span></p></td> 146<td>always</td> 147</tr> 148<tr> 149<td><p><span class="term">details</span></p></td> 150<td>ANY</td> 151</tr> 152</tbody> 153</table></div> 154</div> 155</div> 156</div> 157<div class="refsect1"> 158<a name="gstreamer-plugins-filesrc.functions_details"></a><h2>Functions</h2> 159<p></p> 160</div> 161<div class="refsect1"> 162<a name="gstreamer-plugins-filesrc.other_details"></a><h2>Types and Values</h2> 163<div class="refsect2"> 164<a name="GstFileSrc-struct"></a><h3>struct GstFileSrc</h3> 165<pre class="programlisting">struct GstFileSrc;</pre> 166<p>Opaque <a class="link" href="gstreamer-plugins-filesrc.html#GstFileSrc"><span class="type">GstFileSrc</span></a> structure.</p> 167</div> 168</div> 169<div class="refsect1"> 170<a name="gstreamer-plugins-filesrc.property-details"></a><h2>Property Details</h2> 171<div class="refsect2"> 172<a name="GstFileSrc--location"></a><h3>The <code class="literal">“location”</code> property</h3> 173<pre class="programlisting"> “location” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 174<p>Location of the file to read.</p> 175<p>Flags: Read / Write</p> 176<p>Default value: NULL</p> 177</div> 178</div> 179<div class="refsect1"> 180<a name="gstreamer-plugins-filesrc.see-also"></a><h2>See Also</h2> 181<p><a class="link" href="gstreamer-plugins-filesrc.html#GstFileSrc"><span class="type">GstFileSrc</span></a></p> 182</div> 183</div> 184<div class="footer"> 185<hr>Generated by GTK-Doc V1.28</div> 186</body> 187</html>