I have some ALAC files (.m4a) that I want to convert to FLAC (.flac). How can I do this?
Asked
Active
Viewed 1.4k times
10
N.N.
- 17,939
- 18
- 57
- 92
-
I tried SoundConverter but it could not convert even if I installed gstreamer0.10-plugins-bad. – N.N. Apr 19 '12 at 11:13
1 Answers
14
Install ffmpeg:
sudo apt-get install ffmpegFiles 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(Optional)
- Add replay gain to the FLAC files.
- If the conversion is successful you can remove the ALAC files.
For reference see https://superuser.com/a/329278/87552 and http://ubuntuforums.org/showthread.php?t=1500430.