-
Notifications
You must be signed in to change notification settings - Fork 1.9k
test(producer): add mp4 H.265 SDR distributed fixture #851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jrusso1020
merged 2 commits into
main
from
05-14-test_producer_add_mp4_h.265_sdr_distributed_fixture
May 15, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/producer/tests/distributed/mp4-h265-sdr/meta.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "name": "Distributed: mp4 H.265 SDR", | ||
| "description": "60-frame composition (2s @ 30fps) with text, a crossfade transition, and a small rotating SVG icon. renderConfig.format=mp4 + codec=h265 routes the distributed pipeline through libx265 with closed-GOP keyint params (min-keyint=N:scenecut=0:open-gop=0:repeat-headers=1). The in-process baseline is rendered as h264 because the in-process renderer doesn't expose a codec hint — the harness's PSNR comparison therefore measures 'libx265 chunked + concat' against 'libx264 single-pass', catching gross codec failures while accepting normal cross-codec PSNR drift (~30-35 dB at standard quality).", | ||
| "tags": ["distributed", "mp4", "h265", "hevc", "sdr"], | ||
|
|
||
| "minPsnr": 30, | ||
| "maxFrameFailures": 0, | ||
|
|
||
| "minAudioCorrelation": 0.9, | ||
| "maxAudioLagWindows": 120, | ||
|
|
||
| "renderConfig": { | ||
| "fps": 30, | ||
| "format": "mp4", | ||
| "codec": "h265", | ||
| "chunkSize": 15 | ||
| } | ||
| } |
121 changes: 121 additions & 0 deletions
121
packages/producer/tests/distributed/mp4-h265-sdr/output/compiled.html
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/producer/tests/distributed/mp4-h265-sdr/output/output.mp4
Git LFS file not shown
115 changes: 115 additions & 0 deletions
115
packages/producer/tests/distributed/mp4-h265-sdr/src/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta content="width=device-width, initial-scale=1.0" name="viewport" /> | ||
| <title>mp4 H.265 SDR distributed fixture</title> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script> | ||
Check warningCode scanning / CodeQL Inclusion of functionality from an untrusted source Medium test
Script loaded from content delivery network with no integrity check.
|
||
| <style> | ||
| @import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap"); | ||
|
|
||
| body, | ||
| html { | ||
| margin: 0; | ||
| padding: 0; | ||
| width: 640px; | ||
| height: 360px; | ||
| background: #0f172a; | ||
| overflow: hidden; | ||
| font-family: "Space Mono", monospace; | ||
| } | ||
|
|
||
| #main-comp { | ||
| position: relative; | ||
| width: 640px; | ||
| height: 360px; | ||
| } | ||
|
|
||
| .label { | ||
| position: absolute; | ||
| top: 22%; | ||
| left: 50%; | ||
| transform: translateX(-50%); | ||
| font-size: 18px; | ||
| letter-spacing: 4px; | ||
| color: #94a3b8; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| .title { | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| font-family: "Space Mono", monospace; | ||
| font-size: 56px; | ||
| font-weight: 700; | ||
| color: #6366f1; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .stage { | ||
| position: absolute; | ||
| inset: 0; | ||
| } | ||
|
|
||
| .icon { | ||
| position: absolute; | ||
| bottom: 18%; | ||
| left: 50%; | ||
| transform: translate(-50%, 0); | ||
| width: 48px; | ||
| height: 48px; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div | ||
| id="main-comp" | ||
| data-composition-id="main-comp" | ||
| data-width="640" | ||
| data-height="360" | ||
| data-start="0" | ||
| data-duration="2" | ||
| > | ||
| <div class="stage" id="stage-a"> | ||
| <div class="label">CODEC</div> | ||
| <div class="title" id="title-a">HEVC ONE</div> | ||
| </div> | ||
| <div class="stage" id="stage-b" style="opacity: 0"> | ||
| <div class="label">CODEC</div> | ||
| <div class="title" id="title-b">HEVC TWO</div> | ||
| </div> | ||
| <svg class="icon" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" id="icon"> | ||
| <circle cx="24" cy="24" r="18" fill="none" stroke="#6366f1" stroke-width="4" /> | ||
| <circle cx="24" cy="24" r="6" fill="#6366f1" /> | ||
| </svg> | ||
| <!-- | ||
| No audio element on purpose: AAC frame quantization pads a 2-second | ||
| silent track past 2.0s of container time, which extends format.duration | ||
| past nb_frames / fps and trips the harness PSNR sampler at the very | ||
| last checkpoint. The chunk-boundary contracts this fixture pins are | ||
| video-only; omitting audio keeps container duration == 2.0s exactly. | ||
| (Same rationale as mp4-h264-sdr.) | ||
| --> | ||
| </div> | ||
|
|
||
| <script> | ||
| // Same chunk-seam stressors as the mp4-h264-sdr sibling: crossfade | ||
| // straddles the frame-30 seam (0.9-1.1s = frames 27-33); continuous | ||
| // icon rotation makes per-frame angle a pure function of seek-position | ||
| // so virtual-clock drift surfaces as discontinuity at frame 15/30/45. | ||
| const tl = gsap.timeline({ paused: true }); | ||
| window.__timelines = window.__timelines || {}; | ||
| window.__timelines["main-comp"] = tl; | ||
|
|
||
| const stageA = document.getElementById("stage-a"); | ||
| const stageB = document.getElementById("stage-b"); | ||
| const icon = document.getElementById("icon"); | ||
|
|
||
| tl.to(stageA, { opacity: 0, duration: 0.2, ease: "none" }, 0.9); | ||
| tl.to(stageB, { opacity: 1, duration: 0.2, ease: "none" }, 0.9); | ||
| tl.to(icon, { rotation: 360, duration: 2, ease: "none" }, 0); | ||
| </script> | ||
| </body> | ||
| </html> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.