carlos / platform Public

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.

Commits 12
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity