Keine Beschreibung

Colby 1c23aa2ed5 Update README and fix standalone script run. vor 4 Jahren
.gitignore 51faa6fcf9 Initial commit vor 4 Jahren
LICENSE 51faa6fcf9 Initial commit vor 4 Jahren
README.md 1c23aa2ed5 Update README and fix standalone script run. vor 4 Jahren
__init__.py 9f5d29da18 Changing script name and making it importable. vor 4 Jahren
audio_to_visualization.py 1c23aa2ed5 Update README and fix standalone script run. vor 4 Jahren
requirements.txt 373c6edff0 Adding requirements.txt. vor 4 Jahren
setup.py 2f49572dca Removing packages. vor 4 Jahren

README.md

Audio to Visualization

The purpose of this small Python script is to transform an audio file in to a video using a background image and an audio visualizer. This tool was written leveraging ffmpeg and requires it be installed and accessible via the ffmpeg command on the command line.

FFMPEG

Download ffmpeg and get access to the documentation at https://www.ffmpeg.org/

Requirements

Install via pip:

pip install -r requirements.txt

Run the script

python audio_to_visualization.py <arguments>

Command line arguments

Argument Description Required Default
--audio path to audio file to visualize true N/A
--background path to image to use for background true N/A
--output path and name of output file. Must end in .mp4 true N/a
--vis-background-to-vid-ratio ratio of visualization background height to input image height (0.0-1.0) false 0.2
--vis-waves-to-vid-ratio ratio of visualization waves height to input image height (0.0-1.0) false 0.15
--vis-color color for visualization waveforms. can be used multiple times false "0xffffff"
--vis-color-opacity opacity of vis colors (0.0-1.0) false 0.9
--background-color background color for visualization waveforms false "0x000000"
--background-color-opacity opacity for visualization background color (0.0-1.0) false 0.5