Controlling parameters in pygst
jille at quis.cx
Sat Nov 26 07:56:01 PST 2011
I'm looking for a way to, let's say, change the equalizer-settings at a
specified point in time with GStreamer in Python. I've read the manual
and found the Controller-class.
eq = gst.element_factory_make('equalizer-3bands')
control = gst.Controller(eq, 'band0', 'band1', 'band2')
control.set("band0", 8 * gst.SECOND, 12.0)
control.set("band0", 12 * gst.SECOND, -12.0)
My code is playing the MP3 I want, but doesn't do anything with the
If I change the state of the pipeline to STATE_PLAYING and sleep for
some time and call
it actually works, but I want a more exact timing.
The projects goal is to make a transition between two songs described
in an XML-file. It specifies at which time the second song should start
playing, can specify changes in pitch, equalizer-settings etc.
I would really love some hint whether the Controller is the right way to
go. I've also read something about DParams but I can't find the calls in
pygst so I assume they are not (yet) implemented.
Thanks in advance,
More information about the gstreamer-devel