Skip to content
Skills Library
Marketing & content · Conversion & formats

media

/media

Get the subtitles, transcript, or details of a YouTube video, podcast, or other online video or audio with yt-dlp, and transcribe audio locally. Use when the user shares a video or audio link or asks what a video says.

Repository
den ↗
Licence
Apache-2.0
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Get the subtitles, transcript, or details of a YouTube video, podcast, or other online video or audio with yt-dlp, and transcribe audio locally. Use when the user shares a video or audio link or asks what a video says.

Original author description

Get the subtitles, transcript, or details of a YouTube video, podcast, or other online video or audio with yt-dlp, and transcribe audio locally. Use when the user shares a video or audio link or asks what a video says.

How it works

  1. yt-dlp
  2. Details and subtitles in one request
  3. When YouTube blocks the server
  4. Subtitles first
  5. Transcribe when there are no subtitles
  6. Local findings
Original SKILL.md headings · 101 lines, 737 words
SKILL.md preview
---
name: media
description: Get the subtitles, transcript, or details of a YouTube video, podcast, or other online video or audio with yt-dlp, and transcribe audio locally. Use when the user shares a video or audio link or asks what a video says.
---

# media

Keep downloads in `~/media/`.

## yt-dlp

Install it once, if `command -v yt-dlp` finds nothing:

```bash
mkdir -p ~/.local/bin
case "$(uname -m)" in aarch64) asset=yt-dlp_linux_aarch64 ;; *) asset=yt-dlp_linux ;; esac
curl -fsSL -o ~/.local/bin/yt-dlp "https://github.com/yt-dlp/yt-dlp/releases/latest/download/$asset"
chmod +x ~/.local/bin/yt-dlp
```

Sites change often. When yt-dlp fails to extract a video, run `yt-dlp -U` and try once more. A warning about a missing JavaScript runtime is harmless for subtitles, details, and audio.

## Details and subtitles in one request

YouTube limits how often a server may ask, so get everything you need in one call:

```bash
yt-dlp -J "<url>" | jq '{title, duration, channel, language,
  subtitles: (.subtitles // {} | keys), auto: [.automatic_captions // {} | keys[] | select(endswith("-orig"))]}'
```

`subtitles` lists the author's tracks, and `auto` the automatic ones in the video's own language. Both empty means there are no subtitles.

## When YouTube blocks the server

An HTTP 429 or "Sign in to confirm you're not a bot" means YouTube is limiting this server for a while. Do not open the video in Lightpanda or retry right away: both meet the same block. Get the title from `curl -s "https://www.youtube.com/oembed?url=<url>&format=json"`, tell the user YouTube is limiting requests, and offer to try again later with a den job in about 30 minutes that reports the result.

## Subtitles first

Subtitles take seconds, so try them before any transcription.

1. Pick a track from the details above. Prefer the author's subtitles in the video's language over automatic ones.
2. Download exactly one track:

   ```bash
   yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs en --sub-format vtt -o "$HOME/media/%(id)s.%(ext)s" "<url>"
   ```

   Name one language, never a pattern such as `en.*`: a pattern pulls dozens of machine translations and YouTube answers with 429.
3. Turn the VTT file into plain text:

   ```bash
   sed -e '/-->/d' -e '/^WEBVTT/d' -e '/^Kind:/d' -e '/^Language:/d' -e 's/<[^>]*>//g' file.vtt | awk 'NF && !seen[$0]++'
   ```

## Transcribe when there are no subtitles

How long transcription takes depends on the machine and the model, so measure it on the first minute instead of guessing. A turn and a den job each end after 30 minutes.

The local model is set by `DEN_WHISPER_MODEL`. When that variable is empty, there is no local model: tell the user.

ffmpeg converts the audio. Install it once, if `command -v ffmpeg` finds nothing:

```bash
curl -fsSL "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-$(dpkg --print-architecture)-static.tar.xz" | tar -xJ -C /tmp
cp /tmp/ffmpeg-*-static/ffmpeg ~/.local/bin/ && rm -rf /tmp/ffmpeg-*-static
```

1. Download the audio and transcribe its first minute, timing it:

   ```bash
   cd ~/media
   yt-dlp -f bestaudio -o "%(id)s.%(ext)s" "<url>"
   ffmpeg -loglevel error -t 60 -i <id>.<ext> -ar 16000 -ac 1 <id>-start.wav
   model="$DEN_STATE/models/ggml-$DEN_WHISPER_MODEL.bin"
   s=$(date +%s); whisper-cli --no-timestamps --language <lang> --threads "$(nproc)" --model "$model" \
     --file <id>-start.wav > <id>-start.txt 2> <id>-start.log; echo "$(( $(date +%s) - s )) seconds"
   ```

   Set `<lang>` to the video's language from the details, or `auto` when it is unknown; then `grep -o "auto-detected language: [a-z]*" <id>-start.log` names it for the full run. Never use `DEN_WHISPER_LANGUAGE` here: it is the user's language for voice messages, and a wrong language garbles the text.

2. Estimate the whole: the seconds the minute took, times the audio's length in minutes. The first minute already tells you what the video is about.

3. Decide whether to go on:
   - If the user's memory says how to handle long tasks, such as "always finish without asking", follow it.
   - Otherwise go on when the estimate is under about 5 minutes. When it is longer, tell the user the estimate and what the first minute says, and ask whether to transcribe the rest.
   - When the estimate is over 25 minutes, it will not fit in one turn: offer a part instead, such as a time range the user picks.
   - When the user answers with "always" or "from now on", save that as their preference in memory.

4. Transcribe the rest:

   ```bash
   ffmpeg -loglevel error -i <id>.<ext> -ar 16000 -ac 1 <id>.wav
   whisper-cli --no-prints --no-timestamps --language <lang> --threads "$(nproc)" --model "$model" \
     --file <id>.wav > <id>.txt
   ```

- `ffmpeg -ss <start> -to <end>` cuts a time range.
- Run one transcription at a time: each takes several hundred MB of memory.
- Delete the `.wav` files and the audio when done, and keep the `.txt`.

## Local findings

Findings about this skill on this machine are in `notes/skills/media.md`. Read it before you start, and add what you learn there. This skill itself is read-only.

Versions

RepositoryScoreLicence
This page · unsady/den100Apache-2.0
PIXARTSeu/Synapse95AGPL-3.0
markusleben/ha-nova90MIT
rdennler/yat90Apache-2.0
rdennler/thinkpad90Apache-2.0
tpc-pascal/skillsmith90MIT

Database snapshot: 13.11.2026 · package version b3983ec32000 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100youtube-transcribe
    YouTube video transcription and memory workflow. Triggers when user shares a YouTube URL and asks to transcribe, get transcript, extract content, "转录", "transcribe this video". Downloads audio via yt-dlp (android client to avoid 403, with web fallback), converts with ffmpeg,…
  • 86transcribe-media
    Transcribe an audio or video file or link with HappyScribe and deliver the transcript or subtitles. Use when the user wants a recording, interview, podcast, video or YouTube link transcribed, or needs subtitles (SRT, VTT).
  • 100transcribe-youtube
    Download and transcribe YouTube videos to a markdown file using yt-dlp and Whisper. Use when user says "transcribe youtube", "transcribe this video", "youtube transcript", or provides a YouTube URL to transcribe.
  • 100youtube-search
    Search YouTube with yt-dlp and return structured results (title, channel, views, duration, date, URL), then fetch captions or download audio for a chosen video. Use when the user asks to "search youtube", "find youtube videos about", "what's on youtube about", wants recent or…
  • 100ytapi-youtube-transcript
    Get the transcript, subtitles or captions of a YouTube video (plain text, Markdown, timestamped JSON, SRT or VTT, any language) through the YTAPI API. Use when the user shares a YouTube link or video ID and wants what was said: to read, summarize, quote, translate or search it.…
  • 100youtube-transcribe-skill
    Extract subtitles or a transcript from a YouTube URL and save normalized timestamped text locally. Use when the user wants the spoken content of a YouTube video as text.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.