How freddysae0/video2mocap works
video2mocap turns video into multi-person skeletal animation, then supports cleanup, review/editing, facial animation, viewing and engine export. A separate scan workflow reconstructs textured meshes from photos or video. The README documents the end-to-end behavior; source excerpts and the SOURCE INDEX establish selected implementation relationships. Some subsystem internals were not sampled, so undocumented connections are omitted.
Main entry points: cli.py CLI commands · run.py Run orchestration · video2mocap/pipeline.py Motion cleanup · scan/pipeline.py Photogrammetry pipeline
Components 27
Capture and estimation
- Person tracking
src/video2mocap/tracking.py - GEM-X estimator adapter
src/video2mocap/backends/gemx.py - Raw track motion
src/video2mocap/motion.py - Run orchestration
src/video2mocap/run.py
Motion processing
- Motion cleanup
src/video2mocap/pipeline.py - Smoothing filters
src/video2mocap/process/filters.py - Contact detection
src/video2mocap/process/contacts.py - Grounding and foot lock
src/video2mocap/process/footlock.py - Leg IK
src/video2mocap/process/ik.py - Motion metrics
src/video2mocap/qa/metrics.py
Review and editing
- Review sheets
src/video2mocap/qa/review.py - Review inputs
src/video2mocap/review_io.py - Declarative motion edits
src/video2mocap/process/edit.py - Web viewer and editor
src/video2mocap/viewer/export.py
Face and delivery
- Face capture
src/video2mocap/face/capture.py - Face synchronization and attach
src/video2mocap/face/sync.py - Face attachment
src/video2mocap/face/attach.py - BVH I/O
src/video2mocap/io/bvh.py - Blender FBX export
src/video2mocap/blender.py
Scene reconstruction
- Photogrammetry pipeline
src/video2mocap/scan/pipeline.py - Image cleaning
src/video2mocap/scan/clean.py - COLMAP
- OpenMVS
- Textured mesh and report
Other components
- Video creator
- CLI commands
src/video2mocap/cli.py - Blender and Unreal users
Connections 32
- Video creator → CLI commands: runs commands
README.md - CLI commands → Run orchestration: starts run
src/video2mocap/cli.py - Run orchestration → Person tracking: tracks people
README.md - Run orchestration → GEM-X estimator adapter: runs estimator
src/video2mocap/run.py - Person tracking → GEM-X estimator adapter: provides tracks
README.md - GEM-X estimator adapter → Raw track motion: loads motion
src/video2mocap/backends/gemx.py - Run orchestration → Motion cleanup: postprocesses motion
src/video2mocap/run.py - Motion cleanup → Smoothing filters: smooths motion
src/video2mocap/pipeline.py - Motion cleanup → Contact detection: detects contacts
src/video2mocap/pipeline.py - Motion cleanup → Grounding and foot lock: grounds and locks
src/video2mocap/pipeline.py - Grounding and foot lock → Leg IK: solves leg IK
src/video2mocap/process/footlock.py - Motion cleanup → Motion metrics: reports metrics
src/video2mocap/pipeline.py - Run orchestration → Review sheets: renders review
src/video2mocap/run.py - Review sheets → Review inputs: uses track inputs
src/video2mocap/review_io.py - Video creator → Declarative motion edits: writes edits
README.md - CLI commands → Declarative motion edits: applies edits
src/video2mocap/cli.py - Web viewer and editor → Declarative motion edits: applies saved edits
src/video2mocap/viewer/export.py - CLI commands → Web viewer and editor: serves viewer
src/video2mocap/cli.py - CLI commands → Face capture: captures face
src/video2mocap/cli.py - Face capture → Face synchronization and attach: synchronizes take
- CLI commands → Face attachment: attaches expressions
src/video2mocap/cli.py - Face attachment → Face capture: loads face take
src/video2mocap/face/attach.py - CLI commands → BVH I/O: exports BVH
src/video2mocap/cli.py - CLI commands → Blender FBX export: exports FBX
src/video2mocap/cli.py - BVH I/O → Blender FBX export: imports BVH
README.md - Blender FBX export → Blender and Unreal users: exports for engine
README.md - Video creator → Photogrammetry pipeline: starts reconstruction
README.md - Photogrammetry pipeline → Image cleaning: cleans images
src/video2mocap/scan/pipeline.py - Photogrammetry pipeline → COLMAP: runs SfM
src/video2mocap/scan/pipeline.py - Photogrammetry pipeline → OpenMVS: builds dense mesh
src/video2mocap/scan/pipeline.py - OpenMVS → Textured mesh and report: produces textured mesh
- COLMAP → OpenMVS: passes reconstruction