Hello,<br><br>I&#39;ve effectively an equalization thanks to your modifications on the plugin.<br>The equalization is well working on a mono file. But I&#39;ve some problems with stereo files.<br><br>In stereo, I always have to define a frequency at 4kHz so as to have a cutting-frequency at 8kHz.<br>
Moreover, I observe a difference between left channel and right channel. If I define the frequency at 4khz and a bandwidth of 2kHz, left channel has a cutting frequency at 7kHz and right channel has a cutting frequency at 9kHz.<br>
We also have a difference of 3dB after the equalized band.<br><br>You can see in attachment the observed results, obtained with the following command line:<br><br>gst-launch filesrc=test.mp3 ! ffdemux_mp3 ! mfw_mp3decoder ! equalizer-nbands num-bands=1 band0::gain=-10 band0::freq=4000 band0::bandwidth=2000 ! alsasink<br>
<br>First graph is obtained width a mono file, and second graph is obtained with a stereo file. <br><br>Do you have some explanation? Why the defined frequency is not the same that the observed cutting frequency, and why have I a difference between right channel and left channel?<br>
<br>Thanks for your help,<br>Sabine<br><br><div class="gmail_quote">2009/2/3 Stefan Kost <span dir="ltr">&lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
sabine donzé schrieb:<br>
<div><div></div><div class="Wj3C7c">&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m using the equalizer-nbands plugin from gst-plugins-good_0.10.7.<br>
&gt; However, if I configure the frequency for one or for each band, the<br>
&gt; observed cutoff frequency is not the same than the defined frequency.<br>
&gt;<br>
&gt; For example:<br>
&gt;<br>
&gt; gst-launch filesrc location=toto.mp3 ! ffdemux_mp3 ! mfw_mp3decoder !<br>
&gt; equalizer-nbands num-bands=4 band0::gain=-21 band0::frequency=947<br>
&gt; band0::bandwidth=100 ! alsasink<br>
&gt;<br>
&gt; I should have a cutting frequency at 957Hz for band0.<br>
&gt; In logfile, I observe that gain, frequency and bandwidth have been<br>
&gt; correctly changed. But in setup_filter function, frequency is not at<br>
&gt; defined value:<br>
&gt;<br>
&gt; 0:00:00.516575000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 0]<br>
&gt; = &#39;66.234133&#39;<br>
&gt; 0:00:00.517031000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 1]<br>
&gt; = &#39;372.461899&#39;<br>
&gt; 0:00:00.517357000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 2]<br>
&gt; = &#39;2094.507176&#39;<br>
&gt; 0:00:00.517678000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 3]<br>
&gt; = &#39;11778.279410&#39;<br>
&gt; 0:00:00.518174000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:290:gst_iir_equalizer_child_proxy_get_children_count:<br>
&gt; we have 4 children<br>
&gt; 0:00:00.518600000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:281:gst_iir_equalizer_child_proxy_get_child_by_index:<br>
&gt; return child[0] &#39;band0&#39;<br>
&gt; 0:00:00.519124000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:136:gst_iir_equalizer_band_set_property:&lt;band0&gt; gain<br>
&gt; = 0.000000 -&gt; -21.000000<br>
&gt;<br>
&gt; 0:00:00.519571000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:146:gst_iir_equalizer_band_set_property:&lt;band0&gt;<br>
&gt; changed gain = -21.000000<br>
&gt; 0:00:00.520126000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:290:gst_iir_equalizer_child_proxy_get_children_count:<br>
&gt; we have 4 children<br>
&gt; 0:00:00.520444000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:281:gst_iir_equalizer_child_proxy_get_child_by_index:<br>
&gt; return child[0] &#39;band0&#39;<br>
&gt; 0:00:00.520852000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:154:gst_iir_equalizer_band_set_property:&lt;band0&gt; freq<br>
&gt; = 66.234133 -&gt; 947.000000<br>
&gt; 0:00:00.521334000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:164:gst_iir_equalizer_band_set_property:&lt;band0&gt;<br>
&gt; changed freq = 947.000000<br>
&gt; 0:00:00.521767000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:290:gst_iir_equalizer_child_proxy_get_children_count:<br>
&gt; we have 4 children<br>
&gt; 0:00:00.522071000 &nbsp;1477 0x14018 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:281:gst_iir_equalizer_child_proxy_get_child_by_index:<br>
&gt; return child[0] &#39;band0&#39;<br>
&gt; 0:00:00.522568000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:172:gst_iir_equalizer_band_set_property:&lt;band0&gt;<br>
&gt; width = 92.468265 -&gt; 100.000000<br>
&gt; 0:00:00.523032000 &nbsp;1477 0x14018 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:182:gst_iir_equalizer_band_set_property:&lt;band0&gt;<br>
&gt; changed width = 100.000000<br>
&gt; Setting pipeline to PAUSED ...<br>
&gt; Pipeline is PREROLLING ...<br>
&gt; 0:00:00.996510000 &nbsp;1477 0x2e7d0 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:451:gst_iir_equalizer_compute_frequencies: bands 4 -&gt; 4<br>
&gt; 0:00:00.997166000 &nbsp;1477 0x2e7d0 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 0]<br>
&gt; = &#39;66.234133&#39;<br>
&gt; 0:00:00.997577000 &nbsp;1477 0x2e7d0 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 1]<br>
&gt; = &#39;372.461899&#39;<br>
&gt; 0:00:00.997921000 &nbsp;1477 0x2e7d0 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 2]<br>
&gt; = &#39;2094.507176&#39;<br>
&gt; 0:00:00.998256000 &nbsp;1477 0x2e7d0 DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;equalizer<br>
&gt; gstiirequalizer.c:494:gst_iir_equalizer_compute_frequencies: band[ 3]<br>
&gt; = &#39;11778.279410&#39;<br>
&gt; 0:00:00.998887000 &nbsp;1477 0x2e7d0 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalizer<br>
&gt; gstiirequalizer.c:438:setup_filter: gain = &nbsp; &nbsp; -21, , bandwidth=<br>
&gt; 92.468, frequency = &nbsp;66.234, a0 = 0.98034,<br>
&gt; 0:00:00.999431000 &nbsp;1477 0x2e7d0 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalizer<br>
&gt; gstiirequalizer.c:438:setup_filter: gain = &nbsp; &nbsp; &nbsp; 0, , bandwidth=<br>
&gt; 519.99, frequency = &nbsp;372.46, a0 = &nbsp; &nbsp; &nbsp; 1, a1<br>
&gt; 0:00:01.000021000 &nbsp;1477 0x2e7d0 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalizer<br>
&gt; gstiirequalizer.c:438:setup_filter: gain = &nbsp; &nbsp; &nbsp; 0, , bandwidth=<br>
&gt; 2924.1, frequency = &nbsp;2094.5, a0 = &nbsp; &nbsp; &nbsp; 1, a1<br>
&gt; 0:00:01.000526000 &nbsp;1477 0x2e7d0 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalizer<br>
&gt; gstiirequalizer.c:438:setup_filter: gain = &nbsp; &nbsp; &nbsp; 0, , bandwidth=<br>
&gt; 16443, frequency = &nbsp; 11778, a0 = &nbsp; &nbsp; &nbsp; 1, a1<br>
&gt;<br>
&gt;<br>
</div></div>I filed a bug at<br>
<a href="http://bugzilla.gnome.org/show_bug.cgi?id=570343" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=570343</a><br>
Will look at it over the next days.<br>
<br>
Stefan<br>
<div class="Ih2E3d"><br>
&gt; Moreover, cutoff frequency observed at the end of audio chain is<br>
&gt; around 200Hz<br>
&gt;<br>
&gt; I&#39;ve also tried to define all bands, but cutting frequencies observed<br>
&gt; are not coherent with defined frequencies.<br>
&gt;<br>
&gt; Moreover, according to configurations, we can have a difference of 6dB<br>
&gt; between right way and left way.<br>
&gt;<br>
&gt; How does this plugin work? How configure it so as to have a cutting<br>
&gt; frequency at 947Hz?<br>
&gt; How to have the same output for right way and left way, or how to<br>
&gt; configure the difference between right way and left way?<br>
&gt;<br>
&gt; Thanks for your help<br>
&gt; Sabine<br>
</div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; This SF.net email is sponsored by:<br>
&gt; SourcForge Community<br>
&gt; SourceForge wants to tell your story.<br>
&gt; <a href="http://p.sf.net/sfu/sf-spreadtheword" target="_blank">http://p.sf.net/sfu/sf-spreadtheword</a><br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)<br>
software. With Adobe AIR, Ajax developers can use existing skills and code to<br>
build responsive, highly engaging applications that combine the power of local<br>
resources and data with the reach of the web. Download the Adobe AIR SDK and<br>
Ajax docs to start building applications today-<a href="http://p.sf.net/sfu/adobe-com" target="_blank">http://p.sf.net/sfu/adobe-com</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>