summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-03 14:33:57 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-03 14:33:57 +0200
commitfa1a36c3eab464c599eb50756cf96ef1633f9cc0 (patch)
treee9741871d4eef59c5289a539432804b25eb082b2
parenteea0970a04e3cb740c0bb3a0ac7f2c3fd965331a (diff)
Add hidden flag use_male_cbr.
-rwxr-xr-xlocalvideowebencode8
1 files changed, 7 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index fc3388c..352ad7d 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -217,6 +217,10 @@ fi
#use_aac=yes
[ -n "$use_aac" ] || use_mp3=yes
+# Avoid MP3 VBR but seems ABR is fine: Set to CBR for strict correctnes
+#use_lame_cbr=yes
+[ -n "$use_lame_cbr" ] || use_lame_abr=yes
+
# resolve quality/speed hints
multipass=yes
qscale_theora=5
@@ -383,6 +387,7 @@ fi
quality_vorbis=3
bitrate_opus=48
quality_lame=6
+bitrate_lame=64
bitrate_aac=64
case "$audio" in
@@ -394,6 +399,7 @@ case "$audio" in
quality_vorbis=2
bitrate_opus=32
quality_lame=7
+ bitrate_lame=48
opusapp=voip
;;
silence)
@@ -480,7 +486,7 @@ _oggenc_vorbis="$_oggenc_downmix -q $quality_vorbis"
_melt_opus="$_melt_downmix acodec=libopus ab=$((channels*bitrate_opus))k${opusapp:+ application=$opusapp}"
_ffmpeg_opus="$_ffmpeg_downmix -c:a libopus -b:a $((channels*bitrate_opus))k${opusapp:+ -application $opusapp}"
_opusenc_opus="$_opusenc_downmix --bitrate $((channels*bitrate_opus))"
-_melt_mp3="$_melt_downmix acodec=libmp3lame aq=$quality_lame"
+_melt_mp3="$_melt_downmix acodec=libmp3lame${use_lame_abr:+ aq=$quality_lame}${use_lame_cbr:+ ab=$((channels*bitrate_lame))k}"
_melt_aac="$_melt_downmix acodec=aac ab=$((channels*bitrate_aac))k"
# container options