viser-ffmpeg 0.4.0

FFmpeg/FFprobe wrapper for viser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# viser-ffmpeg

FFmpeg/FFprobe wrapper — encode, probe, path resolution, and cache management.

## Key Types

- `Codec` — supported codecs (`X264`, `X265`, `SvtAv1`)
- `Resolution` — video resolution with `new()` and `label()` helpers; constants `RES_2160P`, `RES_1080P`, `RES_720P`, etc.
- `EncodeResult` — result of a single encode trial

## Key Functions

- `encode(job, progress_tx)` — runs an FFmpeg encode job with real-time progress reporting
- `probe(path)` — runs ffprobe and returns parsed format/stream/fps info
- `ffmpeg_path()` / `ffprobe_path()` — resolved binary paths (from env or PATH)