FFmpeg - convert to ALAC

ALAC (Apple Lossless Codec) are lossless compressed audio files inside MP4 container. Usually they have extension .m4a. They are slightly larger then FLAC files but tags are pretty much standardised because they are using the same ID3 tagging standard as MP3/MP4 audio files.

How to make ALAC files with FFmpeg? Its pretty simple: just set codec to alac and container to m4a. FFmpeg will do right thing. It can deal with both 16 and 24 bit audio.

ffmpeg -i <input file> -acodec alac output.m4a