agentleFS
puntorigenpuntorigen/avatar-skills/video-transcribe/SKILL.md

video-transcribe

Skill3 starsChanged 4 months agoMITView on GitHub

Download a single video by URL (Instagram reel/post, or any yt-dlp-supported link) and transcribe its spoken audio to text with faster-whisper — or transcribe a local media file. Writes plain text, an SRT subtitle file, and a JSON with per-segment timecodes. Uses yt-dlp for download and faster-whisper (default `small`, CPU/int8) for transcription. Use when the user wants the spoken text / transcript / subtitles of an Instagram reel or other video, wants to turn a reel's audio into a script, or wants to transcribe a local audio/video file.

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the source is a URL, downloads it with yt-dlp --no-playlist (best mp4) to <output-dir>/<basename>.<ext>.

    line 55
  2. Very specific:

    Do not: use this for a whole Instagram/TikTok/YouTube *profile* — it handles one video.

    line 86
  3. Very specific:

    Do not: commit downloaded videos — add the output dir to .gitignore.

    line 90

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video Transcribe

Download one video by URL and extract its spoken audio as text, or transcribe a local media file. One script does both: scripts/transcribe.py.

Output (in the chosen folder): <basename>.txt (full text), <basename>.srt (subtitles), <basename>.json (language, duration, model, and per-segment timecodes).

Inputs

ParameterRequiredExample
Video URL or local file pathyeshttps://www.instagram.com/reels/DZScDIDNTi7/
--output-dirnoreference-reels/DZScDIDNTi7
--languagenoes (default: auto-detect)
--modelnosmall (default), medium, large-v3, tiny

Prerequisites

yt-dlp, ffmpeg, and faster-whisper must be available (all present on this machine). If needed: pip3 install -r requirements.txt and brew install ffmpeg.

Workflow checklist

- [ ] Step 1: Confirm the content is public (URL) or the file exists (local)
- [ ] Step 2: Run transcribe.py (downloads if URL, then transcribes)
- [ ] Step 3: Report the text + output file paths

Step 1: Source check

For a URL, open it to confirm it is public (no login wall / not private). For a local file, confirm the path exists. Stop if private/missing.

Step 2: Download + transcribe

# Instagram reel (or any yt-dlp URL): download + transcribe, force Spanish
python3 .cursor/skills/video-transcribe/scripts/transcribe.py \
  "https://www.instagram.com/reels/DZScDIDNTi7/" \
  --output-dir reference-reels/DZScDIDNTi7 --language es

# Local file (outputs land next to it as <stem>.txt/.srt/.json)
python3 .cursor/skills/video-transcribe/scripts/transcribe.py path/to/clip.mp4

The script:

  1. If the source is a URL, downloads it with yt-dlp --no-playlist (best mp4) to <output-dir>/<basename>.<ext>.
  2. Transcribes the media with faster-whisper (VAD-filtered). faster-whisper decodes the media via ffmpeg, so no separate audio extraction step is needed.
  3. Writes <basename>.txt, <basename>.srt, <basename>.json and prints the full text to stdout.

Defaults: --basename transcript for URLs (file stem for local files), --output-dir . for URLs (the file's own folder for local files).

Useful flags: --model large-v3 (higher accuracy, slower + ~GBs download), --language es (skip auto-detect / fix wrong detection), --cleanup (delete the downloaded video afterwards), --device cuda --compute-type float16 (GPU).

Step 3: Report to user

Give the detected language, duration, the transcript text, and the output paths. Fix only obvious ASR slips (it is phonetic: e.g. tu menta → tu mente, acronyms mis-heard) when handing the text to the user — note any corrections.

Model choice

small (default) matches the repo's voice / alignment pipeline (voice-isolate, avatar-reel-composer) and is fast on CPU with good Spanish accuracy. Step up to medium / large-v3 only when accuracy matters more than speed; tiny for quick tests. First use of a model downloads its weights (large-v3 is ~3 GB).

Anti-patterns

  1. Do not hand-extract audio with a separate ffmpeg call first — faster-whisper decodes the media directly.
  2. Do not use this for a whole Instagram/TikTok/YouTube profile — it handles one video. For batch profile downloads use instagram-videos, tiktok-videos, or youtube-videos, then point this at the saved files.
  3. Do not transcribe private / login-walled content.
  4. Do not commit downloaded videos — add the output dir to .gitignore.

Utility scripts

ScriptPurpose
scripts/transcribe.pyDownload (yt-dlp) if URL + transcribe (faster-whisper) → txt/srt/json (main entry point)

Additional resources

  • Usage examples: examples.md
  • To then clone the voice / build a reel from the transcript, see the voice-clone and avatar-reel-composer skills.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.