1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GStreamer Core Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gstreamer Elements">
9 <link rel="prev" href="gstreamer-plugins-fdsink.html" title="fdsink">
10 <link rel="next" href="gstreamer-plugins-filesrc.html" title="filesrc">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="2">
17 <td><a accesskey="p" href="gstreamer-plugins-fdsink.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Core Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gstreamer-plugins-filesrc.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gstreamer-plugins-fdsrc.synopsis" class="shortcut">Top</a>
26 <a href="#gstreamer-plugins-fdsrc.description" class="shortcut">Description</a>
28 <a href="#gstreamer-plugins-fdsrc.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gstreamer-plugins-fdsrc.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32 <a href="#gstreamer-plugins-fdsrc.properties" class="shortcut">Properties</a>
35 <div class="refentry">
36 <a name="gstreamer-plugins-fdsrc"></a><div class="titlepage"></div>
37 <div class="refnamediv"><table width="100%"><tr>
39 <h2><span class="refentrytitle"><a name="gstreamer-plugins-fdsrc.top_of_page"></a>fdsrc</span></h2>
40 <p>fdsrc — Read from a file descriptor</p>
42 <td valign="top" align="right"></td>
44 <div class="refsynopsisdiv">
45 <a name="gstreamer-plugins-fdsrc.synopsis"></a><h2>Synopsis</h2>
46 <a name="GstFdSrc"></a><pre class="synopsis">struct <a class="link" href="gstreamer-plugins-fdsrc.html#GstFdSrc-struct" title="struct GstFdSrc">GstFdSrc</a>;
49 <div class="refsect1">
50 <a name="gstreamer-plugins-fdsrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
51 <pre class="synopsis">
52 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
53 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html">GstObject</a>
54 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html">GstElement</a>
55 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html">GstBaseSrc</a>
56 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstPushSrc.html">GstPushSrc</a>
60 <div class="refsect1">
61 <a name="gstreamer-plugins-fdsrc.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
64 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstUriHandler.html#GstURIHandler">GstURIHandler</a>.</p>
66 <div class="refsect1">
67 <a name="gstreamer-plugins-fdsrc.properties"></a><h2>Properties</h2>
68 <pre class="synopsis">
69 "<a class="link" href="gstreamer-plugins-fdsrc.html#GstFdSrc--fd" title='The "fd" property'>fd</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
70 "<a class="link" href="gstreamer-plugins-fdsrc.html#GstFdSrc--timeout" title='The "timeout" property'>timeout</a>" <span class="type">guint64</span> : Read / Write
73 <div class="refsect1">
74 <a name="gstreamer-plugins-fdsrc.description"></a><h2>Description</h2>
76 Read data from a unix file descriptor.
79 To generate data, enter some data on the console folowed by enter.
80 The above mentioned pipeline should dump data packets to the console.
83 If the <a class="link" href="gstreamer-plugins-fdsrc.html#GstFdSrc--timeout" title='The "timeout" property'><span class="type">"timeout"</span></a> property is set to a value bigger than 0, fdsrc will
84 generate an element message named
85 <code class="classname">"GstFdSrcTimeout"</code>
86 if no data was recieved in the given timeout.
87 The message's structure contains one field:
89 <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
90 <span class="type">guint64</span>
91 <code class="classname">"timeout"</code>: the timeout in microseconds that
92 expired when waiting for data.
98 <div class="refsect2">
99 <a name="idp4924080"></a><h3>Example launch line</h3>
100 <div class="informalexample">
101 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
104 <td class="listing_lines" align="right"><pre>1</pre></td>
105 <td class="listing_code"><pre class="programlisting">echo <span class="string">"Hello GStreamer"</span> <span class="gtkdoc opt">|</span> gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v fdsrc <span class="gtkdoc opt">!</span> fakesink dump<span class="gtkdoc opt">=</span><span class="keyword">true</span></pre></td>
110 A simple pipeline to read from the standard input and dump the data
111 with a fakesink as hex ascii block.
116 Last reviewed on 2008-06-20 (0.10.21)
118 <div class="refsynopsisdiv">
120 <div class="refsect2">
121 <a name="idp9736896"></a><h3>Element Information</h3>
122 <div class="variablelist"><table border="0">
123 <col align="left" valign="top">
126 <td><p><span class="term">plugin</span></p></td>
128 <a class="link" href="gstreamer-plugins-plugin-coreelements.html#plugin-coreelements">coreelements</a>
132 <td><p><span class="term">author</span></p></td>
133 <td>Erik Walthinsen <omega@cse.ogi.edu></td>
136 <td><p><span class="term">class</span></p></td>
143 <div class="refsect2">
144 <a name="idp9744304"></a><h3>Element Pads</h3>
145 <div class="variablelist"><table border="0">
146 <col align="left" valign="top">
149 <td><p><span class="term">name</span></p></td>
153 <td><p><span class="term">direction</span></p></td>
157 <td><p><span class="term">presence</span></p></td>
161 <td><p><span class="term">details</span></p></td>
171 <div class="refsect1">
172 <a name="gstreamer-plugins-fdsrc.details"></a><h2>Details</h2>
173 <div class="refsect2">
174 <a name="GstFdSrc-struct"></a><h3>struct GstFdSrc</h3>
175 <pre class="programlisting">struct GstFdSrc;</pre>
177 Opaque <a class="link" href="gstreamer-plugins-fdsrc.html#GstFdSrc"><span class="type">GstFdSrc</span></a> data structure.
181 <div class="refsect1">
182 <a name="gstreamer-plugins-fdsrc.property-details"></a><h2>Property Details</h2>
183 <div class="refsect2">
184 <a name="GstFdSrc--fd"></a><h3>The <code class="literal">"fd"</code> property</h3>
185 <pre class="programlisting"> "fd" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
186 <p>An open file descriptor to read from.</p>
187 <p>Allowed values: >= 0</p>
188 <p>Default value: 0</p>
191 <div class="refsect2">
192 <a name="GstFdSrc--timeout"></a><h3>The <code class="literal">"timeout"</code> property</h3>
193 <pre class="programlisting"> "timeout" <span class="type">guint64</span> : Read / Write</pre>
195 Post a message after timeout microseconds
197 <p>Default value: 0</p>
198 <p class="since">Since 0.10.21</p>
201 <div class="refsect1">
202 <a name="gstreamer-plugins-fdsrc.see-also"></a><h2>See Also</h2>
203 <a class="link" href="gstreamer-plugins-fdsink.html#GstFdSink"><span class="type">GstFdSink</span></a>
208 Generated by GTK-Doc V1.18</div>