Skip to content

Instantly share code, notes, and snippets.

@derrickj
Created August 28, 2011 00:18
Show Gist options
  • Save derrickj/1176050 to your computer and use it in GitHub Desktop.
Save derrickj/1176050 to your computer and use it in GitHub Desktop.
Convert every FLAC file in the current directory to ALAC (Apple Lossless)
for i in *.flac; do ffmpeg -i "$i" -map_meta_data 0:0 -acodec alac "`basename "$i" .flac`.m4a"; done;
@derrickj
Copy link
Author

Found on MetaFilter. Seems to take too long for me to find it every once and a while.

@derrickj
Copy link
Author

Preserves metadata tags now.

Found -map_meta_data flag info on Ubuntu Forums

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment