Skip to content

Instantly share code, notes, and snippets.

Avatar
🎣
fishing

Yingyu Cheng winguse

🎣
fishing
View GitHub Profile
@winguse
winguse / flac2alac.bash
Created January 12, 2020 13:41 — forked from yenliangl/flac2alac.bash
Convert flac to Alac (Apple Lossless Audio Codec)
View flac2alac.bash
# convert flac files in current directory to Apple loss-less codec.
function flac2alac {
for f in *.flac; do
ffmpeg -i "$f" -acodec alac -vsync 2 -c:v copy -metadata COMMENT= -y "${f%.flac}.m4a"
#-map_meta_data $f:${f%.flac}.m4a;
done
}