video-processing
Process video files with ffmpeg automation. Use when: compressing videos for upload; extracting audio from video; resizing for social formats; clipping segments; merging multiple videos; generating thumbnails
What this skill does
# Video Processing > Automate repetitive video editing tasks using FFmpeg - the industry-standard tool powering YouTube, Netflix, and most video platforms. ## When to Use This Skill - **Social media optimization** - Resize videos for Instagram (9:16), TikTok, LinkedIn - **Upload preparation** - Compress large videos to meet platform limits - **Audio extraction** - Pull audio from webinars, interviews for podcasts - **Content clipping** - Extract highlights, quotes, or segments - **Batch processing** - Apply same operations to multiple videos ## What Claude Does vs What You Decide | Claude Does | You Decide | |-------------|------------| | Structures production workflow | Final creative direction | | Suggests technical approaches | Equipment and tool choices | | Creates templates and checklists | Quality standards | | Identifies best practices | Brand/voice decisions | | Generates script outlines | Final script approval | ## Dependencies ```bash pip install ffmpeg-python moviepy click # Also requires ffmpeg installed on system # macOS: brew install ffmpeg # Ubuntu: sudo apt install ffmpeg ``` ## Commands ### Compress Video ```bash python scripts/main.py compress video.mp4 --target-mb 10 python scripts/main.py compress video.mp4 --crf 28 --output compressed.mp4 ``` ### Extract Audio ```bash python scripts/main.py extract-audio video.mp4 --format mp3 python scripts/main.py extract-audio video.mp4 --format wav --output audio.wav ``` ### Resize for Social ```bash python scripts/main.py resize video.mp4 --format instagram # 1080x1920 (9:16) python scripts/main.py resize video.mp4 --format youtube # 1920x1080 (16:9) python scripts/main.py resize video.mp4 --format square # 1080x1080 (1:1) python scripts/main.py resize video.mp4 --width 1280 --height 720 ``` ### Clip Segment ```bash python scripts/main.py clip video.mp4 --start 00:30 --end 01:45 python scripts/main.py clip video.mp4 --start 00:30 --duration 60 ``` ### Merge Videos ```bash python scripts/main.py concat video1.mp4 video2.mp4 --output merged.mp4 python scripts/main.py concat ./clips/ --output compilation.mp4 ``` ### Generate Thumbnail ```bash python scripts/main.py thumbnail video.mp4 --time 00:30 python scripts/main.py thumbnail video.mp4 --best # Auto-select best frame ``` ## Examples ### Example 1: Prepare Video for Instagram Reels ```bash # Original: 4K horizontal video, 500MB python scripts/main.py resize long-video.mp4 --format instagram python scripts/main.py compress long-video_instagram.mp4 --target-mb 50 # Output: long-video_instagram_compressed.mp4 (1080x1920, <50MB) ``` ### Example 2: Extract Podcast from Webinar ```bash # Extract audio track python scripts/main.py extract-audio webinar-recording.mp4 --format mp3 --bitrate 192k # Output: webinar-recording.mp3 (ready for podcast hosting) ``` ### Example 3: Create Highlight Reel ```bash # Extract multiple clips python scripts/main.py clip interview.mp4 --start 05:30 --end 06:15 --output clip1.mp4 python scripts/main.py clip interview.mp4 --start 12:00 --end 12:45 --output clip2.mp4 python scripts/main.py clip interview.mp4 --start 28:30 --end 29:00 --output clip3.mp4 # Merge into highlight reel python scripts/main.py concat clip1.mp4 clip2.mp4 clip3.mp4 --output highlights.mp4 ``` ## Social Media Format Reference | Platform | Format | Resolution | Max Size | Max Duration | |----------|--------|------------|----------|--------------| | Instagram Reels | 9:16 | 1080x1920 | 4GB | 90s | | Instagram Feed | 1:1 | 1080x1080 | 4GB | 60s | | TikTok | 9:16 | 1080x1920 | 287MB | 10min | | YouTube Shorts | 9:16 | 1080x1920 | - | 60s | | YouTube | 16:9 | 1920x1080 | 256GB | 12h | | LinkedIn | 1:1/16:9 | 1920x1080 | 5GB | 10min | | Twitter/X | 16:9 | 1920x1080 | 512MB | 2:20 | ## Performance Tips 1. **GPU acceleration** - FFmpeg uses hardware encoding when available (NVENC, VideoToolbox) 2. **CRF values** - Lower = better quality, larger file. 18-28 typical range 3. **Preset selection** - `ultrafast` for drafts, `slow` for final exports 4. **Two-pass encoding** - Better quality for target bitrate ## Skill Boundaries ### What This Skill Does Well - Structuring audio production workflows - Providing technical guidance - Creating quality checklists - Suggesting creative approaches ### What This Skill Cannot Do - Replace audio engineering expertise - Make subjective creative decisions - Access or edit audio files directly - Guarantee commercial success ## Related Skills - [whisper-transcription](../whisper-transcription/) - Transcribe video audio - [youtube-downloader](../youtube-downloader/) - Download videos to process - [image-batch](../image-batch/) - Process video thumbnails ## Skill Metadata - **Mode**: cyborg ```yaml category: automation subcategory: video-processing dependencies: [ffmpeg-python, moviepy] difficulty: beginner time_saved: 5+ hours/week ```
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.