Skip to content

basti2342/gif-music-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gif-music-visualizer

Visualization of live audio using gifs. This is based on Scott W Harden's "Realtime FFT Audio Visualization with Python".

Prepare gif

You can use dough, watermelon or add a new gif like this:

Use ImageMagick: convert -coalesce image.gif image.jpg

Create a directory in the frames subdirectory and copy the image frames into it.

If you found a cool gif, please send me a message/pull request. Thanks!

Dependencies

  • pygame
  • scipy
  • numpy
  • pyaudio

Debian:

apt-get install python-pygame python-scipy python-numpy python-pyaudio

Usage

Play some audio and run visualizer.py. Press F11 to toggle full-screen mode. Use Escape to exit.

Visualization moves but no audio playing?

I had to use pavucontrol (PulseAudio Volume Control apt-get install pavucontrol) to select "Analog Stereo Output" instead of "Analog Stereo Duplex" (Configuration tab). If you want to use an external input device (like a microphone) use "Analog Stereo Input".

Demo

I uploaded some demos to YouTube.

Links

Read the corresponding blog post for further details.

About

Visualizes live audio using gifs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages