From 9cad4312e48f5a573f2c621b21974d52f5168807 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 21 May 2017 23:08:25 +0200 Subject: More detailed comment on heights. --- bin/stream | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index d43236f..c1833de 100755 --- a/bin/stream +++ b/bin/stream @@ -132,8 +132,13 @@ BITS=$(videosize "$HEIGHT" "$RATIO") # * bitrates and bits in parens based on https://developer.apple.com/library/content/documentation/General/Reference/HLSAuthoringSpec/Requirements.html # + bits rounded up to include nearby modulo 16 formats -# + best (i.e. high-modulo) 16:9 heights: (72 180) 216 288 360 432 576 720 -# + best (i.e. high-modulo) 4:3 heights: (105 210) 288 312 384 480 624 816 +# * Recommended sizes (highest modulo 16 or 8 (or 4) size not "pumping" +# in bridge scene 20s into Tears of Steel): +# + 4:3: (105 210) 288 312 384 480 624 816 +# + 16:9: (72 180) 216 288 360 432 576 720 +# + 2.40:1: (60 160) 200 240 320 360 480 600 +# resolved using http://aarmstrong.org/content/aspect_ratio_calc.php +# with ratio as modulo 4 integers, and size a multiplum of that # * speeds tuned to just below 100% cpu usage for each combination on a multi-core computer # TODO: Externalize speeds to site-specific configfile if [ $BITS -le 15360 ]; then # 192x80 → 15360 -- cgit v1.2.3