Created
January 22, 2022 03:10
-
-
Save tekton/e55ea90b7622f486128dee7acbafbfc1 to your computer and use it in GitHub Desktop.
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 | |
set -e # all err | |
search_dir=$1 | |
for entry in "$search_dir"/* | |
do | |
new=$(dirname "$entry")/$(basename "$entry").m4a | |
echo "${entry}" | |
new=${new/".flac"/} | |
echo $new | |
ffmpeg -i "$entry" -acodec alac $new | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment