4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>udpsrc</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7
7
<link rel="start" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
8
8
<link rel="up" href="ch01.html" title="gst-plugins-good Elements">
9
9
<link rel="prev" href="gst-plugins-good-plugins-smokeenc.html" title="smokeenc">
10
10
<link rel="next" href="gst-plugins-good-plugins-videobalance.html" title="videobalance">
11
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="gst-plugins-good Elements">
14
14
<link rel="chapter" href="ch02.html" title="gst-plugins-good Plugins">
22
22
<th width="100%" align="center">GStreamer Good Plugins 0.10 Plugins Reference Manual</th>
23
23
<td><a accesskey="n" href="gst-plugins-good-plugins-videobalance.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
25
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
27
<a href="#desc" class="shortcut">Description</a>
29
<a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
31
<a href="#properties" class="shortcut">Properties</a></nobr></td></tr>
25
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id294197" class="shortcut">Top</a>
27
<a href="#id334182" class="shortcut">Description</a>
29
<a href="#id315661" class="shortcut">Object Hierarchy</a>
31
<a href="#id315716" class="shortcut">Implemented Interfaces</a>
33
<a href="#id309086" class="shortcut">Properties</a></nobr></td></tr>
33
35
<div class="refentry" lang="en">
34
36
<a name="gst-plugins-good-plugins-udpsrc"></a><div class="titlepage"></div>
35
37
<div class="refnamediv"><table width="100%"><tr>
37
<h2><span class="refentrytitle"><a name="top_of_page"></a>udpsrc</span></h2>
40
<a name="id294197"></a><span class="refentrytitle">udpsrc</span>
38
42
<p>udpsrc — Receive data over the network via UDP</p>
40
44
<td valign="top" align="right"></td>
41
45
</tr></table></div>
42
46
<div class="refsynopsisdiv">
43
<a name="synopsis"></a><h2>Synopsis</h2>
44
48
<a name="GstUDPSrc"></a><pre class="synopsis">
52
56
<div class="refsect1" lang="en">
53
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
57
<a name="id315661"></a><h2>Object Hierarchy</h2>
54
58
<pre class="synopsis">
57
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
60
href="/usr/share/gtk-doc/html/gstreamer/GstObject.html"
63
href="/usr/share/gtk-doc/html/gstreamer/GstElement.html"
66
href="/usr/share/gtk-doc/html/gstreamer-libs/gstreamer-libs-GstBaseSrc.html#GstBaseSrc"
69
href="/usr/share/gtk-doc/html/gstreamer-libs/gstreamer-libs-GstPushSrc.html#GstPushSrc"
74
68
<div class="refsect1" lang="en">
75
<a name="impl_interfaces"></a><h2>Implemented Interfaces</h2>
69
<a name="id315716"></a><h2>Implemented Interfaces</h2>
77
71
GstUDPSrc implements
79
href="/usr/share/gtk-doc/html/gstreamer/gstreamer-GstUriHandler.html#GstURIHandler"
80
>GstURIHandler</a>.</p>
82
74
<div class="refsect1" lang="en">
83
<a name="properties"></a><h2>Properties</h2>
75
<a name="id309086"></a><h2>Properties</h2>
84
76
<pre class="synopsis">
86
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--caps">caps</a>" <a
87
href="/usr/share/gtk-doc/html/gstreamer/gstreamer-GstCaps.html#GstCaps"
88
>GstCaps</a> : Read / Write
89
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--multicast-group">multicast-group</a>" <a
90
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
91
>gchararray</a> : Read / Write
92
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--port">port</a>" <a
93
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
94
>gint</a> : Read / Write
95
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--uri">uri</a>" <a
96
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
97
>gchararray</a> : Read / Write
98
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--sockfd">sockfd</a>" <a
99
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
100
>gint</a> : Read / Write
78
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--caps">caps</a>" GstCaps : Read / Write
79
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--multicast-group">multicast-group</a>" gchararray : Read / Write
80
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--port">port</a>" gint : Read / Write
81
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--uri">uri</a>" gchararray : Read / Write
82
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--sockfd">sockfd</a>" gint : Read / Write
83
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--buffer-size">buffer-size</a>" gint : Read / Write
84
"<a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--timeout">timeout</a>" guint64 : Read / Write
103
87
<div class="refsect1" lang="en">
104
<a name="desc"></a><h2>Description</h2>
88
<a name="id334182"></a><h2>Description</h2>
107
91
<div class="refsect2" lang="en">
108
<a name="id2630206"></a><p>
92
<a name="id334195"></a><p>
109
93
udpsrc is a network source that reads UDP packets from the network.
110
94
It can be combined with RTP depayloaders to implement RTP streaming.
171
Last reviewed on 2006-07-27 (0.10.4)
155
If the <a href="gst-plugins-good-plugins-udpsrc.html#GstUDPSrc--timeout">timeout property</a> is set to a
156
value bigger than 0, udpsrc will generate an element message named
157
<code class="classname">"GstUDPSrcTimeout"</code>:
158
if no data was recieved in the given timeout.
159
The message's structure contains one field:
161
<div class="itemizedlist"><ul type="disc"><li><p>
162
<span class="type">guint64</span>
163
<code class="classname">"timeout"</code>: the timeout in microseconds that
164
expired when waiting for data.
167
The message is typically used to detect that no UDP arrives in the receiver
168
because it is blocked by a firewall.
171
Last reviewed on 2006-09-29 (0.10.5)
174
174
<div class="refsect2" lang="en">
175
<a name="id2630301"></a><h3>Element Information</h3>
176
<div class="variablelist"><table border="0">
175
<a name="id335664"></a><h3>Element Information</h3>
176
<div class="variablelist">
177
<span class="term">plugin</span>
178
<a href="gst-plugins-good-plugins-plugin-udp.html#plugin-udp">udp</a>
180
<a href="gst-plugins-good-plugins-plugin-udp.html#plugin-udp">udp</a>
181
<a href="gst-plugins-good-plugins-plugin-udp.html#plugin-udp">udp</a><span class="term">author</span>Wim Taymans <wim@fluendo.com>
182
Thijs Vermeir <thijs.vermeir@barco.com>Wim Taymans <wim@fluendo.com>
183
Thijs Vermeir <thijs.vermeir@barco.com><span class="term">class</span>Source/NetworkSource/Network<table border="0">
177
184
<col align="left" valign="top">
194
202
<td>Source/Network</td>
203
212
<div class="refsect1" lang="en">
204
<a name="details"></a><h2>Details</h2>
213
<a name="id335732"></a><h2>Details</h2>
205
214
<div class="refsect2" lang="en">
206
<a name="id2627378"></a><h3>
215
<a name="id335743"></a><h3>
207
216
<a name="GstUDPSrc-struct"></a>GstUDPSrc</h3>
208
<a class="indexterm" name="id2627390"></a><pre class="programlisting">typedef struct _GstUDPSrc GstUDPSrc;</pre>
217
<a class="indexterm" name="id335755"></a><pre class="programlisting">typedef struct _GstUDPSrc GstUDPSrc;</pre>
214
223
<div class="refsect1" lang="en">
215
<a name="property_details"></a><h2>Property Details</h2>
224
<a name="id335772"></a><h2>Property Details</h2>
216
225
<div class="refsect2" lang="en">
217
<a name="id2627418"></a><h3>
226
<a name="id335782"></a><h3>
218
227
<a name="GstUDPSrc--caps"></a>The "<code class="literal">caps</code>" property</h3>
219
<a class="indexterm" name="id2627432"></a><pre class="programlisting"> "caps" <a
220
href="/usr/share/gtk-doc/html/gstreamer/gstreamer-GstCaps.html#GstCaps"
221
>GstCaps</a> : Read / Write</pre>
228
<a class="indexterm" name="id335797"></a><pre class="programlisting"> "caps" GstCaps : Read / Write</pre>
222
229
<p>The caps of the source pad.</p>
225
232
<div class="refsect2" lang="en">
226
<a name="id2627453"></a><h3>
233
<a name="id335819"></a><h3>
227
234
<a name="GstUDPSrc--multicast-group"></a>The "<code class="literal">multicast-group</code>" property</h3>
228
<a class="indexterm" name="id2627467"></a><pre class="programlisting"> "multicast-group" <a
229
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
230
>gchararray</a> : Read / Write</pre>
235
<a class="indexterm" name="id335834"></a><pre class="programlisting"> "multicast-group" gchararray : Read / Write</pre>
231
236
<p>The Address of multicast group to join.</p>
232
237
<p>Default value: "0.0.0.0"</p>
235
240
<div class="refsect2" lang="en">
236
<a name="id2627492"></a><h3>
241
<a name="id335859"></a><h3>
237
242
<a name="GstUDPSrc--port"></a>The "<code class="literal">port</code>" property</h3>
238
<a class="indexterm" name="id2627507"></a><pre class="programlisting"> "port" <a
239
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
240
>gint</a> : Read / Write</pre>
243
<a class="indexterm" name="id335874"></a><pre class="programlisting"> "port" gint : Read / Write</pre>
241
244
<p>The port to receive the packets from, 0=allocate.</p>
242
245
<p>Allowed values: [0,65535]</p>
243
246
<p>Default value: 4951</p>
246
249
<div class="refsect2" lang="en">
247
<a name="id2627536"></a><h3>
250
<a name="id339015"></a><h3>
248
251
<a name="GstUDPSrc--uri"></a>The "<code class="literal">uri</code>" property</h3>
249
<a class="indexterm" name="id2627551"></a><pre class="programlisting"> "uri" <a
250
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
251
>gchararray</a> : Read / Write</pre>
252
<a class="indexterm" name="id339028"></a><pre class="programlisting"> "uri" gchararray : Read / Write</pre>
252
253
<p>URI in the form of udp://multicast_group:port.</p>
253
254
<p>Default value: "udp://0.0.0.0:4951"</p>
256
257
<div class="refsect2" lang="en">
257
<a name="id2627577"></a><h3>
258
<a name="id339050"></a><h3>
258
259
<a name="GstUDPSrc--sockfd"></a>The "<code class="literal">sockfd</code>" property</h3>
259
<a class="indexterm" name="id2627592"></a><pre class="programlisting"> "sockfd" <a
260
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
261
>gint</a> : Read / Write</pre>
260
<a class="indexterm" name="id339062"></a><pre class="programlisting"> "sockfd" gint : Read / Write</pre>
262
261
<p>Socket to use for UDP reception. (-1 == allocate).</p>
263
<p>Allowed values: >= -1</p>
262
<p>Allowed values: >= G_MAXULONG</p>
264
263
<p>Default value: -1</p>
266
<div class="refsect2" lang="en">
267
<a name="id339087"></a><h3>
268
<a name="GstUDPSrc--buffer-size"></a>The "<code class="literal">buffer-size</code>" property</h3>
269
<a class="indexterm" name="id339100"></a><pre class="programlisting"> "buffer-size" gint : Read / Write</pre>
270
<p>Size of the kernel receive buffer in bytes, 0=default.</p>
271
<p>Allowed values: >= 0</p>
272
<p>Default value: 0</p>
275
<div class="refsect2" lang="en">
276
<a name="id339125"></a><h3>
277
<a name="GstUDPSrc--timeout"></a>The "<code class="literal">timeout</code>" property</h3>
278
<a class="indexterm" name="id339138"></a><pre class="programlisting"> "timeout" guint64 : Read / Write</pre>
279
<p>Post a message after timeout microseconds (0 = disabled).</p>
280
<p>Default value: 0</p>
267
283
<div class="refsect1" lang="en">
268
<a name="id2657260"></a><h2>See Also</h2>
284
<a name="id339161"></a><h2>See Also</h2>
269
285
udpsink, multifdsink