Skip to main content

A really simple music visualization tool.

Project description

MusicViz

PyPI - Version PyPI - Status PyPI - License

Screenshot 2025-05-16 at 2 39 28 PM

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 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.
  • 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

musicviz-0.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musicviz-0.0.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file musicviz-0.0.5.tar.gz.

File metadata

  • Download URL: musicviz-0.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for musicviz-0.0.5.tar.gz
Algorithm Hash digest
SHA256 da64e5bedab4111c1933c06e9e4f316343e50a4b4288274ed1ad85d3bce79f0a
MD5 b0dbce77773affaefef7d8391a09ea98
BLAKE2b-256 74a78fcccb25b53c01de3f44ff413c3de0b7732a6728031a8e6f3fbc8a99bb3c

See more details on using hashes here.

File details

Details for the file musicviz-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: musicviz-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for musicviz-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be4738a2148819a952e547bf81ca0e3908b753ec4a99ded99f0ef2589d16ab97
MD5 8ca271cde2d5efc7982aa46e6373dc95
BLAKE2b-256 751e13808b5ac60174ba82220f7b7a2512cfe9ee0f242321cceda03da837390c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page