0.0.8 • Published 10 months ago
yt-scribe v0.0.8
yt-scribe
A CLI program to work with SRT subtitle files for videos and generate a customized transcription HTML page with links to the specific video parts.
Getting SRT subtitles
yt-dlp is recommended, but not included.
yt-dlp --skip-download --write-auto-subs --sub-langs en --convert-subs srt VIDEO_URL_GOES_HERE
Processing SRT subtitles
We use streams for improved performance. Pipe-in the input. Pipe-out the result.
cat subtitle.srt | npx yt-scribe --url VIDEO_URL_GOES_HERE > transcription.html
Arguments
argument | default | required | usage |
---|---|---|---|
url | yes | Video URL | |
title | Untitled | no | HTML page title tag |
lang | en | no | HTML page language tag |
minimum | 0 | no | Minimum number of characters per line |
forward | 0 | no | Bring timecodes forward by these many milliseconds |
back | 0 | no | Push timecodes back by these many milliseconds |
Features
Attempts to fix repeated subtitles generated by some tools by skipping consecutive, repetitive lines.