karlherrick.com

wavtomp3

Sunday, 26 August 2007

Here’s a quick little bash shell script to get your current working directory full of .wav’s converted to .mp3’s using lame.

#!/usr/bin/env bash
for i in *.wav; do
  lame -b 256 -q 0 -s 44.1  "$i" "`basename "$i" .wav`".mp3
done


Home

About

Portfolio

Web Apps Web Enabled Applications Corporate Sites Personal Sites
Preferences Dark Theme Light Theme Notifications
Social GitHub LinkedIn RSS Feed Icon