feat(media): video versions: still frame + a version every screen plays (platform-v2 5.4e)

- services/video.py: background worker (one video at a time, low priority) makes a still
  frame (thumb/card/full WebP) and, when needed, play.mp4 (H.264+AAC, <=1920 px, HDR
  tone-mapped, faststart); the original is kept. Media.processing/progress (migration 0031,
  existing videos queued). ffmpeg from the pinned imageio-ffmpeg wheel; none = as uploaded.
- MOV (video/quicktime) accepted; /api/media/file/<sha>/play served with ranges.
- Signage plays the version (poster = still frame) and tells the screens playing it when ready.
- Manager library: still frames in the grid, preparing progress, status in the details.
- Tests: test_video.py (8), backend 541 passed; e2e media/signage/stack new checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 02:10:22 +02:00
co-authored by Claude Opus 5.5
parent f8d0d29d8f
commit b5361e10ca
28 changed files with 756 additions and 39 deletions
+15 -2
View File
@@ -774,11 +774,12 @@
"saveName": "Save name",
"sizes": "Sizes made",
"sizesHint": "The server made these from the original; each screen loads the smallest one it needs.",
"sizesVideo": "Videos are kept as uploaded for now; smaller versions and a still frame come later.",
"sizesVideo": "The server made a still frame from the video and, where a screen needs it, a version every screen plays. The original is kept.",
"variants": {
"thumb": "Small (lists)",
"card": "Card (menus)",
"full": "Large (full screen)",
"play": "For screens (H.264)",
"original": "Original"
},
"usedBy": "Used by",
@@ -805,7 +806,19 @@
"builtin": "Built-in"
},
"builtin": "Built-in",
"builtinHint": "Built-in pictures come with Xenia: they can be used anywhere, but not renamed or deleted."
"builtinHint": "Built-in pictures come with Xenia: they can be used anywhere, but not renamed or deleted.",
"processing": {
"waiting": "Waiting to be prepared for screens",
"working": "Preparing for screens… {{progress}}%",
"ready": "A version for every screen is ready",
"asIs": "Plays on every screen as it is",
"failed": "Couldn't be prepared: it plays as uploaded where the screen can"
},
"processingShort": {
"waiting": "Waiting…",
"working": "Preparing {{progress}}%",
"failed": "Not prepared"
}
},
"signage": {
"pageTitle": "Signage",