Closed (fixed)
Project:
Audio
Version:
5.x-1.4
Component:
audio_image
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2009 at 09:40 UTC
Updated:
22 Dec 2011 at 20:43 UTC
hello!
Can a spectrogram be generated from the mp3?? using ffmpeg or similar...
On my site, user submit videos and they are transcoded to mp4 and played in a flash player.
Users submit mp3 files which are played directly with a flash player, but a spectrogram will be highly interesting to have.
I can't find any way to do it, only with specific desktop software (which is not the way to go in our case).
Any ideas??
Comments
Comment #1
zirafa commentedYes, it is possible. The guys over here do it on their website. I spoke with the tech guy over there a while back and he is willing to share the code for generating a drawing of the waveform. Might be a cool plugin for drupal audio to generate a png or jpeg of the waveform.
Comment #2
zirafa commentedFor a real-time FFT spectrum thing on playback, you'd probably have to do that with a specialized flash player.
Comment #3
ferrangil commentedI was looking for a png/jpg image more than a flash player with a real time FFT.
I will try to contact that guys and see... (I know the guy, BTW).
zirafa, if we can get the code you will be able to do the plugin? Or at least to have a look... I think I can't do it (at least right now... hopefully in a future...).
Thanks!
Comment #4
ferrangil commentedUps!
I leave it opened, as it would be great to have it within the Audio module...
Comment #5
drewish commentedfixed was better. re-open it if you've got a player to contribute back that does it.
Comment #7
zirafa commentedIf anybody is interested in the code that Freesound uses, they have a GPL library that you can download called wav2png. It's written in C so most likely would require a wrapper of some kind to make it work with Drupal.
http://www.freesound.org/forum/freesound-project/1114/?page=1#post