Allow change-volume script to run on videos with embedded subtitles
This commit is contained in:
parent
b399a9e2c9
commit
e921e6b9eb
|
@ -51,7 +51,7 @@ fi
|
||||||
printf "\n${YELLOW}${BOLD}Modifying audio volume in $filename.$extension | output: $output | delta: $delta_db${NORMAL}\n"
|
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.
|
# 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}"
|
printf "\n${BOLD}Running: $cmd\n\n${NORMAL}"
|
||||||
eval $cmd
|
eval $cmd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user