Skip to content

Instantly share code, notes, and snippets.

@myobie
Last active June 15, 2024 07:44
Show Gist options
  • Save myobie/c99d17c0306ca2ecc531cbdb5eea04b2 to your computer and use it in GitHub Desktop.
Save myobie/c99d17c0306ca2ecc531cbdb5eea04b2 to your computer and use it in GitHub Desktop.
Convert .flac to alac .m4a's because of Apple
#!/bin/bash
mkdir -p alac
for flac_file in ./*.flac; do
base_name=$(basename "$flac_file" .flac)
alac_file="./alac/$base_name.m4a"
echo ffmpeg -i "$flac_file" -map 0:a -c:a alac "$alac_file"
ffmpeg -i "$flac_file" -map 0:a -c:a alac "$alac_file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment