Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 005

Why Transparent Video Export Is Not Available (and What to Use Instead)

SHORT ANSWER

Transparent video export is not available here because this tool writes one still image as one RGBA PNG, while the format most people export to - H.264 in an MP4 - has no alpha channel at all. For transparent motion, key the footage in a video editor or a scripted encoder and deliver it as ProRes 4444, a PNG image sequence, or WebM with alpha, then check that the destination player actually supports it. If you already have a folder of transparent PNGs, you own the frames; the missing piece is the encode, not another key.

Open the green screen remover ↗

What the alpha channel in a cutout actually contains

Transparency is not a color and not a flag. It is one extra 8-bit number stored beside red, green and blue for every pixel. To see exactly what that means in practice, we reproduced this tool's own pipeline in pure Python, without any image library, and applied it to the studio still bundled with the site. The green preset at its defaults uses tolerance 24, which gives a green cutoff of 56.4 and a threshold of 198.6, and softness 18, which gives a feather width of 65.4. The score for a pixel is 255 minus its green excess, where green excess is the gap between the green channel and the larger of red and blue, scaled by total brightness. Pixels near the chosen color that connect to the frame edge are cleared; retained pixels touching that cleared region get an alpha value from a smoothstep ramp across the feather width.

We wrote the result as a real RGBA PNG, read it back from disk, and counted the alpha values. The frame is 640 by 420, or 268,800 pixels. Of those, 209,122 are fully transparent (77.8 percent), 58,048 are fully opaque (21.6 percent), and 1,630 are partially transparent edge pixels (0.61 percent). Those 1,630 edge pixels do not share one value: they occupy 84 distinct intermediate alpha levels ranging from 3 to 242, with a mean of 210.7. That is the whole point of a feathered edge. A cutout is not a stencil with two states; it is a per-pixel coverage map. The raw pixel data for the frame is 1,075,200 bytes, of which exactly 268,800 bytes - one quarter - is the alpha channel. An output format that omits that channel has not made a slightly worse cutout. It has thrown away 25 percent of the data that defines the shape.

Two quick consequences follow from the same file. If you flatten the frame onto white, 210,752 of 268,800 pixels change color, and 209,122 of them become solid white. If you force alpha into a 1-bit mask, the 84 intermediate levels collapse and all 1,630 edge pixels are misclassified; averaged over the whole frame that is a 0.14 level error per pixel, but concentrated entirely on the silhouette where it is visible. One person hitting exactly this wall wrote: "when I render and export the video as PNG sequences the PNG are appearing with a black background" (Super User 448771). A black or white box is almost always a missing or unread channel, not a bad key.

A keyed still stores 4 channels including alpha, while H.264 video stores 3 and has no fourth slot
Fig. 1 - The central idea: RGBA has a fourth value per pixel, and common video delivery has no place to store it. Counts come from our own 640 by 420 keyed frame.

Why the video format cannot simply carry that fourth channel

The constraint sits in the codec, and it is worth quoting the people who ran into it rather than restating it abstractly. A widely cited answer on Video Stack Exchange 21397 puts it in five words: "H.264 does not support alpha." Another user described the same wall from the export side: "I also have the option in PyMOL to save each frame of the video as PNG files, which do have an alpha channel. But once I convert this to mpeg or MP4, the alpha channel disappears" (Video Stack Exchange 23893). The frames were correct. The encode removed the channel.

At the encoder level the failure is even more literal. One user trying to turn a PNG sequence into a video quoted the warning verbatim: "Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'", and added "My understanding is that there is an alpha channel in the pngs, which the x264 encoder cannot handle" (Super User 513915). BGRA is 4 channels; yuv420p is 3. The encoder does not ask whether you wanted transparency, because there is no slot to negotiate. A third case makes the same point with a WebM output: "I have a set of 300 transparent png files and I would like to create a transparent video file from them ... The command creates the video but the transparency is completely lost" (Video Stack Exchange 33002). Three hundred correct frames went in; the transparency did not come out.

Specifying a pixel format with an "a" in it does not automatically fix this, because the container, the codec and the player all have to agree. One person rendering an audio visualizer wrote "I need it to render with a transparent background (i think this is called an alpha channel?)... I tried yuva420p but it's still rendering a black background" (Video Stack Exchange 27868). Another, cropping an alpha-carrying MOV for QuickTime, reported "the output is either black background or somethig Quicktime cannot open" (Video Stack Exchange 32735; the misspelling is in the original). And a delivery case where the encode did work still failed at playback: "The WebM video is coming with the Alpha channel. But the video is not supported in SAFARI Browser" (Super User 1625419). Three independent stages, one requirement: alpha must survive all of them.

What ten seconds of footage actually costs

There is also a workload reason this tool stops at one still. Its own implementation makes three full-frame passes over each image - a candidate scan, an edge flood, and an edge refinement pass - which is 806,400 pixel visits for one 640 by 420 frame. Ten seconds at 30 fps is 300 frames, so the same work becomes 241,920,000 pixel visits. The export is a single call that writes one PNG from one canvas. There is no frame loop, no queue, and no state carried from one frame to the next. Temporal consistency - the thing that keeps a video key from flickering - cannot be produced by running an independent still key 300 times, even if you had the patience.

We measured the storage side from the same file. The compressed RGBA PNG is 10,544 bytes. A 300-frame sequence of that frame is 3,163,200 bytes, or 3.02 MiB, which is modest. But the raw alpha channel alone across those 300 frames is 80,640,000 bytes, or 76.9 MiB, and there are 80,640,000 pixels whose key decision has to be made. Flattened onto white, the same frame compresses to 7,542 bytes, which is smaller and is exactly why lossy delivery formats are tempting. The trade is explicit: save the bytes, lose the channel. Doing the 300 frames by hand in a single-image tool would also mean 300 file picks and 300 separate downloads.

One keyed still compared with a 300-frame ten-second sequence, plus the measured cost of flattening or binarizing alpha
Fig. 2 - Same frame, two jobs. The right column is arithmetic from our own measured PNG, not an estimate of anyone else's encoder.
StageWhat carries alphaMeasured or reported failureWhere it breaks
One keyed stillRGBA PNG, 8-bit alpha1,630 edge pixels across 84 levels; 268,800 alpha bytesNone - this is the tool's output
Flatten onto whiteNothing210,752 pixels change color, 209,122 turn solid whiteComposite step
H.264 in MP4Three channels only"H.264 does not support alpha"; bgra to yuv420p warningEncoder
WebM with alphaYes, if encoded correctly"not supported in SAFARI Browser"Player support
300-frame sequenceOne alpha value per pixel per frame76.9 MiB of raw alpha; 300 manual downloadsWorkflow and scale

The formats that do carry alpha, and their trade-offs

Three routes cover almost every real case. ProRes 4444 is the editing handoff: it carries an alpha channel and is widely accepted by editing and compositing software, at the cost of large files. A PNG image sequence is the highest-fidelity option, because every frame keeps its own exact 8-bit alpha - including the 84 intermediate edge levels measured above - but it is a folder of hundreds of files, has no audio, and is awkward to play. One user asking for exactly this wrote "I want to save the frames as PNGs with the green replaced by transparent" (Video Stack Exchange 21989). WebM with alpha is the practical web route, provided the destination player supports it; the browser compatibility complaint quoted earlier is the reason to test before delivering.

There is a subtler trap in sequences with fading transparency. Someone building a nine-frame animation with varying alpha noted "It is very difficult obtaining a proper .gif animation directly from the above images" (Video Stack Exchange 36432). Partial alpha is not just an on-off edge property; it animates. Any codec that quantizes or recompresses that channel per frame can change the fade from frame to frame. That is another version of temporal consistency, and it is why a still-image keyer has no business pretending to produce motion. If the destination cannot carry alpha at all, the honest fix is to composite the cutout onto the intended background color before encoding, accept an opaque result, and check the result in the actual player rather than in an editing preview.

None of this is a green screen problem. The color key itself behaves the same way on a still and on a single frame of footage; why a green screen remover fails and the four-corner lighting diagnosis still apply to the image you feed the editor. What changes is the delivery chain after the key. Green spill on the subject is a capture-stage issue, and the broader tool boundary lists the other jobs that need a different method. Transparent video belongs in that same category: right problem, wrong last step.

Conclusion card: one transparent PNG is available here, transparent video is not, and an alpha-capable chain is the alternative
Fig. 3 - Route the job by its output. A still stays here; motion goes to an editor plus a format that stores alpha.

There is one more stop after the format is settled. A single transparent PNG is often headed into a game engine as a sprite, and the same alpha channel that makes it useful also creates the dark or green fringe people report on import. Using a transparent PNG as a sprite in Unity, Godot and Unreal decodes the two cutouts bundled with this site, measures the hidden RGB stored under fully transparent pixels, and maps the four import switches that decide the result. The matrix below is the short version: the file is already correct, and the remaining failures are settings.

Four import decisions for a keyed PNG sprite: texture type, alpha border dilation, blend versus alpha test, and NPOT size handling
Fig. 4 - Back-inserted downstream check: the four switches belong to the engine. All counts come from this site's own transparent PNGs.

A short decision sequence

Start from the deliverable, not the slider. If you need one still cutout, upload it here, sample the real backdrop color, and download the transparent PNG; that file has a genuine alpha channel and will composite cleanly over any background. If you need motion, key the footage in a video editor or a scripted encoder, then choose the container and codec together: ProRes 4444 for an editing handoff, a PNG sequence for maximum fidelity, WebM with alpha for the web. Verify the alpha in the destination player, not just in the preview, and keep a flattened copy if the platform cannot accept transparency. If someone asks for a transparent MP4, the correct answer is that H.264 in an MP4 does not carry alpha, and no export setting in a still-image tool can change that.

The narrow scope is deliberate. This tool runs entirely on your device with no account and no upload, and it says so when a video file is selected rather than silently producing a black box. Choosing a format that can actually store the fourth channel is the whole job once the key is done. For more on how the still-image parameters behave, see about this tool.

Questions people actually ask

Is it possible to create a transparent MP4 with FFmpeg?
No, not with H.264, because that codec has no alpha channel. Use ProRes 4444, a PNG sequence, or WebM with alpha, and confirm the destination player supports it. Our keyed frame contains 268,800 alpha bytes that H.264 has nowhere to put.
Why does the alpha channel disappear when I convert PNG frames to MPEG or MP4?
Because the output format drops the fourth channel; the keying did not fail. Flattening our frame onto white changes 210,752 of 268,800 pixels and turns 209,122 of them solid white, which is the white or black box people describe.
Why do my PNG sequences appear with a black background?
Either the export omitted alpha or the viewer is drawing transparent pixels as black. Open a frame in an editor that shows a checkerboard: if the checkerboard appears, the PNG is fine and the problem is downstream; if not, re-export with alpha enabled.
Do I need a different green screen remover to get transparent video?
No single-image tool can produce it. Transparent motion needs a frame loop, temporal consistency between frames, and an export format that carries alpha, so key the footage in a video editor or a scripted encoder instead.