Skip to content

fix(demo): every demo film plays as a remux on every client, and the web declares the pixel formats its browser decodes - #141

Merged
gravity-zero merged 4 commits into
devfrom
fix/demo-remux-everywhere
Nov 23, 2026
Merged

gravity-zero merged 4 commits into
devfrom
fix/demo-remux-everywhere

Conversation

@gravity-zero

Copy link
Copy Markdown
Contributor

Every film of the public demo now plays as a remux on every client, and a browser that decodes a 4:4:4 source smoothly gets it copied.

Measured on a local demo (this branch's binary in the 0.1.11 image, the real files downloaded by the bootstrap, 44 videos x the five client profiles of internal/app/loadtest/clients.go): 220/220 combinations copy both video and audio, every segment served by mkvgo. Before: Caminandes 1 encoded everywhere, Elephants Dream everywhere, Spring and Sprite Fright on Safari, and the audio of Sintel, Tears of Steel, Big Buck Bunny and Sprite Fright on a TV's browser. The default audio track was already right everywhere; only the files were in the way.

Demo catalogue (internal/pkg/demo/manifest.go)

  • Caminandes 1 (.ogv, Theora/Vorbis) -> Blender's 1080p H.264/AAC master on archive.org; Elephants Dream (VP9 Profile 3, 4:4:4 10-bit) -> Blender's H.264/AAC release (1024x576 stereo); Spring and Sprite Fright (VP9/Opus) -> Blender Studio's H.264/AAC 1080p releases. The replaced files go to RetiredMedia, deleted at boot.
  • Tears of Steel, Sintel and Big Buck Bunny get a stereo AAC track built once from their official 5.1 mix (Build), the one track a TV's browser takes as is; the demo's audio default picks it.
  • Build.Revision: a recipe raised to a new revision is built again over the file an existing demo holds (a dot file beside it records the revision, the scan skips it). Without it the bootstrap keeps any file already there.
  • The trailing-bytes flaw Media health shows moves from Spring to Sintel (it is a Matroska flaw; Spring is an MP4 now). The docs screenshots keep Spring and Sprite Fright at their new paths.
  • Upgrade measured on the demo that held the old files: the four retired, the new ones downloaded, the three rebuilt with their revision, every title playable after the next scan settles.

Pixel formats on the web

  • The web player asks the browser (MediaCapabilities) which layouts beyond 4:2:0 it decodes smoothly and declares them (pixelFormats on the master, supportedPixelFormats on the verdict, the same list); nothing beyond the rule, nothing declared and the URL unchanged.
  • VP9 Profiles 1 and 3 are copyable for a client that declares the layout. Measured in headless Chrome: Elephants Dream's VP9 4:4:4 10-bit copied from the real server master, 474 frames in 19.6 s, none dropped; without the declaration it stays encoded.
  • The pixel_format_unsupported label named "(10-bit H.264, 4:2:2)" whatever the file; the example is gone in the six languages. The playback page of the docs says what the web reports (six languages, restamped).

@gravity-zero
gravity-zero merged commit 9f99d27 into dev Nov 23, 2026
13 checks passed
@gravity-zero
gravity-zero deleted the fix/demo-remux-everywhere branch November 23, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant