Youtube Guitar Tab Parser
CLI that turns a YouTube guitar-lesson video into a PDF of the guitar tab.
It downloads the video, samples frames, uses Claude vision to locate the tab region, crops every frame to that region, de-duplicates the crops by the bar number printed on each line of the score, and stitches the distinct tab lines vertically into a PDF. It works out of the box with no configuration — the PDF is written to out/<video-title>.pdf , with the video title as a heading on the first page and in the document metadata.
Requirements
Node.js ≥ 20
yt-dlp and ffmpeg on your PATH ( brew install yt-dlp ffmpeg )
and on your ( ) An Anthropic API key
Setup
npm install npm run build cp .env.example .env # then put your ANTHROPIC_API_KEY in it
Usage
... continue reading