Here’s a modification of a bash script I made a while back to convert anything that mplayer can play into an mp3 file. Change bitrates and the like to taste.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/bash # # any2mp3 # for i in *.$1; do mplayer -vc null -vo null -ao pcm:fast "$i" -ao pcm:file="${i%.$1}.wav" done for i in *.wav; do lame -h -V2 --vbr-new "$i" "${i%.wav}.mp3" done rm *.wav |
Say you are in a directory of m4a files, just run any2mp3.sh m4a and wait.
Posted March 18th, 2008 - Permalink
March 18th, 2008 at 7:43 pm
[...] version to go from anything (that mplayer can play) to mp3 without editing the script. Check it out here. Posted June 4th, 2007 - Permalink Categories: BASH - Computers - Linux - Music - Programming You [...]