mcpField
C
colorize

colorize

github.com/vibe-motionCreative & media1.4k92 installsUpdated 4w ago
Repository

About colorize

colorize is a command-line skill that turns images, videos, and motion photos into MP4 clips with an animated color reveal. It is for users who want to process one or more media files with adjustable effects and output settings.

Key features

  1. 01Processes images, videos, and motion photos
  2. 02Joins multiple inputs into one MP4
  3. 03Adjustable reveal and effect parameters
  4. 04Retains video audio when available
  5. 05Validates output with ffprobe

Use cases

  1. 01Animate a still photo into a reveal clip
  2. 02Apply a reveal effect to video footage
  3. 03Combine several photos or clips into one MP4
  4. 04Customize effect settings for an output

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vibe-motion/skills --skill colorize

After installing, type/colorizein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
scripts/
colorize.py
requirements.txt

Details

From the project README

Colorize

Workflow

  1. Collect the user's inputs: images, videos, or Live Photos. Use absolute paths.
  2. Resolve the skill directory and install dependencies once (see Requirements).
  3. Run scripts/colorize.py with the inputs and an output path.
  4. Wait for VALIDATION=PASS and OUTPUT_VIDEO=<absolute path>.
  5. Optionally extract a few frames with ffmpeg to check the look before replying.
  6. Return the output path and the settings used.

Quick Start

skill_dir=""
for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
  if [ -d "$base/skills/colorize" ]; then
    skill_dir="$base/skills/colorize"
    break
  fi
done
[ -n "$skill_dir" ] || { echo "colorize skill not found under ~/.agents, ~/.claude, or ~/.codex"; exit 1; }

python3 -m pip install -r "$skill_dir/scripts/requirements.txt"
python3 "$skill_dir/scripts/colorize.py" "/abs/path/photo.jpg" -o "$(pwd)/out/photo_colorize.mp4"

If the agent already knows the directory containing this SKILL.md, use that as skill_dir.

Inputs

InputWhat happens
Image (png jpg jpeg webp heic heif avif bmp tif)Static plate; the reveal lasts --duration seconds, then --hold seconds of the settled frame.
Video (mp4 mov m4v webm mkv avi gif)Each source frame keeps moving; the reveal runs over the first --duration seconds and the rest of the clip keeps the settled look. Audio is kept.
iPhone Live PhotoPass the still (IMG_0001.HEIC or .JPG). A same-name .MOV beside it is used automatically, with its audio. Pass the .MOV directly for the same result.
Android motion photoPass the .jpg; the embedded MP4 (Google MP.jpg / MVIMG, Samsung) is extracted automatically.
Several inputsRendered in order and joined into one MP4. Each input gets its own reveal.

Use --still to ignore Live Photo or motion photo video and animate only the still.

Common Commands

# One photo, 2 s reveal + 0.5 s hold
python3 "$skill_dir/scripts/colorize.py" photo.jpg --hold 0.5 -o out/photo.mp4

# Live Photo (IMG_0001.MOV next to it is picked up)
python3 "$skill_dir/scripts/colorize.py" IMG_0001.HEIC -o out/live.mp4

# Video: slower 3 s reveal, keep the first 6 s
python3 "$skill_dir/scripts/colorize.py" clip.mov --duration 3 --max-length 6 -o out/clip.mp4

# Several images and videos as one vertical reel
python3 "$skill_dir/scripts/colorize.py" a.jpg b.heic c.mov --size 1080x1920 -o out/reel.mp4

# Stronger spin and a little more glow
python3 "$skill_dir/scripts/colorize.py" photo.jpg --set angle=0.09 --set bloom=0.7 -o out/strong.mp4

Options

OptionDefaultMeaning
-o, --output<first input>_colorize.mp4Output MP4 path.
--duration2Reveal length in seconds.
--hold0Images only: seconds to hold the settled frame.
--fps30Output frame rate.
--size WxHfirst input's aspect, long edge ≤ --max-edgeForce output size; other inputs are center-cropped to it.
--max-edge1920Long-edge cap when --size is not set. Never upscales.
--max-lengthfull clipVideos: keep at most this many seconds.
--stilloffIgnore Live Photo / motion photo video.
--muteoffDrop audio.
--set KEY=VALUE—Override one effect parameter (repeatable).
--params file.json—Override several effect parameters.
--crf17x264 quality; lower is larger and sharper.

Effect Parameters

The defaults were fitted to the Jianying effect stack on static photos. Useful knobs for --set:

KeyDefaultEffect
angle0.0503Spin-blur arc in radians; larger is stronger, the sign sets direction. Decays to zero.
focus_scale0.9Final width of the sharp center disc; larger settles the edges sooner.
motion0.70Horizontal motion-blur strength; decays to zero.
blur_power1.0Blur decay curve; larger fades faster.
front_speed0.63Speed of the color sweep.
edge0.24Softness of the color/mono boundary.
bloom / rays0.54 / 0.29Soft glow and radial light-ray strength.
softness2.3Residual softening; 0 is sharpest.
saturation0.98Final saturation.
center_x, center_y0.5Spin center in UV (y up).

Behavior

  • Renders on the GPU with OpenGL 3.3 through moderngl (falls back to EGL on headless Linux) and encodes H.264 yuv420p BT.709 MP4 with ffmpeg.
  • Output follows the first input's aspect ratio and orientation, including rotation metadata on phone videos.
  • HDR (HLG/PQ) videos are tone-mapped to SDR when ffmpeg has zscale.
  • HEIC/AVIF stills need pillow-heif, macOS sips, or an ffmpeg with HEIF support.
  • When any input has audio, every segment carries an AAC track (silence for images) so joined clips stay in sync.
  • Videos shorter than --duration get a compressed reveal that still ends fully settled.
  • Prints VALIDATION=PASS after checking the output's size, duration, and audio with ffprobe.

Requirements

  • Python 3.9+ with numpy, moderngl, Pillow (scripts/requirements.txt); optional pillow-heif
  • ffmpeg and ffprobe on PATH
  • A GPU or driver with OpenGL 3.3 (macOS, Windows, desktop Linux, or Linux with EGL)

On macOS, if moderngl has to build from source: CXXFLAGS='-std=c++11' python3 -m pip install moderngl.

Comments

Markdown supported