Skip to main content
Back

Cyber Monday Deal: Get 20% off all AlphaSignal Pro subscriptions. Ends soon.

Motion2MixamoRig Turns a Phone Video Into a Rigged 3D Animation

A new open-source pipeline takes a single-person video and spits out a Mixamo-rigged GLB you can drop straight into Blender or Unity.

  • Motion2MixamoRig retargets human motion from a single-person video onto an Adobe Mixamo-rigged 3D character.
  • Built on GVHMR for world-grounded motion recovery plus SMPL-X body model and Mixamo retargeting.
  • Outputs skinned .glb, per-bone rotations, skeleton .npz, and four preview videos per run.
  • Apache-2.0 code; around 1,000 GitHub stars already on the repo.
  • Runs on CPU; first run pulls ~5 GB of weights and takes 8 to 15 minutes per 30-second clip.
  • Limited to single-person clips; hand detail limited; SMPL-X assets are gated for non-commercial use by default.

Motion2MixamoRig is an Apache-2.0 command-line pipeline that accepts a monocular video of one person and a Mixamo FBX character, recovers the person’s body motion, retargets it to the character, and exports a skinned, animated .glb. “Monocular” means the source can come from one ordinary camera, including a phone, with no depth sensor, marker suit, or capture studio.

The repository has 2 GitHub stars. Its practical contribution is packaging several research components behind a small CLI, complete with preview renders and intermediate motion files for inspection. The Apache license covers the repository’s code; SMPL-X, Mixamo assets, and downloaded model weights carry separate terms.

Gravity anchors the recovered motion

The pipeline uses GVHMR to estimate human motion from the source video. GVHMR defines a frame-by-frame coordinate system from estimated gravity and the camera’s viewing direction, giving the recovered body a consistent reference for orientation and movement through the scene. Its per-frame regression also limits the accumulated drift associated with autoregressive methods that feed each prediction into the next.

Motion2MixamoRig represents the recovered person with an SMPL-X body model, then maps those joints and rotations onto the target Mixamo skeleton. The final GLB contains a mesh bound to the rig plus its animation, while the intermediate files preserve the motion data for reuse or debugging.

Three assets, two commands

After installing the package according to the repository instructions, place these inputs in assets/:

  • An SMPL-X model obtained under the appropriate license.
  • A Mixamo FBX character, such as Y Bot.
  • A video containing one clearly visible performer.
m2mr doctor   # validate the environment and assets
m2mr run      # recover motion and retarget the character

m2mr doctor checks the environment and required files before processing begins. Both commands sample video frames and stop when they detect multiple people, reflecting the pipeline’s single-person scope.

Outputs expose every stage

Each run creates a timestamped directory with the exported character, reusable motion data, and visual checks:

Output Purpose
skeleton_motion.npz Stores the recovered skeleton motion for later processing or retargeting.
Mixamo joint rotations Records the animation after conversion to the target rig.
mixamo_character.glb Provides the skinned, animated character for downstream tools.
Four preview videos Show the source, recovered human skeleton, Mixamo skeleton, and final character, including a four-panel comparison.

Passing --skeleton with motion from an earlier run lets developers animate another Mixamo character without repeating the slower video-extraction stage. Blender can import the GLB through File, Import, glTF 2.0; Unity requires glTF import support.

Best on one visible performer

  • Reference-video animation: A single performer can supply body motion for prototypes, previs, and game animation tests.
  • Character swaps: Extracted motion can be reused across compatible Mixamo rigs.
  • Inspectable processing: Intermediate files and comparison videos make retargeting errors easier to locate.
  • CPU-only environments: The pipeline runs without CUDA, which helps on machines without an Nvidia GPU.

CPU time, hands, and other limits

Constraint Practical effect
CPU runtime A 30-second clip takes about 8 to 15 minutes on the first run and 3 to 5 minutes after the model weights are cached.
Model download The first m2mr run downloads roughly 5 GB of GVHMR weights into weights/.
Multiple people Scenes containing more than one detected person are rejected.
Hands and fingers Fine articulation remains limited by GVHMR’s recovery quality, which focuses primarily on body motion and global movement.
Optional ffmpeg Processing can complete without it, although preview videos lose audio and may use formats that browsers cannot play.

Robot workflows need another mapping layer

Humanoid-robotics research increasingly uses video recovery models such as GVHMR to reconstruct SMPL motion from RGB clips, then maps that motion onto robots such as the Unitree G1. Motion2MixamoRig packages a similar front end around the widely used Mixamo skeleton, making it a potential intermediate format for motion-dataset experiments.

Robot use still requires joint correspondence, scale calibration, contact cleanup, joint-limit enforcement, and validation in a physics simulator. The exported GLB supplies a character reference rather than a robot-ready control trajectory.

Practical applications include:

  1. Prototyping character animations from reference footage.
  2. Building motion datasets for particular characters or movement styles.
  3. Creating rough previs from footage captured outside a studio.
  4. Preparing humanoid motion references for later robot-specific retargeting.

Each component has its own license

Component License consideration
Motion2MixamoRig code Released under Apache-2.0.
SMPL-X model Distributed through MPI under terms that generally limit the default license to non-commercial research, education, and artistic use. Commercial deployment requires separate permission.
Mixamo FBX assets Adobe’s terms generally permit use inside a finished product while restricting redistribution of the raw character or animation files.
GVHMR weights Remain subject to their upstream license, independent of the wrapper’s Apache-2.0 license.

Teams should record asset versions, weight sources, and license terms with each dataset or shipped build, especially when a workflow moves from research into commercial use.