The post is in English because it might interest other people than just Romanians.
This is a very simple bash script that can be used to batch convert flac files to mp3, so you can use them on your favorite “no flac” mp3 player. It decodes all flac files to wav, then uses lame to encode them as mp3.
The script requires flac and lame installed. It keeps the file name and changes only the extension. It does not keep any ID3 tags and does no checking or error correction. Just download the script, make it executable and run it from any directory containing flac files:
$ /path/to/flac2mp3.sh
You will get a mp3 file with the same name for each flac.
Download: flac2mp3.sh
Enjoy
Related posts:
- Convert m4a/mp4 to mp3 I stumbled across some m4a files a few days ago...
- Convert Xmail to Dovecot users This post is in English because it might interest other...
- DDNS with PowerDNS – client side I use PowerDNS for my own DNS servers, but what...
- DDNS with PowerDNS – server side This is the second part in the “DDNS with PowerDNS”...
- Installing Debian distributions from USB sticks – problems and solutions If you tried to install any distribution which uses Debian-Installer...



Home





October 9th, 2009 at 12:52
another way to do it :
for j in *.flac; do flac -cd “$j” | lame -h – “`basename “$j” .flac`”.mp3; done
October 9th, 2009 at 13:13
Nice! One liner too
Thanks!