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:
@@ -72,6 +72,8 @@ test('how long a slide stays; the frame for a turned TV; what to keep on the dev
|
||||
const data = { schedule: {}, playlists: { 1: { media: { 5: { url: '/a' } } }, 2: { media: { 6: { url: '/b' }, 5: { url: '/a' } } } } }
|
||||
assert.deepEqual(mediaUrls(data).sort(), ['/a', '/b'])
|
||||
assert.deepEqual(mediaUrls({ playlist: null }), [])
|
||||
const vid = { playlist: { media: { 7: { url: '/v/play', poster: '/v/full' } } } } // a video keeps its still frame too (5.4e)
|
||||
assert.deepEqual(mediaUrls(vid).sort(), ['/v/full', '/v/play'])
|
||||
})
|
||||
|
||||
test('a menu board in pages: headings count, a cut group repeats its heading', () => {
|
||||
|
||||
Reference in New Issue
Block a user