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-element-gdppay.html" title="gdppay">
10
<link rel="next" href="gst-plugins-base-plugins-element-giosrc.html" title="giosrc">
11
<meta name="generator" content="GTK-Doc V1.15 (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="gst-plugins-base-plugins-element-gdppay.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 Base Plugins 0.10 Plugins Reference Manual</th>
21
<td><a accesskey="n" href="gst-plugins-base-plugins-element-giosrc.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="#gst-plugins-base-plugins-element-giosink.synopsis" class="shortcut">Top</a>
26
<a href="#gst-plugins-base-plugins-element-giosink.description" class="shortcut">Description</a>
28
<a href="#gst-plugins-base-plugins-element-giosink.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#gst-plugins-base-plugins-element-giosink.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#gst-plugins-base-plugins-element-giosink.properties" class="shortcut">Properties</a>
35
<div class="refentry" title="giosink">
36
<a name="gst-plugins-base-plugins-element-giosink"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-element-giosink.top_of_page"></a>giosink</span></h2>
40
<p>giosink — Write to any GIO-supported location</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv" title="Synopsis">
45
<a name="gst-plugins-base-plugins-element-giosink.synopsis"></a><h2>Synopsis</h2>
46
<a name="GstGioSink"></a><pre class="synopsis"> <a class="link" href="gst-plugins-base-plugins-element-giosink.html#GstGioSink-struct" title="GstGioSink">GstGioSink</a>;
49
<div class="refsect1" title="Object Hierarchy">
50
<a name="gst-plugins-base-plugins-element-giosink.object-hierarchy"></a><h2>Object Hierarchy</h2>
51
<pre class="synopsis">
52
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
53
+----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstObject.html">GstObject</a>
54
+----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstElement.html">GstElement</a>
55
+----<a href="/usr/share/gtk-doc/html/gstreamer-libs-0.10/GstBaseSink.html">GstBaseSink</a>
60
<div class="refsect1" title="Implemented Interfaces">
61
<a name="gst-plugins-base-plugins-element-giosink.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
64
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/gstreamer-GstUriHandler.html#GstURIHandler">GstURIHandler</a>.</p>
66
<div class="refsect1" title="Properties">
67
<a name="gst-plugins-base-plugins-element-giosink.properties"></a><h2>Properties</h2>
68
<pre class="synopsis">
69
"<a class="link" href="gst-plugins-base-plugins-element-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
70
"<a class="link" href="gst-plugins-base-plugins-element-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
73
<div class="refsect1" title="Description">
74
<a name="gst-plugins-base-plugins-element-giosink.description"></a><h2>Description</h2>
76
This plugin writes incoming data to a local or remote location specified
77
by an URI. This location can be specified using any protocol supported by
78
the GIO library or it's VFS backends. Common protocols are 'file', 'ftp',
82
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
83
type <a href="/usr/share/gtk-doc/html/gstreamer-0.10/gstreamer-GstMessage.html#GST-MESSAGE-ELEMENT:CAPS"><code class="literal">GST_MESSAGE_ELEMENT</code></a> with name "file-exists" on the bus. The message
84
also contains the <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> and the corresponding URI.
85
Applications can use the "file-exists" message to notify the user about
86
the problem and to set a different target location or to remove the
87
existing file. Note that right after the "file-exists" message a normal
88
error message is posted on the bus which should be ignored if "file-exists"
89
is handled by the application, for example by calling
90
gst_bus_set_flushing(bus, TRUE) after the "file-exists" message was
91
received and gst_bus_set_flushing(bus, FALSE) after the problem is
95
Similar to the "file-exist" message a "not-mounted" message is posted
96
on the bus if the target location is not mounted yet and needs to be
97
mounted. This message can be used by application to mount the location
98
and retry after the location was mounted successfully.
100
<div class="refsect2" title="Example pipelines">
101
<a name="id608182"></a><h3>Example pipelines</h3>
102
<div class="informalexample">
103
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
106
<td class="listing_lines" align="right"><pre>1</pre></td>
107
<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>
112
The above pipeline will simply copy a local file. Instead of giosink,
113
we could just as well have used the filesink element here.
114
<div class="informalexample">
115
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
118
<td class="listing_lines" align="right"><pre>1</pre></td>
119
<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>
124
The above pipeline will re-encode an mp3 file into FLAC format and store
125
it on a remote host using the Samba protocol.
126
<div class="informalexample">
127
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
130
<td class="listing_lines" align="right"><pre>1</pre></td>
131
<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>
136
The above pipeline will encode a 440Hz sine wave to Ogg Vorbis and stores
137
it in the home directory of user foo.
140
<div class="refsect1" title="Details">
141
<a name="gst-plugins-base-plugins-element-giosink.details"></a><h2>Details</h2>
142
<div class="refsect2" title="GstGioSink">
143
<a name="GstGioSink-struct"></a><h3>GstGioSink</h3>
144
<pre class="programlisting">typedef struct _GstGioSink GstGioSink;</pre>
146
Opaque data structure.
150
<div class="refsect1" title="Property Details">
151
<a name="gst-plugins-base-plugins-element-giosink.property-details"></a><h2>Property Details</h2>
152
<div class="refsect2" title='The "location" property'>
153
<a name="GstGioSink--location"></a><h3>The <code class="literal">"location"</code> property</h3>
154
<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>
155
<p>URI location to write to.</p>
156
<p>Default value: NULL</p>
159
<div class="refsect2" title='The "file" property'>
160
<a name="GstGioSink--file"></a><h3>The <code class="literal">"file"</code> property</h3>
161
<pre class="programlisting"> "file" <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>* : Read / Write</pre>
163
<a href="/usr/share/gtk-doc/html/gio/GFile.html"><code class="literal">GFile</code></a> to write to.
165
<p class="since">Since 0.10.20</p>
168
<div class="refsect1" title="See Also">
169
<a name="gst-plugins-base-plugins-element-giosink.see-also"></a><h2>See Also</h2>
170
<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-element-giosrc.html#GstGioSrc"><span class="type">GstGioSrc</span></a>
175
Generated by GTK-Doc V1.15</div>
b'\\ No newline at end of file'