Skip to content

A collection of pulseaudio visualizers written in rust (and python)

License

Notifications You must be signed in to change notification settings

Rahix/pa-visualizer

Repository files navigation

pa-visualizer

A collection of pulseaudio visualizers

all

Usage

Live

Set (using pavucontrol or pactl) the default source to the monitor of your speakers and start the visualizer with

cargo run --release --bin pa-visualizer-<visualizer-name>

Rendering

pa-visualizer also supports rendering a visualization. To do so, first convert your audio file to a .wav (Format: 32 bit float, Samplerate: 8000). Then add the following to the config of the visualizer you want to render:

RENDER_MODE = true
RENDER_FPS = 30.0
RENDER_SOUNDFILE = "name-of-your-file.wav"
RENDER_OUTPUT_DIRECTORY = "name-of-the-folder-to-put-the-frames-in"

Start the render by simply starting the visualizer:

cargo run --release --bin pa-visualizer-<visualizer-name>

Finally, convert the images to a video, for example using the following ffmpeg command:

ffmpeg -framerate 30 -i frames/%06d.png -i name-of-your-file.mp3 -c:v libx264 -preset slow -crf 22 -pix_fmt yuv420p -b:a 128k output.mp4

Visualizers

ascii

A simple debug visualizer, printing the left and right spectra to the terminal window

python

A wrapper to write visualizers in python. Does not support rendering atm!

sfml-simple

sfml-simple A basic visualizer made with sfml

sfml-wireline

sfml-wireline A visualizer made using sfml with a wireframe style

sfml-wirecircle

sfml-wirecircle Same as wireline, just "wrapping" it around a circle

noambition

noambition A 3d visualizer, written using glium based on the Demo "No Ambition" by Quite & T-Rex

noambition2

noambition Taking the noambition visualizer to the 'next' level ... Thanks to offdroid, for help with implementing this ...

Space

space An Elite: Dangerous inspired visualizer with spaceships flying in and out of a coriolis station

Stuff used in this project

Shaders

3D Models

License

pa-visualizer licensed under either of

at your option.

About

A collection of pulseaudio visualizers written in rust (and python)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published