Created
August 19, 2021 16:13
-
-
Save KokoseiJ/e4b7f9d5b129fbbfad9092a9a8fd708d to your computer and use it in GitHub Desktop.
Batch convert FLAC to ALAC recursively
This file contains hidden or 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
find /music -iname "*.flac" -print0 | xargs -P 16 -0 -I @ bash -c 'temp="@"; name="$(echo $temp | sed -E "s/\/.*?\///" | sed "s/.flac//")"; echo $name; ffmpeg -hide_banner -loglevel warning -i "$temp" -c:v copy -c:a alac -ar 44100 "/mnt/d/ALAC/$name.m4a"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
using find, xargs, ffmpeg and sed