lunes, marzo 06, 2017

Covert FLAC to MP3 from the terminal

how to convert flac to mp3 audio format on linux mint using the command console

first be sure to remove any space in the files name, the follow command will remove spaces and put instance an underscore character:
find -name "* *" -type f | rename 's/ /_/g'

now be sure you have installed flac and lame
sudo apt-get install flac
sudo apt-get install lame

now we are ready to convert all the flac files on teh folder to mp3:
for f in *.flac;do flac -cd $f |lame -b 192 - $f.mp3;done

No hay comentarios.: