[gst-devel] Problem with equalizer-10bands

Sebastian Dröge sebastian.droege at collabora.co.uk
Thu Apr 23 09:33:17 CEST 2009


Am Donnerstag, den 23.04.2009, 12:03 +0530 schrieb Yogesh Marwaha:
> Greetings,
> 
> I've just started implementing equaliser support for my application.
> Though the higher frequency bands seem to work well, the lower
> frequency bands are distorting the audio; even an adjustment of +1dB
> is not working correctly, and once any of the lower band is adjusted,
> a thump is heard from the speaker whenever any band is adjusted.
> 
> Here is how I set-up gstreamer in my app: -
> ---------------------------------------------------------------
>     m_pPlayBin = gst_element_factory_make("playbin", "gravity-playbin");
>     m_pVisualisation = gst_element_factory_make("goom",
> "gravity-playbin-visualisation");
>     g_object_set(G_OBJECT(m_pPlayBin), "vis-plugin", m_pVisualisation, NULL);
>     m_pVideoSink = gst_element_factory_make("xvimagesink",
> "gravity-playbin-video");
>     g_object_set(G_OBJECT(m_pPlayBin), "video-sink", m_pVideoSink, NULL);
>     m_pAudioSink = gst_element_factory_make("alsasink",
> "gravity-playbin-audio");
>     m_pEqualiser = gst_element_factory_make("equalizer-10bands",
> "gravity-equaliser");
>     m_pAudioBin = gst_bin_new("audio-bin");
>     gst_bin_add_many(GST_BIN(m_pAudioBin), m_pEqualiser, m_pAudioSink, NULL);
>     gst_element_link_many(m_pEqualiser, m_pAudioSink, NULL);
>     m_pAudioBinPad = gst_element_get_static_pad(m_pEqualiser, "sink");
>     gst_element_add_pad(m_pAudioBin, gst_ghost_pad_new("sink", m_pAudioBinPad));
>     g_object_set(G_OBJECT(m_pPlayBin), "audio-sink", m_pAudioBin, NULL);
>     GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(m_pPlayBin));
>     gst_bus_add_watch(bus, cb, this);
>     gst_element_set_state(m_pPlayBin, GST_STATE_READY);
> ---------------------------------------------------------------
> 
> This is how I set equaliser band values:
> ---------------------------------------------------------------
>             g_object_set(m_pEqualiser, "band0", (gdouble)value, NULL);
> ---------------------------------------------------------------
> 
> Any help to fix the problem is welcome. Also, is there any app which
> already uses equalizer-10band plugin so I can how it works?

Banshee uses the 10-band eq and it works good there although you
use it the same way ;)

Could you file a bug at bugzilla.gnome.org for this? Also which
version of gst-plugins-good do you use?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090423/37c67834/attachment.pgp>


More information about the gstreamer-devel mailing list