summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-04 22:50:20 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-04 22:50:20 +0100
commit2fbf79214241b3b4314e0080a42ac8638b2acf7e (patch)
treed35cdcca14686412886774b84279fcdf8966c8aa /localvideowebencode
parentd75a0ec6bc9e26e200544e7f435bdda06002257b (diff)
fix resolve bitrate even if unused directly (may still be used e.g. to resolve buffer sizes)
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 7194375..2d30e7d 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -392,7 +392,7 @@ if [ -n "$_pixels" ] && [ $_pixels -ge $((1024*768)) ]; then
fi
# compute average bitrate from reference data and "power of .75" rule
-if [ -z "$no_bitrate" ] && [ -n "$_pixels" ] && [ -n "$_frames" ]; then
+if [ -n "$_pixels" ] && [ -n "$_frames" ]; then
bitrate_h264=$(perl -E '$refsize=640*360;' \
-E "say int( +(($_pixels/\$refsize)**0.75*\$refsize*$_frames*$refbpp) )")
bitrate_theora=$bitrate_h264 # FIXME