cd /news/computer-vision/alpha-mode-1-does-not-mean-the-openi… · home › topics › computer-vision › article
[ARTICLE · art-180040] src=dev.to ↗ pub= topic=computer-vision verified=true sentiment=· neutral

alpha_mode=1 does not mean the opening is empty: checking a transparent WebM

A developer testing transparent WebM exports found that ffprobe's alpha_mode=1 tag only confirms an alpha channel is declared, not that it is empty: in a 180-frame ImgIng cutout clip, frames 0–96 that should have been empty held a solid alpha-255 blob of roughly 104x205 pixels (about 2.48% of the image) from a person pictured on a wall poster, while a plain-wall export of the same frames measured 0%. The developer reports that alpha thresholds and area floors cannot separate the blob from the real subject—frame 97's reference mask is only 0.31%—and proposes, untested, position-based and temporal-stability rules that would require processing the whole export in order.

recommendation

Verify transparency by counting pixels with alpha above 128 per frame instead of trusting alpha_mode=1, and use position or temporal-stability rules rather than alpha or area thresholds to reject static blobs.

more in playbook: Verifying model output
by read4 min views6 publishedDec 2, 2026

A transparent WebM that ffprobe says has alpha can still contain a solid blob in the frames you thought were empty. The tag only tells you the file declares an alpha channel. It says nothing about what the channel holds. Checking the tag alone, as the first command below does, stops there.

The files below come from one homemade 960x540, 30 fps, 6 second clip of 180 frames with no audio track, cut out with the video cutout in ImgIng https://imging.ai/ (a Beta feature, desktop Chrome or Edge, one Apple-silicon Mac, one run). Nobody is in frame for frames 0 to 96. A person slides in from the right edge starting at frame 97.

This is the export from the version of the clip with a framed portrait poster hanging on the wall. Background was set to transparent, which in this tool forces a WebM export.

$ ffprobe -v error -show_entries stream=codec_name,width,height,r_frame_rate:stream_tags=alpha_mode -show_entries format=duration -of default=nw=1 output_transparent.webm
codec_name=vp9
width=960
height=540
r_frame_rate=30/1
TAG:alpha_mode=1
duration=6.000000

VP9, the expected size, 30 fps, six seconds, and alpha_mode=1. Every line is what you would want to see before dropping the file on a timeline. The same command was not run on the plain-wall export, so there is no comparison of tags here.

Counting pixels with alpha above 128 per frame, the poster clip never has an empty frame. Frames 0 to 96 sit at 2.46 to 2.66% of the image, average 2.48%, and the script reports first_nonzero=0. The blob is the person printed on the poster, a connected region of roughly 104x205 pixels with a small piece of the poster frame. On the plain wall the same frames are 0%, and the largest alpha value anywhere in them is 2.

Two more things from this run. When the person slides in, the poster blob does not go away: frames 150 to 179 still show 2.46% for the poster region. And in the preview for the poster wall, the tool reported a recognized subject taking about 2.6% of the frame, while the plain wall got a "no subject recognized" message.

A coat on a hanger behaved the same way at about 5.7%. A colorful bookshelf next to it produced 0%. This run saw no speckled, noise-like masks at all.

The plain wall has a noise floor: alpha tops out at 2, so a cutoff at alpha above 16 empties it cleanly. The poster blob is not noise. In this run it is solid at alpha 255, stable across the whole opening, and a threshold at any value below 255 treats it exactly like the real person's mask.

An area floor does not fix it either. Both the blob and the person are above it once the person is in frame, and the blob is already above it at frame 0. Going the other way is worse for edge frames: at frame 97 only the arm is in, and the reference mask there is 0.31% of the image. A floor at 1% would throw away that frame. That last point is my reasoning from the numbers, not something I ran.

None of this was run, so read it as a plan. If you know where the subject can enter, you can ask whether a mask component sits outside that region. In this clip the person only appears at x of 560 or more, and the poster blob lives at x 189 to 293, so a position rule would separate them. You can also ask whether a component stays identical across a long stretch of the clip. A person who stands completely still would trip that, and the clips here never had that case, so the cost of the rule is unknown.

Neither rule is a threshold. The second one needs the frames in order, so it has to run over the whole export rather than one frame at a time.

The clip is self-made. The person comes from a public-domain Wikimedia Commons recording by VOA Learning English, cropped, keyed out and composited onto a homemade background, and the poster shows a photo of that same person. There is only one person, resolution is low, the background is static, and entry is the whole figure sliding in rather than someone walking. One run. Real footage of someone stepping into frame, moving backgrounds and long videos were not tried.

For the tool itself, a preview at a moment where the person is clearly visible shows where the mask lands, which is something the tag cannot do.

── more in #computer-vision 4 stories · sorted by recency
── more on @imging 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/alpha-mode-1-does-no…] indexed:0 read:4min 2026-12-02 · —