summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-10-03 00:13:48 +0200
committerJonas Smedegaard <dr@jones.dk>2014-10-03 00:13:48 +0200
commitdae9f8764bca2a1c24ab8ffa9d4e8ba03348523d (patch)
tree47bf88a729230c84bfe406b7768d0dff65f3221a
parentb262c3a0be14f0eb0f75a9a96b64a3e3d1bc7321 (diff)
Fix set quality (not bitrate) for Vorbis.
-rwxr-xr-xlocalvideowebencode8
1 files changed, 4 insertions, 4 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 87bb36b..1baf7c0 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -326,7 +326,7 @@ if [ -n "$_pixels" ] && [ -n "$_frames" ]; then
fi
# default per-codec-channel bitrates
-bitrate_vorbis=64
+quality_vorbis=3
bitrate_opus=64
bitrate_aac=96
@@ -338,14 +338,14 @@ case "$audio" in
;;
hqspeech)
channels=1
- bitrate_vorbis=48
+ quality_vorbis=1
bitrate_opus=32
bitrate_aac=64
opusapp=voip
;;
speech)
channels=1
- bitrate_vorbis=48
+ quality_vorbis=1
bitrate_opus=32
bitrate_aac=64
compress=yes
@@ -384,7 +384,7 @@ _avconv_vp8="-c:v libvpx -pre:v $sizepreset_vpx${bitrate_vp8:+ -b:v $bitrate_vp8
_melt_vp9="vcodec=libvpx-vp9 vpreset=$sizepreset_vpx${bitrate_vp9:+ vb=$bitrate_vp9 minrate=$((bitrate_vp9/20)) maxrate=$((bitrate_vp9*12))} crf=$crf_vp9 cpu-used=$cpu_vp9"
_avconv_vp9="-c:v libvpx-vp9 -pre:v $sizepreset_vpx${bitrate_vp9:+ -b:v $bitrate_vp9 -minrate $((bitrate_vp9/20)) -maxrate $((bitrate_vp9*12))} -crf $crf_vp9 -cpu-used $cpu_vp9"
_melt_h264="vcodec=libx264 vpreset=$speedpreset_h264 vprofile=baseline${x264tune:+ tune=$x264tune} threads=0 movflags=+faststart crf=$crf_h264"
-_melt_vorbis="$_melt_audio acodec=libvorbis${channels:+ ab=$(($channels*$bitrate_vorbis))k}"
+_melt_vorbis="$_melt_audio acodec=libvorbis aq=$quality_vorbis"
_melt_opus="$_melt_audio acodec=libopus${channels:+ ab=$(($channels*$bitrate_opus))k}${opusapp:+ application=$opusapp}"
_melt_aac="$_melt_audio acodec=aac${channels:+ ab=$(($channels*$bitrate_aac))k}"