Skip to content

Instantly share code, notes, and snippets.

@ckcr4lyf
Last active September 27, 2023 10:10
Show Gist options
  • Save ckcr4lyf/3ad33d351213f7467f2c446eb3ba8134 to your computer and use it in GitHub Desktop.
Save ckcr4lyf/3ad33d351213f7467f2c446eb3ba8134 to your computer and use it in GitHub Desktop.
Convert all FLAC files in directory to ALAC (m4a) via ffmpeg
#!/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