Can HandBrake Keep the WebM Alpha Channel?
Keep transparency in a WebM overlay with FFmpeg or Shutter Encoder and check whether the exporter or the player is causing the black background.
HandBrake 1.11.2 drops the alpha channel when it encodes a WebM with VP8 or VP9. Use the original file with alpha and export it as VP9 WebM with FFmpeg or Shutter Encoder. Check the result over a colored layer in the app that will use it. A standalone player can show working transparency as a black background.
What happens to alpha in HandBrake
WebM in HandBrake's Summary → Format menu selects the container, the file that holds your video and any audio. The WebM specification describes a way to carry a separate alpha plane. HandBrake's maintainer response on alpha conversion and the 1.11.2 encoder pixel formats explain why the program's VP8 and VP9 outputs are opaque. The 10-bit VP9 option still uses a pixel format without alpha. A different preset, bitrate or file extension can't add that plane.
For a video meant to fill the whole frame, HandBrake is still a practical choice. The HandBrake file converter guide covers ordinary exports and how to choose a format. For an animation, alert or scene element that needs to blend with something behind it, keep a separate alpha master and convert from that file.
Check whether your source already has transparency
Put the source over a bright solid layer in an editor or compositor that reads its codec with alpha. Use a frame with an obvious transparent area and a softer edge. A preview of the layered composition before export is only a check of the project. Reimport the exported file to check what the video itself contains.
A .mov filename tells you the container. Apple describes alpha as optional in ProRes 4444 and ProRes 4444 XQ. Even a file using one of those codecs can have an opaque background. If the export covers the entire colored layer, check its alpha-capable decoder before concluding it's already flattened. When the original has been flattened, return to the layered project or an earlier export that still has alpha.
| What you have | What to do |
|---|---|
| The exported master shows color through the clear areas. | Encode from that master with an alpha-capable WebM workflow. |
| Only the composition shows through and the exported master is opaque with an alpha-capable decoder. | Enable alpha in the source export, then reimport the new master before converting. |
| The master shows through, but the WebM looks black in a player. | Open the same WebM over a visible layer in the destination app and extract its alpha if it still looks wrong. |
| Only the HandBrake copy is available. | Look for the source or layered project. A black pixel in the copy could have come from a solid black background or a formerly transparent area. |
If you only have a flattened file, the edges and shadows may already be blended into the pixels behind them. FFmpeg's color key filter makes a new mask by removing pixels near the chosen color. Keying out black can also cut holes in a black logo. I'd use that approach only on a deliberately solid, distinct background when the layered master is gone.
Encode a transparent VP9 WebM with FFmpeg
Use a build with libvpx-vp9. Run ffmpeg -h encoder=libvpx-vp9 to check that your build lists the encoder and supports yuva420p. Start with a short piece that contains a clear area, an opaque area and a soft edge or fade. Replace overlay-master.mov with the name of your source and keep the master available.
ffmpeg -i "overlay-master.mov" -map 0:v:0 -c:v libvpx-vp9 -pix_fmt yuva420p -crf 30 -b:v 0 -an "overlay-vp9.webm"
-map 0:v:0 selects the first video stream. yuva420p gives the encoder an 8-bit pixel format with an alpha plane. The -crf 30 -b:v 0 pair chooses a starting quality setting without a bitrate target. If edges look rough in the destination app, try a lower CRF on the sample and compare the result at the size it will be shown. FFmpeg lists the quality controls in its libvpx encoder documentation.
For a quick sample, put -t 3 before the output filename. To start three seconds of output at the five-second mark, put -ss 5 -t 3 in that same position. Give the sample its own name and leave these timing options out when you're ready for the whole clip.
-an makes a silent overlay. If the clip has an audio cue, remove -an and add -map "0:a:0?" -c:a libopus before the output filename to include the first audio track when present. The FFmpeg stream mapping reference explains the optional ?. Keep the 4444 original for future edits. This delivery command produces 8-bit, 4:2:0 color and 8-bit alpha.
For a source that's already a VP9 WebM with alpha, put -c:v libvpx-vp9 before the input as well. Use -c:v libvpx before the input for VP8. The output encoder option stays after the input. This keeps the decoder in the path that reads the extra alpha data before the new encode.
Use Shutter Encoder for the same export without a terminal
- Add the verified source to Shutter Encoder. Under Choose Function, select VP9 and .webm.
- Open Advanced features and turn on Enable alpha channel. If you see a hardware acceleration choice, set it to none to select the software encoder.
- Choose a destination separate from the master. Click Start function, then open the saved WebM over a colored background in the target app.
Shutter Encoder 20.5 exposes an alpha switch for VP9. Its software VP9 path uses libvpx. If the input is an existing transparent WebM and the Shutter Encoder result is opaque, use the explicit FFmpeg input decoder above to check that the source alpha reaches the encoder.
Check the WebM over the background it will use
Open the exported file where it will be displayed. In OBS, add a Color Source and use Select color to choose a bright, fully opaque backdrop. Put the Color Source below the overlay in the Sources list so the video plays on top of it.

Add a Media Source above the backdrop, leave Local File enabled, and click Browse to choose the saved WebM. The OBS Media Sources reference lists WebM support and shows the controls. On a website, check the video element against a visible page background in the browsers you need to support.

Watch the motion at the edges and the part where the overlay is meant to disappear. The background should remain visible through the clear parts. If you see a rectangle in OBS with Use hardware decoding when available enabled, clear it in Media Source properties and try again. Clearing it returns to OBS's default decoding setting and gives you another playback path to compare with the extracted mask.
Read the alpha plane when the preview looks black
I use an extracted mask when a player and an exported file appear to disagree. Pick a timestamp at which the source definitely has transparent and opaque pixels. The example checks the frame at one second and saves a grayscale PNG. Change the timestamp to match your clip.
ffmpeg -c:v libvpx-vp9 -i "overlay-vp9.webm" -ss 1 -vf alphaextract -frames:v 1 -update 1 "webm-alpha-check.png"
Here -c:v libvpx-vp9 comes before -i to select the decoder. The libvpx decoder reads the WebM alpha data and the alphaextract filter displays the alpha plane by itself. To inspect a VP8 master, replace the input decoder with libvpx. For a ProRes master, leave out the decoder override, point the command at the MOV file and give the PNG a different name.
In an 8-bit alpha mask, black (0) represents transparent pixels and white (255) represents opaque pixels. Mid-gray (128) is about half opacity under the standard alpha sample convention.

Compare the same region of the frame in both files. A solid logo should have a white interior and transparent space outside it, with gray where its edge fades. If you picked a frame that's clearly transparent in the master and the corresponding WebM mask is all white, check the source selected for the encode and the encoder settings. If the filter can't find a plane, confirm the decoder and source codec before judging the file from one error.
For a quick inventory, read the codec and track's alpha flag with ffprobe.
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name:stream_tags=alpha_mode -of default=noprint_wrappers=1 "overlay-vp9.webm"
FFmpeg's Matroska reader exposes the track's alpha flag as alpha_mode=1. A decoded mask shows which pixels a particular frame can blend. Use that check and playback in the destination to decide whether to replace the exported file or change how the app displays it.


