dotfiles/.local/bin/video-to-audio

10 lines
151 B
Text
Raw Permalink Normal View History

2019-06-13 20:12:29 +02:00
#!/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