Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 6d445a7e34cab500c4a729b1f6c7a5fd > files > 170

lib64gstreamer-plugins-base0.10-devel-0.10.17-3mdv2008.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>audioconvert</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GStreamer Base Plugins 0.10 Plugins Reference Manual">
<link rel="up" href="ch01.html" title="gst-plugins-base Elements">
<link rel="prev" href="gst-plugins-base-plugins-alsasrc.html" title="alsasrc">
<link rel="next" href="gst-plugins-base-plugins-audioresample.html" title="audioresample">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="gst-plugins-base Elements">
<link rel="chapter" href="ch02.html" title="gst-plugins-base Plugins">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gst-plugins-base-plugins-alsasrc.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GStreamer Base Plugins 0.10 Plugins Reference Manual</th>
<td><a accesskey="n" href="gst-plugins-base-plugins-audioresample.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2590717" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2576121" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id2590676" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id2590628" class="shortcut">Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gst-plugins-base-plugins-audioconvert"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2590717"></a><span class="refentrytitle">audioconvert</span>
</h2>
<p>audioconvert &#8212; Convert audio to different formats</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="GstAudioConvert"></a><pre class="synopsis">



                    <a href="gst-plugins-base-plugins-audioconvert.html#GstAudioConvert-struct">GstAudioConvert</a>;

</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2590676"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstAudioConvert
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2590628"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a href="gst-plugins-base-plugins-audioconvert.html#GstAudioConvert--dithering">dithering</a>"                GstAudioConvertDithering  : Read / Write
  "<a href="gst-plugins-base-plugins-audioconvert.html#GstAudioConvert--noise-shaping">noise-shaping</a>"            GstAudioConvertNoiseShaping  : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2576121"></a><h2>Description</h2>
<p>
</p>
<div class="refsect2" lang="en">
<a name="id2588500"></a><p>
Audioconvert converts raw audio buffers between various possible formats.
It supports integer to float conversion, width/depth conversion,
signedness and endianness conversion.
</p>
<p>
Some format conversion are not carried out in an optimal way right now.
E.g. converting from double to float would cause a loss of precision.
</p>
<h3>Example launch line</h3>
<p>
</p>
<pre class="programlisting">
gst-launch -v -m audiotestsrc ! audioconvert ! audio/x-raw-int,channels=2,width=8,depth=8 ! level ! fakesink silent=TRUE
</pre>
<p>
This pipeline converts audio to 8-bit.  The level element shows that
the output levels still match the one for a sine wave.
</p>
<p>
</p>
<pre class="programlisting">
gst-launch -v -m audiotestsrc ! audioconvert ! vorbisenc ! fakesink silent=TRUE
</pre>
<p>
The vorbis encoder takes float audio data instead of the integer data
generated by audiotestsrc.
</p>
</div>
<p>
</p>
<p>
Last reviewed on 2006-03-02 (0.10.4)</p>
<div class="refsect2" lang="en">
<a name="id2570340"></a><h3>Element Information</h3>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">plugin</span></td>
<td>
          <a href="gst-plugins-base-plugins-plugin-audioconvert.html#plugin-audioconvert">audioconvert</a>
        </td>
</tr>
<tr>
<td><span class="term">author</span></td>
<td>Benjamin Otte &lt;in7y118@public.uni-hamburg.de&gt;</td>
</tr>
<tr>
<td><span class="term">class</span></td>
<td>Filter/Converter/Audio</td>
</tr>
</tbody>
</table></div>
<h3>Element Pads</h3>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>src</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>source</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>always</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)64; audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)32; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)32, depth=(int)[ 1, 32 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)24, depth=(int)[ 1, 24 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)16, depth=(int)[ 1, 16 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)8, depth=(int)[ 1, 8 ], signed=(boolean){ true, false }</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>sink</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>sink</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>always</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)64; audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)32; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)32, depth=(int)[ 1, 32 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)24, depth=(int)[ 1, 24 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)16, depth=(int)[ 1, 16 ], signed=(boolean){ true, false }; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 8 ], endianness=(int){ 1234, 4321 }, width=(int)8, depth=(int)[ 1, 8 ], signed=(boolean){ true, false }</td>
</tr>
</tbody>
</table></div>
</div>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2585484"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2579906"></a><h3>
<a name="GstAudioConvert-struct"></a>GstAudioConvert</h3>
<a class="indexterm" name="id2579918"></a><pre class="programlisting">typedef struct _GstAudioConvert GstAudioConvert;</pre>
<p>
The audioconvert object structure.</p>
<p>

</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2579939"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2579950"></a><h3>
<a name="GstAudioConvert--dithering"></a>The "<code class="literal">dithering</code>" property</h3>
<a class="indexterm" name="id2579964"></a><pre class="programlisting">  "dithering"                GstAudioConvertDithering  : Read / Write</pre>
<p>Selects between different dithering methods.</p>
<p>Default value: Triangular dithering (default)</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2579989"></a><h3>
<a name="GstAudioConvert--noise-shaping"></a>The "<code class="literal">noise-shaping</code>" property</h3>
<a class="indexterm" name="id2580003"></a><pre class="programlisting">  "noise-shaping"            GstAudioConvertNoiseShaping  : Read / Write</pre>
<p>Selects between different noise shaping methods.</p>
<p>Default value: No noise shaping (default)</p>
</div>
</div>
</div>
</body>
</html>