video-analyze
Video analysis and inspection using FFprobe and FFmpeg. Reads metadata, codec info, resolution, bitrate, duration, HDR status,…
AI video enhancement using Real-ESRGAN (4x upscaling, 720p to 4K, 2-6GB VRAM), Practical-RIFE (frame interpolation for smooth slow motion, 60+ FPS at 720p), CodeFormer (face restoration for old/low-quality footage, adjustable fidelity), and rembg (transparent video via
$ npx -y skills add AgriciDaniel/claude-video --skill video-enhance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/video-enhanceContext preview
The summary Claude sees to decide when to auto-load this skill.
AI video enhancement using Real-ESRGAN (4x upscaling, 720p to 4K, 2-6GB VRAM), Practical-RIFE (frame interpolation for smooth slow motion, 60+ FPS at 720p), CodeFormer (face restoration for old/low-quality footage, adjustable fidelity), and rembg (transparent video via
name: claude-video-enhance description: > AI video enhancement using Real-ESRGAN (4x upscaling, 720p to 4K, 2-6GB VRAM), Practical-RIFE (frame interpolation for smooth slow motion, 60+ FPS at 720p), CodeFormer (face restoration for old/low-quality footage, adjustable fidelity), and rembg (transparent video via background removal, VP9+alpha or ProRes 4444). Use when user says "upscale", "enhance video", "4K", "super resolution", "frame interpolation", "slow motion AI", "smooth slow motion", "restore faces", "fix faces", "remove video background", "transparent video", "increase resolution", or "improve quality". allowed-tools: - Bash - Read - Write
1. Activate venv: `source ~/.video-skill/bin/activate` 2. Check free VRAM: `nvidia-smi --query-gpu=memory.free --format=csv,noheader,nounits` 3. Get input video info: `ffprobe -v quiet -print_format json -show_streams "$INPUT"` 4. Estimate processing time and disk space (frame-based pipelines are slow and large) 5. **Always warn the user** about expected processing time before starting
Upscale video resolution by 2x or 4x using AI super-resolution.
source ~/.video-skill/bin/activate python3 scripts/video_enhance.py upscale "$INPUT" \ --scale 4 \ --output upscaled_4k.mp4
**Options:**
**VRAM:** 2-6GB with `--half` flag
**Performance expectations:**
**Pipeline:** 1. Extract all frames to temp directory (large disk usage: ~5x input size) 2. Upscale each frame with Real-ESRGAN (GPU) 3. Extract audio from original video 4. Reassemble upscaled frames + audio into output video 5. Clean up temp frames
**Disk space warning:** A 10-minute 30fps video creates 18,000 PNG frames. At 4K, each frame is ~10-20MB. Total temp space: 180-360GB. Ensure sufficient disk space.
Create smooth slow motion by generating intermediate frames.
source ~/.video-skill/bin/activate python3 scripts/video_enhance.py interpolate "$INPUT" \ --multi 2 \ --output smooth_slowmo.mp4
**Options:**
**VRAM:** 2-4GB
**Performance:** 60+ FPS for 2x interpolation at 720p. Slower at higher resolutions.
**Use cases:**
Restore degraded faces in old or low-quality video footage.
source ~/.video-skill/bin/activate python3 scripts/video_enhance.py restore-faces "$INPUT" \ --fidelity 0.7 \ --output restored.mp4
**Options:**
**VRAM:** 2-4GB (CodeFormer) + 2-4GB if `--bg-upscale` enabled
**Pipeline:** 1. Extract frames 2. Detect faces in each frame 3. Restore each detected face with CodeFormer 4. Optionally upscale background 5. Reassemble with audio
**Best for:** Old family videos, low-resolution webcam footage, compressed video with face artifacts.
Remove background from video to create transparent video.
source ~/.video-skill/bin/activate python3 scripts/video_enhance.py remove-bg "$INPUT" \ --format webm \ --output transparent.webm
**Options:**
**VRAM:** 1-2GB (GPU) or CPU fallback
**Performance:** 5-10 FPS for 1080p
**Output formats:**
Chain multiple enhancements on a single video:
python3 scripts/video_enhance.py upscale "$INPUT" --scale 2 --output /tmp/step1.mp4 python3 scripts/video_enhance.py restore-faces /tmp/step1.mp4 --fidelity 0.7 --output /tmp/step2.mp4 python3 scripts/video_enhance.py interpolate /tmp/step2.mp4 --multi 2 --output final_enhanced.mp4
The script extracts frames once and applies multiple enhancements to minimize I/O when using `--pipeline` mode:
python3 scripts/video_enhance.py pipeline "$INPUT" \ --upscale 2 --restore-faces 0.7 --interpolate 2 \ --output final_enhanced.mp4
| Operation | Input | Time | Temp Space | |-----------|-------|------|-----------| | Upscale 4x | 10min 720p 30fps | 1-2.5 hours | 180-360GB | | Upscale 2x | 10min 1080p 30fps | 2-4 hours | 300-600GB | | Interpolate 2x | 10min 720p 30fps | ~5 minutes | Minimal | | Face restore | 10min 720p 30fps | 30-60 minutes | 5-10GB | | Remove BG | 10min 1080p 30fps | 3
AI-powered video production suite for Claude Code. Edit, transcode, caption, analyze, generate, and create promo videos: all from your terminal.
Video analysis and inspection using FFprobe and FFmpeg. Reads metadata, codec info, resolution, bitrate, duration, HDR status,…
Audio processing for video files using FFmpeg. Loudness normalization to streaming standards (LUFS), noise reduction, audio…
Speech-to-text transcription and animated subtitle generation using Whisper and FFmpeg. Creates word-by-word animated captions…
Programmatic video creation using Remotion (React-based). Generates title cards, data visualizations, motion graphics, branded…
Video downloading via yt-dlp with format selection, quality control, subtitle download, audio-only extraction, and playlist…
Video editing operations using FFmpeg: trimming, cutting, splitting, concatenation, speed changes, cropping, scaling, rotation,…