Number of spect_bands in spectrum element

Sebastian Dröge sebastian.droege at collabora.co.uk
Fri Dec 23 10:37:45 PST 2011


On So, 2011-12-18 at 11:30 -0800, victorvictor wrote:
> Thank you for the answer Stefan
> 
> There are many things in that docs and it is still very confused to me.
> However, I have noticed this :
> 
> The function /gst_fft_f32_new (nfft, FALSE);/ is called in the spectrum
> element; /nfft/ is defined as  *nfft = 2 * bands - 2*.
> In the FFT doc it is said that this nfft argument should be entirely a
> product of 2, 3 and 5 (ie a multiple of 30).
> 
> If I combine the 2 equations together, it seems that the number of bands
> sould be *a multiple of 15 plus 1* to get faster results. Am I totally
> wrong? Any of these values that I have tried seemed to work perfectly.

Not entirely correct: it should be entirely a product of 2, 3 *OR* 5.
Powers of two should be the fastest values.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111223/c74349eb/attachment.pgp>


More information about the gstreamer-devel mailing list