Workflow analysis quality

From damionrashford/media-os · View interactive version

Workflow analysis quality is an AI agent skill from the GitHub repository damionrashford/media-os. Deep media inspection + automated QC — ffprobe stream details, MediaInfo diagnostics, VMAF/PSNR/SSIM quality metrics, PySceneDetect scene cuts, crop/silence/black-frame/interlacing detection, ffplay scope debugging, NAL/SEI bitstream forensics, metadata audits, loudness compliance against Spotify/Ap

How to use this skill

Skill file

Workflow — Analysis + Quality

What: Inspect every byte and assess every rendition. The gate between "encoded" and "shipped".

Skills used

ffmpeg-probe, media-mediainfo, ffmpeg-quality, media-scenedetect, ffmpeg-detect, ffmpeg-playback, ffmpeg-bitstream, media-exiftool, ffmpeg-metadata, media-ocr-ai, cv-opencv, cv-mediapipe, media-tag.

Pipeline

Step 1 — Probe everything

moprobe + ffmpeg-probe — full format + streams + specific stream detail + packet-level bitstream dump when needed. moprobe --color for HDR side data.

Step 2 — MediaInfo deep diagnostics

media-mediainfo (--Output=JSON|XML|HTML). Shows encoded-library, CABAC/trellis/B-pyramid, source framerate variance, recording-device metadata, re-encode history. Use when ffprobe alone is insufficient.

Step 3 — Quality metrics (VMAF / PSNR / SSIM)

ffmpeg-quality or moqc:

| Model | Use for |

|---|---|

| vmaf_v0.6.1 | PC monitor (1920×1080 default) |

| vmaf_v0.6.1neg | No-enhancement (catches sharpening cheats) |

| vmaf_4k_v0.6.1 | 4K TVs |

| vmaf_b_v0.6.3 | Mobile / phone |

Interpretation: ≥ 95 transparent, ≥ 80 excellent, ≥ 70 good, ≥ 60 acceptable, < 60 visible loss.

Step 4 — Scene detection

media-scenedetect (content method, default threshold 27). Lower (15–20) for gradual transitions; higher (35–40) for abrupt cuts only. Inline scdet filter in ffmpeg if you don't need PySceneDetect's graph output.

Step 5 — Crop / silence / black / interlacing

ffmpeg-detect:

Step 6 — ffplay scopes

ffmpeg-playback — waveform, vectorscope, histogram live.

Step 7 — Bitstream forensics

ffmpeg-bitstream:

Step 8 — Metadata audit

media-exiftool (image / video EXIF, XMP, IPTC). ffmpeg-metadata for chapter + MKV tags.

Step 9 — Content verification with CV/AI

media-ocr-ai for burned text; cv-mediapipe for face presence; media-tag CLIP/SigLIP for zero-shot content tags.

Step 10 — Loudness compliance

media-ffmpeg-normalize --measure-only (non-destructive). Compare to spec:

| Spec | Integrated | True peak |

|---|---|---|

| Spotify Master | −14 LUFS ± 2 | −2 dBTP |

| Apple Podcasts | −16 LUFS ± 1 | −1 dBTP |

| ATSC A/85 | −24 LUFS ± 2 | − |

| EBU R128 | −23 LUFS ± 0.5 | −1 dBTP |

Step 11 — Automated CI QC gates

moqc --ref source --out encoded --format json --vmaf-min 93 exits non-zero on failure. Wire into CI to fail builds that would ship broken encodes.

Variants

Gotchas

Example — CI gate on an encoded asset

moprobe --color source.mov → sanity-check tags. moqc --ref source.mov --out encoded.mp4 --vmaf-min 93 --format json → fail build non-zero. ffmpeg-detect silencedetect confirms no > 2 s dead air. media-ffmpeg-normalize --measure-only confirms −16 LUFS ± 1.

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.