Communitygithub.com

Traitement Vidéo

Automatisez le traitement de fichiers vidéo avec FFmpeg. Utilisez-le pour : compresser des vidéos avant de les télécharger, extraire l'audio, redimensionner pour les formats sociaux, découper des segments, fusionner plusieurs vidéos et générer des miniatures.

Qu'est-ce que Traitement Vidéo ?

Cette compétence permet d'automatiser des tâches répétitives de montage vidéo en utilisant FFmpeg, l'outil standard de l'industrie qui alimente YouTube, Netflix et la plupart des plateformes vidéo. Elle est idéale pour les développeurs, créateurs de contenu et professionnels du marketing qui doivent préparer rapidement des vidéos pour les réseaux sociaux, les podcasts ou les plateformes de partage. Avec cette compétence, vous pouvez compresser des vidéos pour respecter les limites de taille des plateformes, extraire des pistes audio, redimensionner des vidéos aux formats Instagram, TikTok ou YouTube, découper des extraits, fusionner plusieurs fichiers et générer des miniatures. Elle s'intègre à Claude Code, Cursor et d'autres agents basés sur des outils en ligne de commande Python. Le processus consiste à exécuter des scripts Python qui utilisent les bibliothèques `ffmpeg-python` et `moviepy`, avec des commandes simples comme `python scripts/main.py compress video.mp4 --target-mb 10`. Un tableau de référence des formats sociaux est inclus pour les résolutions, tailles et durées maximales, ainsi que des conseils de performance comme l'accélération GPU et les réglages CRF. Les limites de la compétence incluent l'impossibilité de remplacer l'expertise en ingénierie audio ou de modifier directement les fichiers sans l'agent.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Cody-W-Tucker/skills/tree/HEAD/skills/video-processing

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait Traitement Vidéo ?

Automatisez les tâches répétitives de montage vidéo en utilisant FFmpeg - l'outil standard de l'industrie qui alimente YouTube, Netflix et la plupart des plateformes vidéo.

Quand utiliser cette compétence

  • Optimisation pour les réseaux sociaux - Redimensionnez les vidéos pour Instagram (9:16), TikTok, LinkedIn
  • Préparation au téléchargement - Compressez les grandes vidéos pour respecter les limites des plateformes
  • Extraction audio - Extrayez l'audio de webinaires, interviews pour des podcasts
  • Découpage de contenu - Extrayez les moments forts, citations ou segments
  • Traitement par lots - Appliquez les mêmes opérations à plusieurs vidéos

Ce que fait Claude vs Ce que vous décidez

Claude faitVous décidez
Structure le workflow de productionDirection créative finale
Suggère des approches techniquesChoix d'équipement et d'outils
Crée des modèles et listes de vérificationStandards de qualité
Identifie les meilleures pratiquesDécisions de marque/voix
Génère des plans de scriptApprobation finale du script

Dépendances

pip install ffmpeg-python moviepy click
# Nécessite également ffmpeg installé sur le système
# macOS : brew install ffmpeg
# Ubuntu : sudo apt install ffmpeg

Commandes

Compresser une vidéo

python scripts/main.py compress video.mp4 --target-mb 10
python scripts/main.py compress video.mp4 --crf 28 --output compressed.mp4

Extraire l'audio

python scripts/main.py extract-audio video.mp4 --format mp3
python scripts/main.py extract-audio video.mp4 --format wav --output audio.wav

Redimensionner pour les réseaux sociaux

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

Découper un segment

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

Fusionner des vidéos

python scripts/main.py concat video1.mp4 video2.mp4 --output merged.mp4
python scripts/main.py concat ./clips/ --output compilation.mp4

Générer une miniature

python scripts/main.py thumbnail video.mp4 --time 00:30
python scripts/main.py thumbnail video.mp4 --best  # Sélection automatique de la meilleure image

Exemples

Exemple 1 : Préparer une vidéo pour Instagram Reels

# Original : vidéo horizontale 4K, 500 Mo
python scripts/main.py resize long-video.mp4 --format instagram
python scripts/main.py compress long-video_instagram.mp4 --target-mb 50

# Résultat : long-video_instagram_compressed.mp4 (1080x1920, <50 Mo)

Exemple 2 : Extraire un podcast d'un webinaire

# Extraire la piste audio
python scripts/main.py extract-audio webinar-recording.mp4 --format mp3 --bitrate 192k

# Résultat : webinar-recording.mp3 (prêt pour hébergement de podcast)

Exemple 3 : Créer un best-of

# Extraire plusieurs 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

# Fusionner en un best-of
python scripts/main.py concat clip1.mp4 clip2.mp4 clip3.mp4 --output highlights.mp4

Référence des formats pour les réseaux sociaux

PlateformeFormatRésolutionTaille maxDurée max
Instagram Reels9:161080x19204 Go90 s
Instagram Feed1:11080x10804 Go60 s
TikTok9:161080x1920287 Mo10 min
YouTube Shorts9:161080x1920-60 s
YouTube16:91920x1080256 Go12 h
LinkedIn1:1/16:91920x10805 Go10 min
Twitter/X16:91920x1080512 Mo2:20

Conseils de performance

  1. Accélération GPU - FFmpeg utilise l'encodage matériel lorsqu'il est disponible (NVENC, VideoToolbox)
  2. Valeurs CRF - Plus bas = meilleure qualité, fichier plus volumineux. Plage typique 18-28
  3. Sélection du préréglage - ultrafast pour les brouillons, slow pour les exports finaux
  4. Encodage deux passes - Meilleure qualité pour un débit binaire cible

Limites de la compétence

Ce que cette compétence fait bien

  • Structurer les workflows de production audio
  • Fournir des conseils techniques
  • Créer des listes de vérification qualité
  • Suggérer des approches créatives

Ce que cette compétence ne peut pas faire

  • Remplacer l'expertise en ingénierie audio
  • Prendre des décisions créatives subjectives
  • Accéder ou modifier directement les fichiers audio
  • Garantir le succès commercial

Compétences connexes

Métadonnées de la compétence

  • Mode : cyborg
category: automation
subcategory: video-processing
dependencies: [ffmpeg-python, moviepy]
difficulty: beginner
time_saved: 5+ heures/semaine

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Cody-W-Tucker/skills

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust signals, form optimization, and conversion rate potential. Use when user says landing page, post-click experience, landing page audit, conversion rate, or landing page optimization.

Cody-W-Tucker/skills

TikTok Ads deep analysis covering creative quality, tracking, bidding, campaign structure, and TikTok Shop. Evaluates 28 checks with emphasis on creative-first strategy, safe zone compliance, and Smart+ campaigns. Use when user says TikTok Ads, TikTok marketing, TikTok Shop, Spark Ads, Smart+, or TikTok campaign.

Cody-W-Tucker/skills

YouTube Ads specific analysis covering campaign types, creative quality, audience targeting, and measurement. Evaluates video ad performance across skippable, non-skippable, bumper, Shorts, Demand Gen, and Connected TV formats. Covers VAC→Demand Gen migration, Shorts creative requirements, and CTV shoppable ads. Use when user says YouTube Ads, video ads, pre-roll, bumper ads, YouTube campaign, Shorts ads, or CTV ads.

Cody-W-Tucker/skills

Craft the story that makes investors say \"I want in.\" Master the narrative structure that Reid Hoffman, Sequoia, and top founders use to raise capital. Use when: **Preparing to fundraise** to develop your story before the deck; **Investor meetings** to structure conversations that convert; **Pitch practice** to refine your narrative arc; **Cold outreach** to write compelling investor emails; **Pivoting** to reframe your story after a change

Cody-W-Tucker/skills

Identify the best GTM motions and tools across 7 motion types: Inbound, Outbound, Paid Digital, Community, Partners, ABM, and PLG. Use when selecting marketing channels, choosing between inbound and outbound strategy, or planning cross-channel campaigns.

Cody-W-Tucker/skills

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

Cody-W-Tucker/skills

Optimize landing pages for maximum conversions using proven frameworks from Unbounce and Oli Gardner—apply the \"one goal, one message, one action\" principle with data-driven design, copy, and CTA best practices. Use when: **Create a new landing page** for a campaign; **Optimize an existing landing page** that isn't converting; **Review landing page design** before launch; **Improve form conversion rates** on lead gen pages; **A/B test landing page elements** systematically

Cody-W-Tucker/skills

Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree. Requires motion-foundations.

Cody-W-Tucker/skills

Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react. Foundation layer — all other motion skills depend on this.

Cody-W-Tucker/skills

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video poster", "title card", or pairs Open Claude Design with HyperFrames for a kinetic export.

Cody-W-Tucker/skills

Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.

Cody-W-Tucker/skills

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

Cody-W-Tucker/skills

Produce a single-file slide deck in the Atelier Zero visual language (warm-paper background, italic-serif emphasis spans, coral terminating dots, surreal collage plates) — Open Design's brand deck recipe. The deck uses **horizontal magazine-style swipe pagination** (←/→, wheel, swipe), a per-slide chrome strip with brand mark and slide counter, an ESC overview grid, a coral progress bar, and inherits the canonical stylesheet + 16-slot image library from the sister `open-design-landing` skill.

Cody-W-Tucker/skills

Produce a world-class single-page editorial landing site in the Atelier Zero visual language (Monocle / Apartamento / Études editorial collage) — the same aesthetic Open Design uses for its own marketing surface. The agent fills a typed `inputs.json` from a brand brief, optionally generates 16 collage assets via gpt-image-2, then runs a pure-function composer that emits a self-contained HTML file; a separate path can mirror the Astro marketing site in `apps/landing-page/`. Drop-in scroll-reveal motion and a Headroom-style sticky nav are wired automatically.

Cody-W-Tucker/skills

Best practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Master April Dunford's 8-step sales narrative from \"Sales Pitch\" (2023). Transform your positioning into a compelling story that wins enterprise deals. Use when: Structuring B2B sales presentations and demos; Creating pitch decks for complex products; Training sales teams on narrative-driven selling; Converting positioning strategy into sales conversations; Winning against entrenched competitors

Cody-W-Tucker/skills

Swiss-style user-research narrative template in warm-paper editorial aesthetics. Use when users ask for a premium research deck or story-first live artifact with minimalist typography, high-clarity layout, subtle motion, donut breakdowns, and keyboard/click navigation across slides in a single HTML file.

Cody-W-Tucker/skills

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

Skills associés