Skip to content

Instantly share code, notes, and snippets.

@tekton
Created January 22, 2022 03:10
Show Gist options
  • Save tekton/e55ea90b7622f486128dee7acbafbfc1 to your computer and use it in GitHub Desktop.
Save tekton/e55ea90b7622f486128dee7acbafbfc1 to your computer and use it in GitHub Desktop.
#!/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