Colab Video Gen
ASecurityUnattended AI video production pipelines — ComfyUI open video models (Wan, MiniMax H3, LTX, Hunyuan) and headless Blender rendering on Colab GPUs, Google Flow (Veo / Omni) through gflow-cli, Real-ESRGAN upscaling, and ffmpeg assembly — driven end to end by the agent with no human clicking. Use whenever the user wants to generate, render, upscale, interpolate or remix video or animation with ComfyUI, Blender, Google Flow, Veo, an open video model or a cloud GPU, even if they only describe the ...
- 435 stars
- 0 votes
- 0 copies
- 4 views
- Added November 29, 2026
Works with
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add aimpact-inc/repo-harness --skill colab-video-gen --agent claude-codeAre you the author of Colab Video Gen?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aimpact-inc-colab-video-gen)---
name: colab-video-gen
description: Unattended AI video production pipelines — ComfyUI open video models (Wan, MiniMax H3, LTX, Hunyuan) and headless Blender rendering on Colab GPUs, Google Flow (Veo / Omni) through gflow-cli, Real-ESRGAN upscaling, and ffmpeg assembly — driven end to end by the agent with no human clicking. Use whenever the user wants to generate, render, upscale, interpolate or remix video or animation with ComfyUI, Blender, Google Flow, Veo, an open video model or a cloud GPU, even if they only describe the result they want ("turn this image into a 10 s clip", "render this city flythrough").
---
# Video generation workflows (ComfyUI · Blender · Google Flow)
Worker entrypoint for video generation, rendering and upscaling. Read the sibling skill at `../colab-gpu-runner/SKILL.md` before you start a Colab job. For Google Flow, configure `gflow-cli` on the local machine as described in `references/gflow.md`. The Flow route spends Flow credits.
Set `SKILL_FILE` to the absolute path of this `SKILL.md` as loaded by the host. `V` is its directory. `JOB` points to `../colab-gpu-runner/scripts/colab_job.sh` from `V`.
## 1. Pick the route
| Want | Route | Read |
|---|---|---|
| Text/image → short clip with Google's models, fastest path | Google Flow (Veo 3.1, Omni) via local `gflow` | `references/gflow.md` |
| Open video model, custom workflow, image-to-video, first/last-frame bridging, audio | ComfyUI on Colab L4 (A100 for big models, with authorization) | `references/comfyui.md` |
| Real geometry: city/terrain flythrough, product shot, precise camera | Blender headless on Colab L4, optionally restyled afterwards | `references/blender.md` |
| Sharper / larger / 60 fps version of an existing clip | Flow's own upscale for Flow clips; Real-ESRGAN on Colab for the rest | `references/upscale.md` |
Combine routes when it helps: Blender for camera and layout → video-to-video restyle; Flow or an image model for keyframes → ComfyUI first/last-frame bridging; any clip → upscale → ffmpeg assembly locally.
## 2. Plan before spending
Write a short plan before provisioning anything: shots (count, length, aspect, fps), route per shot, GPU, the trial step, the estimated cost (units or Flow credits) and the deliverable path. Then:
1. **Lock the inputs that cap quality.** For image-to-video, the first frame sets the ceiling; settle the keyframe image before generating motion. Match the shot count to any reference video.
2. **Trial first, always.** One frame (Blender), 2 seconds or a low step count (ComfyUI), one 4 s 360p clip (Flow). Inspect it before the full run. Download the trial frame or clip and look at it (Read the image or extract a frame with ffmpeg), not just the exit code.
3. **One VM, many shots.** Install once, then queue every shot on the same VM; installs and model downloads are the expensive part of short jobs.
## 3. Colab job shape (ComfyUI, Blender, upscale)
```bash
V="$(dirname -- "$SKILL_FILE")"
JOB="$(dirname -- "$V")/colab-gpu-runner/scripts/colab_job.sh"
TASK="vid-render-$(date +%m%d%H%M)"
CFG="/path/to/scratch/$TASK.json"
OUT="./renders/$TASK"
mkdir -p "$OUT"
"$JOB" preflight "$CFG"
colab --config "$CFG" new -s "$TASK" --gpu L4 </dev/null
"$JOB" fuse "$CFG" 120
# Upload the scripts and inputs named in the route's reference.
"$JOB" spawn "$CFG" "$TASK" /content/job.sh /content/job.log KEY=VALUE
"$JOB" tail "$CFG" "$TASK" /content/job.log 30 # poll every 1–3 min
colab --config "$CFG" download -s "$TASK" /content/out/shot.mp4 "$OUT/shot.mp4" </dev/null
colab --config "$CFG" log -s "$TASK" -o "$OUT/session.ipynb" </dev/null
"$JOB" teardown "$CFG"
```
- Upload many files as one tarball (`tar czf in.tgz ...`, then `colab ssh -s $TASK -- tar xzf /content/in.tgz -C /content </dev/null`).
- Heavy downloads (tens of GB of weights) go straight to the VM disk with aria2c and pinned file names; never via Google Drive.
- Long generations run detached on the VM; this machine only polls. Never hold a foreground `colab exec` open for a generation.
## 4. Finishing locally
Install ffmpeg locally to concatenate shots with the concat demuxer, mux audio, and burn or attach captions. Keep each shot's parameters (prompt, seed, model, workflow JSON, frame range) next to the output so any shot can be regenerated by changing two lines.
## 5. Rules that are not about money
- Colab's terms forbid deepfakes. Do not generate a real, identifiable person's likeness or voice without that person's clear consent, even when the tooling makes it easy.
- Some open models require disclosure; MiniMax H3's community license requires labeling public releases as AI-generated. Check the license of every model in the workflow and tell the user what it requires.
- gflow-cli is an unofficial client of the user's own Flow account. Its README warns that Google may treat its headless browser differently in future; keep runs modest and paced, and stop on auth or account warnings instead of retrying.
- Remixing someone else's video: say what the source is and that rights to it stay with its owner; do not strip watermarks.
## 6. Report
Per shot: route, model or engine (with revision or commit), GPU or Flow model, seconds of compute, cost (units before/after, or Flow credits), and the output path. Plus the teardown result and any trial that changed the plan.
Files in this skill
- SKILL.md
- references/blender.md
- references/comfyui.md
- references/gflow.md
- references/upscale.md
- scripts/blender_gpu.py
- scripts/blender_render.sh
- scripts/comfy_api.py
- scripts/comfy_setup.sh
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.