[gst-devel] spectrum element and seeking

Stefan Kost ensonic at hora-obscura.de
Thu Aug 12 23:12:56 CEST 2010


Am 12.08.2010 02:29, schrieb maxi:
> In the meantime, I found an example on how to use the spectrum element
> properly:
> http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/spectrum/demo-osssrc.c
> They seem to delay the messages manually. I do not understand whether
> the behavior of the spectrum messages is normal or not, but now I think
> I know how to make the spectrum analyzer work with seeking.
> Unfortunately, I cannot do this in Python because of
> https://bugzilla.gnome.org/show_bug.cgi?id=380495, so have to program
> this part in C.

The delaying is actually a small detail. I makes sure you e.g. render the graph
on the screen at the same time , when the corresponding audio is played. This
matters a lot for the level meter, but not so much for spectrum (especially when
using many fft-bands -> bad time resolution).

Stefan

> 
> Maxi
> 
> Am 11.08.2010 23:02, schrieb Stefan Kost:
>> Am 10.08.2010 02:10, schrieb maxi:
>>   
>> Lol. I was reworking the spectrum analyer in buzztard and also stumbled over
>> some issues with seeking and the spectrum element. The first buffer after
>> seeking is marked as discont and then the spectrum analyzer needs a few more
>> samples before it can run a fft again. But that does not explain the behaviour
>> you see here.
>>
>> Stefan
>>
>>   
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> 
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list