Skip to content

nvfp/Music-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music-Visualizer

Visualizing various aspects of music: CQT, channel differences, spectrums, waves, power, and volumes.

An example of the visualization

How to install

  1. Download this repository and save it to your machine (e.g. ~/code/Music-Visualizer)
  2. Install FFmpeg on your machine, if it is not already installed.

Introductory usage

  • Take a look at all the available options
    python Music-Visualizer -h
  • Single file
    python Music-Visualizer -i music.mp3
    python Music-Visualizer -i full/path/to/the/music.m4a
    With custom output dir:
    python Music-Visualizer -i music.wav -o abs/path/to/the/folder
    With custom ffmpeg:
    python Music-Visualizer -i music.wav -ff ~/ffmpeg/bin/ffmpeg.exe
  • Multiple files
    python Music-Visualizer -i folder/of/music
  • Using GPU
    • AMD:
      python Music-Visualizer -i folder/of/music -g a
    • NVIDIA:
      python Music-Visualizer -i folder/of/music -g n
    Lossless render (full quality):
    python Music-Visualizer -i folder/of/music -g n -q 0
  • 60 frames per second
    python Music-Visualizer -i music.m4a -r 60

Customized style

  • custom title font:
    • Linux:
      python Music-Visualizer -i music.m4a -tf ~/.fonts/Arial.ttf
    • Windows:
      python Music-Visualizer -i music.m4a -tf C\:/Windows/Fonts/Arial.ttf
    • MacOS:
      python Music-Visualizer -i music.m4a -tf /Library/Fonts/Arial.ttf
  • color scheme:
    python Music-Visualizer -i music.m4a -pc #fafbfa -wcl #3280c9 -wcr #32c958 -vc #ee2020

Limitations

  • The only resolution option available is HD (1280x720)

Troubleshooting

  • if you encounter this error message Option 'rate' not found, search for "#BUG" in main/main.py and follow the written instructions
  • if --vol_color showing wrong color, check the comments near the end of the file main/arg_parser.py

License

This project is licensed under the MIT license.

Releases

No releases published

Packages

No packages published

Languages