Video Comparer
Compares two videos and generates a self-contained interactive HTML report with PSNR/SSIM metrics and frame-by-frame visuals.
Image & VideoIntermediate★ 1,323⑂ 212AI score 8/10Last updated: Aug 8, 2026
What it does
Give it two video files (typically an original and a compressed version) and it uses FFmpeg/FFprobe to pull metadata, compute quality metrics, and render everything into a single HTML report.
- Video parameters: codec, resolution, bitrate, duration, file size
- Quality metrics: PSNR (20–50 dB), SSIM (0–1), size and bitrate reduction percentages
- Frame comparison: frames extracted every 5s by default, embedded as base64 so the report works offline
- Three viewing modes: slider, side-by-side, grid — plus 50%–200% zoom
- Built-in guardrails: path validation, no
shell=True, file-size caps and FFmpeg timeouts
Who it's for
- Engineers running a transcoding/compression pipeline who need measurable quality evidence
- Media specialists benchmarking codecs (H.264 vs H.265) or bitrate ladders
- Editors who must visually prove to clients that a compressed deliverable holds up
Examples
- Before/after check:
python3 scripts/compare.py original.mp4 compressed.mp4, then opencomparison.htmland drag the slider - Faster runs on long clips: add
--interval 10to sample fewer frames - Batch QA: loop over a folder of originals and write one report per file into
reports/
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the video-comparer folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/video-comparer/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-skills/video-comparer ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Install FFmpeg (required)
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg - Windows:
winget install ffmpegor download from ffmpeg.org
- macOS:
- Confirm Python 3.8+:
python3 --version - Create the skills folder:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills - Copy the skill:
cp -r /tmp/claude-code-skills/video-comparer ~/.claude/skills/ - Restart Claude Code and say something like "compare these two videos" to trigger it.
- For files over 500MB, raise
MAX_FILE_SIZE_MB(and possiblyFFMPEG_TIMEOUT) at the top ofscripts/compare.py.
View source on GitHub ↗License: MIT