Last active
September 27, 2023 10:10
-
-
Save ckcr4lyf/3ad33d351213f7467f2c446eb3ba8134 to your computer and use it in GitHub Desktop.
Convert all FLAC files in directory to ALAC (m4a) via ffmpeg
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 | |
for file in *.flac; do | |
input="$file" | |
output="${file%.flac}.m4a" | |
ffmpeg -i "$input" -c:v copy -acodec alac "$output" | |
done | |
echo "Conversion complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment