Skip to content

Instantly share code, notes, and snippets.

@kroger
Created April 3, 2014 20:56
Show Gist options
  • Save kroger/9962764 to your computer and use it in GitHub Desktop.
Save kroger/9962764 to your computer and use it in GitHub Desktop.
Convert ogg to mp3
#!/bin/bash
for file in */*.ogg
do
echo "* Converting: $name"
name=${file%%.*}
ogg123 -d wav -f - $file | lame -h -m s -b 192 - "$name.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment