SeeingTheMusic is an audio visualization tool for EDM (electronic dance music).
python 3.7.5
matplotlib 3.2.1
numpy 1.16.4
scipy 1.5.2
celluloid 0.2.0
ffmpeg-python 0.2.0
ffmpeg 4.2.2
Important note: ffmpeg is downloaded on the user's machine. ffmpeg-python is the python library that connects to ffmpeg.
- Download audio_visualization.py to the same directory that contains your sound files.
- Navigate in the command line to that directory.
- Run the script with the following format:
audio_visualization.py arg1 arg2 arg3 arg4 arg5 arg6
, where:
- arg1 is the filename of the audio you are inputting, must be .wav format
- arg2 is either 0 or 1, 0 if you only want one channel to be analyzed, 1 if you want two channels to be analyzed
- arg3 is the filename of the soundless video to be outputted, must have .mp4 extension
- arg4 is the filename of the video including sound to be outputted, must have .mp4 extension
- arg5 is either 0 or 1, 1 if you want a color-changing background, 0 if not
- arg6 is an integer denoting the width of the circles; this is optional and defaults to 15 if not stated
- Processing is usually fast (~30fps) but on some settings may go as low as 10fps (mostly due to plotting and writing the animation to disk), so running time may approach three times the video duration.
- You will find the generated videos in the same directory that contains the script and your sound files.