Last active
June 15, 2024 07:44
-
-
Save myobie/c99d17c0306ca2ecc531cbdb5eea04b2 to your computer and use it in GitHub Desktop.
Convert .flac to alac .m4a's because of Apple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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