0.0.8 • Published 10 months ago

yt-scribe v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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

argumentdefaultrequiredusage
urlyesVideo URL
titleUntitlednoHTML page title tag
langennoHTML page language tag
minimum0noMinimum number of characters per line
forward0noBring timecodes forward by these many milliseconds
back0noPush timecodes back by these many milliseconds

Features

Attempts to fix repeated subtitles generated by some tools by skipping consecutive, repetitive lines.

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago