/media-os:media-svd [prompt] [output]from media-os
Generates short AI video clips from text or images using permissively licensed open-source models (LTX-Video, CogVideoX, Mochi, AnimateDiff). Supports text-to-video, image-to-video, and motion-controlled animation.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
scripts/svd.py t2v --model ltx --prompt "..." --duration 5 --fps 24 --out out.mp4 → Step 3.scripts/svd.py i2v --model cogvideox --init-image in.png --prompt "..." --duration 5 --out out.mp4 → Step 3.scripts/svd.py animate --workflow animatediff.json --out out.mp4 → Step 4.scripts/svd.py install ltx → Step 2.scripts/svd.py download --model ltx --yes → Step 2.media-sd image model workflow.| Model | License | Type | Typical duration | VRAM (FP16) | Notes |
|---|---|---|---|---|---|
| LTX-Video | Apache 2.0 | t2v + i2v | 5 s (up to ~17 s) | 24 GB (12 GB nf4) | Near-realtime on H100; fastest Apache model |
| CogVideoX-5B | Apache 2.0 | t2v + i2v | 6 s @ 8 fps | 24 GB | Best quality in the 5B class; 2B variant fits 12 GB |
| CogVideoX-2B | Apache 2.0 | t2v | 6 s | 12 GB | Smaller; good for consumer cards |
| Mochi-1 | Apache 2.0 | t2v | 5.4 s @ 30 fps | 60 GB+ (multi-GPU) | SOTA quality, heavy. Use 8-bit / tensor parallel |
| AnimateDiff | Apache 2.0 | motion module | 2–4 s | same as image model | Plugs into a media-sd image pipeline |
| Wan-Video 2.1 | Apache 2.0 | t2v + i2v | 5 s | 24 GB | Alibaba 2025; strong prompt adherence |
| HunyuanVideo | Tencent L. | t2v | 5 s | 60 GB+ | Commercial cap — flag before use; NOT default |
Read references/models.md for per-model prompt style, sampler/scheduler pairs, and published VBench / human-eval scores.
Check environment:
uv run .claude/skills/media-svd/scripts/svd.py check
uv run .../svd.py install ltx
# → pip install diffusers transformers accelerate torch imageio imageio-ffmpeg
uv run .../svd.py download --model ltx --yes
# → huggingface_hub snapshot_download into HF cache
See the media-sd skill for ComfyUI install. Then download video-model nodes via ComfyUI-Manager:
ComfyUI-LTXVideoComfyUI-CogVideoXWrapperComfyUI-MochiWrapperComfyUI-AnimateDiff-EvolvedComfyUI-WanVideoWrapperuv run .../svd.py t2v \
--model ltx \
--prompt "a cat jumping off a sofa, cinematic, 35mm film grain" \
--duration 5 --fps 24 \
--width 768 --height 512 \
--out cat.mp4 --seed 42
LTX-Video wants resolution as a multiple of 32. CogVideoX is fixed to 720x480. The script rounds/validates per-model.
uv run .../svd.py i2v \
--model cogvideox \
--init-image first_frame.png \
--prompt "the wind blows and the flag starts waving" \
--duration 6 --fps 8 \
--out waving.mp4
The init-image becomes the first frame. Keep the prompt consistent with the image — conflicting prompts ("dog" when the image is a cat) produce artifacted morphs.
# ComfyUI running on 8188, workflow loaded with AnimateDiff nodes
uv run .../svd.py animate \
--workflow animatediff_sana.json \
--out anim.mp4 --server http://127.0.0.1:8188
AnimateDiff adds temporal attention to a frozen image UNet. Inside the ComfyUI
workflow, wire AnimateDiffLoaderGen1 between ModelLoader and KSampler. Use
Apache 2.0 image backbones only (Sana, PixArt-Sigma — see media-sd).
Typical follow-ups:
media-upscale (Real-ESRGAN).media-interpolate (RIFE / FILM).ffmpeg -i video.mp4 -i music.mp3 -c:v copy -c:a aac -shortest final.mp4 (or use ffmpeg-transcode).ffmpeg-cut-concat.genmoai/mochi-1-preview with bitsandbytes) that fits in 40 GB.media-interpolate. LTX-Video does 24 fps native. AnimateDiff defaults to 8 fps.imageio_ffmpeg.enable_sequential_cpu_offload() halves speed but halves VRAM. Use when OOM.diffusers>=0.32 for reproducibility.uv run .../svd.py t2v --model ltx \
--prompt "a ginger cat leaps from a sofa to a bookshelf, slow motion" \
--duration 5 --fps 24 --width 768 --height 512 \
--out cat.mp4 --seed 7
uv run .../svd.py i2v --model cogvideox-5b \
--init-image portrait.png \
--prompt "she smiles and turns her head slightly" \
--duration 6 --fps 8 --out smile.mp4
uv run .../svd.py t2v --model cogvideox-2b \
--prompt "neon Tokyo street at night, rain, reflections" \
--duration 6 --fps 8 --cpu-offload \
--out tokyo.mp4
# 1. Pre-author the ComfyUI workflow with AnimateDiffLoaderGen1 + Sana backbone
# 2. Run it:
uv run .../svd.py animate \
--workflow sana_animatediff.json --out anim.mp4 \
--server http://127.0.0.1:8188
uv run .../svd.py t2v --model wan \
--prompt "a hot-air balloon drifts over snow-capped mountains at sunrise" \
--duration 5 --fps 24 --width 832 --height 480 \
--out balloon.mp4
ModuleNotFoundError: No module named 'diffusers'Cause: diffusers stack not installed.
Solution: uv run .../svd.py install <model> or pip install diffusers transformers accelerate torch imageio imageio-ffmpeg.
CUDA out of memory on Mochi-1Cause: 60+ GB model doesn't fit.
Solution: switch to LTX-Video or CogVideoX-2B, or run Mochi under bitsandbytes 8-bit quant with --cpu-offload (~40 GB). True FP16 Mochi needs multi-GPU tensor parallel.
Cause: i2v with --strength 0.0 or mismatched prompt, or forgot --duration.
Solution: set --duration >= 2, ensure prompt describes motion ("she walks", "camera pans"), raise strength if using i2v.
Cause: T5 prompt too short, or negative prompt missing.
Solution: write a 30–60 word prompt describing subject + motion + camera + style. Add --negative-prompt "blurry, low quality, distorted".
Cause: native model fps is 8; --fps 24 upsampled by frame repeat.
Solution: do not oversell native fps. Render at native, then pass to media-interpolate (RIFE / FILM) for smooth 24/60 fps.
Cause: ComfyUI-AnimateDiff-Evolved custom node not installed.
Solution: in ComfyUI-Manager, install "AnimateDiff Evolved" by Kosinkadink. Or git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved custom_nodes/ComfyUI-AnimateDiff-Evolved.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job