2
Audioconvert
Kim Wittenburg edited this page 2020-06-27 21:02:48 +00:00
The following script is able to batch-convert audio files to the m4a format. ffmpeg needs to be installed.
#!/usr/bin/env sh
for file in "$@"; do
target="${file%.*}.m4a"
if ffmpeg -i "$file" -vn "$target"; then
rm "$file"
else
echo "Could not convert $file"
exit 1
fi
done