SVG to Video STUDIO

Convert SVG animations to high-quality videos (MP4, WebM, MKV, MOV) or optimized animated images (aPNG, GIF) with perfect alpha-channel transparency and custom metadata directly in your browser, via CLI, or through Model Context Protocol (MCP) AI agent integrations.

Initializing Studio...

Open Source Studio

High-Fidelity SVG Animation to Video & Animated Image Studio

Transform animated SVGs (CSS & SMIL) into MP4, WebM, MKV, MOV, aPNG, or GIF with full alpha-channel transparency — directly in your browser or via CLI/MCP.

Why Use SVG to Video?

Transparent Backgrounds

Export your animations with a full alpha channel using WebM or aPNG, and optimized indexed transparency with GIF89a. Perfect for overlays in video editing tools or web use.

Privacy-First

The Web Studio runs entirely in your browser—your SVG files never leave your computer.

Frame-Accurate

Our engine scrubs both the Web Animations API and native SVG SMIL, ensuring every frame is captured exactly as rendered.

AI Agent Native

Native Model Context Protocol (MCP) server and Agent Skill (SKILL.md) support indexed on the official MCP Registry (mcp.json) and hosted live on HuggingFace Spaces.

Universal Animated Formats

Beyond video, generate lightweight Animated PNGs (aPNG) and GIFs with deterministic 8x8 Bayer ordered dithering to eliminate temporal fluttering on animated gradients, with full control over background transparency.

Copy to Clipboard

Instant export to Base64 Data URL—copy your video and embed it directly into your HTML, CSS, or JS code without manual downloads. Perfect for rapid prototyping and developers.

Metadata Injection

Support for custom titles and comments across video (MP4, WebM, MKV, MOV) and animated image (aPNG, GIF) formats.

Versatile

Whether you need an accessible Web Studio for quick conversions or a powerful CLI tool for batch automation and CI/CD pipelines, this project has you covered.

How to Convert Animated SVGs (CSS & SMIL)

1

Open the Web Studio.

2

Drag and drop your .svg file, or test the engine instantly with 1-click built-in samples.

3

Adjust resolution, duration, and FPS.

4

Select your format, toggle Transparent Background if needed, and ensure High-Fidelity Capture is enabled for best results.

5

Click Export.

Supported Output Formats & Specifications

FormatCodec / StandardAlpha TransparencyBest Used ForDetails
MP4H.264 / AACNo (Opaque)Universal web playback, social media, video editors (Premiere, Final Cut)Standard baseline container compatible with all browsers and video players.
WebMVP9 / AV1Yes (Full Alpha Channel)Web overlays, OBS streaming, transparent video backgroundsModern open web format with native 8-bit alpha transparency and high compression efficiency.
aPNGRGBA PNGYes (Full Alpha Channel)Documentation, GitHub READMEs, high-color animations, crisp text renderingAnimated PNG with 24-bit color depth and full 8-bit alpha blending without color quantization.
GIFGIF89aYes (Indexed 1-bit)Slack, Discord, legacy documentation, universal messaging appsStandard animated GIF with palette quantization and optional transparent color index.

Developer CLI, Docker & Model Context Protocol (MCP)

CLI & Docker Automation
# Node.js (auto-detected duration)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir

# Node.js (explicit duration & GIF output)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir -d 5 --format gif --transparent

# Node.js (custom resolution dimensions e.g. vertical 1080x1920)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir --resolution 1080x1920

# Node.js (custom bitrate, CRF, and quality)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir --bitrate 5M --crf 18 --quality 80

# Node.js (animated PNG output)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir -d 5 --format apng

# Docker (zero local dependencies; requires --shm-size=2gb for Chromium rendering; add :Z to -v for SELinux / Fedora)
docker run --rm --shm-size=2gb -e PUPPETEER_ARGS="--no-sandbox" -v $(pwd):/data:Z gehdoc/svg-to-video /data/input.svg 60 /data/out-dir -d 5 --format gif
AI Agent & MCP Integration
{
     "mcpServers": {
       "svg-to-video": {
         "command": "npx",
         "args": ["-y", "-p", "@gehdoc/svg-to-video", "svg-to-video-mcp"]
       }
     }
   }

Frequently Asked Questions

Are my SVG files uploaded to any external server?

No. The Web Studio runs 100% client-side inside your browser using WebCodecs and the Web Animations API. Your SVG source code and exported video frames never leave your local device.

How does frame scrubbing work for CSS and SMIL animations?

The engine mounts your SVG in an isolated offscreen canvas, programmatically pauses all CSS and SMIL animations, and advances the animation timeline frame by frame (e.g. at 24, 30, or 60 FPS) to guarantee 100% frame accuracy without skipped frames.

Can I automate conversions in CI/CD pipelines or AI agents?

Yes! You can use the official CLI tool (npx -y @gehdoc/svg-to-video), the Docker image (gehdoc/svg-to-video), or connect to the Model Context Protocol (MCP) server for Claude Desktop, Cursor, and Antigravity.

How do I preserve transparent backgrounds in exported videos?

Select WebM, aPNG, or GIF as your output format, check the "Transparent Background" toggle, and ensure your SVG root element does not declare an opaque background rect.

Do I need to manually install FFmpeg to use the CLI?

No. The CLI automatically uses system FFmpeg if present on your $PATH, or falls back to a bundled static FFmpeg binary out of the box. You can also specify a custom binary path using --ffmpeg-path <path> or the FFMPEG_PATH environment variable.

How does the Web Studio render high-quality, flicker-free GIFs without a server?

Most browser-based GIF tools either snap colors coarsely (causing color banding) or use error diffusion dithering (which produces moving, noisy speckles across frames). The Web Studio features an in-browser encoder with custom 8x8 Bayer ordered dithering and 16-bit rgb565 palette quantization. This disperses narrow color transitions smoothly without temporal fluttering, delivering FFmpeg-grade GIF quality directly inside your browser.