How to get spectrum data using C api

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get spectrum data using C api

Jeroen Ooms
I'm trying to convert an audio file into a spectrogram to do some
subsequent audio analysis. Is there anything on the C level to help
with this?

The only thing I've found is the showspectrum filter, but this outputs
a picture. However I'd just like to read out the spectrum data, I'm
not interested in the visuals.

How should I approach this?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to get spectrum data using C api

kumowoon1025
> I'm trying to convert an audio file into a spectrogram to do some
> subsequent audio analysis. Is there anything on the C level to help
> with this?
>
> The only thing I've found is the showspectrum filter, but this outputs
> a picture. However I'd just like to read out the spectrum data, I'm
> not interested in the visuals.
>
> How should I approach this?

A fair amount of audio analysis has to be done to generate a spectrogram though. And it represents a fraction of the information that is used to generate it. I’d suggest reading up on the Fourier transform and start at libavcodec/fft.h.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".