Metadata-Version: 2.4
Name: yt-transcribe
Version: 0.3.1
Summary: Download and transcribe YouTube videos using yt-dlp and whisper-cpp
Author-email: pascalweiss <4643156+pascalweiss@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: click
Requires-Dist: pywhispercpp
Requires-Dist: pyyaml
Requires-Dist: rich
Requires-Dist: yt-dlp
Description-Content-Type: text/markdown

# yt-transcribe

Download and transcribe YouTube videos using [yt-dlp](https://github.com/yt-dlp/yt-dlp) and [whisper.cpp](https://github.com/ggerganov/whisper.cpp). Supports single videos and full channel batch mode with parallel workers.

## Install

### Homebrew (Apple Silicon Mac)

```bash
brew install pascalweiss/tap/yt-transcribe
```

### pipx / uv (any platform, Python 3.10+)

```bash
pipx install yt-transcribe
# or
uv tool install yt-transcribe
```

**Requirements:** `ffmpeg` must be available on your PATH.

## Usage

### Single video

```bash
yt-transcribe "https://www.youtube.com/watch?v=VIDEO_ID"
```

### Channel mode

Transcribe all videos from a channel (skips already-transcribed ones):

```bash
yt-transcribe --channel "https://www.youtube.com/@CHANNEL" -o ./transcripts --workers 4
```

### Options

| Flag | Description | Default |
|------|-------------|---------|
| `-m, --model` | Whisper model name or path to `.bin` file | `large-v3-turbo` |
| `--no-gpu` | Disable GPU acceleration (Metal) | off |
| `-l, --language` | Language code (`en`, `de`, `auto`, ...) | `auto` |
| `-f, --output-format` | Output format: `txt`, `vtt`, `srt`, `csv`, `json`, `all` | `txt` |
| `-a, --audio-format` | Audio download format | `mp3` |
| `-k, --keep-audio` | Keep audio file after transcription | off |
| `-o, --output-dir` | Output directory | `$YT_TRANSCRIBE_OUTPUT_DIR` or `.` |
| `-c, --channel` | Channel URL for batch mode | |
| `--tab` | Channel tab: `videos`, `shorts`, `streams` | `videos` |
| `--min-seconds` | Skip videos shorter than N seconds | `60` |
| `--after` | Only videos after this date (`YYYY-MM-DD`, approximate) | |
| `--before` | Only videos before this date (`YYYY-MM-DD`, approximate) | |
| `--amount` | Max new videos to transcribe (`0` = all) | `0` |
| `--workers` | Parallel workers for channel mode | `1` |
| `--version` | Show version and exit | |

## License

[MIT](LICENSE)
