Xpersona
M

Manim Animation En

CLAWHUB · Unverified

Create mathematical animations with synchronized voiceover narration and subtitles using Manim Community and manim-voiceover. Use when users want to create a...

62
Rank
84
Safety
972
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 972 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17069wbwf7gnepk3p3g4wa06183g8zb:manim-animation-en
  1. Install using `clawhub skill install s17069wbwf7gnepk3p3g4wa06183g8zb:manim-animation-en` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/hzsunzixiang/manim-animation-en before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hzsunzixiang-manim-animation-en/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

106,335 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: manim-animation
description: "Create mathematical animations with synchronized voiceover narration and subtitles using Manim Community and manim-voiceover. Use when users want to create animated videos with narration, math animations with voice, educational videos with subtitles, or any request involving Manim scene generation with TTS voiceover. Trigger phrases include: manim animation, math animation, animated video with voice, manim voiceover, create animation video, or any request to generate narrated mathematical/educational animation videos."
required_tools:
  - name: manim
    install: "pip install manim"
  - name: ffmpeg
    install: "brew install ffmpeg (macOS) / apt install ffmpeg (Linux)"
    notes: "Must include libx264 encoder and libass (for subtitle burn-in)"
  - name: python3
    install: "Python 3.9+ required"
required_packages:
  - "manim"
  - "manim-voiceover[gtts]"
network_access:
  - service: "Google TTS (gTTS)"
    purpose: "Text-to-speech synthesis for voiceover narration"
    required: false
    notes: "Default TTS engine. Can be replaced with offline pyttsx3 if network is unavailable."
---

# Manim Animation: Animation + Voiceover + Subtitle Generator

**Author:** ericksun(孙自翔)

## Overview

This skill uses Manim Community to generate mathematical/educational animations, with manim-voiceover plugin integration for TTS voice narration and synchronized subtitles. All processing runs locally — no paid API required.

**Core Capabilities:**
- 🎬 **Animation Generation**: Create animations of math formulas, geometric shapes, charts, and more with Manim
- 🎙️ **Voice Narration**: Integrate TTS via manim-voiceover plugin with automatic animation-voice sync
- 📝 **Subtitle System**: In-scene subtitles (Manim Text) + SRT external subtitles (ffmpeg burn-in)
- 🔄 **One-Click Pipeline**: Describe requirements → Generate code → Render video → Burn subtitles

**TTS Engines (gTTS preferred):**
- **gTTS** (Recommended): Google free TTS, supports Chinese, no API Key needed
- **pyttsx3** (Fallback): Offline TTS, no network required
- **Azure/OpenAI/ElevenLabs** (High quality): Requires paid API Key

## Prerequisites

### 🔍 One-Click Environment Check

**Before first use, run the environment check script to verify all dependencies are ready:**

```bash
python3 {SKILL_DIR}/scripts/check_environment.py
```

This script checks:
- ✅ Manim Community installation (`manim` command)
- ✅ manim-voiceover + gTTS plugin
- ✅ FFmpeg + libx264 encoder (hardcoded Manim dependency, **required**)
- ✅ FFmpeg + libass (for SRT subtitle burn-in)
- ✅ Python dependencies
- ✅ Chinese font availability

### Required System Tools

- **Manim Community**: `pip install manim`
- **FFmpeg (with libx264 + libass)**: Manim hardcodes the `libx264` encoder for video rendering; subtitle burn-in requires `libass`
  - macOS (Homebrew): `brew install ffmpeg` (includes x264 and libass by default)
  - macOS (Conda): `conda install x264 -c conda-forge` (**⚠️ conda's ffmpe

_meta.json

{
  "ownerId": "kn7f75ks14ng7qfwe8t15djyvs8162n3",
  "slug": "manim-animation-en",
  "version": "1.0.3",
  "publishedAt": 1774355878808
}

references/manim_guide.md

# Manim Animation Technical Guide

## Table of Contents

1. [Manim Community Overview](#manim-community-overview)
2. [Scene Code Structure](#scene-code-structure)
3. [Voiceover Integration (manim-voiceover)](#voiceover-integration-manim-voiceover)
4. [Subtitle System](#subtitle-system)
5. [Common Animation Patterns](#common-animation-patterns)
6. [Advanced Tips](#advanced-tips)
7. [Troubleshooting Guide](#troubleshooting-guide)

---

## Manim Community Overview

Manim Community (manim) is a community-maintained mathematical animation engine, derived from the original manimgl created by Grant Sanderson of 3Blue1Brown.

**Core Philosophy**: Describe mathematical animations with Python code — everything is programmable, version-controllable, and automatable.

### Version Selection

| Version | Package | Features |
|---------|---------|----------|
| **Manim Community** | `manim` | Community-maintained, well-documented, rich plugin ecosystem |
| manimgl | `manimgl` | 3B1B's personal version, OpenGL rendering, real-time preview |

**This skill uses Manim Community (`pip install manim`).**

---

## Scene Code Structure

### Basic Scene (Animation Only)

```python
from manim import *

class BasicScene(Scene):
    def construct(self):
        # Create objects
        circle = Circle(radius=1.5, color=RED, fill_opacity=0.5)
        label = Text("Circle", font_size=24)
        label.next_to(circle, DOWN)

        # Animate
        self.play(Create(circle))
        self.play(Write(label))
        self.wait(1)

        # Transform
        square = Square(side_length=3, color=GREEN, fill_opacity=0.5)
        self.play(Transform(circle, square))
        self.wait(1)
```

### Voiceover Scene (Animation + Voice + Subtitles)

```python
from manim import *
from manim_voiceover import VoiceoverScene
from manim_voiceover.services.gtts import GTTSService

class NarrationScene(VoiceoverScene):
    def _make_subtitle(self, text_str):
        """Create subtitle with dark background at bottom."""
        sub = Text(text_str, font_size=22, color=WHITE, weight=BOLD)
        # Prevent subtitle from overflowing left/right edges
        max_width = config.frame_width - 1.0  # 0.5 margin each side
        if sub.width > max_width:
            sub.scale_to_fit_width(max_width)
        sub.to_edge(DOWN, buff=0.4)
        bg = BackgroundRectangle(sub, color=BLACK, fill_opacity=0.6, buff=0.15)
        return VGroup(bg, sub)

    def construct(self):
        self.set_speech_service(GTTSService(lang="en"))

        # Scene 1: Title
        title = Text("Title", font_size=48, color=BLUE)
        sub_text = "Welcome to the demo video."
        with self.voiceover(text=sub_text) as tracker:
            sub = self._make_subtitle(sub_text)
            # FadeIn(sub) in the FIRST play() to sync subtitle with voice
            self.play(Write(title), FadeIn(sub), run_time=tracker.duration)
        self.play(FadeOut(sub))
        self.wait(0.3)

        # Scene 2: Content
        self.play(Fa

skill-card.md

## Description:

Create mathematical animations with synchronized voiceover narration and subtitles using Manim Community and manim-voiceover.

This skill is ready for commercial/non-commercial use.

## Publisher:

[hzsunzixiang](https://clawhub.ai/user/hzsunzixiang)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, educators, and content creators use this skill to generate Manim scene code, render narrated mathematical or educational animations, and optionally produce synchronized subtitles.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Cloud TTS providers such as gTTS may process narration text outside the local environment.

Mitigation: Avoid confidential narration with cloud TTS and use the offline pyttsx3 backend when privacy matters.

Risk: Dependency installation can introduce package-source and environment risks.

Mitigation: Install in a virtual environment or container and review package sources before adding optional TTS backends.

Risk: Missing ffmpeg libx264 or libass support can prevent video rendering or subtitle burn-in.

Mitigation: Run the provided environment check before rendering and install an ffmpeg build that includes libx264 and libass.

Risk: Combining in-scene subtitles with SRT burn-in can create overlapping subtitle layers.

Mitigation: Choose either in-scene subtitles or SRT burn-in for a given video, not both.

## Reference(s):

- [Manim Animation Technical Guide](references/manim_guide.md)
- [ClawHub Skill Page](https://clawhub.ai/hzsunzixiang/skills/manim-animation-en)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with Python, INI, and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce Manim scene files, manim.cfg settings, render commands, subtitle workflow guidance, and environment-check instructions.]

## Skill Version(s):

1.0.3 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Manim Animation En and adjacent AI workflows.