yt-scribe
v0.0.8
Published
A CLI program to generate HTML transcriptions for SRT subtitle files. Creates links to the corresponding time in the video.
Downloads
10
Readme
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.