vid2anim
AI Motion Capture & Universal 3D Character Retargeting Studio
Turn any video or photo into production-ready 3D character animations.
Works with Mixamo, VRM / VTubers, Blender Rigify, Unreal Engine Mannequins, Daz3D, and even raw unrigged meshes.
Showcase • Sample Assets • Key Features • Triple AI Engines • Three Ways to Use • Supported 3D Rigs • 2-Minute Quickstart • Blender Add-on Guide • Animator Tips
🎬 Walkthrough & Visual Showcase
1. Synchronized Multi-Character Studio Demo
Reference video driving dual independent character armatures in lockstep with 5-digit finger articulation, metric root trajectory, and stance-foot ground contact.
2. Full Web Studio & Pipeline Walkthrough
End-to-end browser workflow: real-time milestone progress bar, live event logging, skeleton helper overlays, frame scrubbing, and one-click GLB download.
| 🎬 Studio Walkthrough | ⚡ Trio Comparison Demo | 📦 Sample Assets |
|---|---|---|
| ▶ Watch on YouTube (60s) Complete Studio UI, progress tracking & download |
▶ Watch on YouTube (27s) Synchronized reference video with dual GLB characters |
📁 Explore Sample Assets Pre-rigged models ( ybot.glb, eve.glb) & sample videos |
⚡ Why 3D Artists & Animators Love vid2anim
Most AI mocap tools force you into proprietary cloud subscriptions, require expensive multi-thousand-dollar GPUs, or spit out locked skeletons that don't match your character's armature.
vid2anim is an open-source, artist-friendly 3D workstation tool designed to fit right into your existing Blender, Unreal, Unity, or VTuber pipeline:
- 🚀 Triple-Engine Tracking Suite: Choose the right engine for your hardware and quality needs — from ultra-fast 100% CPU MediaPipe tracking (60+ FPS) to studio-grade parametric 3D Human Mesh Recovery (GVHMR + SMPL-X).
- 🔒 Strict Project Directory Isolation: Never pollutes or fills your system
C:drive. All model weights, PyTorch caches, HuggingFace downloads, and temp files are strictly isolated inside./weights,./assets, and./inputs. - ⚡ Asynchronous Frame Prefetching (
AsyncVideoReader): Multithreaded background decoding overlaps video I/O with model inference, eliminating CPU decode stalls and boosting pipeline throughput by ~30%. - 🚶 Real World Root Motion & Foot Grounding: Characters actually walk, sprint, and jump across 3D space with metric world translation ($X, Z$) and stance-foot ground contact ($Y$), eliminating root freeze and foot sliding.
- 🔌 Native Blender 3D Add-on: Retarget reference video directly onto your character armature inside Blender with a single click. Bakes standard keyframes straight to the Blender Timeline & Action Editor.
- 🌐 Interactive Web Studio: Drag-and-drop your video and 3D character (
.glb,.fbx,.obj). Preview synchronized side-by-side motion in real time with an interactive Three.js 3D orbit viewport before exporting. - 🖐️ 5-Digit Anatomical Finger Articulation: Captures independent Thumb, Index, Middle, Ring, and Pinky flexion. No rigid "mitten hands" or static fists.
- 🎯 Universal Rig Auto-Detection: Automatically matches bones for Mixamo, VRM (Ready Player Me / VTubers), Blender Rigify, Unreal Engine Mannequins (UE4/UE5), and Daz3D / Character Creator.
- 🦴 Auto-Rigging for Static Meshes: Have an unrigged 3D statue or creature mesh? The built-in auto-rigger automatically fits a humanoid skeleton and computes smooth skinning weights.
- 📦 Universal glTF 2.0 & BVH Export: Exports clean, strictly compliant
.glbfiles ready for Blender, Unreal Engine, Unity, Three.js, Godot, and Web, plus standard.bvhfiles for Maya, Cinema 4D, and 3ds Max.
🧠 Triple AI Tracking Engine Suite
vid2anim provides three specialized AI tracking engines, selectable via CLI (--engine), the Web UI, or the Blender Add-on:
| Engine | Ideal Use Case | Speed / FPS | Hardware | Download Size | Key Capabilities |
|---|---|---|---|---|---|
MediaPipe Pose--engine mediapipe |
Instant setup, standard laptops, mobile clips | 60–100+ FPS | 100% CPU Ready | ~28 MB (Lightweight) | Real-time tracking, 2D-to-3D screen unprojected root motion, zero heavy downloads. |
DWPose WholeBody--engine dwpose |
Expressive gestures, dance, sign language | 25–45 FPS | CPU or CUDA | ~150 MB (ONNX) | 133 WholeBody keypoints with 21-point anatomical finger curl and face tracking. |
GVHMR Studio (3D HMR)--engine gvhmr |
Studio cinemactics, full-body turns, actor travel | Deep Recovery | CPU or CUDA | ~5.3 GB (Full SOTA) | Parametric SMPL-X human mesh recovery in gravity-view world coordinates, true metric root trajectory. |
🎬 Three Ways to Use vid2anim
Choose the workflow that fits your creative setup:
1. In Blender (1-Click Viewport Add-on)
Best for: 3D Animators, Riggers, and Character Artists.
No need to leave Blender! Install the included add-on (plugins/blender/vid2anim_blender.py):
- Press N in the 3D Viewport to open the sidebar tab
vid2anim. - Select your character's armature in the scene.
- Choose your reference video or photo and select your preferred engine (MediaPipe, DWPose, or GVHMR Studio).
- Click "Animate Selected Armature".
- Keyframes are baked directly into a native Blender Action, ready for tweaking in the Graph Editor or NLA Stacks.
2. In Your Browser (Web Studio & Real-Time 3D Player)
Best for: Quick previews, game devs, VTubers, and visual inspection.
Launch the local studio with one command:
vid2anim serve --port 8080
Open http://localhost:8080 to access:
- Drag-and-Drop Station: Drop your reference
.mp4/.jpgon the left, and your.glb/.fbxcharacter on the right. - Tracking Engine Selector: Toggle between MediaPipe, DWPose, or GVHMR Studio with 1 click.
- Synchronized Side-by-Side Playback: Scrub video and 3D motion together with sub-frame timecode display and frame-stepping buttons (◀ / ▶).
- Interactive 3D Orbit Viewport: Rotate, pan, zoom, inspect skeleton bones, toggle wireframe, and check ground alignment.
- 1-Click Download: Download the animated
.glbor export universal.bvhmotion files instantly.
3. Command Line & Automation (Pipeline TDs & Batch Work)
Best for: Technical Directors, game studios, and processing entire motion libraries.
# 1. Animate sample humanoid with ultra-fast CPU MediaPipe tracking (works out-of-the-box):
vid2anim run --input samples/videos/dance_urban.mp4 --model samples/models/ybot.glb --engine mediapipe --output outputs/ybot_dance.glb
# 2. Animate with high-detail 5-digit finger articulation on Eve:
vid2anim run --input samples/videos/dance_street.mp4 --model samples/models/eve.glb --engine dwpose --output outputs/eve_dance.glb
# 3. Extract motion once to reusable cache, then retarget onto multiple characters:
vid2anim extract --input samples/videos/dance_urban.mp4 --engine mediapipe --output outputs/motion_urban.npz
vid2anim retarget --motion outputs/motion_urban.npz --model samples/models/ybot.glb --output outputs/ybot_anim.glb
vid2anim retarget --motion outputs/motion_urban.npz --model samples/models/eve.glb --output outputs/eve_anim.glb
# 4. Batch animate entire directory of videos across multiple 3D characters:
vid2anim batch --input-dir ./my_videos --model-dir ./my_characters --output-dir ./outputs/batch --engine mediapipe
# 5. Export or auto-install Blender Bridge 3D Add-on:
vid2anim addon --export # Packages outputs/vid2anim_blender.zip
vid2anim addon --install # Auto-detects local Blender 3.0 - 4.2+ LTS & installs directly
# 6. Benchmark hardware throughput & retargeting FPS:
vid2anim benchmark --frames 60
# 7. Check environment, active tracking engines & isolated storage:
vid2anim info
vid2anim samples list # Inspect bundled characters and dance videos
🦾 Supported Character Rigs & Formats
vid2anim comes pre-configured with bone mapping dictionaries and topological solvers for the world's most popular 3D character ecosystems:
| Character Rig / Ecosystem | Common Bone Prefixes | Finger Tracking | Default Rest Pose | Target Tools & Engines |
|---|---|---|---|---|
| Mixamo | mixamorig:Hips, mixamorig:LeftArm |
All 5 Digits | T-Pose | Blender, Unity, Unreal, Web |
| VRM / VTuber | J_Bip_C_Hips, hips, leftUpperArm |
All 5 Digits | T-Pose / A-Pose | VRChat, VTubing, Unity, Three.js |
| Ready Player Me | Armature/Hips, LeftHandIndex1 |
All 5 Digits | T-Pose | Web3D, Unity, Unreal, Godot |
| Blender Rigify | DEF-spine, DEF-upper_arm.L |
All 5 Digits | T-Pose / A-Pose | Blender Film & VFX Pipeline |
| Unreal Engine Mannequin | pelvis, upperarm_l, hand_l |
All 5 Digits | A-Pose (30° / 45°) | Unreal Engine 4 & 5 Blueprints |
| Daz3D / Character Creator | hip, lShldr, lForeArm |
All 5 Digits | T-Pose | Cinematics, Metahumans |
| Static Meshes (Auto-Rig) | Raw unrigged mesh | Procedural | Auto-Fitted | Any .glb, .gltf, or .obj |
Tip: Not sure how your model is rigged? Run
vid2anim inspect your_model.glbto get an instant terminal breakdown of all bones, detected rig profile, and joint bindings.
🎨 What Makes It Built for 3D Artists?
🖐️ Natural 5-Digit Hand Tracking
Most AI motion systems leave hands frozen or lock fingers into rigid blocks. vid2anim models natural human hand anatomy with independent flexion and curling cascades for:
- Thumb: CMC, MCP, and IP articulation.
- Fingers: Proximal, Intermediate, and Distal joints for Index, Middle, Ring, and Pinky.
- Auto-Curling: Captures expressive gestures, pointing, open palms, and clenched fists.
🧘 Zero Gimbal Lock & No 360° "Bone Pop" Flips
By using closed-form Lie algebra basis transformations ($C D C^T$) and continuous quaternion shortest-arc SLERP, joints never flip 180°/360° or suffer from Euler angle gimbal lock when limbs cross axes.
🌊 Adaptive Anti-Jitter Filtering
Raw computer vision mocap is notoriously noisy. vid2anim applies temporal smoothing with velocity spike clamping:
- Eliminates micro-shiver and jitter on stationary joints.
- Preserves sharp, high-velocity movements (punches, kicks, fast dance steps).
🦶 Root Grounding & Stance Foot Anchoring
Calculates true hip trajectory relative to ground contact, preventing characters from floating in mid-air or sinking into the floor during squats, walking, and running.
🚀 2-Minute Quickstart
1. Installation
Requires Python 3.10, 3.11, or 3.12:
# Clone the repository
git clone https://github.com/mehulcode12/vid2anim.git
cd vid2anim
# Create & activate a virtual environment
python -m venv .venv
# On Windows: .venv\Scripts\Activate.ps1
# On Linux/macOS: source .venv/bin/activate
# Install vid2anim
pip install -e .
2. Verify Your System
vid2anim doctor
Checks your CPU cores, compute device, and AI tracking engines.
3. Launch the Web Studio
vid2anim serve --port 8080
Open http://localhost:8080 in your browser and start animating!
4. Animate Sample Character in 30 Seconds
vid2anim run \
--input samples/videos/dance_urban.mp4 \
--model samples/models/ybot.glb \
--engine mediapipe \
--output outputs/my_first_dance.glb
📦 Included Sample Models & Videos
To get started immediately without hunting for 3D assets or reference footage, vid2anim comes bundled with official sample assets in samples/:
| Asset Type | File Path | Rig Type / Motion Style | Specs | Size | Best For |
|---|---|---|---|---|---|
| Humanoid Robot | samples/models/ybot.glb |
Adobe Mixamo Humanoid | 52 Bones, T-Pose | 2.2 MB | Fast CPU tracking, quick testing |
| Stylized Character | samples/models/eve.glb |
Adobe Mixamo Humanoid | 65 Bones, 5-Digit Hand Rigging | 18.3 MB | Expressive finger gestures & textured renders |
| Urban Dance | samples/videos/dance_urban.mp4 |
Dynamic urban rhythm | 1080×1920, 25 FPS, 11.2s | 6.8 MB | Sharp arm movements & foot grounding |
| Street Freestyle | samples/videos/dance_street.mp4 |
Street dance choreography | 1080×1920, 25 FPS, 15.2s | 10.3 MB | Torso travel, leg steps & hand gestures |
See
samples/README.mdfor full rig specs, bone hierarchy tables, and batch scripts.
🧩 Blender 3D Bridge Add-on
vid2anim includes a dedicated bridge add-on for Blender 3.0, 3.6 LTS, 4.0, 4.1, and 4.2+ LTS.
How to Install:
- Start the local server:
vid2anim serve --port 8080 - Open Blender → Edit → Preferences → Add-ons.
- Click Install... (or the arrow dropdown in 4.2) and select:
(Or click "Download Blender Add-on" from the Web Studio header).plugins/blender/vid2anim_blender.py - Enable the checkbox for Animation: vid2anim Blender Bridge.
How to Use:
- In the 3D Viewport, press N to toggle the sidebar, and click the
vid2animtab. - Select your character's armature.
- Browse for your reference video or photo and choose your engine.
- Click "Animate Selected Armature".
- Done! The animation is now a native Blender Action.
💡 Animator & Capture Best Practices
For the cleanest, production-ready mocap results:
| Factor | Recommended | Avoid |
|---|---|---|
| Framing | Full body visible (head to toes in frame) | Cut-off feet or cropped hands |
| Camera | Static camera at chest height | Shaky handheld, extreme bird's-eye / worm's-eye |
| Lighting | Clear contrast between actor and background | Strong silhouettes or dark environments |
| Clothing | Form-fitting or casual everyday clothes | Baggy dresses, long cloaks, heavy trench coats |
| Model Rest Pose | Clean T-Pose or 45° A-Pose | Custom distorted bind poses |
💻 CLI Reference Cheat Sheet
| Command | Usage | Description |
|---|---|---|
vid2anim serve |
vid2anim serve --port 8080 |
Launch local Web Studio & interactive Three.js 3D player |
vid2anim run |
vid2anim run -i clip.mp4 -m rig.glb --engine gvhmr -o out.glb |
Full end-to-end video-to-character animation pipeline |
vid2anim batch |
vid2anim batch -i clips/ -m characters/ -o outputs/batch |
Batch process multiple videos and 3D character models |
vid2anim addon |
vid2anim addon --export / vid2anim addon --install |
Package or auto-install Blender Bridge 3D Add-on |
vid2anim extract |
vid2anim extract -i clip.mp4 --engine dwpose -o motion.npz |
Extract 3D skeletal motion to reusable cached .npz |
vid2anim retarget |
vid2anim retarget -m motion.npz --model rig.glb -o out.glb |
Retarget cached motion onto any 3D model |
vid2anim benchmark |
vid2anim benchmark --frames 60 |
Test hardware throughput, universal retargeter & pose FPS |
vid2anim samples |
vid2anim samples list / vid2anim samples run |
Inspect, demo test, or copy bundled characters & dance clips |
vid2anim inspect |
vid2anim inspect character.glb |
Inspect bones, rig type (Mixamo/VRM/UE), and rest pose |
vid2anim doctor |
vid2anim doctor |
Run hardware diagnostics (CPU, CUDA GPU, FFmpeg, engines) |
vid2anim info |
vid2anim info |
Quick overview of version, active engines & isolated paths |
🛠️ Python Developer API
Integrate retargeting into your custom Python DCC pipelines:
from pathlib import Path
from vid2anim import PipelineConfig, Vid2AnimPipeline
config = PipelineConfig(
input_media=Path("mocap_reference.mp4"),
target_model=Path("game_character.glb"),
output_glb=Path("output/game_character_animated.glb"),
engine="gvhmr", # "mediapipe", "dwpose", or "gvhmr"
smooth=True, # Anti-jitter filter
max_duration_sec=60.0,
)
pipeline = Vid2AnimPipeline(config)
result = pipeline.execute()
if result.success:
print(f"Animation saved: {result.output_glb} ({result.frame_count} frames)")
🤝 Contributing
We welcome contributions from animators, technical directors, and developers!
- Found a character rig that doesn't map cleanly? Open an issue with your bone hierarchy!
- Have ideas for Blender add-on UI improvements? Pull requests are warmly welcomed.
📄 License
This project is licensed under the MIT License — free for commercial, indie, and personal use.
Metadata
Release files for vid2anim 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vid2anim-0.1.1.tar.gz | 126.3 kB | Without provenance | Details for vid2anim-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vid2anim-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vid2anim-0.1.1-py3-none-any.whl |
Total release size: 237.0 kB
Release files / vid2anim-0.1.1.tar.gz
| Download URL | vid2anim-0.1.1.tar.gz |
|---|---|
| Size | 126.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0f97de4700bba1a5675018d0830b2f3bd424c33e468e5017efd0c1e4c82257a
|
|
BLAKE2b-256 checksum How to use checksums |
14f133d42474a801cdd5477e64674866de773f368ef828e2bd8710dee87a0222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / vid2anim-0.1.1-py3-none-any.whl
| Download URL | vid2anim-0.1.1-py3-none-any.whl |
|---|---|
| Size | 110.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
725e4784eb53ca5a8020983d0a2179a662321ad479fe7e065492233fe8a28d61
|
|
BLAKE2b-256 checksum How to use checksums |
3ad151b7aa13050103be543b4d854b0fc71448d22cb58c9bc0f6fbf12131886c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for vid2anim 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.