dotfiles/.local/bin/video-to-audio
2019-06-13 20:12:29 +02:00

9 lines
151 B
Bash
Executable file

#!/bin/bash
for src in *
do
if [[ "$(file -b --mime-type "$src")" =~ ^video ]]
then
ffmpeg -i "$src" -vn -acodec copy "$1/${src%.*}.mka"
fi
done