1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>speexenc</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-good Elements">
9 <link rel="prev" href="gst-plugins-good-plugins-spectrum.html" title="spectrum">
10 <link rel="next" href="gst-plugins-good-plugins-speexdec.html" title="speexdec">
11 <meta name="generator" content="GTK-Doc V1.17 (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-good-plugins-spectrum.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 Good Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-good-plugins-speexdec.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-good-plugins-speexenc.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-good-plugins-speexenc.description" class="shortcut">Description</a>
28 <a href="#gst-plugins-good-plugins-speexenc.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gst-plugins-good-plugins-speexenc.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32 <a href="#gst-plugins-good-plugins-speexenc.properties" class="shortcut">Properties</a>
35 <div class="refentry">
36 <a name="gst-plugins-good-plugins-speexenc"></a><div class="titlepage"></div>
37 <div class="refnamediv"><table width="100%"><tr>
39 <h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-speexenc.top_of_page"></a>speexenc</span></h2>
40 <p>speexenc — Encodes audio in Speex format</p>
42 <td valign="top" align="right"></td>
44 <div class="refsynopsisdiv">
45 <a name="gst-plugins-good-plugins-speexenc.synopsis"></a><h2>Synopsis</h2>
46 <a name="GstSpeexEnc"></a><pre class="synopsis">struct <a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc-struct" title="struct GstSpeexEnc">GstSpeexEnc</a>;
49 <div class="refsect1">
50 <a name="gst-plugins-good-plugins-speexenc.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>
58 <div class="refsect1">
59 <a name="gst-plugins-good-plugins-speexenc.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
61 GstSpeexEnc implements
62 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstTagSetter.html">GstTagSetter</a> and <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPreset.html">GstPreset</a>.</p>
64 <div class="refsect1">
65 <a name="gst-plugins-good-plugins-speexenc.properties"></a><h2>Properties</h2>
66 <pre class="synopsis">
67 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--abr" title='The "abr" property'>abr</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
68 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--bitrate" title='The "bitrate" property'>bitrate</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
69 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--complexity" title='The "complexity" property'>complexity</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="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--dtx" title='The "dtx" property'>dtx</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
71 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--last-message" title='The "last-message" property'>last-message</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
72 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--nframes" title='The "nframes" property'>nframes</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
73 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--quality" title='The "quality" property'>quality</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write
74 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--vad" title='The "vad" property'>vad</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
75 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--vbr" title='The "vbr" property'>vbr</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
76 "<a class="link" href="gst-plugins-good-plugins-speexenc.html#GstSpeexEnc--mode" title='The "mode" property'>mode</a>" <span class="type">GstSpeexEncMode</span> : Read / Write
79 <div class="refsect1">
80 <a name="gst-plugins-good-plugins-speexenc.description"></a><h2>Description</h2>
82 This element encodes audio as a Speex stream.
83 <a class="ulink" href="http://www.speex.org/" target="_top">Speex</a> is a royalty-free
84 audio codec maintained by the <a class="ulink" href="http://www.xiph.org/" target="_top">Xiph.org
89 <div class="refsect2">
90 <a name="idp17934432"></a><h3>Example pipelines</h3>
91 <div class="informalexample">
92 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
95 <td class="listing_lines" align="right"><pre>1</pre></td>
96 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch audiotestsrc num<span class="gtkdoc opt">-</span>buffers<span class="gtkdoc opt">=</span><span class="number">100</span> <span class="gtkdoc opt">!</span> speexenc <span class="gtkdoc opt">!</span> oggmux <span class="gtkdoc opt">!</span> filesink location<span class="gtkdoc opt">=</span>beep<span class="gtkdoc opt">.</span>ogg</pre></td>
101 Encode an Ogg/Speex file.
105 <div class="refsynopsisdiv">
107 <div class="refsect2">
108 <a name="idp21293088"></a><h3>Element Information</h3>
109 <div class="variablelist"><table border="0">
110 <col align="left" valign="top">
113 <td><p><span class="term">plugin</span></p></td>
115 <a class="link" href="gst-plugins-good-plugins-plugin-speex.html#plugin-speex">speex</a>
119 <td><p><span class="term">author</span></p></td>
120 <td>Wim Taymans <wim@fluendo.com></td>
123 <td><p><span class="term">class</span></p></td>
124 <td>Codec/Encoder/Audio</td>
130 <div class="refsect2">
131 <a name="idp18816368"></a><h3>Element Pads</h3>
132 <div class="variablelist"><table border="0">
133 <col align="left" valign="top">
136 <td><p><span class="term">name</span></p></td>
140 <td><p><span class="term">direction</span></p></td>
144 <td><p><span class="term">presence</span></p></td>
148 <td><p><span class="term">details</span></p></td>
149 <td>audio/x-raw-int, rate=(int)[ 6000, 48000 ], channels=(int)[ 1, 2 ], endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16</td>
153 <div class="variablelist"><table border="0">
154 <col align="left" valign="top">
157 <td><p><span class="term">name</span></p></td>
161 <td><p><span class="term">direction</span></p></td>
165 <td><p><span class="term">presence</span></p></td>
169 <td><p><span class="term">details</span></p></td>
170 <td>audio/x-speex, rate=(int)[ 6000, 48000 ], channels=(int)[ 1, 2 ]</td>
179 <div class="refsect1">
180 <a name="gst-plugins-good-plugins-speexenc.details"></a><h2>Details</h2>
181 <div class="refsect2">
182 <a name="GstSpeexEnc-struct"></a><h3>struct GstSpeexEnc</h3>
183 <pre class="programlisting">struct GstSpeexEnc;</pre>
188 <div class="refsect1">
189 <a name="gst-plugins-good-plugins-speexenc.property-details"></a><h2>Property Details</h2>
190 <div class="refsect2">
191 <a name="GstSpeexEnc--abr"></a><h3>The <code class="literal">"abr"</code> property</h3>
192 <pre class="programlisting"> "abr" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
193 <p>Enable average bit-rate (0 = disabled).</p>
194 <p>Allowed values: >= 0</p>
195 <p>Default value: 0</p>
198 <div class="refsect2">
199 <a name="GstSpeexEnc--bitrate"></a><h3>The <code class="literal">"bitrate"</code> property</h3>
200 <pre class="programlisting"> "bitrate" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
201 <p>Specify an encoding bit-rate (in bps). (0 = automatic).</p>
202 <p>Allowed values: >= 0</p>
203 <p>Default value: 0</p>
206 <div class="refsect2">
207 <a name="GstSpeexEnc--complexity"></a><h3>The <code class="literal">"complexity"</code> property</h3>
208 <pre class="programlisting"> "complexity" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
209 <p>Set encoding complexity.</p>
210 <p>Allowed values: >= 0</p>
211 <p>Default value: 3</p>
214 <div class="refsect2">
215 <a name="GstSpeexEnc--dtx"></a><h3>The <code class="literal">"dtx"</code> property</h3>
216 <pre class="programlisting"> "dtx" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
217 <p>Enable discontinuous transmission.</p>
218 <p>Default value: FALSE</p>
221 <div class="refsect2">
222 <a name="GstSpeexEnc--last-message"></a><h3>The <code class="literal">"last-message"</code> property</h3>
223 <pre class="programlisting"> "last-message" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
224 <p>The last status message.</p>
225 <p>Default value: NULL</p>
228 <div class="refsect2">
229 <a name="GstSpeexEnc--nframes"></a><h3>The <code class="literal">"nframes"</code> property</h3>
230 <pre class="programlisting"> "nframes" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
231 <p>Number of frames per buffer.</p>
232 <p>Allowed values: >= 0</p>
233 <p>Default value: 1</p>
236 <div class="refsect2">
237 <a name="GstSpeexEnc--quality"></a><h3>The <code class="literal">"quality"</code> property</h3>
238 <pre class="programlisting"> "quality" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write</pre>
239 <p>Encoding quality.</p>
240 <p>Allowed values: [0,10]</p>
241 <p>Default value: 8</p>
244 <div class="refsect2">
245 <a name="GstSpeexEnc--vad"></a><h3>The <code class="literal">"vad"</code> property</h3>
246 <pre class="programlisting"> "vad" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
247 <p>Enable voice activity detection.</p>
248 <p>Default value: FALSE</p>
251 <div class="refsect2">
252 <a name="GstSpeexEnc--vbr"></a><h3>The <code class="literal">"vbr"</code> property</h3>
253 <pre class="programlisting"> "vbr" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
254 <p>Enable variable bit-rate.</p>
255 <p>Default value: FALSE</p>
258 <div class="refsect2">
259 <a name="GstSpeexEnc--mode"></a><h3>The <code class="literal">"mode"</code> property</h3>
260 <pre class="programlisting"> "mode" <span class="type">GstSpeexEncMode</span> : Read / Write</pre>
261 <p>The encoding mode.</p>
262 <p>Default value: Auto</p>
265 <div class="refsect1">
266 <a name="gst-plugins-good-plugins-speexenc.see-also"></a><h2>See Also</h2>
272 Generated by GTK-Doc V1.17</div>