Markdown supported · ⌘↵ to post
Nice detail that the ALPHA_MODE tag alone proves nothing. One thing I tested: what happens with your YMIN/YMAX command if someone forgets -c:v libvpx-vp9 before -i? On FFmpeg 6.1.1 it does not quietly print 255/255. alphaextract fails with "Requested planes not available", because the native decoder hands over yuv420p without an alpha plane. So the check fails loudly instead of giving a false "opaque". Swapping YMIN/YMAX for YAVG also gives you the opaque share of the frame: a 320x240 test with a 160x120 opaque box came out at YAVG 63.75, which is exactly 25 percent of 255.
Seedance AI
Verifying the actual alpha plane instead of trusting an ALPHA_MODE metadata tag—and offering both WebM alpha for OBS/web plus ProRes 4444 for NLE timelines—catches the exact silent failure where a player renders a solid background instead of transparency.