How to convert ALAC to FLAC?

13,019
  1. Install ffmpeg:

    sudo apt-get install ffmpeg
    
  2. Files can be converted to FLAC from ALAC via the command ffmpeg -i audio.m4a -acodec flac audio.flac. To do this for a while directory of files go to that directory (cd path) and issue the following:

    for f in *.m4a; do ffmpeg -i "$f" "${f%.m4a}.flac"; done
    
  3. (Optional)

For reference see https://superuser.com/a/329278/87552 and http://ubuntuforums.org/showthread.php?t=1500430.

Share:
13,019

Related videos on Youtube

Simon
Author by

Simon

dmesg | cat | tac | less | more

Updated on September 18, 2022

Comments

  • Simon
    Simon almost 2 years

    I have some ALAC files (.m4a) that I want to convert to FLAC (.flac). How can I do this?

    • Admin
      Admin about 12 years
      I tried SoundConverter but it could not convert even if I installed gstreamer0.10-plugins-bad.
  • markrich
    markrich about 10 years
    What would the command be to convert to an uncompressed flac file?