Skip to content

Instantly share code, notes, and snippets.

@winguse
Forked from yenliangl/flac2alac.bash
Created January 12, 2020 13:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winguse/4c65333ed351fbbfc5d0e8bbfc502ff5 to your computer and use it in GitHub Desktop.
Save winguse/4c65333ed351fbbfc5d0e8bbfc502ff5 to your computer and use it in GitHub Desktop.
Convert flac to Alac (Apple Lossless Audio Codec)
# convert flac files in current directory to Apple loss-less codec.
function flac2alac {
for f in *.flac; do
ffmpeg -i "$f" -acodec alac -vsync 2 -c:v copy -metadata COMMENT= -y "${f%.flac}.m4a"
#-map_meta_data $f:${f%.flac}.m4a;
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment