Wagen โ€“ turn audio files into waveform videos (Rust + ffmpeg)

โš“ Rust    ๐Ÿ“… 2026-06-13    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

hey folks :waving_hand:

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 :raising_hands:

2 posts - 2 participants

Read full topic

๐Ÿท๏ธ Rust_feed