From e921e6b9ebd627ab9e00e44a1b4a43d444696685 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 25 Oct 2023 12:26:29 -0400 Subject: [PATCH] Allow change-volume script to run on videos with embedded subtitles --- dotfiles/bin/change-volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/bin/change-volume b/dotfiles/bin/change-volume index e0f74f2..28077ae 100644 --- a/dotfiles/bin/change-volume +++ b/dotfiles/bin/change-volume @@ -51,7 +51,7 @@ fi printf "\n${YELLOW}${BOLD}Modifying audio volume in $filename.$extension | output: $output | delta: $delta_db${NORMAL}\n" # Since we're re-encoding the audio we have to specify a codec to use. -cmd="ffmpeg -y -stats -loglevel level+error -i \"$filename.$extension\" -af \"volume=${delta_db}dB\" -c:v copy -c:a aac -map 0 \"$output\"" +cmd="ffmpeg -y -stats -loglevel level+error -i \"$filename.$extension\" -af \"volume=${delta_db}dB\" -c:v copy -c:a aac \"$output\"" printf "\n${BOLD}Running: $cmd\n\n${NORMAL}" eval $cmd