Created
May 17, 2012 12:15
-
-
Save joaopizani/2718522 to your computer and use it in GitHub Desktop.
Little bash snippet for converting audio formats to MP3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS=$'\n'; for i in $(find /media/midia/musicas -type f -name '*.wma'); do | |
mplayer -vc dummy -vo null -ao pcm:fast:file=/tmp/tmp.wav $i | |
lame /tmp/tmp.wav $(dirname $i)/$(basename $i .wma).mp3 | |
done; rm /tmp/tmp.wav; unset $IFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment