Wednesday, August 22, 2018
Work Drivers Lenovo ThinkPad Edge E145 Windows 10 32bit Drivers Free Driver Download
Work Drivers Lenovo ThinkPad Edge E145 Windows 10 32bit Drivers Free Driver Download

The SoX [2] sound utility can generate a static spectrum waterfall plot image from an audio file (or part of it), but it cant make a video. So I wrote a script to do this.
Its a very brute force approach. It requires lots of CPU time and lots of temporary disk space. The script depends on SoX, GNU Parallel, mencoder (or ffmpeg). GNU Parallel is optional, but will result in significant speed up on a multi-core system.
To use, create an empty directory on a volume with plenty of disk space and run with the audio file as a parameter. Eg:
./make-spectrogram-video.sh -t "My Music File" mymusic.mp3
The output will be written to output.avi and output.mp4. Other options include setting frame rate, the speed of the scrolling, audio credit text etc. To get full help do this:
./make-spectrogram-video.sh -h
The script is available on GitHub here [2]. Here is a sample output video of Bachs Toccata and Fugue in D Minor [3] :
Updates:
17 Feb 2014: I noticed that all the interesting details in music is squashed down at the very bottom of the spectrogram. So I updated the spectrogram module in SoX to have the option of plotting on a log axis. This isnt in the offical sox distribution. See this blog post for more details [4].
Footnotes:
[1] http://en.wikipedia.org/wiki/Waterfall_plot
[2] https://github.com/jdesbonnet/audio-to-waterfall-plot-video
[3] Music MP3 file from https://archive.org/details/ToccataAndFugueInDMinor. YouTube video at http://www.youtube.com/watch?v=utp95bprqeg
[4] http://jdesbonnet.blogspot.ie/2014/02/sox-spectrogram-log-frequency-axis-and.html