chore: phase 5 wrap-up (platform-v2 5.99)

- THIRD_PARTY_NOTICES.md in the backend image: FFmpeg (GPL v3, via imageio-ffmpeg)
- video.requeue_missing(): videos whose still frame is gone (a partial restore) are prepared
  again when the backend starts (+1 test, backend 542 passed)
- pack README: data/media belongs in every site backup with pos.db
- stack.mjs: the test video is unique per run (the stack keeps its data between runs)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 03:06:48 +02:00
co-authored by Claude Opus 5.5
parent b5361e10ca
commit 218a6c9c5e
5 changed files with 59 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ try {
// 5.4e: the backend image carries the video tool: a phone video gets its version for screens
const ff = execFileSync('python', ['-c', 'import imageio_ffmpeg as i; print(i.get_ffmpeg_exe())'], { encoding: 'utf8' }).trim()
const hevc = execFileSync(ff, ['-hide_banner', '-loglevel', 'error', '-f', 'lavfi', '-i', 'testsrc2=s=2560x1440:r=25:d=2', '-c:v', 'libx265',
'-x265-params', 'log-level=error', '-tag:v', 'hvc1', '-f', 'mov', '-movflags', 'frag_keyframe+empty_moov', 'pipe:1'], { maxBuffer: 64 << 20 })
'-x265-params', 'log-level=error', '-tag:v', 'hvc1', '-metadata', `comment=${Date.now()}`, '-f', 'mov', '-movflags', 'frag_keyframe+empty_moov', 'pipe:1'], { maxBuffer: 64 << 20 })
const vf = new FormData()
vf.append('file', new Blob([hevc], { type: 'video/quicktime' }), 'IMG_0001.MOV')
const vid = await (await fetch(`${M}/api/media`, { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body: vf })).json()