Skip to content

Instantly share code, notes, and snippets.

@honzajavorek
Created January 28, 2012 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honzajavorek/1695797 to your computer and use it in GitHub Desktop.
Save honzajavorek/1695797 to your computer and use it in GitHub Desktop.
Script to convert wma files to mp3
#!/bin/bash
for FILENAME in *.wma
do
NEW_NAME="`basename "$FILENAME" .wma`.mp3"
echo "$FILENAME → $NEW_NAME"
ffmpeg -i "$FILENAME" -acodec libmp3lame -ab 320k "$NEW_NAME"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment