Update ffmpeg.sh

pull/132/head
Tom21200 2 years ago committed by GitHub
parent 36490caee7
commit eb2ddae7f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -60,6 +60,7 @@ handle_error() {
fix_args() {
local has_ac=0
local has_c_a=0
while [[ $# -gt 0 ]]; do
case "$1" in
@ -81,6 +82,7 @@ fix_args() {
fi
;;
-c:a)
has_c_a=1
shift
args+=("-c:a" "$1")
;;
@ -110,6 +112,11 @@ fix_args() {
if [[ $has_ac -eq 0 ]]; then
args+=("-ac" "6")
fi
# Force codec to libfdk_aac if -c:a is not already specified
if [[ $has_c_a -eq 0 ]]; then
args+=("-c:a" "libfdk_aac" "-b:a" "512k")
fi
}
#########################

Loading…
Cancel
Save