SVG to Video
io.github.GehDoc由 GitHub 帳號 GehDoc 發布v0.33.0更新於 Oct 24, 2026
Convert animated SVG (CSS/SMIL) to video (MP4/WebM) or image (GIF/aPNG) with in-band delivery.
概覽
把帶有 CSS 或 SMIL 動畫的 SVG 轉換成 MP4、WebM、MKV、MOV 影片或 GIF、aPNG 動畫圖檔,並將結果直接回傳給助理。
- 可以做什麼
- 將動畫 SVG 算繪成影片或動畫圖檔格式
- 設定解析度、長度、影格率、輸出格式與透明背景
- 為輸出檔寫入自訂標題與註解等中繼資料
- 以內嵌方式回傳轉換結果,包括可嵌入的 Base64 資料 URL
- 適用情境
- 適合需要把動畫 SVG(圖示、載入動畫、示範、文件素材)轉成可分享的影片或 GIF 的情況,尤其是需要透明背景供疊加或文件使用時。
- 執行需求
- 以 stdio 在本機執行,可透過 npx(Node.js)或 Docker 映像啟動;CLI 方式需要 Node.js 與 FFmpeg,Docker 算繪 Chromium 需要額外的共用記憶體。選用環境變數:DO_NOT_TRACK、MCP_HOSTED、PUPPETEER_ARGS、PUPPETEER_EXECUTABLE_PATH。未宣告身分驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SVG to Video,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
SVG to Video
[CI] [Last Commit] [GitHub Release] [npm Version] [Docker Image] [MCP Registry] [HuggingFace Space] [llms.txt]
A high-fidelity tool to transform your CSS- and SMIL-animated SVGs into high-quality videos (MP4, WebM, MKV, MOV) or lightweight animated formats (aPNG, GIF) with perfect alpha-channel transparency directly in your browser or via CLI/MCP server.
Automated demo generated by our CI/CD pipeline
🌟 Why 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 perfect for documentation, Slack, or GitHub, 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.
🚀 Getting Started
Choose the entry point that matches your needs:
- Web Studio: The easiest way to convert SVGs to video, high-fidelity aPNG, or optimized GIF in your browser without any installation.
- CLI / Docker Tool: For batch processing, server-side automation, and CI/CD integration.
- AI Agent & MCP Server: For Claude Desktop, Cursor, Antigravity, and autonomous LLM workflows.
🌐 Web Studio
Our Web Studio is a serverless, client-side rendering tool. It runs entirely in your browser using WebCodecs—your SVG files never leave your computer, ensuring absolute privacy. The interface is optimized for high-productivity on screens starting from 720p resolution.
Automated Demo: The demo video at the top of this README is automatically generated and updated by our CI/CD pipeline using Playwright and Driver.js, ensuring it always reflects the latest UI changes.
Privacy Note: We use Umami Analytics to collect anonymous usage data across our Web Studio, CLI, and MCP server interfaces (e.g., number of conversions and format usage) to help us improve the tool. This tracking is cookie-less, respects standard "Do Not Track" settings (set the
DO_NOT_TRACK=1environment variable to opt out), and never collects personal information or SVG contents. See docs/ANALYTICS.md for details.
Explore our Visual Gallery (Storybook) to see how the engine handles complex CSS, SMIL, and fonts.
Quick Start
- Open the Web Studio.
- Drag and drop your
.svgfile, or test the engine instantly with 1-click built-in samples. - Adjust resolution, duration, and FPS.
- Select your format, toggle Transparent Background if needed, and ensure High-Fidelity Capture is enabled for best results.
- Click Export.
🚀 CLI / Docker Tool
For automated or batch processing, use the CLI tool. It is built to run in a headless environment, making it perfect for CI/CD pipelines or server-side automation.
Quick Start
Ensure Node.js and FFmpeg are installed.
See docs/CLI.md for full usage, arguments, and options. For local building and source execution, see CONTRIBUTING.md.
🤖 AI Agent & MCP Integration
Connect svg-to-video to AI Assistants (Claude Desktop, Cursor, Antigravity, AutoGPT) via Model Context Protocol:
- Add to
mcpServersconfig: - Prompt your AI Assistant:
"Convert
examples/example.svginto a 60fps transparent WebM video."
See docs/MCP.md for full setup instructions, tool schemas, Docker execution, and agent prompting guides.
🔗 Official Package Distributions
- 📦 npm Package:
@gehdoc/svg-to-video - 🐳 Docker Hub Image:
gehdoc/svg-to-video - 🌐 Web Studio:
gehdoc.github.io/svg-to-video/ - 🤖 MCP Registry:
io.github.GehDoc/svg-to-video - 🤗 HuggingFace Space:
GehDoc/svg-to-video-mcp
📦 Quick Installation & Execution
🛠 Technical Details
For a deep dive into the rendering engine, algorithms, and infrastructure, see docs/ARCHITECTURE.md.
The tool works by isolating the SVG, scrubbing both the Web Animations API and native SVG SMIL DOM, and capturing frames via WebCodecs or FFmpeg.
❓ FAQ
Common questions about privacy, how frame scrubbing works, CI/CD automation, and transparency support are answered in docs/FAQ.md.
🤝 Contributing
Contributions are welcome! This project follows a Spec-Driven Development (SDD) workflow to ensure clear requirements and high quality. Please open an issue or pull request.
Check out our Active Roadmap to see what we're working on next.
For instructions on contributing, build commands, security standards, and the technical roadmap, please see CONTRIBUTING.md.
💖 Support the Project
If you find this tool helpful, please consider supporting its development:
Your support helps cover maintenance and further development of the tool. Thank you!
📜 License
This project is licensed under the MIT License.
來源:README.md,提交 1ef6b94
工具
0版本歷史
16- v0.33.0最新Oct 19, 2026
- v0.32.1Oct 19, 2026
- v0.31.0Oct 18, 2026
- v0.30.0Oct 14, 2026
- v0.29.5Oct 13, 2026
- v0.29.4Oct 13, 2026
- v0.29.3Oct 8, 2026
- v0.29.2Oct 7, 2026
- v0.29.0Oct 6, 2026
- v0.28.4Oct 5, 2026
- v0.28.3Oct 3, 2026
- v0.28.2Oct 3, 2026
- v0.27.8Sep 29, 2026
- v0.27.6Sep 28, 2026
- v0.27.5Sep 27, 2026
- v0.27.3Sep 26, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分