date: 2026-10-24 ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers numpy 2.5.4 # C. Even light across the screen: two identical point lights, each the same distance z from the screen plane, # placed a to the left and right of the screen centre, 3.0 m wide screen, no reflectors, no room bounce. # Illuminance on the screen at lateral position x from one light: E = z / (z^2 + (x-xl)^2)^1.5 (inverse square times cosine) | light distance from screen z (m) | lights at (m from centre) | brightest / dimmest point across the 3.0 m width | difference (stops) | dimmest point is | | --- | --- | --- | --- | --- | | 1.0 | +-0.75 | 2.04 | 1.03 | edge | | 1.0 | +-1.50 | 3.02 | 1.60 | center | | 1.0 | +-2.25 | 3.95 | 1.98 | center | | 1.5 | +-0.75 | 1.61 | 0.69 | edge | | 1.5 | +-1.50 | 1.54 | 0.63 | center | | 1.5 | +-2.25 | 2.25 | 1.17 | center | | 2.0 | +-0.75 | 1.47 | 0.56 | edge | | 2.0 | +-1.50 | 1.15 | 0.21 | center | | 2.0 | +-2.25 | 1.58 | 0.66 | center | | 3.0 | +-0.75 | 1.28 | 0.36 | edge | | 3.0 | +-1.50 | 1.06 | 0.08 | edge | | 3.0 | +-2.25 | 1.13 | 0.18 | center | # D. Green spill versus subject distance. A lit screen acts as a diffuse light source. For a disk of radius R and a point on its axis # at distance d, irradiance = pi*L*R^2/(R^2+d^2). Screen 3.0 m x 2.4 m treated as a disk of equal area. Compared with d = 0 (touching the screen). # equal-area radius R = 1.51 m | subject distance d (m) | d (ft) | green light reaching the subject, share of the touching case | | --- | --- | --- | | 0.3 | 1.0 | 96% | | 0.6 | 2.0 | 86% | | 1.0 | 3.3 | 70% | | 1.5 | 4.9 | 50% | | 2.0 | 6.6 | 36% | | 3.0 | 9.8 | 20% | | 4.0 | 13.1 | 13% | # E. Which lens does a given screen cover? Horizontal angle covered by a screen of width w seen from distance D: 2*atan(w/2/D). # Widest lens (35 mm equivalent focal length, frame 36 mm wide): f = 18 / tan(angle/2) = 36*D/w. | screen | width (m) | camera to screen D = 3 m | D = 4 m | D = 5 m | | --- | --- | --- | --- | --- | | Elgato Green Screen (cm values from Elgato page) | 1.48 | 28 deg, lens no wider than about 73 mm | 21 deg, lens no wider than about 97 mm | 17 deg, lens no wider than about 122 mm | | Elgato Green Screen MT (screen 200 x 180 cm) | 2.00 | 37 deg, lens no wider than about 54 mm | 28 deg, lens no wider than about 72 mm | 23 deg, lens no wider than about 90 mm | | 3.0 m wide wall or muslin | 3.00 | 53 deg, lens no wider than about 36 mm | 41 deg, lens no wider than about 48 mm | 33 deg, lens no wider than about 60 mm | # A. Spill and clothing (even screen, chromakey similarity 0.12 blend 0.06) | case | holes in subject % | screen left over % | green fringe (0-255) | | A1 no spill, coral shirt | 0.00 | 0.00 | 1.4 | | A2 spill 0.15 | 0.00 | 0.00 | 2.8 | | A3 spill 0.50 | 6.24 | 0.00 | 5.0 | | A4 spill 0.50 + despill | 6.24 | 0.00 | 0.0 | | A5 no spill, mint shirt | 77.20 | 0.00 | 0.5 | # B. Uneven light on the screen: edge pixel values lower than the middle by the percent shown (applied to 8-bit pixel values), no spill, blend 0.06 | edge pixel values lower by (%) | screen left over at similarity 0.12 % | lowest similarity with under 1% left over | holes in coral-shirt subject at that similarity % | holes with a mint shirt at that similarity % | | 0 | 0.00 | 0.04 | 0.00 | 0.26 | | 20 | 0.00 | 0.06 | 0.00 | 0.26 | | 38 | 0.00 | 0.1 | 0.00 | 77.19 | | 50 | 0.00 | 0.12 | 0.00 | 77.20 | | 67 | 11.56 | 0.14 | 0.00 | 77.27 | # F. Empty-screen plates for the 3x3 evenness readout (see the guide) # G. 3x3 evenness readout on the empty plates (command shown on the page) ## empty-ratio1.0.png 114 114 114 114 114 114 114 114 114 brightest 114 dimmest 114 ratio 1.0 ## empty-ratio1.25.png 101 113 101 101 113 101 101 113 101 brightest 113 dimmest 101 ratio 1.12 ## empty-ratio1.6.png 89 112 90 90 112 90 90 112 90 brightest 112 dimmest 89 ratio 1.26 ## empty-ratio2.0.png 81 112 82 82 112 82 82 112 82 brightest 112 dimmest 81 ratio 1.38 ## empty-ratio3.0.png 72 110 72 71 111 72 71 111 72 brightest 111 dimmest 71 ratio 1.56 # ===== Added 2026-10-25: scenarios and real-footage test ===== # F. Three room scenarios (same models as C, D, E in geometry.py) | scenario | screen W x H (m) | subject to screen (m) | camera to screen (m) | lights: distance from screen, left and right of center (m) | brightest / dimmest | green light on subject | widest lens covered (35 mm equiv.) | | --- | --- | --- | --- | --- | --- | --- | --- | | Small room | 1.48 x 1.80 | 1.0 | 3.0 | 1.0, +-0.74 | 1.14x | 46% | 73 mm | | Home studio | 2.00 x 1.80 | 1.5 | 4.0 | 1.5, +-1.00 | 1.07x | 34% | 72 mm | | Large room | 3.00 x 2.40 | 3.0 | 6.0 | 2.0, +-1.50 | 1.15x | 20% | 72 mm | # H. Real footage (Wikimedia Commons, public domain). Run: bash real_key_test.sh Chroma_key_demonstration.ogv OUT ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers key color sample (mean of 20x20 at x=1500,y=150): 86 206 150 | similarity | blend | despill | green screen left (sky box 1500-1900 x 0-300, alpha>0.02) | shoe+jeans kept (box 780-1000 x 500-900, alpha>0.98) | grass+rock kept (box 100-700 x 700-1000) | | --- | --- | --- | --- | --- | --- | | 0.04 | 0.08 | 0 | 0.00% | 100.00% | 100.00% | | 0.04 | 0.08 | 1 | 0.00% | 100.00% | 100.00% | | 0.06 | 0.08 | 0 | 0.00% | 100.00% | 100.00% | | 0.06 | 0.08 | 1 | 0.00% | 100.00% | 100.00% | | 0.07 | 0.08 | 0 | 0.00% | 95.24% | 99.99% | | 0.07 | 0.08 | 1 | 0.00% | 95.24% | 99.99% | | 0.08 | 0.08 | 0 | 0.00% | 0.15% | 90.19% | | 0.08 | 0.08 | 1 | 0.00% | 0.15% | 90.19% | | 0.09 | 0.08 | 0 | 0.00% | 0.00% | 54.06% | | 0.09 | 0.08 | 1 | 0.00% | 0.00% | 54.06% | | 0.10 | 0.08 | 0 | 0.00% | 0.00% | 10.27% | | 0.10 | 0.08 | 1 | 0.00% | 0.00% | 10.27% | | 0.30 | 0.08 | 0 | 0.00% | 0.00% | 0.00% | | 0.30 | 0.08 | 1 | 0.00% | 0.00% | 0.00% | Despill (type green, mix 0.5, expand 0.1) did not change alpha in any row, as expected: it only recolors edges. Panels in real-footage-key.jpg: raw frame at 72 s | chromakey 0.06 blend 0.08 + despill over a frame from the same video at 28 s | same at 0.10.