In this article I will show you how to convert the Free Lossless Audio Codec (FLAC) to Apple Lossless Audio Codec (ALAC) and alac to flac.
This can be done easily with avconv, the new name of the old but good ffmpeg.
To install avconv just type in your terminal: sudo apt-get install ffmpeg
How to convert FLAC to ALAC:
$ avconv -i audio.flac -acodec alac audio.m4a
where audio.flac is initial the flac file and audio.m4a is the new, converted file.
How to convert ALAC to FLAC:
$ avconv -i audio.m4a -acodec flac audio.flac
where audio.m4a is the initial alac file and audio.flac is the new, converted file.
The -i argument specifies the input file, -acodec specifies the format you want to convert the file, followed by the output file’s name.