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.75.2">
7
<link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Plugins Reference Manual">
8
<link rel="up" href="ch01.html" title="gst-plugins-base Elements">
9
<link rel="prev" href="gst-plugins-base-plugins-gdppay.html" title="gdppay">
10
<link rel="next" href="gst-plugins-base-plugins-giosrc.html" title="giosrc">
11
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="ch01.html" title="gst-plugins-base Elements">
14
<link rel="chapter" href="ch02.html" title="gst-plugins-base Plugins">
15
<link rel="chapter" href="ch03.html" title="gst-plugins-base Classes">
17
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
20
<td><a accesskey="p" href="gst-plugins-base-plugins-gdppay.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
21
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
23
<th width="100%" align="center">GStreamer Base Plugins 0.10 Plugins Reference Manual</th>
24
<td><a accesskey="n" href="gst-plugins-base-plugins-giosrc.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26
<tr><td colspan="5" class="shortcuts">
27
<a href="#gst-plugins-base-plugins-giosink.synopsis" class="shortcut">Top</a>
29
<a href="#gst-plugins-base-plugins-giosink.description" class="shortcut">Description</a>
31
<a href="#gst-plugins-base-plugins-giosink.object-hierarchy" class="shortcut">Object Hierarchy</a>
33
<a href="#gst-plugins-base-plugins-giosink.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
35
<a href="#gst-plugins-base-plugins-giosink.properties" class="shortcut">Properties</a>
38
<div class="refentry" title="giosink">
39
<a name="gst-plugins-base-plugins-giosink"></a><div class="titlepage"></div>
40
<div class="refnamediv"><table width="100%"><tr>
42
<h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-giosink.top_of_page"></a>giosink</span></h2>
43
<p>giosink — Write to any GIO-supported location</p>
45
<td valign="top" align="right"></td>
47
<div class="refsynopsisdiv" title="Synopsis">
48
<a name="gst-plugins-base-plugins-giosink.synopsis"></a><h2>Synopsis</h2>
49
<a name="GstGioSink"></a><pre class="synopsis"> <a class="link" href="gst-plugins-base-plugins-giosink.html#GstGioSink-struct" title="GstGioSink">GstGioSink</a>;
52
<div class="refsect1" title="Object Hierarchy">
53
<a name="gst-plugins-base-plugins-giosink.object-hierarchy"></a><h2>Object Hierarchy</h2>
54
<pre class="synopsis">
55
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
56
+----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstObject.html">GstObject</a>
57
+----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstElement.html">GstElement</a>
58
+----<a href="/usr/share/gtk-doc/html/gstreamer-libs-0.10/GstBaseSink.html">GstBaseSink</a>
63
<div class="refsect1" title="Implemented Interfaces">
64
<a name="gst-plugins-base-plugins-giosink.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
67
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/gstreamer-GstUriHandler.html#GstURIHandler">GstURIHandler</a>.</p>
69
<div class="refsect1" title="Properties">
70
<a name="gst-plugins-base-plugins-giosink.properties"></a><h2>Properties</h2>
71
<pre class="synopsis">
72
"<a class="link" href="gst-plugins-base-plugins-giosink.html#GstGioSink--location" title='The "location" property'>location</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
73
"<a class="link" href="gst-plugins-base-plugins-giosink.html#GstGioSink--file" title='The "file" property'>file</a>" <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>* : Read / Write
76
<div class="refsect1" title="Description">
77
<a name="gst-plugins-base-plugins-giosink.description"></a><h2>Description</h2>
79
This plugin writes incoming data to a local or remote location specified
80
by an URI. This location can be specified using any protocol supported by
81
the GIO library or it's VFS backends. Common protocols are 'file', 'ftp',
85
If the URI or <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> already exists giosink will post a message of
86
type <code class="literal">GST_MESSAGE_ELEMENT</code> with name "file-exists" on the bus. The message
87
also contains the <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> and the corresponding URI.
88
Applications can use the "file-exists" message to notify the user about
89
the problem and to set a different target location or to remove the
90
existing file. Note that right after the "file-exists" message a normal
91
error message is posted on the bus which should be ignored if "file-exists"
92
is handled by the application, for example by calling
93
gst_bus_set_flushing(bus, TRUE) after the "file-exists" message was
94
received and gst_bus_set_flushing(bus, FALSE) after the problem is
98
Similar to the "file-exist" message a "not-mounted" message is posted
99
on the bus if the target location is not mounted yet and needs to be
100
mounted. This message can be used by application to mount the location
101
and retry after the location was mounted successfully.
105
<div class="refsect2" title="Example pipelines">
106
<a name="id422557"></a><h3>Example pipelines</h3>
107
<div class="informalexample">
108
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
111
<td class="listing_lines" align="right"><pre>1</pre></td>
112
<td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>v filesrc location<span class="symbol">=</span>input<span class="symbol">.</span>xyz <span class="symbol">!</span> giosink location<span class="symbol">=</span>file<span class="symbol">:</span><span class="gtkdoc slc">///home/joe/out.xyz</span></pre></td>
117
The above pipeline will simply copy a local file. Instead of giosink,
118
we could just as well have used the filesink element here.
119
<div class="informalexample">
120
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
123
<td class="listing_lines" align="right"><pre>1</pre></td>
124
<td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>v filesrc location<span class="symbol">=</span>foo<span class="symbol">.</span>mp3 <span class="symbol">!</span> mad <span class="symbol">!</span> flacenc <span class="symbol">!</span> giosink location<span class="symbol">=</span>smb<span class="symbol">:</span><span class="gtkdoc slc">//othercomputer/foo.flac</span></pre></td>
129
The above pipeline will re-encode an mp3 file into FLAC format and store
130
it on a remote host using the Samba protocol.
131
<div class="informalexample">
132
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
135
<td class="listing_lines" align="right"><pre>1</pre></td>
136
<td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>v audiotestsrc num<span class="symbol">-</span>buffers<span class="symbol">=</span><span class="number">100</span> <span class="symbol">!</span> vorbisenc <span class="symbol">!</span> oggmux <span class="symbol">!</span> giosink location<span class="symbol">=</span>file<span class="symbol">:</span><span class="gtkdoc slc">///home/foo/bar.ogg</span></pre></td>
141
The above pipeline will encode a 440Hz sine wave to Ogg Vorbis and stores
142
it in the home directory of user foo.
145
<div class="refsect1" title="Details">
146
<a name="gst-plugins-base-plugins-giosink.details"></a><h2>Details</h2>
147
<div class="refsect2" title="GstGioSink">
148
<a name="GstGioSink-struct"></a><h3>GstGioSink</h3>
149
<pre class="programlisting">typedef struct _GstGioSink GstGioSink;</pre>
151
Opaque data structure.</p>
154
<div class="refsect1" title="Property Details">
155
<a name="gst-plugins-base-plugins-giosink.property-details"></a><h2>Property Details</h2>
156
<div class="refsect2" title='The "location" property'>
157
<a name="GstGioSink--location"></a><h3>The <code class="literal">"location"</code> property</h3>
158
<pre class="programlisting"> "location" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
159
<p>URI location to write to.</p>
160
<p>Default value: NULL</p>
163
<div class="refsect2" title='The "file" property'>
164
<a name="GstGioSink--file"></a><h3>The <code class="literal">"file"</code> property</h3>
165
<pre class="programlisting"> "file" <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>* : Read / Write</pre>
167
<a href="/usr/share/gtk-doc/html/gio/GFile.html"><code class="literal">GFile</code></a> to write to.</p>
168
<p class="since">Since 0.10.20</p>
171
<div class="refsect1" title="See Also">
172
<a name="gst-plugins-base-plugins-giosink.see-also"></a><h2>See Also</h2>
173
<a href="/usr/share/gtk-doc/html/gstreamer-plugins-0.10/gstreamer-plugins-filesink.html#GstFileSink"><span class="type">GstFileSink</span></a>, <a class="link" href="gst-plugins-base-plugins-gnomevfssink.html#GstGnomeVFSSink"><span class="type">GstGnomeVFSSink</span></a>, <a class="link" href="gst-plugins-base-plugins-giosrc.html#GstGioSrc"><span class="type">GstGioSrc</span></a>
178
Generated by GTK-Doc V1.13</div>
b'\\ No newline at end of file'