video-processing
$
npx mdskill add guia-matthieu/clawfu-skills/video-processingAutomates video editing tasks using FFmpeg for compression, resizing, extraction, clipping, merging, and thumbnail generation.
- Helps optimize videos for social media, prepare uploads, extract audio, clip segments, and process batches.
- Integrates with FFmpeg and depends on ffmpeg-python, moviepy, and click libraries.
- Structures workflows and suggests technical approaches based on best practices and user input.
- Presents results through automated file outputs and structured templates for review.
SKILL.md
.github/skills/video-processingView on GitHub ↗
--- name: video-processing description: "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" license: MIT metadata: author: ClawFu version: 1.0.0 mcp-server: "@clawfu/mcp-skills" --- # 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 ```
More from guia-matthieu/clawfu-skills
- aarrr-metricsMeasure and optimize growth using the AARRR (Pirate Metrics) framework with stage-specific KPIs and funnel analysis
- ab-test-stats"Calculate A/B test statistical significance. Use when: determining if test results are significant; calculating required sample size; estimating test duration; analyzing conversion experiments; making data-driven decisions"
- account-healthAssess customer account health using product usage, support sentiment, payment status, and relationship signals
- ad-spend-optimizer"Analyze paid advertising performance across channels and recommend budget reallocation to maximize ROAS and minimize CAC. Use when: planning quarterly ad budget allocation, diagnosing underperforming ad channels, deciding whether to scale spend on a channel, calculating marginal ROI across Google Ads, Meta, LinkedIn, or TikTok, rebalancing media mix after performance shifts, or setting up a test-and-scale framework for new channels."
- ai-bot-log-auditUse when analyzing server logs to understand how AI crawlers (GPTBot, ClaudeBot, PerplexityBot) interact with your site. Use when optimizing content placement for LLM retrieval, diagnosing why AI search isn't citing your content, or auditing crawl patterns to find optimization gaps.
- ai-storyboard-2x2"Créez des storyboards visuellement cohérents en utilisant la technique des 2x2 Grid Shots de PJ Ace, garantissant éclairage, personnages et décors uniformes entre les plans. Use when: **Après avoir finalisé un script vidéo** - Transformer le concept en visuels; **Besoin de cohérence visuelle** - Personnages et éclairage constants entre les plans; **Préparer des assets pour animation** - Frames prêtes pour Veo, Runway, Kling; **Présenter un storyboard client** - Visualisation avant production;..."
- ai-video-concept"Développez une idée créative et structurez un script vidéo optimisé pour la génération IA, en suivant la méthode des scènes de 8 secondes de PJ Ace. Use when: **Démarrer une publicité vidéo IA** - Transformer une idée brute en script structuré; **Créer du contenu vidéo pour les réseaux sociaux** - TikTok, Reels, YouTube Shorts; **Développer un concept de campagne** - Avant de passer au storyboard; **Pitcher une idée vidéo** - Présenter un concept à un client ou une équipe; **Adapter un messag..."
- ai-video-prompting"Générez des prompts optimisés pour chaque modèle de génération vidéo IA (Veo 3, Runway Gen-3, Kling 2.6, Pika), en exploitant leurs forces spécifiques. Use when: **Animer des frames de storyboard** - Transformer des images fixes en vidéo; **Choisir le bon modèle** - Sélectionner Veo, Runway, Kling ou Pika selon le besoin; **Optimiser la qualité de génération** - Prompts structurés pour meilleurs résultats; **Créer des transitions fluides** - Scene extension, first/last frame; **Utiliser le mo..."
- ai-video-qa"Validez la qualité de vos vidéos IA avant publication avec une checklist complète couvrant technique, créatif, et positionnement marque. Use when: **Avant publication** - Dernière validation avant mise en ligne; **Revue client** - Préparer les points de feedback anticipés; **Itération qualité** - Identifier les problèmes à corriger; **Go/No-Go decision** - Décider si la vidéo est prête; **Post-mortem** - Analyser pourquoi une vidéo a (ou n'a pas) performé"
- ai-voice-design"Concevez et générez des voix IA pour vos vidéos en utilisant ElevenLabs ou Qwen3-TTS, avec clonage vocal, design par description, et synchronisation lip-sync. Use when: **Créer une voix de marque** - Définir le ton vocal pour une campagne; **Cloner une voix existante** - Reproduire une voix avec autorisation; **Designer une voix originale** - Créer une voix à partir d'une description; **Multi-personnages** - Gérer plusieurs voix dans une même vidéo; **Lip-sync vidéo IA** - Synchroniser voix e..."