clipslisted
Install: claude install-skill vincentventalon/my-claude-skills
# Clips
One long video in, finished shorts out. First a plan (`clips/<source>.md` in
the current folder), then each picked clip is cut into a take and edited by
the `edit` skill into `<output_dir>/<slug>.mp4` (the folder `edit` uses:
`output_dir` of `~/.config/video-editing/config.json`, else
`~/Videos/edited`). The ideas too spread out to clip become new scripts
written with the `script` skill.
The skills are installed next to this one (`../edit/SKILL.md`,
`../script/SKILL.md`, `../setup/SKILL.md`; installed as a plugin, call them
by name with the Skill tool, `<plugin>:edit`). Never edit with your own
ffmpeg filters: every cut, subtitle and board comes from `edit`.
Preflight: `yt-dlp --version && ffmpeg -version`. Anything missing, or no
`~/.config/video-editing/config.json` yet: the `setup` skill first, then
come back here. Talk to the user in their language. `<source>`: a short slug
for the long video, lowercase, dashes, no dots. `<tmp>` = `clips/.tmp/`.
## 1. The transcript, with times
**A YouTube link** (fastest, nothing to download but the captions):
```sh
mkdir -p clips/.tmp
yt-dlp --skip-download --print "%(title)s" --print "%(duration_string)s" --print "%(chapters)j" "<url>"
yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs "<lang>.*" --sub-format vtt -o "clips/.tmp/%(id)s.%(ext)s" "<url>"
```
`<lang>` = the language spoken (`fr`, `en`, `es`...). Captions uploaded by
the creator come out as `<id>.<lang>.vtt`: prefer them over the automatic
ones