Wagen โ turn audio files into waveform videos (Rust + ffmpeg)
โ Rust ๐ 2026-06-13 ๐ค surdeus ๐๏ธ 1hey folks ![]()
i made a small open source tool called wagen (wavegen) that turns audio files into waveform videos.
repo: GitHub - ledongthuc/wagen: Turns your audio files into waveform videos ยท GitHub
mp3/flac/wav/etc โ waveform animation โ mp4 video
you throw in a song, it renders those moving audio bars/waves (think old winamp visualizers), then outputs an mp4 with the original audio attached.
example:
cargo run --release -- -i song.mp3
under the hood it:
- decodes audio using
symphonia - renders raw RGB frames in memory
- pipes frames directly to
ffmpeg - outputs h264/aac mp4
no temp pngs, no intermediate files, just streaming frames into ffmpeg.
you can tweak FPS, resolution, bar width, waveform window, etc.
made it mostly because i wanted a simple CLI tool for generating music visualizer videos without opening a video editor.
would love feedback, ideas, bug reports, or feature suggestions ![]()
2 posts - 2 participants
๐ท๏ธ Rust_feed