script for removing audio from video file

master
gutmet 2021-07-17 18:27:44 +02:00
parent 832df85078
commit 0af85267e2
1 changed files with 14 additions and 0 deletions

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"