ez-ffmpeg 0.17.0

A safe and ergonomic Rust interface for FFmpeg integration, designed for ease of use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# keyframe_thumbnails

Fast thumbnails with `Sampling::KeyframesOnly`: the extractor pins the decoder
option `skip_frame=nokey`, so non-key frames are skipped at decode time instead
of being decoded and discarded — on long-GOP content that is one decoded frame
per GOP. The same fast path as the encoder-based recipe in
`examples/thumbnail_extraction` (Example 3), but each keyframe arrives as an
in-memory RGB frame with its timestamp instead of a JPEG file, ready for a
scrub bar, a contact sheet, or a vision model.

```bash
cargo run --example keyframe_thumbnails [input-file]
```

When no file is given, generates `keyframe_source.mp4` (12 s, GOP capped so a
keyframe lands at least once per second) first; writes one `keyframe_NNN.ppm`
per keyframe.