diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-02-04 22:50:20 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-02-04 22:50:20 +0100 |
commit | 2fbf79214241b3b4314e0080a42ac8638b2acf7e (patch) | |
tree | d35cdcca14686412886774b84279fcdf8966c8aa | |
parent | d75a0ec6bc9e26e200544e7f435bdda06002257b (diff) |
fix resolve bitrate even if unused directly (may still be used e.g. to resolve buffer sizes)
-rwxr-xr-x | localvideowebencode | 2 |
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 |