When you need to evaluate video compression results, this generates an interactive HTML report with PSNR and SSIM metrics plus frame-by-frame visual comparisons. It extracts frames at configurable intervals, calculates quality scores, and packages everything into a self-contained HTML file with slider, side-by-side, and grid viewing modes. The implementation is solid on security (path validation, no shell injection) and handles the annoying edge cases like mismatched durations. Processing takes a couple minutes for typical videos. If you're comparing codecs, testing bitrate settings, or just want quantified proof that your compression didn't wreck the quality, this does the job without requiring you to stitch together FFmpeg commands and spreadsheets yourself.

skills.sh installs
990
GitHub stars
1.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add daymade/claude-code-skills --skill video-comparer --agent claude-code

Installs into .claude/skills of the current project.

Files

Video Comparer

Overview

Compare two videos and generate an interactive HTML report analyzing compression results. The script extracts video metadata, calculates quality metrics (PSNR, SSIM), and creates frame-by-frame visual comparisons with three viewing modes: slider, side-by-side, and grid.

When to Use This Skill

Use this skill when:

  • Comparing original and compressed videos
  • Analyzing video compression quality and efficiency
  • Evaluating codec performance or bitrate reduction impact
  • Users mention "compare videos", "video quality", "compression analysis", or "before/after compression"

Core Usage

Basic Command

python3 scripts/compare.py original.mp4 compressed.mp4

Generates comparison.html with:

  • Video parameters (codec, resolution, bitrate, duration, file size)
  • Quality metrics (PSNR, SSIM, size/bitrate reduction percentages)
  • Frame-by-frame comparison (default: frames at 5s intervals)

Command Options

# Custom output file
python3 scripts/compare.py original.mp4 compressed.mp4 -o report.html

Sponsors

Details

Repository
github.com/daymade/claude-code-skills
Categories
Frontend Development, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026

More from daymade/claude-code-skills

All 53
1chrisbanes avatarcompose-state-deferred-readschrisbanes/skillsUse when Jetpack Compose code reads scroll, animation, gesture, or other frame-rate State in composition, passes changing values across composable boundaries, u989skills.sh installs
2ailabs-393 avatarcicd-pipeline-generatorailabs-393/ai-labs-claude-skillsThis skill should be used when creating or configuring CI/CD pipeline files for automated testing, building, and deployment. Use this for generating GitHub Acti982skills.sh installs
3davila7 avatarlangchaindavila7/claude-code-templatesFramework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct 969skills.sh installs
4cap-go avatarcapacitor-mcpcap-go/capgo-skillsModel Context Protocol (MCP) tools for Capacitor mobile development. Covers Ionic/Capacitor component APIs, plugin documentation, CLI commands, and AI-assisted 961skills.sh installs
5mblode avatarpresentation-creatormblode/agent-skillsCreates bold, minimal, dark-first presentations with structured narrative arcs, punchy slide copy, high-contrast visual design, and conversational speaker notes960skills.sh installs
6vibe-motion avatarlight-spotlight-rendervibe-motion/skillsGenerate a swinging spotlight text-reveal HTML animation with configurable text, swing angle, lamp scale, glow, and colors. Use when users ask for 聚光灯扫字动画, spot960skills.sh installs