Communitygithub.com

clipcheck

Check an AI-generated video clip (Seedance, Kling, Veo, Sora, Runway, Wan, Luma output) locally before using it. Runs clipcheck, which measures camera speed, flicker, frozen frames, unexpected cuts, black frames and letterbox, audio loudness and clipping, and gives a keep / review / regenerate verdict with a prompt fix for each problem. Use right after a video generation finishes, before editing a clip into a timeline or publishing it, when a clip "feels off" (too fast, shaky, frozen, flickering), or when deciding whether to regenerate. No API key needed.

What is clipcheck?

clipcheck is a Claude Code agent skill that check an AI-generated video clip (Seedance, Kling, Veo, Sora, Runway, Wan, Luma output) locally before using it. Runs clipcheck, which measures camera speed, flicker, frozen frames, unexpected cuts, black frames and letterbox, audio loudness and clipping, and gives a keep / review / regenerate verdict with a prompt fix for each problem. Use right after a video generation finishes, before editing a clip into a timeline or publishing it, when a clip "feels off" (too fast, shaky, frozen, flickering), or when deciding whether to regenerate. No API key needed.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/klakix-ai/clipcheck/tree/HEAD/skills/clipcheck

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

clipcheck: check a generated clip before you use it

Generation is the expensive step and you cannot see the result. Run the check first, then decide: use the clip, trim it, or fix the prompt and regenerate.

Setup

pip install clipcheck          # needs ffmpeg/ffprobe on PATH for audio and metadata
# or: pipx install clipcheck / uvx clipcheck check out.mp4

Workflow

  1. After a video finishes generating, run:

    clipcheck check out.mp4 --json
    

    For several clips pass a folder: clipcheck check shots/ --json (the output is then a list).

  2. Read verdict:

    • keep: use the clip.
    • review: look at every check with status warn. Many warnings are fine in context (a fast camera in an action shot). For a visual summary run clipcheck sheet out.mp4 -o sheet.png and look at the image.
    • regenerate: at least one check is fail. Fix the prompt (table below) and generate again.
  3. When you regenerate, change the prompt according to the failed or warned check's hint and the table. Change one thing per attempt so you can see what helped.

  4. Stop after three attempts for the same shot and tell the user which check keeps failing instead of burning more generations.

Useful flags: --profile strict (tighter thresholds for final deliverables), --expect-cuts (the clip is an edit, cuts are intended), --window 3 (find the calmest 3 s window of a fast clip), --fail-on review|regenerate (exit code 1 for scripts).

JSON you get back

{"verdict": "review",
 "checks": [{"name": "camera", "status": "warn", "summary": "too fast, 2.6 px/frame avg (p95 3.8)",
             "metrics": {"avg_px_per_frame": 2.6}, "hint": "ask for a locked-off camera ..."}]}

Statuses are ok, warn, fail, skip (a check that could not run, for example audio on a silent clip). avsync is experimental: treat it as a hint.

Error to prompt fix

CheckSymptomChange in the prompt
cameratoo fast / lively"slow dolly-in" or "locked-off camera", "one slow move per shot". Remove whip pans, orbits, handheld, "dynamic".
flickershimmering background, strobing textureReduce fine patterns and textures (stripes, grids, foliage, rain, crowds); ask for a shorter clip; simplify the background.
frozenstatic image or long holdsAdd a motion verb for the subject: "subject walks", "turns toward the camera", "hand reaches for the cup". Keep the camera calm but make the world move.
cutsunexpected cut inside a single shot"single continuous shot, no cuts, no scene change". Shorten the described action to what fits one shot. Ignore if the clip is an edited output (use --expect-cuts).
exposureblack frames at start or endTrim the first/last frames (ffmpeg -ss ... -to ...); no need to regenerate. Black frames mid-clip or mostly black: regenerate.
exposureletterbox barsRequest the exact aspect ratio, or crop to the reported content_aspect.
audioclipping / true peak over 0 dBTPLower the gain or run a limiter; regenerating is rarely needed.
avsyncaudio late or early vs lips (experimental)Re-time the audio track against the video (clipcheck does not auto-fix). If the offset varies through the clip, regenerate the speech.
technicalvariable frame rate, odd dimensions, dropped framesRe-encode at constant frame rate and even dimensions before editing; re-export if frames were dropped.

Python API

import clipcheck
report = clipcheck.check("out.mp4", profile="default")
if report.verdict != "keep":
    for c in report.checks:
        if c.status in ("warn", "fail"):
            print(c.name, c.summary, "->", c.hint)

Limits

clipcheck measures signals, it does not understand content. It does not detect morphing, anatomical errors (hands, limbs) or a face that drifts away from the reference. Look at the contact sheet before trusting a keep on anything important.

Related Skills