From c5c7a5046a39cc36c4dafe4f2703471f0a5b691d Mon Sep 17 00:00:00 2001 From: Tessa Nordgren Date: Mon, 6 Dec 2021 08:21:06 -0800 Subject: [PATCH] save modified video into same dir as original --- voice2subs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice2subs.sh b/voice2subs.sh index 2af2f4f..120254d 100755 --- a/voice2subs.sh +++ b/voice2subs.sh @@ -84,7 +84,7 @@ for FILE in "${ARGS[@]}"; do AUDIO="tmp/${BASENAME}.opus" YML="tmp/${BASENAME}.yml" SRT="tmp/${BASENAME}.srt" - OUT="${BASENAME}_with_subs.mkv" + OUT="${FILE%.*}_with_subs.mkv" if [[ ! -f "${AUDIO}" ]]; then echo "extracting audio..."