Modify buffer data in probe callback in python

Sebastian de Castelberg sebu at
Tue Nov 22 02:00:46 PST 2011

Hi list,

I was wondering if it is possible to modify audio data in a buffer
probe callback in python. Basically, I'd like to do something like
'cb_have_data' in [1] but in python. There's a data attribute on the
buffer object that looks like a string representation of the binary
audio data, but I wasn't able to modify it's content. Did anyone
already try something similar?

  def data_probe(pad, buffer):
    # modify

I appreciate your hints.


sebastian de castelberg

More information about the gstreamer-devel mailing list