Showing posts with label mp3. Show all posts
Showing posts with label mp3. Show all posts

Wednesday, April 9, 2008

Convert .flac files into .mp3

In order to convert .flac to .mp3, you'd need to do the following: first cd into the directory with the .flac files, then
for x in *.flac ; do OUTF=`echo "$x" | sed s/\.flac$/.mp3/g` ; flac -c -d "$x" | lame -m j -q 0 -V 0 -s 44.1 - "$OUTF" ; done

Monday, February 25, 2008

Convert .wma files into .mp3

Another thing that's been troubling me regarding audio files is those damn .wma-s that cannot be played by my iPod. So it's time for a handy script that will convert .wma into .mp3:

for x in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$x" ; lame -m s audiodump.wav -o "${x%wma}mp3" ; rm audiodump.wav ; done

Pretty impressive – lame's manual page deserves a good read.

Convert .m4a files into .mp3

One of the things that's been troubling me lately has been the fact that on a standard Debian/Ubuntu system I can't seem to be able to edit the tags for the .m4a files I have.

So, in order to edit the tags on the .m4a files... I'd rather convert them into .mp3-s. The way to do this is actually simple.