How to Export Transparent WebM, MOV, MP4, and GIF Animations Directly via MCP
By the Charmotion team · Updated · How we write guides

Connect an MCP client to an animation server, create the character animation set, then call its export tool. The export returns MP4 and GIF files, which cannot hold smooth alpha, plus WebM and MOV files with a full alpha channel for browsers and Apple devices.
Key takeaways
- Transparency depends on the codec: WebM (VP9) and MOV (HEVC) can keep alpha, while H.264 MP4 cannot.
- GIF transparency is one bit, so edges can look jagged on backgrounds the file was not made for.
- Safari has been reported to ignore WebM alpha, so list a transparent MOV first for Apple devices.
- Check a WebM with ffprobe for the yuva420p pixel format, then view it on dark and light backgrounds.
- An MCP export is a few tool calls, and the files are ready in about a minute.
Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.
Which export formats keep transparency?
Transparency depends on the codec, not the file name. VP8 and VP9 both support an alpha channel in WebM, and Google's Chrome team says WebM alpha has played in Chrome since Chrome 31. H.264 is different. An MP4 cannot keep transparent pixels, so the exporter fills the empty area with a solid colour, usually black, and that fill becomes part of the picture. A third-party export guide describes the same black fill when a transparent timeline is rendered to H.264.
| Format | Keeps transparency | Where it plays |
|---|---|---|
| WebM (VP9 with alpha) | Yes, per pixel | Chromium-based browsers and Firefox; Safari has been reported to ignore the alpha |
| MOV (HEVC with alpha) | Yes | Safari and Apple devices, as documented by Apple |
| MP4 (H.264) | No, empty areas are filled | Almost everywhere; suited to opaque video |
| GIF | One bit: fully visible or fully removed | Widely supported as an image format |
Two practical consequences follow. A transparent WebM is not a safe default for Safari, so pair it with a MOV. A GIF has only one level of transparency, so its edges look hard and can show a halo on a background it was not made for.
How do you export the files from an MCP server?
This section shows how to export transparent WebM, MOV, MP4, and GIF animations from an MCP server, using Charmotion's remote endpoint at https://charmotion.app/mcp. The server uses Streamable HTTP with OAuth sign-in and no API key, so a client needs only the URL and a one-time sign-in. The Model Context Protocol describes this remote pattern: the MCP server acts as a resource server, and a separate authorization server handles login and tokens.
In Claude Code, a project-level .mcp.json entry looks like this. The Claude Code MCP documentation covers the full format.
{
"mcpServers": {
"charmotion": {
"type": "http",
"url": "https://charmotion.app/mcp"
}
}
}Cursor, VS Code, Codex and Cline use their own config files, so follow each client's MCP page. Once the client is signed in, the export takes four calls in order.
- Design or upload the character. Use design_character for an AI design, or send one finished character image facing the viewer, with visible eyes and mouth. The image is checked first, and a refused image is not charged.
- Create the set. Call create_character_set with the animations you pick. Launch, happy, wave and loading are preselected, and idle is always included for free.
- Export. Call export_videos for the character. The files are rendered in about a minute.
- Collect the files. Call get_character_set to read the download links and the AI_README integration notes, then download the WebM, MOV, MP4 and GIF files. The same downloads are on the character page.
If an animation the engine cannot make is dropped, its credit is given back automatically, so a failed step does not leave you short.
How do you confirm the alpha channel survived?
Check the file before you ship it. For a WebM, ffprobe reports the pixel format of the video stream. A VP9 file with an alpha channel should report yuva420p, the pixel format that FFmpeg guides recommend for alpha output.
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,pix_fmt -of default=noprint_wrappers=1 output.webmA file that reports a format without an alpha component, such as yuv420p, has lost its transparency somewhere in the chain. Metadata is not the whole test, so also open the file on a dark page and on a light page. If either page shows a solid box around the character, the alpha was never encoded or was stripped.
MOV files with HEVC alpha are harder to judge from metadata alone, so test the MOV in Safari, where Apple documents the format. The transparent video checker on this site is a starting point for a quick browser check of the same kind.
How do you make a transparent WebM with FFmpeg?
If you already have a source that carries alpha, such as a ProRes 4444 MOV, FFmpeg can produce a transparent WebM. The Salivity guide on VP9 with alpha uses this command, which matches the pattern in other community guides:
ffmpeg -i input.mov -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 -b:v 2M output.webmEach flag has a job. -c:v libvpx-vp9 selects the VP9 encoder. -pix_fmt yuva420p keeps an alpha plane, and without it the transparent layer is discarded and replaced with a black or white background. -auto-alt-ref 0 turns off alternate reference frames, which the guide says can cause rendering glitches or strip the alpha. -b:v 2M sets a starting video bitrate; adjust it and compare the result, since the effect on file size is not documented in the sources.
When the input is itself a WebM with alpha, place the decoder before the input. FFmpeg's native VP9 decoder drops the alpha, and the decoded frames come out on solid black. Forcing the libvpx decoder fixes this:
ffmpeg -c:v libvpx-vp9 -i input.webm -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 -b:v 2M output.webmSome encoders use a two-pass run with the same pixel format, as the curiosalon guide does. A single pass with these flags is the simpler starting point. For the GIF side of the same source files, see how to convert video to GIF.
When should you export GIF or MP4 instead?
Choose MP4 when the background is part of the design and the clip is for social posts, review or a page with a fixed colour. An H.264 MP4 plays almost anywhere and is the simplest route for opaque video. Set the background colour you want at export time, because the exporter bakes it into the pixels.
Choose GIF only when the destination accepts nothing else. GIF palettes hold at most 256 colours, so smooth gradients can band, and GIMP's manual notes that GIF transparency is encoded in one bit. Three habits help. Skip dithering for flat-colour art such as icons and logos, since SVGator advises it adds file size without a visible gain there. Keep frame rates in the 10 to 15 fps range, which Mux says often works well and reduces file size. Check each platform's file size limit, because the limits are set by the platform and vary.
For measured sizes across formats, see the animation file size benchmark. For a side-by-side of GIF, WebM, MP4 and Rive, see GIF vs WebM vs MP4 vs Rive. To convert an existing Rive animation, see how to export a Rive animation to MP4 or GIF.
Which format should a website or app use?
For a transparent animation on a website, serve a WebM for Chromium-based browsers and Firefox, and a MOV with HEVC alpha for Safari and Apple devices. Put the MOV first in the source list so Safari picks it, because Safari has been reported to ignore WebM alpha. A browser that cannot play the MOV moves on to the WebM. Apple's documentation on HEVC video with alpha explains the format, and other browsers generally do not render its alpha layer, which is why the WebM stays in the list.
Use MP4 when transparency is not needed, and GIF only where nothing else works. For the MOV side in more depth, read transparent MP4 and HEVC with alpha. For an AI assistant workflow that produces the files, see how to animate a logo or character from Claude, Cursor or VS Code with MCP. Charmotion's MCP export includes transparent WebM and MOV from the Starter plan up; compare plans on the pricing page (as of December 2026).
How to export transparent WebM, MOV, MP4, and GIF animations from an MCP server
- Connect the client. Add https://charmotion.app/mcp as a remote MCP server in your client and sign in with OAuth. No API key is needed.
- Design the character. Use design_character for an AI design, or upload one finished character image facing the viewer, with visible eyes and mouth.
- Create the set. Call create_character_set with the animations you want. Idle is always included for free.
- Export. Call export_videos for the character. The files render in about a minute and the export uses no credits.
- Download. Read the links from get_character_set or the character page, then download the WebM, MOV, MP4 and GIF files.
- Verify. Check the WebM with ffprobe for the yuva420p pixel format, and view both transparent files on dark and light backgrounds.
Frequently asked questions
Why does my transparent WebM show a box in Safari?
Safari has been reported to ignore the alpha channel in WebM, so the player can show a solid background instead of transparency. Put the transparent MOV first in the source list so Safari plays it. Apple documents HEVC with alpha for Safari, so the MOV is the format to rely on there. Test the file in each browser version you support, since reports on Safari's WebM support differ.
Can a GIF keep smooth transparent edges?
Not fully. GIF transparency is one bit, so each edge pixel is either visible or removed. Anti-aliased edges can show a halo when the GIF is placed on another background. Use transparent WebM or MOV when edges matter, and use GIF only where the destination accepts nothing else.
Do I need an account to connect and export?
Previews and guide search work without an account. Creating character animations needs a paid plan, and get_account shows what is left on yours. Plan details are on the pricing page (as of December 2026).
Why is the background black in my MP4?
H.264 MP4 has no alpha channel, so the exporter fills transparent areas with a solid colour, usually black, and that colour becomes part of the pixels. Use WebM or MOV when you need real transparency. If you must use MP4, match the background colour to the place where it will sit.
Sources
- Alpha transparency in Chrome video, Google Chrome
- Using HEVC video with alpha, Apple Developer
- Process VP9 WebM video with alpha channel, Salivity (third-party guide)
- Model Context Protocol, Model Context Protocol
- Charmotion MCP server, Charmotion
- Image Convert Indexed (GIMP 2.10 manual), GIMP