360 Secure SkillHub
360 安全技能中心

video-qa

该 Skill 在视频渲染后运行 probe 脚本并调用 ffmpeg 检查分辨率、帧率、时长、编解码器、响度与峰值,检测黑帧、静音和冻结,生成联系表,最后按通过标准给出质检结论与常见修复建议。

分类:数据
iamaanahmad
热度 0.00
最近更新 2026-11-21 05:23:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add iamaanahmad/agents-video-editing-skills/video-qa
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
video-qa
description
Quality-check a rendered video before delivery - probe resolution, fps, duration, codecs, loudness and clipping, detect black frames and silence, build a contact sheet, and verify playback compatibility. Use after any render or export, or when the user says a video looks or sounds wrong.

Video QA

Never deliver a file you have not inspected. A successful exit code is not proof.

1. Run the probe script

python scripts/probe.py out/final.mp4
python scripts/probe.py out/final.mp4 --expect-width 1920 --expect-height 1080 --expect-fps 30 --max-mb 50

It prints video and audio stream details, duration, size, and flags problems (odd dimensions, missing audio, non-yuv420p, no faststart hint, mismatches against expectations). Exit code is non-zero when a check fails.

2. Look at it

# Contact sheet: see the whole video at a glance
ffmpeg -i out/final.mp4 -vf "fps=1/5,scale=320:-1,tile=5x4" -frames:v 1 out/qa-sheet.jpg

View the sheet. Check for cut-off text, wrong frames, flashes, stretched aspect, and black ends.

3. Automated detectors

# Black frames (min 0.5 s)
ffmpeg -i out/final.mp4 -vf blackdetect=d=0.5:pix_th=0.10 -an -f null - 2>&1 | grep blackdetect

# Silence longer than 1.5 s
ffmpeg -i out/final.mp4 -af silencedetect=noise=-40dB:d=1.5 -vn -f null - 2>&1 | grep silence_

# Frozen video
ffmpeg -i out/final.mp4 -vf freezedetect=n=-60dB:d=2 -an -f null - 2>&1 | grep freeze

# Loudness and peaks
ffmpeg -i out/final.mp4 -af ebur128=peak=true -vn -f null - 2>&1 | tail -12
ffmpeg -i out/final.mp4 -af volumedetect -vn -f null - 2>&1 | grep -E "mean_volume|max_volume"

PowerShell: replace grep X with Select-String X (and merge stderr with 2>&1).

4. Pass criteria

Check Pass
Container opens, duration matches plan (within 1 s) yes
Resolution and aspect match the target platform yes
fps constant and as planned yes
Pixel format yuv420p, H.264 + AAC for broad playback yes
Integrated loudness near target (-14 LUFS online) and true peak at most -1 dBTP yes
No unintended black, silent or frozen sections yes
Captions present where required and inside safe area yes
Spelling of names, numbers, URLs verified yes
File size under platform limit yes

5. Report

Tell the user: path, duration, resolution, fps, codecs, size, loudness, and anything you could not check (for example subjective pacing or whether music licensing is cleared). If a check failed, fix and re-run before sending.

Common fixes

Finding Fix
Odd dimensions scale=trunc(iw/2)*2:trunc(ih/2)*2
No audio track Map the audio stream explicitly with -map
Won't stream in browser -movflags +faststart -pix_fmt yuv420p
Too loud / clipping loudnorm (see audio-mixing)
Variable frame rate -fps_mode cfr -r 30