| import_example/import | ||
| .gitignore | ||
| channels.txt | ||
| example.txt | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
vidsink
A small make pipeline for short-form video: discover links, download them,
make contact sheets, transcribe them, and fold everything into one TSV table.
discover → fetch → sheets → transcripts → metadata
A run starts from a plain-text channel list and ends with a TSV of the same
name: make P=example reads example.txt and writes example.tsv. The
profile name is the one thing you normally set, as P=PROFILE; it defaults
to channels, so channels.txt → channels.tsv.
Each stage is incremental and idempotent: existing media, .jpg and .txt
files are skipped, and metadata is rebuilt from scratch on every run.
Requirements
You need make, jq and ffmpeg installed.
We also need three Python tools, yt-dlp, vcsi and whisper-ctranslate2, which you can install with one uv call, if you have uv installed:
uv tool install yt-dlp --with curl-cffi \
--with-executables-from vcsi,whisper-ctranslate2
Each tool and its flags can be overridden on the command line, e.g.
make YTDLP='uvx --with curl-cffi yt-dlp',
make VCSI_FLAGS='-w 1280 -g 3x3' or
make WHISPER_FLAGS='--model large-v3-turbo --device cuda --output_format txt'.
Quick start
# discover + fetch + metadata (the default goal)
make P=example
# same thing, spelled out
make P=example discover fetch metadata
# ... plus contact sheets and transcripts
make P=example SHEETS=1 TRANSCRIPTS=1
discover takes the newest LIMIT videos per channel and merges them into
the profile's existing lists, so raising it later backfills more. The default
is 2; set it on the command line, e.g. make P=example LIMIT=10.
Imported URL lists
Sometimes you already have lists of video URLs instead of accounts to
discover from. Put them in P/import/ and run with URLS=1: discovery is
skipped and every http(s) link in the files is scraped instead.
import_example/ shows the shape: one URL list per person (user1.tsv,
user2.tsv), any columns, as long as the URLs are in there.
make P=import_example URLS=1
License
MIT — see LICENSE.