A really simple music visualization tool.
Project description
MusicViz
MusicViz is a Python tool that generates a dynamic music visualizer video from an audio file (MP3 or WAV). It creates a video with animated frequency spectrum bars and particle effects synchronized to the audio, using a colorful plasma colormap and a black background for a vibrant visual experience. The output is an MP4 video file with the audio embedded.
Features
- Generates a visualizer with non-overlapping frequency bars based on the audio's spectrogram.
- Adds particle effects that respond to frequency peaks for a dynamic look.
- Supports MP3 and WAV audio inputs.
- Customizable video title displayed in the output.
- Produces high-quality 1920x1080 MP4 videos at 30 FPS.
- Uses a plasma colormap for visually appealing, frequency-based coloring.
Installation
First create a new conda environment:
conda create -n musicv python=3.11
Then activate it:
conda activate musicv
You can now install musicviz:
pip3 install musicviz
Dependencies
Install FFmpeg:
This tool requires FFmpeg for video encoding.
Download and install FFmpeg from ffmpeg.org or via a package manager:
On Ubuntu:
sudo apt-get install ffmpeg
On macOS:
brew install ffmpeg
Ensure ffmpeg is available in your system PATH.
Usage
Run the musicviz tool from the command line, providing the input audio file, output video file, and a title for the video.
musicviz <input_audio> <output_video> <video_title>
For example:
musicviz song.mp3 output.mp4 "My Awesome Track"
Output
The output is a 1920x1080 MP4 video with:
- Frequency bars that pulse with the audio's amplitude.
- A black background with a plasma colormap for bars.
- The specified title displayed at the top.
- The original audio embedded in the video.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file musicviz-0.0.3.tar.gz.
File metadata
- Download URL: musicviz-0.0.3.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
261051b0b03e3a27e8f3420dc39c434cd75a583d660152ac79906874936ac99f
|
|
| MD5 |
93aa323458f231a16e38676c24cf82db
|
|
| BLAKE2b-256 |
67c4e7ddad5f95850bdd0054e43b41af2b17ffcb6d1b4fa72b51dbe4d9732399
|
File details
Details for the file musicviz-0.0.3-py3-none-any.whl.
File metadata
- Download URL: musicviz-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dc78d6724431c980cc15e991a4c5218f82df5bce4394ceb17240cdad850b3ad
|
|
| MD5 |
da6c8a4b726e594c45f0355b76bbc601
|
|
| BLAKE2b-256 |
c0da10f02bce8669591d44aaf1d6ff78db6aef3223b918f06ad476bb6608aae2
|