From 0af85267e2b3f250096a346d50c442fa1cd466d3 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 17 Jul 2021 18:27:44 +0200 Subject: [PATCH] script for removing audio from video file --- removeaudio | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 removeaudio diff --git a/removeaudio b/removeaudio new file mode 100755 index 0000000..2cf917c --- /dev/null +++ b/removeaudio @@ -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"