app: cut miniatures for the clips grid

Each card's stage shows a frame of the clip now, cut once with ffmpeg
into a thumbs folder beside the clips and reused from there. The pass
runs one clip at a time on a thread, skips what is already on disk and
as new as its clip, and poll drops each finished picture into its card
as it lands. Deleting a clip takes its miniature with it.

The frame is the clip's first: an export starts on the moment the clip
was cut for, so the picture shows the action without a seek. A clip
re-exported over the same name keeps its old picture until restart,
because the image cache keys a file by its path alone.
This commit is contained in:
vhaudiquet committed 2026-11-22 18:52:57 +01:00
1 parent 3f82f87a81
commit 83ca4071d4
5 files changed
+196 -25

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
| `src/history.rs` | Timelines from disk and the values the cards show |
| `src/portraits.rs` | Champion portraits: the Data Dragon cache and its downloads |
| `src/highlight.rs` | Highlight clips from kill events |
| `src/export.rs` | ffmpeg clip export, and the clips folder it fills |
| `src/export.rs` | ffmpeg clip export, the clips folder it fills and its miniatures |
| `src/os.rs` | Run key, toasts, tray icon and menu |
| `src/ui.rs` | Colours, cards, switches, sliders, buttons |
| `src/screens/` | Settings, match history, clips, game review |