1) Be sure you have installed flac and lame:
1 2 3 4 5 6 7 8 9 |
sudo apt-get install flac lame [sudo] password for j: Reading package lists… Done Building dependency tree Reading state information… Done flac is already the newest version. flac set to manually installed. lame is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
2) In a flac directory, run comand
1 |
for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done |
-a-