summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalvideowebencode4
1 files changed, 2 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 1dd97ce..5ab59c8 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -269,8 +269,8 @@ _melt_ogg="f=ogg vcodec=libtheora ${bitrate:-qscale=5}"
_melt_h264="$_melt_h264 ${bitrate:-qscale=5}"
_melt_webm="${webmpreset:+-vpre=libvpx-$webmpreset}"
_melt_audio="${channels:+ac=$channels}"
-_melt_vorbis="$_melt_audio acodec=libvorbis ab=$(expr "$channels" '*' "$bitrate_vorbis")k"
-_melt_aac="$_melt_audio acodec=libvorbis ab=$(expr "$channels" '*' "$bitrate_aac")k"
+_melt_vorbis="$_melt_audio acodec=libvorbis ab=$(($channels*$bitrate_vorbis))k"
+_melt_aac="$_melt_audio acodec=libvorbis ab=$(($channels*$bitrate_aac))k"
## Theora/Vorbis/Ogg
melt -group $_melt_in $infiles -group $filters -consumer avformat:"$stem.ogv" $_melt_ogg $_melt $_melt_vorbis $_melt_out