Aller au contenu
Skillpedia
Montage vidéo18k · #10654

clip-hand-skill

Ce qu’il fait

Cette skill donne les étapes expertes pour créer de courts extraits vidéo, avec téléchargement via yt-dlp, transcription avec Whisper, sous-titres SRT et découpe avec ffmpeg. Les mêmes options d'outils fonctionnent sous Windows, macOS et Linux, à la syntaxe de terminal près.

Quand l’utiliser

  • ✓Quand vous voulez découper de courts extraits d'une vidéo en ligne plus longue.
  • ✓Lorsque vous avez besoin de sous-titres créés à partir de la parole d'une vidéo.
  • ✓Lorsque vous voulez traiter des fichiers vidéo avec ffmpeg sur votre propre ordinateur.

Lien du skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/clip/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/clip/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Prends cette vidéo d'entretien, transcris-la et fais-en trois courts extraits avec des sous-titres.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill guide le téléchargement de la vidéo source, la transcription de son audio, la création des fichiers de sous-titres et la découpe des segments avec ffmpeg.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Video Clipping Expert Knowledge

Cross-Platform Notes

All tools (ffmpeg, ffprobe, yt-dlp, whisper) use identical CLI flags on Windows, macOS, and Linux. The differences are only in shell syntax:

Feature macOS / Linux Windows (cmd.exe)
Suppress stderr 2>/dev/null 2>NUL
Filter output | grep pattern | findstr pattern
Delete files rm file1 file2 del file1 file2
Null output device -f null - -f null - (same)
ffmpeg subtitle paths subtitles=clip.srt subtitles=clip.srt (relative OK, absolute needs C\\:/path)

IMPORTANT: ffmpeg filter paths (-vf "subtitles=...") always need forward slashes. On Windows with absolute paths, escape the colon: subtitles=C\\:/Users/me/clip.srt

Prefer using file_write tool for creating SRT/text files instead of shell echo/heredoc.


yt-dlp Reference

Download with Format Selection

# Best video up to 1080p + best audio, merged
yt-dlp -f "bv[height<=1080]+ba/b[height<=1080]" --restrict-filenames -o "source.%(ext)s" "URL"

# 720p max (smaller, faster)
yt-dlp -f "bv[height<=720]+ba/b[height<=720]" --restrict-filenames -o "source.%(ext)s" "URL"

# Audio only (for transcription-only workflows)
yt-dlp -x --audio-format wav --restrict-filenames -o "audio.%(ext)s" "URL"

Metadata Inspection

# Get full metadata as JSON (duration, title, chapters, available subs)
yt-dlp --dump-json "URL"

# Key fields: duration, title, description, chapters, subtitles, automatic_captions

YouTube Auto-Subtitles

# Download auto-generated subtitles in json3 format (word-level timing)
yt-dlp --write-auto-subs --sub-lang en --sub-format json3 --skip-download --restrict-filenames -o "source" "URL"

# Download manual subtitles if available
yt-dlp --write-subs --sub-lang en --sub-format srt --skip-download --restrict-filenames -o "source" "URL"

# List available subtitle languages
yt-dlp --list-subs "URL"

Useful Flags

  • --restrict-filenames — safe ASCII filenames (no spaces/special chars) — important on all platforms
  • --no-playlist — download single video even if URL is in a playlist
  • -o "template.%(ext)s" — output template (%(ext)s auto-detects format)
  • --cookies-from-browser chrome — use browser cookies for age-restricted content
  • --extract-audio / -x — extract audio only
  • --audio-format wav — convert audio to wav (for whisper)

Whisper Transcription Reference

Audio Extraction for Whisper

# Extract mono 16kHz WAV (whisper's preferred input format)
ffmpeg -i source.mp4 -vn -ar 16000 -ac 1 -y audio.wav

Basic Transcription

# Standard transcription with word-level timestamps
whisper audio.wav --model small --output_format json --word_timestamps true --language en

# Faster alternative (same flags, 4x speed)
whisper-ctranslate2 audio.wav --model small --output_format json --word_timestamps true --language en

Model Sizes

Model VRAM Speed Quality Use When
tiny ~1GB Fastest Rough Quick previews, testing pipeline
base ~1GB Fast OK Short clips, clear speech
small ~2GB Good Good Default — best balance
medium ~5GB Slow Better Important content, accented speech
large-v3 ~10GB Slowest Best Final production, multiple languages

Note: On macOS Apple Silicon, consider mlx-whisper as a faster native alternative.

JSON Output Structure

{
  "text": "full transcript text...",
  "segments": [
    {
      "id": 0,
      "start": 0.0,
      "end": 4.52,
      "text": " Hello everyone, welcome back.",
      "words": [
        {"word": " Hello", "start": 0.0, "end": 0.32, "probability": 0.95},
        {"word": " everyone,", "start": 0.32, "end": 0.78, "probability": 0.91},
        {"word": " welcome", "start": 0.78, "end": 1.14, "probability": 0.98},
        {"word": " back.", "start": 1.14, "end": 1.52, "probability": 0.97}
      ]
    }
  ]
}
  • segments[].words[] gives word-level timing when --word_timestamps true
  • probability indicates confidence (< 0.5 = likely wrong)

YouTube json3 Subtitle Parsing

Format Structure

{
  "events": [
    {
      "tStartMs": 1230,
      "dDurationMs": 5000,
      "segs": [
        {"utf8": "hello ", "tOffsetMs": 0},
        {"utf8": "world ", "tOffsetMs": 200},
        {"utf8": "how ", "tOffsetMs": 450},
        {"utf
Questions fréquentes

Quels outils utilise-t-elle ?

Elle utilise yt-dlp pour télécharger, Whisper pour transcrire la parole et ffmpeg pour découper les extraits et ajouter les sous-titres.

Fonctionne-t-elle sous Windows ?

Oui. La skill indique que les outils utilisent les mêmes options sous Windows, macOS et Linux, avec seulement de petites différences de syntaxe de terminal.

Les chemins des fichiers de sous-titres sont-ils délicats ?

Oui. Les chemins des sous-titres ffmpeg nécessitent des barres obliques, et les chemins Windows absolus doivent avoir leur deux-points échappé.

Détails

Description originale de l’auteur

Expert knowledge for AI video clipping — yt-dlp downloading, whisper transcription, SRT generation, and ffmpeg processing

repo: RightNow-AI/openfang

Popularité

Étoiles GitHub
18k
Position au classement
#10654
Licence
Apache-2.0
Mis à jour
02/07/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires