script for removing audio from video file

This commit is contained in:
gutmet 2021-07-17 18:27:44 +02:00
parent 832df85078
commit 0af85267e2

14
removeaudio Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -eu
if [ "$#" -ne 1 ]; then
echo "USAGE: $0 FILE"
exit 1
fi
fullpath="$1"
source fileextensions
cd "$dir"
ffmpeg -i "$filename.$extension" -c copy -an "$filename""_noaudio.$extension"