AI Video QA — Frame Sampling, Pops, and Loops

    by Drizzt Studio

    1

    Verify AI-generated video by what you can measure, not by a handful of sparse frames.

    Free

    Security scanned

    Works with the AI Agents you already use

    AI Video QA — Frame Sampling, Pops, and Loops

    Example session with this skill installed

    Analyze this generated 5-second video (test_vid.mp4) against the source image (start.png). Check if the first frame matches the source and if there are any motion pops.

    • Read your context and instructions
    • Compiled the ai video qa
    • Generated the image

    Ran three local gates on test_vid.mp4. The spec line comes from inventory_assets.py; the other two are the bundled scripts run with their defaults.

    • Specs (inventory_assets.py): 1188x1740 / 24.000 fps / 121 frames / h264 → 5.0417 s.
    • First-frame gate (ffmpeg ssim, both sides format=yuv420p, both scaled to 594x870 against start.png): All:0.9928 → passes the ≥ 0.99 pose-fidelity gate; the video starts on the reference image.
    • Pop gate (check_frame_pops.py, defaults ratio 4x / neighbour 3x / abs-floor 1.0, 64x88 grayscale): ✅ 無孤立尖峰(中位數 0.12、最大 1.85@幀77) → no isolated single-frame pop; motion is continuous with no spike above its neighbours.
    • Scene-creep gate (check_region_step.py, default region x 0.86-0.98 / y 0.06-0.20, 160x220): 最大步階 0.4@幀61, 前1/3 0.5, 後1/3 1.4 → below the 1.5 step tolerance, no framing drift.
    • Not measured: no target/end frame was supplied, so end-frame landing and loop closure were deliberately not judged (a transition clip must not be judged by loop SSIM). Whether the motion looks natural is not something these gates decide; that needs a human looking at the sampled frames.

    (The scripts print their summary lines in Chinese; numbers are illustrative.)

    Next steps

    1. If you need a closed loop, run scripts/loop_back_v2.py only on short in-place clips (small postural change, idle micro-motion), e.g. python3 scripts/loop_back_v2.py IN.mp4 --out OUT.mp4 --conform 1188x1740 --frames 121 --fit. It trims pauses, drops the duplicated seam frame and re-encodes uniformly (CRF 18, CFR 24). Do not reverse a directional transition clip; it will play backwards. A black flash from an HTML5 <video loop> is fixed in the player's JS, not in the file.
    2. Have a human review a contact sheet made with ffmpeg -y -v error -i test_vid.mp4 -vf "fps=2.4,scale=520:-1,tile=4x3" -frames:v 1 sheet.png (12 evenly spaced frames). Sampling density and any content judgement belong to the human; the scripts only measure specs and frame deltas.
    3. Once a human has confirmed the content reads as intended, run the same three gates over the whole batch and compare each clip against the batch's own good files before delivery.

    start.png

    PNG · 1536×1024

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A QA playbook for AI-generated clips: how dense frame sampling must be before you judge continuity, how to catch isolated frame pops, region/step jumps, format consistency, and first/last-frame traps. Bundles four local scripts (inventory, frame-pop detection, region-step checks, loop-back). They call local ffmpeg and ffprobe only and write temps with tempfile. loop_back_v2.py also needs numpy.

    Requires ffmpeg and ffprobe on the same machine, plus Python 3; loop_back_v2.py also requires numpy. Temp files are written via tempfile and cleaned up. SSIM comparison fails if the two inputs have different pixel formats (convert both with format=yuv420p and match the scale first), and mismatched aspect or padding silently lowers the score, so a bad score is not proof the content moved. Sparse sampling (4 frames) cannot verify motion continuity, no matter what the numbers say. Scene-creep measurement requires a region the subject never touches (a plain wall corner is the safe choice); a badly chosen region reports the subject's own body as drift. Thresholds are per-lane: the cloud and local-upscale lanes do not share a loop score.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    • Free with an Agensi account

    Only inventory_assets.py reads an environment variable (COMPUTERNAME, for the manifest header). It writes _inventory_YYYYMMDD.md into the first input directory unless --out is given; loop_back_v2.py writes to the --out path. No network access, no API keys.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the technical validation of AI video by detecting frame-to-frame inconsistencies, glitches, and motion drift that are often invisible to the naked eye but ruin professional delivery.

    Needs Python 3 with ffmpeg and ffprobe on PATH, plus numpy if you use the loop-back script; any agent that can run local shell commands and read/write files can run it.

    No. Frame-delta and SSIM numbers are objective and can be trusted for specs, start-frame fidelity, isolated pops and scene creep. Anything about objects, hair, materials or 'which take looks best' has to come from a human watching the original frames; asking a vision model about a downscaled contact sheet produces confident wrong answers.

    No, this skill focuses strictly on technical metrics like frame density and object persistence; it does not evaluate subjective elements like artistic style or "beauty."

    By identifying structural failures early—such as geometric mismatches or "teleporting" artifacts—the skill allows you to stop failed generations immediately, preventing wasted GPU cycles on assets that cannot be fixed by prompting alone.

    No. Every check runs locally on your own machine with ffmpeg, ffprobe and Python.

    New in Image & Video

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Video Skills.

    Free