feat(media): live fragmented MP4 (H.264/HEVC/AV1 + AAC/Opus), shade live video

Fmp4Splitter cuts ftyp+moov into the sticky init and moof+mdat into frames,
reading sync samples from trun/tfhd/trex flags so fragments shorter than a
GOP still mark where late joiners may start. Codec strings come from the
sample entries. MediaSplitter sniffs WebM vs fMP4; the CLI's new
`live video` uses it (`live webm` stays as the pinned form).

Verified: 9 new tests on real ffmpeg output; H.264/AAC live in headless
Chromium (49/49 fragments appended, late join, 3.2 s latency) and a sealed
H.264 film seeking to 24 s.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-18 21:27:50 +02:00
parent c5b897b924
commit 75dbf530ce
12 changed files with 710 additions and 26 deletions

View File

@@ -347,14 +347,14 @@ tasks:
- id: media-fmp4-live
title: "fMP4 (H.264/AAC) i live-splitteren"
description: "Live-splitteren forstår i dag bare WebM; fMP4 gir H.264/AAC fra kameraer og OBS, og Safari."
status: todo
column: todo
status: done
column: done
priority: medium
assignee: claude
branch: streaming
created: 2026-10-19
updated: 2026-10-19
completed_at: null
completed_at: 2026-10-18
- id: media-android-exoplayer
title: "Android-demo: ExoPlayer DataSource for forseglede filmer"
description: "MediaReader.inputStream finnes; mangler en Media3 DataSource og en demo-app på dev-telefonen (RFCN504DWJF)."