report-generator
Create `compression_report.json` with consistent duration math and a `segments_removed` list matching the required schema.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- report-generator
- description
- Create `compression_report.json` with consistent duration math and a `segments_removed` list matching the required schema.
02 资源文件 1
- 脚本scripts/generate_report.py2.4 KB
03 SKILL.md 正文
Steps
- Generate a report from the original, compressed video, and the removal segments:
python3 /root/.claude/skills/report-generator/scripts/generate_report.py \ --original data/input_video.mp4 \ --compressed compressed_video.mp4 \ --segments all_segments.json \ --output compression_report.json - Validate the report file exists and conforms to the required keys (
original_duration_seconds,compressed_duration_seconds,removed_duration_seconds,compression_percentage,segments_removed):ls -l compression_report.jsoncat compression_report.json
- If the generator includes extra keys inside
segments_removeditems (e.g.,"type"), rewrite the file to the exact required item schema (start,end,duration) while keeping the top-level duration fields:python3 - <<'PY' import json p="compression_report.json" d=json.load(open(p)) d["segments_removed"]=[{"start":s["start"],"end":s["end"],"duration":s["duration"]} for s in d.get("segments_removed",[])] json.dump(d, open(p,"w"), indent=2) PY - Ensure duration math is consistent (within small rounding error):
original ≈ compressed + removed.
Expected Result
compression_report.json exists in the current workspace, matches the requested structure, and its duration values are internally consistent.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms