Youtube Subs

A simple script that pulls a video from youtube using yt-dlp, transcripts it using whisper.cpp, and outputs a subtitle file.

Warning: unstable. Read the code before you run it.

Usage

You need to have yt-dlp and whisper.cpp installed. Create a file named "config.json" in the same directory as the script with the following content:

{
    "output": "/home/anon/path/to/output",
    "whisper": "/home/anon/path/to/whisper.cpp"
}

Then run

deno task start [URL]

Replace [URL] with the URL of the video you want to download. The video will be downloaded to the output directory specified in the config.

Configuration

The script can be configured using a config.json file.

output

The path to the directory where the output should be saved.

whisper

The path to the whisper.cpp executable.