[gstreamer-bugs] [Bug 396779] Preset interface for elements
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Mar 9 03:46:42 PST 2007
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=396779
GStreamer | gst-plugins-base | Ver: HEAD CVS
------- Comment #14 from Christophe Dehais 2007-03-09 11:44 UTC -------
Just want to bring to your attention the Rhythmbox equalizer plugin I'm
writing: #76522. It may be an interesting use case here.
Presets handling is completely independent of gstreamer. It has the following
features:
* presets are stored in a GKeyFile file, e.g.
[Preset name]
name[fr]=french localized name
frequencies=100;200;500;1000;2000;5000;10000;
gains=0.3;-5;-10;-2;0.0;0.0;2
...
* presets name are localized
* there is no direct mapping between the band setting as described in the file
and the actual setting of the gstreamer element in the backend, because someone
could have created a preset with a 10-bands equalizer and then wanted to use it
with a 3 or 15-bands one. It does make sense for presets shipped with the
element: they are designed with a particular configuration and the user may
want to use them in another. So what I do is I interpolate gains value so that
they fit the target number of bands. I think this sponsors the 'iface' design,
so that a gstreamer equalizer element could implement this kind of
interpolation if desired.
Something that concerns me too is the ability to 'port' presets from one
element to another when it makes sense, for example between the various
equalizer element we have: ladpa-Eq, ladspa-tap-equalizer and equalizer.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
More information about the Gstreamer-bugs
mailing list