summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-21 20:17:14 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-21 20:17:49 +0200
commit67fb4c0b98cc05b6381a3ec90364b95dda58e657 (patch)
treec25adebe7c40221153c7575e9d8e9636bbb34ba4
parentfac3d4d2f3bc767c262c14b9781573f20f6b7b8b (diff)
Improve distinction between bitrate_fixed and bitrate.
-rwxr-xr-xlocalvideowebencode3
1 files changed, 1 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index e31ae33..30da59f 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -134,7 +134,7 @@ while true ; do
-r|--rate) framerate="$2"; shift 2;;
--video) video="$2"; shift 2;;
--refbpp) refbpp="$2"; shift 2;;
- -b|--bitrate) bitrate_fixed="$2"; shift 2;;
+ -b|--bitrate) bitrate="$2"; bitrate_fixed=yes; shift 2;;
--formats) formats="$2"; shift 2;;
--h264profile) h264profile="$2"; shift 2;;
--h264preset) h264preset="$2"; shift 2;;
@@ -304,7 +304,6 @@ if [ -n "$_pixels" ] && [ $_pixels -ge $((1024*768)) ]; then
fi
fi
-bitrate="$bitrate_fixed"
# compute average bitrate from reference data and "power of .75" rule
if [ -z "$bitrate" ] && [ -n "$_pixels" ] && [ -n "$_frames" ]; then
bitrate=$(perl -E '$refsize=640*360;' \