media-downloadlisted
Install: claude install-skill titouannwtt/claude-tools
# media-download
A script relies on yt-dlp (download) and ffmpeg (MP3 conversion, mp4 merge). It handles a list of links in one call.
Reserve it for content the user has the right to download (their own, free license, authorized use):
if the doubt is serious, say so rather than executing.
## Commands
Script: `~/.claude/skills/media-download/scripts/media_download.py`. The last stdout line is JSON.
- `doctor`: checks yt-dlp, ffmpeg and the YouTube, Instagram, TikTok and INA extractors. Run it first on a new machine.
- `audio <url> [<url> ...] [--liste FILE] --dossier DIR [--cookies FILE] [--qualite 192]`: for each link, the best audio
stream converted to MP3 (192 kb/s by default). Writes `DIR/<slug>.mp3` and `DIR/<slug>.json`; every video or
intermediate file is deleted. `--liste` is a text file with one link per line (`#` comments allowed).
- `video <url> [<url> ...] [--liste FILE] --dossier DIR [--height 1080] [--max-filesize 500M]`: mp4 video, same outputs.
- `info <url>`: title, author, date, duration, platform, available heights, license. Run before a long download.
- `thumbnail <url> --dossier DIR`: largest YouTube thumbnail (maxres, then sd, hq, mq).
`audio` and `video` end with `{"fichiers": [paths], "echecs": [{"lien", "erreur"}], "metadonnees": [...]}`. One failing
link never stops the others. `<slug>.json` holds `fichier`, `titre`, `auteur`, `date` (YYYY-MM-DD or null),
`plateforme` (YouTube, Instagram, TikTok, INA), `lien` (canonical), `duree_s`, `id`. The