media-spike-values
Applies the media conversion dev spike's measured values and Paul's option A (2026-11-20) to main. Spec amendment A7 (docs/superpowers/specs/2026-11-16-video-conversion-design.md, section 11) records them; source: docs/superpowers/reviews/2026-11-16-media-conversion-spike.md (branch media-spike-report).
What changes
- x264 encodes at medium (the slowest preset at least 3x real time on long-class 1080p). The fMP4 fixtures stay as encoded at veryfast; TestMuxerArgsMatchTheFixtures accepts that one recorded difference and compares every other argument.
- The short video class refuses a source above 1080p with needslongclass (payload Above1080pNeedsLong), after sourcetoolong and before the granted duration.
- HDR video up to 1080p converts up to 75 minutes (videomaxhdr); SDR keeps 2 hours, above 1080p keeps 30 minutes. The result's source facts carry hdr so the console names the right maximum.
- A video minute above 1080p counts 2 against the allowance (video 1, audio 0.1 unchanged). Settlement stores weight_tenths from the probe's facts (long class only); a long video is reserved and fitted at 2; the door, cap measure and billing read the same weighted figure. Additive column via mediajobs.Migrations; older rows charge as before.
- Docs (media and plans pages) and the copy deck, Luna passes 6 and 6b.
Mixed versions: console and image must roll together from this release (both decode strictly). No deployment runs the engine yet.
Testing: targeted tests on media, mediahandler, mediajobs, console, mediaaws, medialocal, carlos-media, plans, docsite, provision census; console guard set; make code-health, staticcheck, gitleaks clean. Simulation internal/sim/mediajobs: 200 seeds and 5,000 seeds pass; three mutations (never charge 2, reserve long video at 1, retired fallback at 1) are caught.
Review: Astra round 1 of 3, no P1, READY AFTER FIXES; both P2s fixed without another round (CODEX-FINDINGS-media-spike-values.md). Census: internal/plans envelope (a comment) approved by Astra, recorded on #280.
Not merged: waiting for a person.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed f9cb4a905 Merge origin/main (7f3eb02d) into media-spike-values
- paul@keymail.dev pushed 44a32a3d1 notes: Luna copy pass 6b, the corrected allowance row, applied
- paul@keymail.dev pushed 2d4ab13f9 media: Astra round 1's P2s: retirement weights in the sim, allowance copy
- paul@keymail.dev pushed 2d5eb9f5c reviews: Astra brief for media-spike-values, round 1 of 3
- paul@keymail.dev pushed 1dfbbaad6 census: re-pin internal/plans for the media weight comment
- paul@keymail.dev pushed d63bd7e71 notes: Luna copy pass 6 result, applied
- paul@keymail.dev pushed 93d1e3b15 notes: Luna copy pass 6 brief for the media spike's values
- paul@keymail.dev pushed 3404eef91 spec: A7, the media spike's values and above-1080p minutes
- paul@keymail.dev pushed bdef61caa media: a video minute above 1080p counts twice (Paul's option A)
- paul@keymail.dev pushed f25494cad media: HDR video up to 1080p converts up to 75 minutes
- paul@keymail.dev pushed ca2255580 media: the short video class refuses sources above 1080p
- paul@keymail.dev pushed 3b52e8c33 media: encode at x264 medium, the spike's measured preset