mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
fix(cli): forward --hdr through Docker render + HDR docs
The --hdr flag was silently dropped when combined with --docker because renderDocker did not include it in the args passed to the in-container hyperframes render invocation. Forwarding it produces the same HDR10 MP4 (HEVC, yuv420p10le, BT.2020 PQ, mastering display + max-cll) as a local render — verified end-to-end with the new hdr-pq regression fixture. This PR also fills in the documentation gaps from the HDR feature stack (#288, #289, #290, #265, #268), which each added a slice of HDR support without pulling it together into a single guide. Code change: - packages/cli/src/commands/render.ts: refactor renderDocker to use a new pure helper buildDockerRunArgs (packages/cli/src/utils/dockerRunArgs.ts) that explicitly threads every render flag — including --hdr, --gpu, --quiet — into the docker run argv. Snapshot-tested in dockerRunArgs.test.ts so any future flag drop fails loudly. Docs: - New docs/guides/hdr.mdx — top-level HDR guide: quickstart, how detection works, source media requirements (HDR video + 16-bit HDR PNG), output format constraints, ffprobe verification, Docker rendering, limitations, common pitfalls - docs/guides/common-mistakes.mdx — "Expected HDR but got SDR" entry; --hdr is detection, not force; notes Docker now supports it - docs/guides/rendering.mdx — --hdr row in flags table; HDR card under Next Steps - docs/packages/cli.mdx — expanded --hdr description with link to the guide - docs/packages/producer.mdx — HDR Output section under RenderConfig - docs/packages/engine.mdx — HDR APIs section (color-space utilities + WebGPU readback runtime); now compiles because DEFAULT_HDR10_MASTERING and HdrMasteringMetadata are re-exported from packages/engine/src/index.ts - docs/docs.json — register the new HDR guide in nav Review feedback from PR #346: - packages/engine/src/index.ts — export DEFAULT_HDR10_MASTERING and HdrMasteringMetadata so the engine docs example compiles - docs/guides/hdr.mdx — drop fabricated "animated HDR images log a warning and use first frame" claim (not implemented); clarify that HDR <img> is 16-bit PNG only and other formats fall back to SDR; broaden the yt-dlp example to bestvideo[dynamic_range=HDR]+bestaudio so AV1-HDR streams are also picked up; qualify the Docker render benchmark claim - packages/producer/src/services/renderOrchestrator.ts — bump the HDR + non-mp4 fallback from log.info to log.warn and make the message actionable Regression test (hdr-pq): - packages/producer/tests/hdr-regression — delete the broken sub-tree. The old hdr-pq composition relied on a CDN shader-transitions library and window.__hf injection with scenes defaulting to opacity:0, so when the library failed to load most of the render was invisible. The fixture was also nested two directories deep, so discoverTestSuites (which only scans direct children of tests/) never picked it up. - packages/producer/tests/hdr-pq — new top-level fixture: 5s of an HDR10 HEVC Main10 BT.2020 PQ source clip with a static SDR DOM overlay. Source is a 5s excerpt (1:18–1:23) from https://youtu.be/56hEFqjKG0s, downloaded via yt-dlp and re-encoded to HEVC Main10 / 1920x1080 / 30fps with HDR10 mastering metadata. Self-contained: no external CDNs, no custom fonts, no animation libraries. NOTICE.md captures attribution. - packages/producer/src/regression-harness.ts — add optional hdr boolean to TestMetadata.renderConfig, validate it, and forward it to createRenderJob so HDR fixtures actually run through the HDR pipeline. - .github/workflows/regression.yml — exclude hdr from the fast shard and add a dedicated hdr shard so the new fixture runs on CI. - .gitattributes — LFS-track packages/producer/tests/*/src/*.mp4 so source clips don't bloat the repo. - packages/engine/src/services/frameCapture.ts — inject a no-op __name shim into every page via evaluateOnNewDocument. tsx transforms the engine source on the fly with esbuild's keepNames, which wraps every named function in __name(fn, "name"). When page.evaluate() serializes a callback those calls would crash with "__name is not defined" because the helper only exists in Node. The shim makes the engine work whether it's imported from compiled dist or from source via tsx.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Golden baseline videos for regression tests
|
||||
packages/producer/tests/*/output/output.mp4 filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
# Source video clips for regression test fixtures (HDR samples, etc.)
|
||||
packages/producer/tests/*/src/*.mp4 filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
# GitHub Linguist overrides — HTML files are compositions (user content / templates),
|
||||
# not the framework source. Hide them from the repo language stats so TypeScript,
|
||||
# which is the actual implementation, surfaces as the dominant language.
|
||||
|
||||
@@ -35,9 +35,11 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- shard: fast
|
||||
args: "--sequential --exclude-tags slow,render-compat"
|
||||
args: "--sequential --exclude-tags slow,render-compat,hdr"
|
||||
- shard: render-compat
|
||||
args: "--sequential gsap-letters-render-compat css-spinner-render-compat raf-ball-render-compat iframe-render-compat"
|
||||
- shard: hdr
|
||||
args: "--sequential hdr-pq"
|
||||
- shard: styles-a
|
||||
args: "style-1-prod style-2-prod style-3-prod"
|
||||
- shard: styles-b
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
"guides/prompting",
|
||||
"guides/gsap-animation",
|
||||
"guides/rendering",
|
||||
"guides/hdr",
|
||||
"guides/performance",
|
||||
"guides/common-mistakes",
|
||||
"guides/troubleshooting"
|
||||
|
||||
@@ -189,6 +189,26 @@ These are mistakes that cannot be caught by the linter. For automated checks, ru
|
||||
See [Performance: backdrop-filter: blur()](/guides/performance#backdrop-filter-blur) for the full breakdown.
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Expected HDR output but got SDR">
|
||||
**Symptom:** Rendered with `--hdr`, but the output looks the same as SDR or `ffprobe` reports `color_transfer=bt709`.
|
||||
|
||||
**Cause:** `--hdr` is a *detection* flag, not a *force* flag. Hyperframes only switches to HDR encoding when a source `<video>` or `<img>` is tagged with BT.2020 / PQ / HLG color metadata. Two common reasons HDR is not engaged:
|
||||
|
||||
1. **All sources are SDR.** `--hdr` is a no-op on SDR-only compositions. Verify with `ffprobe`:
|
||||
|
||||
```bash Terminal
|
||||
ffprobe -v error -show_streams source.mp4 | grep color_transfer
|
||||
# Want: smpte2084 (PQ) or arib-std-b67 (HLG)
|
||||
# SDR: bt709, smpte170m, bt470bg, etc.
|
||||
```
|
||||
|
||||
2. **Wrong output format.** HDR output requires MP4. `--format mov` and `--format webm` fall back to SDR — Hyperframes logs a warning when this happens.
|
||||
|
||||
`--docker` works the same as local rendering — `--hdr` is forwarded into the container and produces the same HDR10 MP4 output (slower, since the container falls back to software WebGL for SDR DOM capture).
|
||||
|
||||
See [HDR Rendering](/guides/hdr) for the full source requirements and verification steps.
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Timeline key doesn't match data-composition-id">
|
||||
**Symptom:** Animations don't play. The composition appears static.
|
||||
|
||||
|
||||
@@ -0,0 +1,195 @@
|
||||
---
|
||||
title: HDR Rendering
|
||||
description: "Render compositions to HDR10 MP4 (BT.2020 PQ or HLG, 10-bit H.265) when sources contain HDR video or images."
|
||||
---
|
||||
|
||||
Hyperframes can render to HDR10 MP4 (H.265 10-bit, BT.2020) when your composition references HDR video or HDR still images. HDR is opt-in via the `--hdr` flag — it auto-detects HDR sources and falls back to SDR when none are present.
|
||||
|
||||
<Note>
|
||||
The `--hdr` flag does not *force* HDR. It enables HDR detection. If your composition contains only SDR media, the flag is a no-op and you get a normal SDR render.
|
||||
</Note>
|
||||
|
||||
## Quickstart
|
||||
|
||||
<Steps>
|
||||
<Step title="Add an HDR source to your composition">
|
||||
Hyperframes detects HDR from the source's color space metadata. The most reliable HDR sources are:
|
||||
|
||||
- **HDR video** tagged BT.2020 with PQ (`smpte2084`) or HLG (`arib-std-b67`) transfer — for example, the original MP4 you get from [yt-dlp](https://github.com/yt-dlp/yt-dlp) when downloading a YouTube HDR video at the highest quality
|
||||
- **HDR still images** as 16-bit PNG with BT.2020 PQ encoding
|
||||
|
||||
See [Source Media](#source-media-requirements) for full details.
|
||||
</Step>
|
||||
<Step title="Render with --hdr">
|
||||
```bash Terminal
|
||||
npx hyperframes render --hdr --output output.mp4
|
||||
```
|
||||
|
||||
HDR output requires `--format mp4`. If you also pass `--format mov` or `--format webm`, Hyperframes logs a warning and falls back to SDR.
|
||||
</Step>
|
||||
<Step title="Verify the output is HDR">
|
||||
Use `ffprobe` to confirm the encoded stream carries HDR color tagging and HDR10 metadata:
|
||||
|
||||
```bash Terminal
|
||||
ffprobe -v error -show_streams output.mp4 | grep -E 'color_transfer|color_primaries|color_space'
|
||||
```
|
||||
|
||||
See [Verifying HDR output](#verifying-hdr-output) for what to look for.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## How HDR Mode Works
|
||||
|
||||
When `--hdr` is set, the producer:
|
||||
|
||||
<Steps>
|
||||
<Step title="Probes every video and image source">
|
||||
Runs `ffprobe` on each `<video>` and `<img>` source to read its color space (primaries, transfer function, matrix). Probing is gated on `--hdr` to avoid `ffprobe` overhead on SDR-only renders.
|
||||
</Step>
|
||||
<Step title="Picks the dominant HDR transfer">
|
||||
If any source uses PQ (`smpte2084`), the output uses **PQ**. Otherwise, if any source uses HLG (`arib-std-b67`), the output uses **HLG**. If no HDR sources are found, the flag is a no-op and you get an SDR render.
|
||||
</Step>
|
||||
<Step title="Encodes to H.265 10-bit BT.2020">
|
||||
The video encoder switches to `libx265` with `-pix_fmt yuv420p10le`, color tagging `colorprim=bt2020:transfer=<smpte2084|arib-std-b67>:colormatrix=bt2020nc`, and HDR10 static metadata (`master-display` and `max-cll`). Without that metadata, players (QuickTime, YouTube, HDR TVs) tone-map the stream as if it were SDR BT.2020 — which looks wrong.
|
||||
</Step>
|
||||
<Step title="Composites HDR sources natively, converts SDR overlays">
|
||||
HDR videos and images are extracted as 16-bit linear-light pixels via FFmpeg, kept out of the DOM screenshot, and composited server-side at full bit depth. SDR DOM overlays (text, shapes, UI from your HTML) are converted from **sRGB** to **BT.2020** before being layered on top, so colors do not shift.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## Source Media Requirements
|
||||
|
||||
### HDR video
|
||||
|
||||
Hyperframes recognizes HDR video from its `ffprobe` color space metadata:
|
||||
|
||||
| Indicator | Recognized as HDR |
|
||||
|-----------|-------------------|
|
||||
| `color_primaries` contains `bt2020` | Yes |
|
||||
| `color_space` contains `bt2020` | Yes |
|
||||
| `color_transfer = smpte2084` (PQ) | Yes — PQ |
|
||||
| `color_transfer = arib-std-b67` (HLG) | Yes — HLG |
|
||||
| All else (e.g. `bt709`, `smpte170m`) | No — treated as SDR |
|
||||
|
||||
A common HDR source is YouTube HDR. Download the highest-quality stream with `yt-dlp` and Hyperframes will detect it automatically:
|
||||
|
||||
```bash Terminal
|
||||
yt-dlp -f "bestvideo[dynamic_range=HDR]+bestaudio" -o assets/clip.mp4 <url>
|
||||
ffprobe -v error -show_streams assets/clip.mp4 | grep color
|
||||
# color_primaries=bt2020
|
||||
# color_transfer=smpte2084
|
||||
# color_space=bt2020nc
|
||||
```
|
||||
|
||||
### HDR still images
|
||||
|
||||
Hyperframes supports HDR still images delivered as **16-bit PNGs** tagged with BT.2020 primaries and PQ transfer. Drop them into the composition as a normal `<img>`:
|
||||
|
||||
```html index.html
|
||||
<img class="clip" data-start="0" data-duration="3"
|
||||
src="./assets/hdr-photo.png" />
|
||||
```
|
||||
|
||||
When `--hdr` is set, the image is decoded once to 16-bit linear-light RGB and composited natively into the HDR output.
|
||||
|
||||
<Note>
|
||||
HDR `<img>` decoding is limited to **16-bit PNG**. JPEG, WebP, AVIF, and APNG are not recognized as HDR sources — they load through the normal SDR DOM path. For HDR motion, use a `<video>` element.
|
||||
</Note>
|
||||
|
||||
### SDR sources mixed with HDR
|
||||
|
||||
You can freely mix SDR and HDR media in the same composition:
|
||||
|
||||
- **SDR videos** stay in the DOM screenshot path and get the sRGB → BT.2020 conversion described above
|
||||
- **HDR videos** are extracted natively at 16-bit and composited underneath the SDR DOM layer
|
||||
- **SDR images and DOM elements** (text, shapes, gradients, GSAP animations) are converted from sRGB to BT.2020
|
||||
|
||||
This is the same pipeline that handles compositions where, for example, an HDR drone clip plays under an SDR lower-third with animated text.
|
||||
|
||||
## Output Format Requirements
|
||||
|
||||
| Output format | HDR supported |
|
||||
|---------------|---------------|
|
||||
| `mp4` | Yes — H.265 10-bit BT.2020, HDR10 metadata |
|
||||
| `mov` | No — falls back to SDR |
|
||||
| `webm` | No — falls back to SDR |
|
||||
|
||||
If you set `--hdr` together with `--format mov` or `--format webm`, Hyperframes logs a message and produces the equivalent SDR render. There is no error — the render still completes — so check the logs (or your verification step) to confirm you got HDR.
|
||||
|
||||
## Verifying HDR Output
|
||||
|
||||
Use `ffprobe` to confirm both the color tagging and the HDR10 static metadata are present:
|
||||
|
||||
```bash Terminal
|
||||
ffprobe -v error -show_streams -select_streams v:0 output.mp4 \
|
||||
| grep -E 'codec_name|pix_fmt|color_transfer|color_primaries|color_space'
|
||||
```
|
||||
|
||||
For a PQ HDR10 render you should see:
|
||||
|
||||
```
|
||||
codec_name=hevc
|
||||
pix_fmt=yuv420p10le
|
||||
color_space=bt2020nc
|
||||
color_primaries=bt2020
|
||||
color_transfer=smpte2084
|
||||
```
|
||||
|
||||
Then check the HDR10 SEI / container boxes:
|
||||
|
||||
```bash Terminal
|
||||
ffprobe -v error -show_frames -read_intervals "%+#1" \
|
||||
-show_entries frame=side_data_list output.mp4
|
||||
```
|
||||
|
||||
You should see entries for **Mastering display metadata** and **Content light level metadata**. Without them, HDR-aware players will treat the file as SDR BT.2020 and the colors will look washed-out or wrong on an HDR display.
|
||||
|
||||
For HLG renders the only difference is `color_transfer=arib-std-b67` — the rest of the checks are the same.
|
||||
|
||||
## Docker Rendering
|
||||
|
||||
`--hdr` is forwarded into the Docker render pipeline, so you can produce HDR10 MP4 output from the containerized renderer:
|
||||
|
||||
```bash Terminal
|
||||
npx hyperframes render --hdr --docker --output output.mp4
|
||||
```
|
||||
|
||||
The container runs the same probe → composite → encode pipeline as the local renderer. Verify the output with the same `ffprobe` checks described in [Verifying HDR output](#verifying-hdr-output).
|
||||
|
||||
<Note>
|
||||
Docker HDR rendering currently runs **CPU-side** for the SDR DOM layer (the container falls back to software WebGL because GPU passthrough is not configured by default). Frame capture is therefore slower than local headed Chrome — measure your own composition with `--quiet` off and compare wall-clock times before sizing CI runners. The encoded HDR10 metadata and pixel data are identical to a local render.
|
||||
</Note>
|
||||
|
||||
## Limitations
|
||||
|
||||
- **MP4 only** — `--hdr` with `--format mov` or `--format webm` falls back to SDR
|
||||
- **HDR images: 16-bit PNG only** — other formats (JPEG, WebP, AVIF, APNG) are not decoded as HDR and fall through the SDR DOM path
|
||||
- **Player support** — the [`<hyperframes-player>`](/packages/player) web component plays back the encoded MP4 in the browser and inherits whatever HDR support the host browser provides; it does not implement its own HDR pipeline
|
||||
- **Headed Chrome HDR DOM capture** — the engine ships a separate WebGPU-based capture path for rendering CSS-animated DOM directly into HDR (`initHdrReadback`, `launchHdrBrowser`). It requires headed Chrome with `--enable-unsafe-webgpu` and is not used by the default render pipeline. See [Engine: HDR](/packages/engine#hdr-apis) if you are building a custom integration.
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
| Symptom | Likely cause |
|
||||
|---------|--------------|
|
||||
| Output looks identical to SDR | Source media is SDR — `--hdr` is a no-op without an HDR source. Run `ffprobe` on your inputs |
|
||||
| Output is "kind of HDR" but tone-mapped wrong on YouTube/QuickTime | Missing HDR10 static metadata on the encoded stream. Verify with the ffprobe snippet above |
|
||||
| Docker render is much slower than local | Expected — the container falls back to software WebGL for SDR DOM capture. Pixel output is the same |
|
||||
| Used `--format webm` and got SDR | Expected — HDR output is MP4 only |
|
||||
| HDR `<img>` looks SDR / washed out | Source is not a 16-bit PNG. Re-export as 16-bit PNG (BT.2020 PQ) or use a `<video>` element instead |
|
||||
|
||||
## Next Steps
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Rendering" icon="film" href="/guides/rendering">
|
||||
Local vs Docker, quality presets, workers
|
||||
</Card>
|
||||
<Card title="CLI" icon="terminal" href="/packages/cli">
|
||||
Full `render` command reference including `--hdr`
|
||||
</Card>
|
||||
<Card title="Engine: HDR APIs" icon="gear" href="/packages/engine#hdr-apis">
|
||||
Public HDR utilities exported from `@hyperframes/engine`
|
||||
</Card>
|
||||
<Card title="Common Mistakes" icon="triangle-exclamation" href="/guides/common-mistakes">
|
||||
Pitfalls that affect render output
|
||||
</Card>
|
||||
</CardGroup>
|
||||
@@ -122,6 +122,7 @@ Render your Hyperframes [compositions](/concepts/compositions) to MP4, MOV, or W
|
||||
| `--workers` | 1-8 or `auto` | auto | Parallel render workers (see [Workers](#workers) below) |
|
||||
| `--max-concurrent-renders` | 1-10 | 2 | Max simultaneous renders via the producer server (see [Concurrent Renders](#concurrent-renders) below) |
|
||||
| `--gpu` | — | off | GPU encoding (NVENC, VideoToolbox, VAAPI) |
|
||||
| `--hdr` | — | off | Detect HDR sources and output HDR10 (MP4 only). See [HDR Rendering](/guides/hdr) |
|
||||
| `--docker` | — | off | Use Docker for [deterministic rendering](/concepts/determinism) |
|
||||
| `--quiet` | — | off | Suppress verbose output |
|
||||
|
||||
@@ -333,13 +334,13 @@ Only the visible elements (cards, text, images) will appear in the final video.
|
||||
<Card title="Deterministic Rendering" icon="lock" href="/concepts/determinism">
|
||||
Understand the determinism guarantees
|
||||
</Card>
|
||||
<Card title="HDR Rendering" icon="sun" href="/guides/hdr">
|
||||
Render HDR10 MP4 from HDR video and image sources
|
||||
</Card>
|
||||
<Card title="CLI Reference" icon="terminal" href="/packages/cli">
|
||||
Full list of CLI commands and flags
|
||||
</Card>
|
||||
<Card title="Troubleshooting" icon="wrench" href="/guides/troubleshooting">
|
||||
Fix common rendering issues
|
||||
</Card>
|
||||
<Card title="Common Mistakes" icon="triangle-exclamation" href="/guides/common-mistakes">
|
||||
Avoid pitfalls that affect render output
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
@@ -466,7 +466,7 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
|
||||
| `--format` | mp4, webm, mov | mp4 | Output format (WebM/MOV render with transparency) |
|
||||
| `--fps` | 24, 30, 60 | 30 | Frames per second |
|
||||
| `--quality` | draft, standard, high | standard | Encoding quality preset (drives CRF/bitrate) |
|
||||
| `--hdr` | — | off | HDR output (H.265 10-bit, BT.2020 HLG/PQ). MP4 only |
|
||||
| `--hdr` | — | off | Detect HDR sources and output HDR10 (H.265 10-bit, BT.2020 PQ/HLG). MP4 only. SDR-only compositions are unaffected. See [HDR Rendering](/guides/hdr) |
|
||||
| `--workers` | 1-8 | 4 | Parallel render workers |
|
||||
| `--gpu` | — | off | GPU encoding (NVENC, VideoToolbox, VAAPI) |
|
||||
| `--docker` | — | off | Use Docker for [deterministic rendering](/concepts/determinism) |
|
||||
|
||||
@@ -278,6 +278,75 @@ const server = await createFileServer({ root: './my-video', port: 0 });
|
||||
await server.close();
|
||||
```
|
||||
|
||||
## HDR APIs
|
||||
|
||||
The engine exports two layers of HDR support: **color-space utilities** that classify sources and configure the FFmpeg encoder, and a **WebGPU readback runtime** for capturing CSS-animated DOM directly into HDR.
|
||||
|
||||
For end-to-end HDR rendering (HDR video and image sources composited into an HDR10 MP4) use the [producer](/packages/producer) or the CLI's `--hdr` flag — see [HDR Rendering](/guides/hdr). The APIs below are for custom integrations.
|
||||
|
||||
### Color space utilities
|
||||
|
||||
```typescript
|
||||
import {
|
||||
isHdrColorSpace,
|
||||
detectTransfer,
|
||||
analyzeCompositionHdr,
|
||||
getHdrEncoderColorParams,
|
||||
DEFAULT_HDR10_MASTERING,
|
||||
} from '@hyperframes/engine';
|
||||
import type { HdrTransfer, HdrEncoderColorParams, HdrMasteringMetadata } from '@hyperframes/engine';
|
||||
|
||||
// Classify a single source from its ffprobe color space
|
||||
isHdrColorSpace(colorSpace); // boolean — true for BT.2020 / PQ / HLG
|
||||
detectTransfer(colorSpace); // 'pq' | 'hlg' (gate on isHdrColorSpace first)
|
||||
|
||||
// Pick the dominant transfer across many sources
|
||||
analyzeCompositionHdr([cs1, cs2]); // { hasHdr, dominantTransfer: 'pq' | 'hlg' | null }
|
||||
|
||||
// Build the FFmpeg color params + HDR10 static metadata for x265
|
||||
const params = getHdrEncoderColorParams('pq');
|
||||
// {
|
||||
// colorPrimaries: 'bt2020',
|
||||
// colorTrc: 'smpte2084',
|
||||
// colorspace: 'bt2020nc',
|
||||
// pixelFormat: 'yuv420p10le',
|
||||
// x265ColorParams: 'colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=...:max-cll=1000,400',
|
||||
// mastering: { masterDisplay: '...', maxCll: '1000,400' },
|
||||
// }
|
||||
```
|
||||
|
||||
`getHdrEncoderColorParams` always includes both color tagging *and* the HDR10 static metadata (mastering display + content light level). Without that metadata, downstream players treat the file as SDR BT.2020 and tone-map incorrectly. Pass a custom `HdrMasteringMetadata` if you have measured per-content values; otherwise the conservative `DEFAULT_HDR10_MASTERING` defaults match how most HDR10 grading suites tag content.
|
||||
|
||||
### WebGPU HDR DOM capture
|
||||
|
||||
For capturing CSS-animated DOM directly into HDR (no FFmpeg source involved), the engine exposes a separate WebGPU pipeline:
|
||||
|
||||
```typescript
|
||||
import {
|
||||
launchHdrBrowser,
|
||||
buildHdrChromeArgs,
|
||||
initHdrReadback,
|
||||
uploadAndReadbackHdrFrame,
|
||||
float16ToPqRgb,
|
||||
} from '@hyperframes/engine';
|
||||
|
||||
// Launch headed Chrome with WebGPU enabled
|
||||
const { browser, page } = await launchHdrBrowser({ width: 1920, height: 1080 });
|
||||
|
||||
// Inject the WebGPU readback runtime
|
||||
const ok = await initHdrReadback(page, 1920, 1080);
|
||||
|
||||
// For each frame: upload float16 pixels, read back float16 RGBA
|
||||
const { rgba16, bytesPerRow } = await uploadAndReadbackHdrFrame(page, float16Base64);
|
||||
|
||||
// Convert linear float16 → PQ-encoded 16-bit RGB suitable for piping into ffmpeg/x265
|
||||
const pqRgb = float16ToPqRgb(rgba16, width, height, bytesPerRow);
|
||||
```
|
||||
|
||||
<Warning>
|
||||
This path requires **headed Chrome with `--enable-unsafe-webgpu`** — WebGPU is unavailable in `chrome-headless-shell`. It is *not* used by the default `--hdr` render pipeline (which extracts HDR pixels from sources via FFmpeg and composites in Node). Use it only for advanced custom pipelines that need CSS animations driving HDR pixel output.
|
||||
</Warning>
|
||||
|
||||
## The `window.__hf` Protocol
|
||||
|
||||
The engine communicates with the browser page via the `window.__hf` protocol. Any page that implements this protocol can be captured by the engine — you are not limited to Hyperframes compositions.
|
||||
|
||||
@@ -104,6 +104,31 @@ When `format: 'webm'`:
|
||||
- FFmpeg encodes with VP9 + `yuva420p` pixel format
|
||||
- Audio is encoded as Opus (instead of AAC for MP4)
|
||||
|
||||
#### HDR Output
|
||||
|
||||
Set `hdr: true` to enable HDR detection. The producer probes every video and image source for BT.2020 / PQ / HLG color tagging — if any HDR source is found, the output uses H.265 10-bit BT.2020 with HDR10 static metadata. SDR-only compositions are unaffected.
|
||||
|
||||
```typescript
|
||||
const job = createRenderJob({
|
||||
fps: 30,
|
||||
quality: 'standard',
|
||||
format: 'mp4',
|
||||
hdr: true,
|
||||
});
|
||||
|
||||
await executeRenderJob(job, './my-video', './output.mp4');
|
||||
```
|
||||
|
||||
When `hdr: true`:
|
||||
- Sources are probed via `ffprobe`; PQ takes precedence over HLG when both are present
|
||||
- HDR videos and images are extracted as 16-bit linear-light pixels and composited natively
|
||||
- SDR DOM overlays are converted from sRGB → BT.2020 before being layered on top
|
||||
- Output uses `libx265` with `yuv420p10le` and HDR10 mastering / content-light-level metadata
|
||||
- `format` must be `'mp4'` — `'mov'` and `'webm'` fall back to SDR
|
||||
- HDR `<img>` support is **still images only**; animated HDR-tagged images use only the first frame
|
||||
|
||||
For full details on source requirements, fallback rules, and verification, see [HDR Rendering](/guides/hdr).
|
||||
|
||||
### Progress Callbacks
|
||||
|
||||
```typescript
|
||||
|
||||
@@ -25,6 +25,7 @@ import { trackRenderComplete, trackRenderError } from "../telemetry/events.js";
|
||||
import { bytesToMb } from "../telemetry/system.js";
|
||||
import { VERSION } from "../version.js";
|
||||
import { isDevMode } from "../utils/env.js";
|
||||
import { buildDockerRunArgs } from "../utils/dockerRunArgs.js";
|
||||
import type { RenderJob } from "@hyperframes/producer";
|
||||
|
||||
const VALID_FPS = new Set([24, 30, 60]);
|
||||
@@ -406,33 +407,21 @@ async function renderDocker(
|
||||
|
||||
const outputDir = dirname(outputPath);
|
||||
const outputFilename = basename(outputPath);
|
||||
const dockerArgs = [
|
||||
"run",
|
||||
"--rm",
|
||||
"--platform",
|
||||
"linux/amd64",
|
||||
"--shm-size=2g",
|
||||
// GPU encoding requires host GPU passthrough
|
||||
...(options.gpu ? ["--gpus", "all"] : []),
|
||||
"-v",
|
||||
`${resolve(projectDir)}:/project:ro`,
|
||||
"-v",
|
||||
`${resolve(outputDir)}:/output`,
|
||||
const dockerArgs = buildDockerRunArgs({
|
||||
imageTag,
|
||||
"/project",
|
||||
"--output",
|
||||
`/output/${outputFilename}`,
|
||||
"--fps",
|
||||
String(options.fps),
|
||||
"--quality",
|
||||
options.quality,
|
||||
"--format",
|
||||
options.format,
|
||||
"--workers",
|
||||
String(options.workers),
|
||||
...(options.quiet ? ["--quiet"] : []),
|
||||
...(options.gpu ? ["--gpu"] : []),
|
||||
];
|
||||
projectDir: resolve(projectDir),
|
||||
outputDir: resolve(outputDir),
|
||||
outputFilename,
|
||||
options: {
|
||||
fps: options.fps,
|
||||
quality: options.quality,
|
||||
format: options.format,
|
||||
workers: options.workers,
|
||||
gpu: options.gpu,
|
||||
hdr: options.hdr,
|
||||
quiet: options.quiet,
|
||||
},
|
||||
});
|
||||
|
||||
if (!options.quiet) {
|
||||
console.log(c.dim(" Running render in Docker container..."));
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildDockerRunArgs, type DockerRenderOptions } from "./dockerRunArgs.js";
|
||||
|
||||
const BASE: DockerRenderOptions = {
|
||||
fps: 30,
|
||||
quality: "standard",
|
||||
format: "mp4",
|
||||
workers: 4,
|
||||
gpu: false,
|
||||
hdr: false,
|
||||
quiet: false,
|
||||
};
|
||||
|
||||
const FIXED_INPUT = {
|
||||
imageTag: "hyperframes-renderer:0.0.0-test",
|
||||
projectDir: "/abs/proj",
|
||||
outputDir: "/abs/out",
|
||||
outputFilename: "out.mp4",
|
||||
};
|
||||
|
||||
describe("buildDockerRunArgs", () => {
|
||||
it("matches snapshot for the default render", () => {
|
||||
expect(buildDockerRunArgs({ ...FIXED_INPUT, options: BASE })).toMatchInlineSnapshot(`
|
||||
[
|
||||
"run",
|
||||
"--rm",
|
||||
"--platform",
|
||||
"linux/amd64",
|
||||
"--shm-size=2g",
|
||||
"-v",
|
||||
"/abs/proj:/project:ro",
|
||||
"-v",
|
||||
"/abs/out:/output",
|
||||
"hyperframes-renderer:0.0.0-test",
|
||||
"/project",
|
||||
"--output",
|
||||
"/output/out.mp4",
|
||||
"--fps",
|
||||
"30",
|
||||
"--quality",
|
||||
"standard",
|
||||
"--format",
|
||||
"mp4",
|
||||
"--workers",
|
||||
"4",
|
||||
]
|
||||
`);
|
||||
});
|
||||
|
||||
it("matches snapshot when every renderer flag is enabled", () => {
|
||||
expect(
|
||||
buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, gpu: true, hdr: true, quiet: true },
|
||||
}),
|
||||
).toMatchInlineSnapshot(`
|
||||
[
|
||||
"run",
|
||||
"--rm",
|
||||
"--platform",
|
||||
"linux/amd64",
|
||||
"--shm-size=2g",
|
||||
"--gpus",
|
||||
"all",
|
||||
"-v",
|
||||
"/abs/proj:/project:ro",
|
||||
"-v",
|
||||
"/abs/out:/output",
|
||||
"hyperframes-renderer:0.0.0-test",
|
||||
"/project",
|
||||
"--output",
|
||||
"/output/out.mp4",
|
||||
"--fps",
|
||||
"30",
|
||||
"--quality",
|
||||
"standard",
|
||||
"--format",
|
||||
"mp4",
|
||||
"--workers",
|
||||
"4",
|
||||
"--quiet",
|
||||
"--gpu",
|
||||
"--hdr",
|
||||
]
|
||||
`);
|
||||
});
|
||||
|
||||
// Regression for the original PR feedback: --hdr was silently dropped from
|
||||
// the docker arg array. Keep this assertion explicit (in addition to the
|
||||
// snapshot above) so the failure message points directly at the flag.
|
||||
it("forwards --hdr to the container when hdr is enabled", () => {
|
||||
const args = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, hdr: true },
|
||||
});
|
||||
expect(args).toContain("--hdr");
|
||||
});
|
||||
|
||||
it("omits --hdr when hdr is disabled", () => {
|
||||
const args = buildDockerRunArgs({ ...FIXED_INPUT, options: BASE });
|
||||
expect(args).not.toContain("--hdr");
|
||||
});
|
||||
|
||||
it("requests host GPU passthrough only when gpu is enabled", () => {
|
||||
const off = buildDockerRunArgs({ ...FIXED_INPUT, options: BASE });
|
||||
expect(off).not.toContain("--gpus");
|
||||
expect(off).not.toContain("--gpu");
|
||||
|
||||
const on = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, gpu: true },
|
||||
});
|
||||
// `--gpus all` is a docker run flag (host passthrough); `--gpu` is the
|
||||
// hyperframes CLI flag forwarded into the container — both must be set.
|
||||
expect(on).toContain("--gpus");
|
||||
expect(on).toContain("all");
|
||||
expect(on).toContain("--gpu");
|
||||
});
|
||||
|
||||
it("forwards every renderer-shaped option (regression tripwire for silent drops)", () => {
|
||||
const args = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: {
|
||||
fps: 60,
|
||||
quality: "high",
|
||||
format: "webm",
|
||||
workers: 8,
|
||||
gpu: true,
|
||||
hdr: true,
|
||||
quiet: true,
|
||||
},
|
||||
});
|
||||
// Each value must reach the container exactly once. If a future option
|
||||
// is added but only wired through to renderLocal, this test forces the
|
||||
// author to update buildDockerRunArgs (and add a check here) too.
|
||||
expect(args).toContain("60");
|
||||
expect(args).toContain("high");
|
||||
expect(args).toContain("webm");
|
||||
expect(args).toContain("8");
|
||||
expect(args).toContain("--quiet");
|
||||
expect(args).toContain("--gpu");
|
||||
expect(args).toContain("--hdr");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Build the argument array for `docker run` that invokes the Hyperframes
|
||||
* renderer inside a container.
|
||||
*
|
||||
* Pure function with no I/O so it can be snapshot-tested. Any new render
|
||||
* flag added to the CLI must also be threaded through here AND covered by
|
||||
* a test in `dockerRunArgs.test.ts` — that combination is what catches
|
||||
* silent-drop regressions like the one that lost `--hdr` historically.
|
||||
*/
|
||||
export interface DockerRunArgsInput {
|
||||
imageTag: string;
|
||||
/** Absolute host path to the project directory (mounted read-only at /project). */
|
||||
projectDir: string;
|
||||
/** Absolute host path to the output directory (mounted read-write at /output). */
|
||||
outputDir: string;
|
||||
/** Filename within `outputDir` (joined to /output inside the container). */
|
||||
outputFilename: string;
|
||||
options: DockerRenderOptions;
|
||||
}
|
||||
|
||||
export interface DockerRenderOptions {
|
||||
fps: 24 | 30 | 60;
|
||||
quality: "draft" | "standard" | "high";
|
||||
format: "mp4" | "webm" | "mov";
|
||||
workers: number;
|
||||
gpu: boolean;
|
||||
hdr: boolean;
|
||||
quiet: boolean;
|
||||
}
|
||||
|
||||
export function buildDockerRunArgs(input: DockerRunArgsInput): string[] {
|
||||
const { imageTag, projectDir, outputDir, outputFilename, options } = input;
|
||||
return [
|
||||
"run",
|
||||
"--rm",
|
||||
"--platform",
|
||||
"linux/amd64",
|
||||
"--shm-size=2g",
|
||||
// GPU encoding requires host GPU passthrough.
|
||||
...(options.gpu ? ["--gpus", "all"] : []),
|
||||
"-v",
|
||||
`${projectDir}:/project:ro`,
|
||||
"-v",
|
||||
`${outputDir}:/output`,
|
||||
imageTag,
|
||||
"/project",
|
||||
"--output",
|
||||
`/output/${outputFilename}`,
|
||||
"--fps",
|
||||
String(options.fps),
|
||||
"--quality",
|
||||
options.quality,
|
||||
"--format",
|
||||
options.format,
|
||||
"--workers",
|
||||
String(options.workers),
|
||||
...(options.quiet ? ["--quiet"] : []),
|
||||
...(options.gpu ? ["--gpu"] : []),
|
||||
...(options.hdr ? ["--hdr"] : []),
|
||||
];
|
||||
}
|
||||
@@ -209,8 +209,10 @@ export {
|
||||
detectTransfer,
|
||||
getHdrEncoderColorParams,
|
||||
analyzeCompositionHdr,
|
||||
DEFAULT_HDR10_MASTERING,
|
||||
type HdrTransfer,
|
||||
type HdrEncoderColorParams,
|
||||
type CompositionHdrInfo,
|
||||
type HdrMasteringMetadata,
|
||||
} from "./utils/hdr.js";
|
||||
export type { VideoColorSpace } from "./utils/ffprobe.js";
|
||||
|
||||
@@ -87,6 +87,19 @@ export async function createCaptureSession(
|
||||
const { browser, captureMode } = await acquireBrowser(chromeArgs, config);
|
||||
|
||||
const page = await browser.newPage();
|
||||
// Polyfill esbuild's keepNames helper inside the page. Tools like tsx/Bun
|
||||
// transform this engine's source on the fly and wrap every named function
|
||||
// with `__name(fn, "name")`. When `page.evaluate()` serializes a callback
|
||||
// and ships it to the browser, those `__name(...)` calls would crash with
|
||||
// `__name is not defined` because the helper only exists in Node. Defining
|
||||
// a no-op shim once per page makes the engine work uniformly whether it is
|
||||
// imported from compiled dist (no helper) or from source via tsx.
|
||||
await page.evaluateOnNewDocument(() => {
|
||||
const w = window as unknown as { __name?: <T>(fn: T, _name: string) => T };
|
||||
if (typeof w.__name !== "function") {
|
||||
w.__name = <T>(fn: T, _name: string): T => fn;
|
||||
}
|
||||
});
|
||||
const browserVersion = await browser.version();
|
||||
const expectedMajor = config?.expectedChromiumMajor;
|
||||
if (Number.isFinite(expectedMajor)) {
|
||||
|
||||
@@ -33,6 +33,8 @@ type TestMetadata = {
|
||||
fps: 24 | 30 | 60;
|
||||
format?: "mp4" | "webm"; // Optional: defaults to "mp4"
|
||||
workers?: number; // Optional: auto-calculates if omitted
|
||||
/** Enable HDR color-space probing + HDR10 encode pipeline. */
|
||||
hdr?: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -154,6 +156,9 @@ function validateMetadata(meta: unknown): TestMetadata {
|
||||
throw new Error("meta.json: 'renderConfig.workers' must be >= 1 (or omit to auto-calculate)");
|
||||
}
|
||||
}
|
||||
if (rc.hdr !== undefined && typeof rc.hdr !== "boolean") {
|
||||
throw new Error("meta.json: 'renderConfig.hdr' must be a boolean (or omit for false)");
|
||||
}
|
||||
|
||||
return m as TestMetadata;
|
||||
}
|
||||
@@ -645,6 +650,7 @@ async function runTestSuite(
|
||||
workers: suite.meta.renderConfig.workers,
|
||||
useGpu: false,
|
||||
debug: false,
|
||||
hdr: suite.meta.renderConfig.hdr ?? false,
|
||||
});
|
||||
|
||||
await executeRenderJob(job, tempSrcDir, renderedOutputPath);
|
||||
|
||||
@@ -979,7 +979,9 @@ export async function executeRenderJob(
|
||||
}
|
||||
}
|
||||
if (effectiveHdr && outputFormat !== "mp4") {
|
||||
log.info(`[Render] HDR source detected but format is ${outputFormat} — using SDR`);
|
||||
log.warn(
|
||||
`[Render] HDR source detected but format is ${outputFormat} — falling back to SDR. Use --format mp4 for HDR10 output.`,
|
||||
);
|
||||
effectiveHdr = undefined;
|
||||
}
|
||||
if (effectiveHdr) {
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Source attribution
|
||||
|
||||
`src/hdr-clip.mp4` is a 5-second excerpt re-encoded from a publicly available
|
||||
HDR demonstration video on YouTube, used here solely as a test fixture to
|
||||
exercise the HyperFrames HDR rendering pipeline.
|
||||
|
||||
- **Source URL**: https://youtu.be/56hEFqjKG0s
|
||||
- **Excerpt**: 0:01:18 – 0:01:23 (5 seconds, no audio)
|
||||
- **Re-encoded as**: HEVC Main10, 1920x1080, 30 fps, BT.2020 PQ (HDR10), no audio
|
||||
|
||||
The original video is owned by its publisher; this excerpt is included only
|
||||
for the purpose of regression-testing HDR color-space handling, encoder
|
||||
parameters, and HDR10 metadata signaling. It is not redistributed as
|
||||
standalone content. If the rights holder objects to inclusion, this clip can
|
||||
be replaced with any other 5-second BT.2020 PQ HEVC Main10 sample without
|
||||
changes to the surrounding test code.
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "hdr-pq",
|
||||
"description": "Regression test for HDR10 (BT.2020 PQ) video pass-through with a static SDR DOM overlay. Verifies that an HDR HEVC Main10 source plus a single white text label renders end-to-end through the layered HDR compositing pipeline (rgb48le DOM-over-video blit, x265 Main10 encode, HDR10 mastering metadata).",
|
||||
"tags": ["regression", "hdr"],
|
||||
"minPsnr": 28,
|
||||
"maxFrameFailures": 0,
|
||||
"minAudioCorrelation": 0,
|
||||
"maxAudioLagWindows": 1,
|
||||
"renderConfig": {
|
||||
"fps": 30,
|
||||
"workers": 1,
|
||||
"hdr": true
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:00c0ee1bf4e19c372898683c4b65d346a58c71ad590a03b7db1388d1255d680a
|
||||
size 1732052
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:70a055b4946a6cb486198438f2c18372e852e4cd16ebecea3356da84fd3daf5e
|
||||
size 1019741
|
||||
@@ -0,0 +1,68 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>HDR PQ Regression</title>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #000;
|
||||
}
|
||||
#main {
|
||||
position: relative;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#hdr-video {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
#label {
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
left: 64px;
|
||||
z-index: 10;
|
||||
padding: 16px 28px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-size: 36px;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
border-radius: 8px;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="main"
|
||||
data-composition-id="hdr-pq"
|
||||
data-start="0"
|
||||
data-duration="5"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<video
|
||||
id="hdr-video"
|
||||
class="clip"
|
||||
data-start="0"
|
||||
data-duration="5"
|
||||
data-track-index="0"
|
||||
src="hdr-clip.mp4"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
|
||||
<div id="label">HDR PQ</div>
|
||||
</div>
|
||||
<script>
|
||||
window.__timelines = window.__timelines || {};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 200 KiB |
@@ -1,142 +0,0 @@
|
||||
[
|
||||
{
|
||||
"text": "the",
|
||||
"start": 0.1,
|
||||
"end": 0.31
|
||||
},
|
||||
{
|
||||
"text": "makers",
|
||||
"start": 0.31,
|
||||
"end": 0.86
|
||||
},
|
||||
{
|
||||
"text": "of",
|
||||
"start": 0.94,
|
||||
"end": 1.13
|
||||
},
|
||||
{
|
||||
"text": "Subnautica,",
|
||||
"start": 1.13,
|
||||
"end": 2.28
|
||||
},
|
||||
{
|
||||
"text": "and",
|
||||
"start": 2.28,
|
||||
"end": 2.44
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 2.44,
|
||||
"end": 2.54
|
||||
},
|
||||
{
|
||||
"text": "promised",
|
||||
"start": 2.54,
|
||||
"end": 2.99
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 2.99,
|
||||
"end": 3.12
|
||||
},
|
||||
{
|
||||
"text": "founders",
|
||||
"start": 3.12,
|
||||
"end": 3.65
|
||||
},
|
||||
{
|
||||
"text": "$250",
|
||||
"start": 3.75,
|
||||
"end": 4.71
|
||||
},
|
||||
{
|
||||
"text": "million",
|
||||
"start": 4.71,
|
||||
"end": 5.4
|
||||
},
|
||||
{
|
||||
"text": "if",
|
||||
"start": 5.44,
|
||||
"end": 5.6
|
||||
},
|
||||
{
|
||||
"text": "their",
|
||||
"start": 5.6,
|
||||
"end": 5.95
|
||||
},
|
||||
{
|
||||
"text": "next",
|
||||
"start": 5.95,
|
||||
"end": 6.23
|
||||
},
|
||||
{
|
||||
"text": "game",
|
||||
"start": 6.24,
|
||||
"end": 6.64
|
||||
},
|
||||
{
|
||||
"text": "hits",
|
||||
"start": 6.64,
|
||||
"end": 6.91
|
||||
},
|
||||
{
|
||||
"text": "certain",
|
||||
"start": 6.98,
|
||||
"end": 7.36
|
||||
},
|
||||
{
|
||||
"text": "targets.",
|
||||
"start": 7.36,
|
||||
"end": 7.98
|
||||
},
|
||||
{
|
||||
"text": "And",
|
||||
"start": 8.06,
|
||||
"end": 8.14
|
||||
},
|
||||
{
|
||||
"text": "at",
|
||||
"start": 8.14,
|
||||
"end": 8.25
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 8.25,
|
||||
"end": 8.41
|
||||
},
|
||||
{
|
||||
"text": "time,",
|
||||
"start": 8.41,
|
||||
"end": 8.72
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 8.72,
|
||||
"end": 8.82
|
||||
},
|
||||
{
|
||||
"text": "thought",
|
||||
"start": 8.83,
|
||||
"end": 9.19
|
||||
},
|
||||
{
|
||||
"text": "there",
|
||||
"start": 9.24,
|
||||
"end": 9.48
|
||||
},
|
||||
{
|
||||
"text": "was",
|
||||
"start": 9.48,
|
||||
"end": 9.63
|
||||
},
|
||||
{
|
||||
"text": "no",
|
||||
"start": 9.64,
|
||||
"end": 9.75
|
||||
},
|
||||
{
|
||||
"text": "way-",
|
||||
"start": 9.75,
|
||||
"end": 9.98
|
||||
}
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"name": "HDR Regression — HDR PQ (Data Drift)",
|
||||
"description": "1920x1080 native HDR composition with HDR video (BT.2020 PQ 10-bit), 16-bit HDR PNG photo, audio, captions, the Refik-Anadol-inspired Data Drift visual identity, and the @hyperframes/shader-transitions package driving Domain Warp / Gravitational Lens / Cross-Warp Morph handoffs. Renders with `--hdr` to exercise the rgb48le shader transition compositor, the PQ encode path, and the HDR side-data writer.",
|
||||
"tags": [
|
||||
"hdr-regression",
|
||||
"hdr",
|
||||
"pq",
|
||||
"bt2020",
|
||||
"10bit",
|
||||
"video",
|
||||
"audio",
|
||||
"image",
|
||||
"captions",
|
||||
"shader-transitions",
|
||||
"data-drift"
|
||||
],
|
||||
|
||||
"minPsnr": 26,
|
||||
"maxFrameFailures": 0,
|
||||
|
||||
"minAudioCorrelation": 0.85,
|
||||
"maxAudioLagWindows": 120,
|
||||
|
||||
"renderConfig": {
|
||||
"fps": 30
|
||||
}
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
<template id="captions-template">
|
||||
<div
|
||||
data-composition-id="captions"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<div id="captions-container"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
|
||||
<style>
|
||||
[data-composition-id="captions"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 130px;
|
||||
pointer-events: none;
|
||||
font-family: "Inter", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
#captions-container {
|
||||
position: relative;
|
||||
width: 1280px;
|
||||
min-height: 110px;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
font-size: 44px;
|
||||
letter-spacing: 0.01em;
|
||||
color: rgba(244, 244, 245, 0.95);
|
||||
text-shadow:
|
||||
0 2px 18px rgba(0, 0, 0, 0.85),
|
||||
0 0 24px rgba(124, 58, 237, 0.18);
|
||||
}
|
||||
|
||||
.dd-chunk {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 4px 14px;
|
||||
}
|
||||
|
||||
.dd-word {
|
||||
opacity: 0;
|
||||
display: inline-block;
|
||||
transition: none;
|
||||
color: rgba(244, 244, 245, 0.95);
|
||||
will-change: opacity, color, transform;
|
||||
}
|
||||
|
||||
.dd-word.is-active {
|
||||
background: linear-gradient(120deg, #b794f4 0%, #06b6d4 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
const TRANSCRIPT = [
|
||||
{ "text": "the", "start": 0.1, "end": 0.31 },
|
||||
{ "text": "makers", "start": 0.31, "end": 0.86 },
|
||||
{ "text": "of", "start": 0.94, "end": 1.13 },
|
||||
{ "text": "Subnautica,", "start": 1.13, "end": 2.28 },
|
||||
{ "text": "and", "start": 2.28, "end": 2.44 },
|
||||
{ "text": "he", "start": 2.44, "end": 2.54 },
|
||||
{ "text": "promised", "start": 2.54, "end": 2.99 },
|
||||
{ "text": "the", "start": 2.99, "end": 3.12 },
|
||||
{ "text": "founders", "start": 3.12, "end": 3.65 },
|
||||
{ "text": "$250", "start": 3.75, "end": 4.71 },
|
||||
{ "text": "million", "start": 4.71, "end": 5.4 },
|
||||
{ "text": "if", "start": 5.44, "end": 5.6 },
|
||||
{ "text": "their", "start": 5.6, "end": 5.95 },
|
||||
{ "text": "next", "start": 5.95, "end": 6.23 },
|
||||
{ "text": "game", "start": 6.24, "end": 6.64 },
|
||||
{ "text": "hits", "start": 6.64, "end": 6.91 },
|
||||
{ "text": "certain", "start": 6.98, "end": 7.36 },
|
||||
{ "text": "targets.", "start": 7.36, "end": 7.98 },
|
||||
{ "text": "And", "start": 8.06, "end": 8.14 },
|
||||
{ "text": "at", "start": 8.14, "end": 8.25 },
|
||||
{ "text": "the", "start": 8.25, "end": 8.41 },
|
||||
{ "text": "time,", "start": 8.41, "end": 8.72 },
|
||||
{ "text": "he", "start": 8.72, "end": 8.82 },
|
||||
{ "text": "thought", "start": 8.83, "end": 9.19 },
|
||||
{ "text": "there", "start": 9.24, "end": 9.48 },
|
||||
{ "text": "was", "start": 9.48, "end": 9.63 },
|
||||
{ "text": "no", "start": 9.64, "end": 9.75 },
|
||||
{ "text": "way-", "start": 9.75, "end": 9.98 }
|
||||
];
|
||||
|
||||
const container = document.getElementById("captions-container");
|
||||
const tl = gsap.timeline({ paused: true });
|
||||
|
||||
const chunks = [];
|
||||
let current = [];
|
||||
for (let i = 0; i < TRANSCRIPT.length; i++) {
|
||||
current.push(TRANSCRIPT[i]);
|
||||
if (current.length >= 4 || i === TRANSCRIPT.length - 1) {
|
||||
chunks.push(current);
|
||||
current = [];
|
||||
}
|
||||
}
|
||||
|
||||
chunks.forEach((chunk) => {
|
||||
const start = chunk[0].start;
|
||||
const end = chunk[chunk.length - 1].end;
|
||||
|
||||
const div = document.createElement("div");
|
||||
div.className = "dd-chunk";
|
||||
container.appendChild(div);
|
||||
|
||||
tl.fromTo(
|
||||
div,
|
||||
{ opacity: 0, y: 18, filter: "blur(8px)" },
|
||||
{ opacity: 1, y: 0, filter: "blur(0px)", duration: 0.4, ease: "power2.out" },
|
||||
start - 0.12,
|
||||
);
|
||||
|
||||
chunk.forEach((wordData, wordIndex) => {
|
||||
const w = document.createElement("span");
|
||||
w.className = "dd-word";
|
||||
w.innerText = wordData.text;
|
||||
div.appendChild(w);
|
||||
|
||||
tl.to(
|
||||
w,
|
||||
{ opacity: 1, duration: 0.18, ease: "sine.out" },
|
||||
wordData.start,
|
||||
);
|
||||
|
||||
tl.add(() => w.classList.add("is-active"), wordData.start);
|
||||
|
||||
const offTime =
|
||||
wordIndex < chunk.length - 1 ? chunk[wordIndex + 1].start : end;
|
||||
tl.add(() => w.classList.remove("is-active"), offTime);
|
||||
});
|
||||
|
||||
tl.to(
|
||||
div,
|
||||
{ opacity: 0, y: -12, filter: "blur(8px)", duration: 0.35, ease: "sine.in" },
|
||||
end + 0.05,
|
||||
);
|
||||
tl.set(div, { opacity: 0, visibility: "hidden" }, end + 0.4);
|
||||
});
|
||||
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["captions"] = tl;
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,160 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>HDR Regression — HDR PQ (Data Drift)</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@hyperframes/shader-transitions@0.4.4/dist/index.global.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="main"
|
||||
data-composition-id="main-comp"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<!-- ============================================================
|
||||
Data Drift — five scenes, ~10s, GPU shader handoffs.
|
||||
Scene timings (after each shader transition completes):
|
||||
0.0 – 1.6 intro card
|
||||
2.1 – 4.0 HDR video A (transition 1.6, 0.5s)
|
||||
4.5 – 6.2 HDR still photograph (transition 4.0, 0.5s)
|
||||
6.7 – 8.4 HDR video B (transition 6.2, 0.5s)
|
||||
8.9 – 10.0 outro card (transition 8.4, 0.5s)
|
||||
Shader picks (Data Drift): Domain Warp, Gravitational
|
||||
Lens, Cross-Warp Morph, Domain Warp.
|
||||
============================================================ -->
|
||||
|
||||
<!-- Persistent ambient layers — sit behind the .scene stack so
|
||||
every shader capture inherits the Data Drift atmosphere -->
|
||||
<div class="drift-field"></div>
|
||||
<div class="scan-line top"></div>
|
||||
<div class="scan-line bottom"></div>
|
||||
|
||||
<!-- Scene 1: cold open title card -->
|
||||
<section id="scene-intro" class="scene title-card">
|
||||
<div class="eyebrow">Hyperframes · HDR Regression Suite</div>
|
||||
<h1 class="display">
|
||||
A study in <span class="accent">light</span>,<br />unbounded.
|
||||
</h1>
|
||||
<div class="colophon">
|
||||
<span>Volume II</span>
|
||||
<span>HDR · BT.2020 · PQ</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 2: HDR video A -->
|
||||
<section id="scene-video-a" class="scene media-frame">
|
||||
<video
|
||||
id="vid-hdr-1"
|
||||
class="clip"
|
||||
src="../assets/hdr-source-1.mp4"
|
||||
data-start="2.1"
|
||||
data-duration="1.9"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="iridescent-frame"></div>
|
||||
<div class="hud top-left">
|
||||
<div class="accent-cyan">Plate I</div>
|
||||
<div>HDR · 10-bit</div>
|
||||
</div>
|
||||
<div class="hud top-right">
|
||||
<div class="accent-purple">SMPTE 2084</div>
|
||||
<div>BT.2020 / PQ</div>
|
||||
</div>
|
||||
<div class="hud-readout">
|
||||
1000<span class="unit">Peak nits</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 3: HDR still photograph (16-bit PNG) -->
|
||||
<section id="scene-still" class="scene media-frame">
|
||||
<img
|
||||
id="img-hdr"
|
||||
src="../assets/photo-hdr.png"
|
||||
alt="HDR reference photograph"
|
||||
/>
|
||||
<div class="iridescent-frame"></div>
|
||||
<div class="hud top-left">
|
||||
<div class="accent-cyan">Plate II</div>
|
||||
<div>16-bit RGB</div>
|
||||
</div>
|
||||
<div class="hud top-right">
|
||||
<div class="accent-purple">PNG · linear-light</div>
|
||||
<div>HDR reference</div>
|
||||
</div>
|
||||
<div class="hud-readout">
|
||||
16<span class="unit">bits per channel</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 4: HDR video B -->
|
||||
<section id="scene-video-b" class="scene media-frame">
|
||||
<video
|
||||
id="vid-hdr-2"
|
||||
class="clip"
|
||||
src="../assets/hdr-source-2.mp4"
|
||||
data-start="6.7"
|
||||
data-duration="1.7"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="iridescent-frame"></div>
|
||||
<div class="hud top-left">
|
||||
<div class="accent-cyan">Plate III</div>
|
||||
<div>HDR · 10-bit</div>
|
||||
</div>
|
||||
<div class="hud top-right">
|
||||
<div class="accent-purple">Studio cut</div>
|
||||
<div>BT.2020 / PQ</div>
|
||||
</div>
|
||||
<div class="hud-readout">
|
||||
∞<span class="unit">specular highlights</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 5: closing card -->
|
||||
<section id="scene-outro" class="scene title-card">
|
||||
<div class="eyebrow">Composition · Data Drift</div>
|
||||
<h1 class="display">
|
||||
<span class="accent">HDR</span> ·<br />the wider gamut.
|
||||
</h1>
|
||||
<div class="colophon">
|
||||
<span>BT.2020 · PQ · 10-bit</span>
|
||||
<span>End of Volume II</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============================================================
|
||||
Voiceover — single audio track for the entire composition
|
||||
============================================================ -->
|
||||
<audio
|
||||
id="vo"
|
||||
src="../assets/voiceover.mp3"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></audio>
|
||||
|
||||
<!-- ============================================================
|
||||
Captions — sub-composition, lower-third, Data Drift styling
|
||||
============================================================ -->
|
||||
<div
|
||||
id="captions-comp"
|
||||
data-composition-id="captions"
|
||||
data-composition-src="compositions/captions.html"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></div>
|
||||
|
||||
<script>
|
||||
window.__timelines = window.__timelines || {};
|
||||
</script>
|
||||
<script src="script.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,158 +0,0 @@
|
||||
/* Data Drift — five-scene HDR PQ composition.
|
||||
|
||||
Scene visibility / handoff is owned entirely by the
|
||||
@hyperframes/shader-transitions package. We build a paused
|
||||
timeline of *internal* scene motion only (text reveals, video
|
||||
Ken-Burns, HUD drifts) and hand it to HyperShader.init() —
|
||||
the library appends the GL transitions and exposes the
|
||||
shader metadata on window.__hf.transitions so the HDR engine
|
||||
can reproduce each transition in rgb48le pixel space.
|
||||
|
||||
Motion rules: sine.inOut and power2.out only. Nothing snaps,
|
||||
everything drifts. */
|
||||
|
||||
(function () {
|
||||
const tl = gsap.timeline({ paused: true, defaults: { ease: "sine.inOut" } });
|
||||
|
||||
/* ---------- Scene 1 · Intro (0.00 – 1.60) ---------- */
|
||||
const introBrow = document.querySelector("#scene-intro .eyebrow");
|
||||
const introDisplay = document.querySelector("#scene-intro .display");
|
||||
const introFoot = document.querySelector("#scene-intro .colophon");
|
||||
if (introBrow && introDisplay && introFoot) {
|
||||
tl.from(
|
||||
introBrow,
|
||||
{ y: 18, opacity: 0, duration: 0.85, ease: "power2.out" },
|
||||
0.05,
|
||||
);
|
||||
tl.from(
|
||||
introDisplay,
|
||||
{ y: 36, opacity: 0, filter: "blur(12px)", duration: 1.05, ease: "power2.out" },
|
||||
0.22,
|
||||
);
|
||||
tl.from(
|
||||
introFoot,
|
||||
{ y: 12, opacity: 0, duration: 0.7, ease: "power2.out" },
|
||||
0.55,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 2 · HDR video A (2.10 – 4.00) ----------
|
||||
The video starts playing 0.5s after the shader cuts in
|
||||
(the lib transitions 1.6 → 2.1) so the scene becomes visible
|
||||
just as the first frame plays. Subtle Ken Burns push-in. */
|
||||
const vidA = document.getElementById("vid-hdr-1");
|
||||
if (vidA) {
|
||||
tl.fromTo(
|
||||
vidA,
|
||||
{ scale: 1.07 },
|
||||
{ scale: 1.0, duration: 1.9, ease: "sine.out" },
|
||||
2.1,
|
||||
);
|
||||
}
|
||||
const hudA = document.querySelectorAll("#scene-video-a .hud, #scene-video-a .hud-readout");
|
||||
if (hudA.length) {
|
||||
tl.from(
|
||||
hudA,
|
||||
{ opacity: 0, y: 8, duration: 0.6, ease: "power2.out", stagger: 0.08 },
|
||||
2.25,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 3 · HDR still (4.50 – 6.20) ----------
|
||||
16-bit PNG. Slow horizontal drift to give the still motion. */
|
||||
const still = document.getElementById("img-hdr");
|
||||
if (still) {
|
||||
tl.fromTo(
|
||||
still,
|
||||
{ scale: 1.1, x: -22 },
|
||||
{ scale: 1.02, x: 16, duration: 1.7, ease: "sine.inOut" },
|
||||
4.5,
|
||||
);
|
||||
}
|
||||
const hudB = document.querySelectorAll("#scene-still .hud, #scene-still .hud-readout");
|
||||
if (hudB.length) {
|
||||
tl.from(
|
||||
hudB,
|
||||
{ opacity: 0, y: 8, duration: 0.55, ease: "power2.out", stagger: 0.08 },
|
||||
4.65,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 4 · HDR video B (6.70 – 8.40) ----------
|
||||
Pull-back, opposite Ken Burns. */
|
||||
const vidB = document.getElementById("vid-hdr-2");
|
||||
if (vidB) {
|
||||
tl.fromTo(
|
||||
vidB,
|
||||
{ scale: 1.0 },
|
||||
{ scale: 1.07, duration: 1.7, ease: "sine.inOut" },
|
||||
6.7,
|
||||
);
|
||||
}
|
||||
const hudC = document.querySelectorAll("#scene-video-b .hud, #scene-video-b .hud-readout");
|
||||
if (hudC.length) {
|
||||
tl.from(
|
||||
hudC,
|
||||
{ opacity: 0, y: 8, duration: 0.55, ease: "power2.out", stagger: 0.08 },
|
||||
6.85,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 5 · Outro (8.90 – 10.00) ---------- */
|
||||
const outroBrow = document.querySelector("#scene-outro .eyebrow");
|
||||
const outroDisplay = document.querySelector("#scene-outro .display");
|
||||
const outroFoot = document.querySelector("#scene-outro .colophon");
|
||||
if (outroBrow && outroDisplay && outroFoot) {
|
||||
tl.from(
|
||||
outroBrow,
|
||||
{ y: 14, opacity: 0, duration: 0.65, ease: "power2.out" },
|
||||
8.95,
|
||||
);
|
||||
tl.from(
|
||||
outroDisplay,
|
||||
{ y: 28, opacity: 0, filter: "blur(10px)", duration: 0.85, ease: "power2.out" },
|
||||
9.05,
|
||||
);
|
||||
tl.from(
|
||||
outroFoot,
|
||||
{ y: 10, opacity: 0, duration: 0.55, ease: "power2.out" },
|
||||
9.45,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Shader transitions ----------
|
||||
init() reads __hf if present (set by the HDR engine), wires
|
||||
transitions into the timeline at the requested times, and
|
||||
registers the timeline on window.__timelines under the
|
||||
compositionId we pass. */
|
||||
if (typeof HyperShader !== "undefined" && HyperShader.init) {
|
||||
HyperShader.init({
|
||||
bgColor: "#0a0a0a",
|
||||
accentColor: "#7c3aed",
|
||||
compositionId: "main-comp",
|
||||
scenes: [
|
||||
"scene-intro",
|
||||
"scene-video-a",
|
||||
"scene-still",
|
||||
"scene-video-b",
|
||||
"scene-outro",
|
||||
],
|
||||
transitions: [
|
||||
{ time: 1.6, shader: "domain-warp", duration: 0.5, ease: "sine.inOut" },
|
||||
{ time: 4.0, shader: "gravitational-lens", duration: 0.5, ease: "sine.inOut" },
|
||||
{ time: 6.2, shader: "cross-warp-morph", duration: 0.5, ease: "sine.inOut" },
|
||||
{ time: 8.4, shader: "domain-warp", duration: 0.5, ease: "sine.inOut" },
|
||||
],
|
||||
timeline: tl,
|
||||
});
|
||||
}
|
||||
|
||||
/* When init() runs above it registers the timeline for us. If
|
||||
HyperShader is unavailable (e.g. CDN miss), fall back to a
|
||||
manual registration so the scene-internal motion still
|
||||
plays — the engine will then composite scenes as hard cuts. */
|
||||
window.__timelines = window.__timelines || {};
|
||||
if (!window.__timelines["main-comp"]) {
|
||||
window.__timelines["main-comp"] = tl;
|
||||
}
|
||||
})();
|
||||
@@ -1,277 +0,0 @@
|
||||
/* ============================================================
|
||||
Data Drift — Refik Anadol-inspired
|
||||
Deep black backdrop, electric purple + cyan gradients,
|
||||
floating weightless typography. The composition is built
|
||||
for shader transitions so each scene handoff is owned by
|
||||
the GL canvas, not by CSS animation.
|
||||
============================================================ */
|
||||
|
||||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=JetBrains+Mono:wght@300;500&display=swap");
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #0a0a0a;
|
||||
font-family: "Inter", system-ui, sans-serif;
|
||||
font-weight: 300;
|
||||
color: #f4f4f5;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#main {
|
||||
position: relative;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
background: #0a0a0a;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Persistent ambient backdrop visible through every scene's gaps.
|
||||
Two soft radial gradients sit behind everything — purple in the
|
||||
upper-left and cyan in the lower-right — establishing the Data
|
||||
Drift palette before any text appears. */
|
||||
#main::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at 22% 28%,
|
||||
rgba(124, 58, 237, 0.45) 0%,
|
||||
rgba(124, 58, 237, 0.0) 55%
|
||||
),
|
||||
radial-gradient(
|
||||
circle at 78% 76%,
|
||||
rgba(6, 182, 212, 0.40) 0%,
|
||||
rgba(6, 182, 212, 0.0) 55%
|
||||
);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ---------- Scene container baseline ---------- */
|
||||
|
||||
.scene {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1;
|
||||
/* All scenes start hidden; the shader-transitions library will
|
||||
temporarily reveal them for capture, then promote each to
|
||||
opacity:1 as its transition completes. The intro overrides
|
||||
this below so frame 0 is non-empty. */
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#scene-intro {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ---------- Title cards (intro + outro) ---------- */
|
||||
|
||||
.title-card {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding: 0 200px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.42em;
|
||||
text-transform: uppercase;
|
||||
color: #06b6d4;
|
||||
margin-bottom: 56px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.eyebrow::before,
|
||||
.eyebrow::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 90px;
|
||||
height: 1px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
rgba(6, 182, 212, 0.7),
|
||||
transparent
|
||||
);
|
||||
}
|
||||
|
||||
.eyebrow::before {
|
||||
right: calc(100% + 28px);
|
||||
}
|
||||
|
||||
.eyebrow::after {
|
||||
left: calc(100% + 28px);
|
||||
}
|
||||
|
||||
.display {
|
||||
font-family: "Inter", sans-serif;
|
||||
font-size: 132px;
|
||||
font-weight: 200;
|
||||
line-height: 1.04;
|
||||
letter-spacing: -0.02em;
|
||||
color: #fafafa;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.display .accent {
|
||||
background: linear-gradient(120deg, #7c3aed 0%, #06b6d4 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.colophon {
|
||||
margin-top: 64px;
|
||||
display: flex;
|
||||
gap: 64px;
|
||||
justify-content: center;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 12px;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0.22em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(244, 244, 245, 0.55);
|
||||
}
|
||||
|
||||
/* Soft outer scan lines (decorative HUD) */
|
||||
.scan-line {
|
||||
position: absolute;
|
||||
left: 80px;
|
||||
right: 80px;
|
||||
height: 1px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
rgba(124, 58, 237, 0.35),
|
||||
rgba(6, 182, 212, 0.35),
|
||||
transparent
|
||||
);
|
||||
}
|
||||
|
||||
.scan-line.top {
|
||||
top: 80px;
|
||||
}
|
||||
|
||||
.scan-line.bottom {
|
||||
bottom: 80px;
|
||||
}
|
||||
|
||||
/* ---------- Media-frame scenes ---------- */
|
||||
|
||||
.media-frame {
|
||||
background: #050505;
|
||||
}
|
||||
|
||||
.media-frame video,
|
||||
.media-frame img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
/* Subtle iridescent edge vignette so the HDR media reads as a
|
||||
"framed" plate inside the composition, not a fullscreen cut. */
|
||||
.iridescent-frame {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
box-shadow:
|
||||
inset 0 0 0 1px rgba(124, 58, 237, 0.18),
|
||||
inset 0 0 220px rgba(0, 0, 0, 0.55),
|
||||
inset 0 0 60px rgba(6, 182, 212, 0.10);
|
||||
}
|
||||
|
||||
/* HUD overlays — minimal, weightless, JetBrains Mono. */
|
||||
.hud {
|
||||
position: absolute;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 11px;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0.22em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(244, 244, 245, 0.78);
|
||||
}
|
||||
|
||||
.hud.top-left {
|
||||
top: 56px;
|
||||
left: 56px;
|
||||
}
|
||||
|
||||
.hud.top-right {
|
||||
top: 56px;
|
||||
right: 56px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.hud.bottom-left {
|
||||
bottom: 56px;
|
||||
left: 56px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.hud .accent-cyan {
|
||||
color: #06b6d4;
|
||||
}
|
||||
|
||||
.hud .accent-purple {
|
||||
color: #b794f4;
|
||||
}
|
||||
|
||||
.hud-readout {
|
||||
position: absolute;
|
||||
bottom: 56px;
|
||||
right: 56px;
|
||||
text-align: right;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 56px;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0.04em;
|
||||
color: #fafafa;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.hud-readout .unit {
|
||||
display: block;
|
||||
margin-top: 14px;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.32em;
|
||||
color: rgba(6, 182, 212, 0.85);
|
||||
}
|
||||
|
||||
/* ---------- Particle field (CSS only, deterministic) ---------- */
|
||||
/* A drifting dot pattern on top of the ambient gradient. We keep
|
||||
this as an inline SVG background so it serializes cleanly into
|
||||
html2canvas captures the shader transition will sample. */
|
||||
|
||||
.drift-field {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
opacity: 0.45;
|
||||
background-image: radial-gradient(
|
||||
rgba(124, 58, 237, 0.55) 1px,
|
||||
transparent 1.5px
|
||||
),
|
||||
radial-gradient(rgba(6, 182, 212, 0.45) 1px, transparent 1.5px);
|
||||
background-size: 96px 96px, 168px 168px;
|
||||
background-position: 0 0, 40px 40px;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
../../hdr-pq/assets/hdr-source-2.mp4
|
||||
@@ -1 +0,0 @@
|
||||
../../hdr-pq/assets/hdr-source-1.mp4
|
||||
@@ -1 +0,0 @@
|
||||
../../hdr-pq/assets/photo-hdr.png
|
||||
@@ -1 +0,0 @@
|
||||
../../sdr-baseline/assets/photo-sdr.jpg
|
||||
@@ -1 +0,0 @@
|
||||
../../sdr-baseline/assets/sdr-source-2.mp4
|
||||
@@ -1 +0,0 @@
|
||||
../../sdr-baseline/assets/sdr-source-1.mp4
|
||||
@@ -1,142 +0,0 @@
|
||||
[
|
||||
{
|
||||
"text": "the",
|
||||
"start": 0.1,
|
||||
"end": 0.31
|
||||
},
|
||||
{
|
||||
"text": "makers",
|
||||
"start": 0.31,
|
||||
"end": 0.86
|
||||
},
|
||||
{
|
||||
"text": "of",
|
||||
"start": 0.94,
|
||||
"end": 1.13
|
||||
},
|
||||
{
|
||||
"text": "Subnautica,",
|
||||
"start": 1.13,
|
||||
"end": 2.28
|
||||
},
|
||||
{
|
||||
"text": "and",
|
||||
"start": 2.28,
|
||||
"end": 2.44
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 2.44,
|
||||
"end": 2.54
|
||||
},
|
||||
{
|
||||
"text": "promised",
|
||||
"start": 2.54,
|
||||
"end": 2.99
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 2.99,
|
||||
"end": 3.12
|
||||
},
|
||||
{
|
||||
"text": "founders",
|
||||
"start": 3.12,
|
||||
"end": 3.65
|
||||
},
|
||||
{
|
||||
"text": "$250",
|
||||
"start": 3.75,
|
||||
"end": 4.71
|
||||
},
|
||||
{
|
||||
"text": "million",
|
||||
"start": 4.71,
|
||||
"end": 5.4
|
||||
},
|
||||
{
|
||||
"text": "if",
|
||||
"start": 5.44,
|
||||
"end": 5.6
|
||||
},
|
||||
{
|
||||
"text": "their",
|
||||
"start": 5.6,
|
||||
"end": 5.95
|
||||
},
|
||||
{
|
||||
"text": "next",
|
||||
"start": 5.95,
|
||||
"end": 6.23
|
||||
},
|
||||
{
|
||||
"text": "game",
|
||||
"start": 6.24,
|
||||
"end": 6.64
|
||||
},
|
||||
{
|
||||
"text": "hits",
|
||||
"start": 6.64,
|
||||
"end": 6.91
|
||||
},
|
||||
{
|
||||
"text": "certain",
|
||||
"start": 6.98,
|
||||
"end": 7.36
|
||||
},
|
||||
{
|
||||
"text": "targets.",
|
||||
"start": 7.36,
|
||||
"end": 7.98
|
||||
},
|
||||
{
|
||||
"text": "And",
|
||||
"start": 8.06,
|
||||
"end": 8.14
|
||||
},
|
||||
{
|
||||
"text": "at",
|
||||
"start": 8.14,
|
||||
"end": 8.25
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 8.25,
|
||||
"end": 8.41
|
||||
},
|
||||
{
|
||||
"text": "time,",
|
||||
"start": 8.41,
|
||||
"end": 8.72
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 8.72,
|
||||
"end": 8.82
|
||||
},
|
||||
{
|
||||
"text": "thought",
|
||||
"start": 8.83,
|
||||
"end": 9.19
|
||||
},
|
||||
{
|
||||
"text": "there",
|
||||
"start": 9.24,
|
||||
"end": 9.48
|
||||
},
|
||||
{
|
||||
"text": "was",
|
||||
"start": 9.48,
|
||||
"end": 9.63
|
||||
},
|
||||
{
|
||||
"text": "no",
|
||||
"start": 9.64,
|
||||
"end": 9.75
|
||||
},
|
||||
{
|
||||
"text": "way-",
|
||||
"start": 9.75,
|
||||
"end": 9.98
|
||||
}
|
||||
]
|
||||
@@ -1 +0,0 @@
|
||||
../../sdr-baseline/assets/voiceover.mp3
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"name": "HDR Regression — Mixed SDR + HDR (Shadow Cut)",
|
||||
"description": "1920x1080 composition that mixes SDR (BT.709 8-bit) and HDR (BT.2020 PQ 10-bit) sources in the same scene stack — two SDR videos, two HDR videos, an SDR JPEG and a 16-bit HDR PNG, plus voiceover and captions. Renders twice through the regression harness: once SDR (BT.709 output, every HDR source must be tone-mapped down) and once with `--hdr` (BT.2020 PQ output, every SDR source must be promoted up). Exercises the engine's per-asset transfer auto-detection, the rgb48le cross-transfer compositor, and the Domain Warp shader transition in both SDR and HDR pixel spaces. Visual identity is Hans-Hillmann-inspired Shadow Cut.",
|
||||
"tags": [
|
||||
"hdr-regression",
|
||||
"mixed",
|
||||
"sdr",
|
||||
"hdr",
|
||||
"pq",
|
||||
"bt2020",
|
||||
"bt709",
|
||||
"auto-detect",
|
||||
"cross-transfer",
|
||||
"video",
|
||||
"audio",
|
||||
"image",
|
||||
"captions",
|
||||
"shader-transitions",
|
||||
"shadow-cut"
|
||||
],
|
||||
|
||||
"minPsnr": 26,
|
||||
"maxFrameFailures": 0,
|
||||
|
||||
"minAudioCorrelation": 0.85,
|
||||
"maxAudioLagWindows": 120,
|
||||
|
||||
"renderConfig": {
|
||||
"fps": 30
|
||||
}
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
<template id="captions-template">
|
||||
<div
|
||||
data-composition-id="captions"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<div id="captions-container"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
|
||||
<style>
|
||||
[data-composition-id="captions"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 150px;
|
||||
pointer-events: none;
|
||||
font-family: "Inter", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
#captions-container {
|
||||
position: relative;
|
||||
width: 1320px;
|
||||
min-height: 130px;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 46px;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
color: #fafafa;
|
||||
text-shadow:
|
||||
0 4px 22px rgba(0, 0, 0, 0.95),
|
||||
0 0 36px rgba(0, 0, 0, 0.85),
|
||||
0 0 1px rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
.sc-chunk {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 6px 18px;
|
||||
}
|
||||
|
||||
.sc-word {
|
||||
opacity: 0;
|
||||
display: inline-block;
|
||||
transition: none;
|
||||
color: rgba(244, 244, 244, 0.92);
|
||||
will-change: opacity, color, transform;
|
||||
}
|
||||
|
||||
.sc-word.is-active {
|
||||
color: #C1121F;
|
||||
text-shadow:
|
||||
0 4px 22px rgba(0, 0, 0, 0.95),
|
||||
0 0 24px rgba(193, 18, 31, 0.55),
|
||||
0 0 1px rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
const TRANSCRIPT = [
|
||||
{ "text": "the", "start": 0.1, "end": 0.31 },
|
||||
{ "text": "makers", "start": 0.31, "end": 0.86 },
|
||||
{ "text": "of", "start": 0.94, "end": 1.13 },
|
||||
{ "text": "Subnautica,", "start": 1.13, "end": 2.28 },
|
||||
{ "text": "and", "start": 2.28, "end": 2.44 },
|
||||
{ "text": "he", "start": 2.44, "end": 2.54 },
|
||||
{ "text": "promised", "start": 2.54, "end": 2.99 },
|
||||
{ "text": "the", "start": 2.99, "end": 3.12 },
|
||||
{ "text": "founders", "start": 3.12, "end": 3.65 },
|
||||
{ "text": "$250", "start": 3.75, "end": 4.71 },
|
||||
{ "text": "million", "start": 4.71, "end": 5.4 },
|
||||
{ "text": "if", "start": 5.44, "end": 5.6 },
|
||||
{ "text": "their", "start": 5.6, "end": 5.95 },
|
||||
{ "text": "next", "start": 5.95, "end": 6.23 },
|
||||
{ "text": "game", "start": 6.24, "end": 6.64 },
|
||||
{ "text": "hits", "start": 6.64, "end": 6.91 },
|
||||
{ "text": "certain", "start": 6.98, "end": 7.36 },
|
||||
{ "text": "targets.", "start": 7.36, "end": 7.98 },
|
||||
{ "text": "And", "start": 8.06, "end": 8.14 },
|
||||
{ "text": "at", "start": 8.14, "end": 8.25 },
|
||||
{ "text": "the", "start": 8.25, "end": 8.41 },
|
||||
{ "text": "time,", "start": 8.41, "end": 8.72 },
|
||||
{ "text": "he", "start": 8.72, "end": 8.82 },
|
||||
{ "text": "thought", "start": 8.83, "end": 9.19 },
|
||||
{ "text": "there", "start": 9.24, "end": 9.48 },
|
||||
{ "text": "was", "start": 9.48, "end": 9.63 },
|
||||
{ "text": "no", "start": 9.64, "end": 9.75 },
|
||||
{ "text": "way-", "start": 9.75, "end": 9.98 }
|
||||
];
|
||||
|
||||
const container = document.getElementById("captions-container");
|
||||
const tl = gsap.timeline({ paused: true });
|
||||
|
||||
const chunks = [];
|
||||
let current = [];
|
||||
for (let i = 0; i < TRANSCRIPT.length; i++) {
|
||||
current.push(TRANSCRIPT[i]);
|
||||
if (current.length >= 4 || i === TRANSCRIPT.length - 1) {
|
||||
chunks.push(current);
|
||||
current = [];
|
||||
}
|
||||
}
|
||||
|
||||
chunks.forEach((chunk) => {
|
||||
const start = chunk[0].start;
|
||||
const end = chunk[chunk.length - 1].end;
|
||||
|
||||
const div = document.createElement("div");
|
||||
div.className = "sc-chunk";
|
||||
container.appendChild(div);
|
||||
|
||||
tl.fromTo(
|
||||
div,
|
||||
{ opacity: 0, y: 16, filter: "blur(6px)" },
|
||||
{ opacity: 1, y: 0, filter: "blur(0px)", duration: 0.32, ease: "power3.out" },
|
||||
start - 0.1,
|
||||
);
|
||||
|
||||
chunk.forEach((wordData, wordIndex) => {
|
||||
const w = document.createElement("span");
|
||||
w.className = "sc-word";
|
||||
w.innerText = wordData.text;
|
||||
div.appendChild(w);
|
||||
|
||||
tl.to(
|
||||
w,
|
||||
{ opacity: 1, duration: 0.16, ease: "power2.out" },
|
||||
wordData.start,
|
||||
);
|
||||
|
||||
tl.add(() => w.classList.add("is-active"), wordData.start);
|
||||
|
||||
const offTime =
|
||||
wordIndex < chunk.length - 1 ? chunk[wordIndex + 1].start : end;
|
||||
tl.add(() => w.classList.remove("is-active"), offTime);
|
||||
});
|
||||
|
||||
tl.to(
|
||||
div,
|
||||
{ opacity: 0, y: -10, filter: "blur(6px)", duration: 0.3, ease: "power4.in" },
|
||||
end + 0.05,
|
||||
);
|
||||
tl.set(div, { opacity: 0, visibility: "hidden" }, end + 0.36);
|
||||
});
|
||||
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["captions"] = tl;
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,206 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>HDR Regression — Mixed SDR + HDR (Shadow Cut)</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@hyperframes/shader-transitions@0.4.4/dist/index.global.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="main"
|
||||
data-composition-id="main-comp"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<!-- ============================================================
|
||||
Shadow Cut — six scenes, ~10s, every handoff is Domain Warp.
|
||||
This composition deliberately interleaves SDR and HDR sources
|
||||
so the engine has to auto-detect each plate's transfer fn
|
||||
and cross-convert into the working space:
|
||||
|
||||
SDR render → all HDR plates tonemap PQ → BT.709
|
||||
--hdr render → all SDR plates promote BT.709 → PQ
|
||||
|
||||
Scene timings (after each shader transition completes):
|
||||
0.00 – 1.40 intro card
|
||||
1.85 – 3.20 SDR video A (cross-warp: into PQ space)
|
||||
3.65 – 5.00 HDR video A (native PQ)
|
||||
5.45 – 6.50 SDR still (BT.709 promoted)
|
||||
6.95 – 8.00 HDR still (16-bit PNG, native HDR)
|
||||
8.45 – 10.00 outro card
|
||||
|
||||
Shader picks (Shadow Cut): Domain Warp on every handoff.
|
||||
============================================================ -->
|
||||
|
||||
<!-- Persistent darkness layers — sit behind the .scene stack so
|
||||
every shader capture inherits the noir atmosphere. -->
|
||||
<div class="bar top"></div>
|
||||
<div class="bar bottom"></div>
|
||||
|
||||
<!-- Scene 1: cold open title card -->
|
||||
<section id="scene-intro" class="scene title-card">
|
||||
<div class="classification">Restricted · HDR Regression</div>
|
||||
<h1 class="display">
|
||||
THE <span class="accent">SDR / HDR</span><br />HANDOFF
|
||||
</h1>
|
||||
<div class="subdisplay">A study in mixed transfer functions</div>
|
||||
<div class="colophon">
|
||||
<span>Case File · Volume III</span>
|
||||
<span>BT.709 ⇄ BT.2020 PQ</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 2: SDR video A -->
|
||||
<section id="scene-sdr-vid" class="scene media-frame">
|
||||
<video
|
||||
id="vid-sdr"
|
||||
class="clip"
|
||||
src="../assets/sdr.mp4"
|
||||
data-start="1.85"
|
||||
data-duration="1.35"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="shadow-vignette"></div>
|
||||
<div class="corner-tick top-left"></div>
|
||||
<div class="corner-tick top-right"></div>
|
||||
<div class="corner-tick bottom-left"></div>
|
||||
<div class="corner-tick bottom-right"></div>
|
||||
<div class="evidence top-left">
|
||||
<div class="red">Plate I · Source A</div>
|
||||
<div>SDR · 8-bit · BT.709</div>
|
||||
</div>
|
||||
<div class="evidence top-right">
|
||||
<div class="red">Transfer / sRGB</div>
|
||||
<div>Auto-detected</div>
|
||||
</div>
|
||||
<div class="case-label">
|
||||
709<span class="label">REC. ITU-R</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 3: HDR video A -->
|
||||
<section id="scene-hdr-vid" class="scene media-frame">
|
||||
<video
|
||||
id="vid-hdr"
|
||||
class="clip"
|
||||
src="../assets/hdr.mp4"
|
||||
data-start="3.65"
|
||||
data-duration="1.35"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="shadow-vignette"></div>
|
||||
<div class="corner-tick top-left"></div>
|
||||
<div class="corner-tick top-right"></div>
|
||||
<div class="corner-tick bottom-left"></div>
|
||||
<div class="corner-tick bottom-right"></div>
|
||||
<div class="evidence top-left">
|
||||
<div class="red">Plate II · Source B</div>
|
||||
<div>HDR · 10-bit · BT.2020</div>
|
||||
</div>
|
||||
<div class="evidence top-right">
|
||||
<div class="red">Transfer / SMPTE 2084</div>
|
||||
<div>Auto-detected</div>
|
||||
</div>
|
||||
<div class="case-label">
|
||||
2084<span class="label">SMPTE PQ</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 4: SDR still photograph -->
|
||||
<section id="scene-sdr-still" class="scene media-frame">
|
||||
<img
|
||||
id="img-sdr"
|
||||
src="../assets/photo-sdr.jpg"
|
||||
alt="SDR reference photograph"
|
||||
/>
|
||||
<div class="shadow-vignette"></div>
|
||||
<div class="corner-tick top-left"></div>
|
||||
<div class="corner-tick top-right"></div>
|
||||
<div class="corner-tick bottom-left"></div>
|
||||
<div class="corner-tick bottom-right"></div>
|
||||
<div class="evidence top-left">
|
||||
<div class="red">Plate III · Stills</div>
|
||||
<div>JPEG · 8-bit · sRGB</div>
|
||||
</div>
|
||||
<div class="evidence top-right">
|
||||
<div class="red">Source / archival</div>
|
||||
<div>Auto-detected</div>
|
||||
</div>
|
||||
<div class="case-label">
|
||||
JPEG<span class="label">8-BIT sRGB</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 5: HDR still photograph (16-bit PNG) -->
|
||||
<section id="scene-hdr-still" class="scene media-frame">
|
||||
<img
|
||||
id="img-hdr"
|
||||
src="../assets/photo-hdr.png"
|
||||
alt="HDR reference photograph"
|
||||
/>
|
||||
<div class="shadow-vignette"></div>
|
||||
<div class="corner-tick top-left"></div>
|
||||
<div class="corner-tick top-right"></div>
|
||||
<div class="corner-tick bottom-left"></div>
|
||||
<div class="corner-tick bottom-right"></div>
|
||||
<div class="evidence top-left">
|
||||
<div class="red">Plate IV · Stills</div>
|
||||
<div>PNG · 16-bit · linear</div>
|
||||
</div>
|
||||
<div class="evidence top-right">
|
||||
<div class="red">Source / reference</div>
|
||||
<div>HDR · BT.2020</div>
|
||||
</div>
|
||||
<div class="case-label">
|
||||
PNG16<span class="label">LINEAR LIGHT</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 6: closing card -->
|
||||
<section id="scene-outro" class="scene title-card">
|
||||
<div class="classification">End of File · Shadow Cut</div>
|
||||
<h1 class="display">
|
||||
ONE PIPELINE.<br /><span class="accent">TWO LIGHTS.</span>
|
||||
</h1>
|
||||
<div class="subdisplay">Auto-detected. Cross-converted. Composited.</div>
|
||||
<div class="colophon">
|
||||
<span>Volume III</span>
|
||||
<span>End of Case File</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============================================================
|
||||
Voiceover — one audio track for the full composition
|
||||
============================================================ -->
|
||||
<audio
|
||||
id="vo"
|
||||
src="../assets/voiceover.mp3"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></audio>
|
||||
|
||||
<!-- ============================================================
|
||||
Captions — sub-composition, lower-third, Shadow Cut styling
|
||||
============================================================ -->
|
||||
<div
|
||||
id="captions-comp"
|
||||
data-composition-id="captions"
|
||||
data-composition-src="compositions/captions.html"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></div>
|
||||
|
||||
<script>
|
||||
window.__timelines = window.__timelines || {};
|
||||
</script>
|
||||
<script src="script.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,252 +0,0 @@
|
||||
/* Shadow Cut — six-scene mixed-transfer composition.
|
||||
|
||||
Scene visibility / handoffs are owned entirely by the
|
||||
@hyperframes/shader-transitions library (Domain Warp on every
|
||||
cut, per the Shadow Cut style guide). We build a paused
|
||||
timeline of *internal* scene motion only — slow creeping
|
||||
push-ins, classification text reveals, dramatic bottom-up
|
||||
case-label entrances — and hand it to HyperShader.init().
|
||||
|
||||
The library appends GL transitions and exposes the shader
|
||||
metadata on window.__hf.transitions so the HDR engine can
|
||||
reproduce each Domain Warp transition in rgb48le pixel
|
||||
space, cross-converting any SDR → PQ or HDR → BT.709 as the
|
||||
render target requires.
|
||||
|
||||
Motion rules (Shadow Cut): power3.out for reveals, power4.in
|
||||
for exits. The pause before the hit matters. Nothing bouncy. */
|
||||
|
||||
(function () {
|
||||
const tl = gsap.timeline({ paused: true, defaults: { ease: "power3.out" } });
|
||||
|
||||
/* ---------- Scene 1 · Intro (0.00 – 1.40) ---------- */
|
||||
const introClass = document.querySelector("#scene-intro .classification");
|
||||
const introDisplay = document.querySelector("#scene-intro .display");
|
||||
const introSub = document.querySelector("#scene-intro .subdisplay");
|
||||
const introFoot = document.querySelector("#scene-intro .colophon");
|
||||
if (introClass && introDisplay && introSub && introFoot) {
|
||||
tl.from(
|
||||
introClass,
|
||||
{ y: 12, opacity: 0, duration: 0.6, ease: "power3.out" },
|
||||
0.05,
|
||||
);
|
||||
tl.from(
|
||||
introDisplay,
|
||||
{ y: 30, opacity: 0, scale: 1.04, duration: 0.85, ease: "power3.out" },
|
||||
0.18,
|
||||
);
|
||||
tl.from(
|
||||
introSub,
|
||||
{ y: 10, opacity: 0, duration: 0.55, ease: "power3.out" },
|
||||
0.55,
|
||||
);
|
||||
tl.from(
|
||||
introFoot,
|
||||
{ y: 8, opacity: 0, duration: 0.5, ease: "power3.out" },
|
||||
0.78,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 2 · SDR video A (1.85 – 3.20) ----------
|
||||
Slow creeping push-in. The cross-transfer happens inside
|
||||
the engine when it composites this scene's frames into the
|
||||
PQ working space (or leaves them as-is for SDR output). */
|
||||
const vidSdr = document.getElementById("vid-sdr");
|
||||
if (vidSdr) {
|
||||
tl.fromTo(
|
||||
vidSdr,
|
||||
{ scale: 1.08 },
|
||||
{ scale: 1.0, duration: 1.35, ease: "power3.out" },
|
||||
1.85,
|
||||
);
|
||||
}
|
||||
const evSdr = document.querySelectorAll(
|
||||
"#scene-sdr-vid .evidence, #scene-sdr-vid .case-label",
|
||||
);
|
||||
if (evSdr.length) {
|
||||
tl.from(
|
||||
evSdr,
|
||||
{ opacity: 0, y: 8, duration: 0.5, ease: "power3.out", stagger: 0.07 },
|
||||
2.0,
|
||||
);
|
||||
}
|
||||
const ticksSdr = document.querySelectorAll("#scene-sdr-vid .corner-tick");
|
||||
if (ticksSdr.length) {
|
||||
tl.from(
|
||||
ticksSdr,
|
||||
{ opacity: 0, scale: 0.6, duration: 0.4, ease: "power3.out", stagger: 0.04 },
|
||||
1.95,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 3 · HDR video A (3.65 – 5.00) ----------
|
||||
Pull-back rather than push-in to vary the rhythm. Native
|
||||
PQ source — the engine reads this with its 10-bit reader. */
|
||||
const vidHdr = document.getElementById("vid-hdr");
|
||||
if (vidHdr) {
|
||||
tl.fromTo(
|
||||
vidHdr,
|
||||
{ scale: 1.0 },
|
||||
{ scale: 1.06, duration: 1.35, ease: "power3.out" },
|
||||
3.65,
|
||||
);
|
||||
}
|
||||
const evHdr = document.querySelectorAll(
|
||||
"#scene-hdr-vid .evidence, #scene-hdr-vid .case-label",
|
||||
);
|
||||
if (evHdr.length) {
|
||||
tl.from(
|
||||
evHdr,
|
||||
{ opacity: 0, y: 8, duration: 0.5, ease: "power3.out", stagger: 0.07 },
|
||||
3.8,
|
||||
);
|
||||
}
|
||||
const ticksHdr = document.querySelectorAll("#scene-hdr-vid .corner-tick");
|
||||
if (ticksHdr.length) {
|
||||
tl.from(
|
||||
ticksHdr,
|
||||
{ opacity: 0, scale: 0.6, duration: 0.4, ease: "power3.out", stagger: 0.04 },
|
||||
3.75,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 4 · SDR still (5.45 – 6.50) ----------
|
||||
Slow horizontal drift to give the still life. */
|
||||
const stillSdr = document.getElementById("img-sdr");
|
||||
if (stillSdr) {
|
||||
tl.fromTo(
|
||||
stillSdr,
|
||||
{ scale: 1.1, x: -22 },
|
||||
{ scale: 1.04, x: 14, duration: 1.05, ease: "power3.out" },
|
||||
5.45,
|
||||
);
|
||||
}
|
||||
const evStillSdr = document.querySelectorAll(
|
||||
"#scene-sdr-still .evidence, #scene-sdr-still .case-label",
|
||||
);
|
||||
if (evStillSdr.length) {
|
||||
tl.from(
|
||||
evStillSdr,
|
||||
{ opacity: 0, y: 8, duration: 0.45, ease: "power3.out", stagger: 0.07 },
|
||||
5.55,
|
||||
);
|
||||
}
|
||||
const ticksStillSdr = document.querySelectorAll(
|
||||
"#scene-sdr-still .corner-tick",
|
||||
);
|
||||
if (ticksStillSdr.length) {
|
||||
tl.from(
|
||||
ticksStillSdr,
|
||||
{ opacity: 0, scale: 0.6, duration: 0.35, ease: "power3.out", stagger: 0.04 },
|
||||
5.5,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 5 · HDR still (6.95 – 8.00) ----------
|
||||
Counter-direction drift so the rhythm doesn't feel mechanical. */
|
||||
const stillHdr = document.getElementById("img-hdr");
|
||||
if (stillHdr) {
|
||||
tl.fromTo(
|
||||
stillHdr,
|
||||
{ scale: 1.04, x: 18 },
|
||||
{ scale: 1.1, x: -18, duration: 1.05, ease: "power3.out" },
|
||||
6.95,
|
||||
);
|
||||
}
|
||||
const evStillHdr = document.querySelectorAll(
|
||||
"#scene-hdr-still .evidence, #scene-hdr-still .case-label",
|
||||
);
|
||||
if (evStillHdr.length) {
|
||||
tl.from(
|
||||
evStillHdr,
|
||||
{ opacity: 0, y: 8, duration: 0.45, ease: "power3.out", stagger: 0.07 },
|
||||
7.05,
|
||||
);
|
||||
}
|
||||
const ticksStillHdr = document.querySelectorAll(
|
||||
"#scene-hdr-still .corner-tick",
|
||||
);
|
||||
if (ticksStillHdr.length) {
|
||||
tl.from(
|
||||
ticksStillHdr,
|
||||
{ opacity: 0, scale: 0.6, duration: 0.35, ease: "power3.out", stagger: 0.04 },
|
||||
7.0,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Scene 6 · Outro (8.45 – 10.00) ---------- */
|
||||
const outroClass = document.querySelector("#scene-outro .classification");
|
||||
const outroDisplay = document.querySelector("#scene-outro .display");
|
||||
const outroSub = document.querySelector("#scene-outro .subdisplay");
|
||||
const outroFoot = document.querySelector("#scene-outro .colophon");
|
||||
if (outroClass && outroDisplay && outroSub && outroFoot) {
|
||||
tl.from(
|
||||
outroClass,
|
||||
{ y: 12, opacity: 0, duration: 0.55, ease: "power3.out" },
|
||||
8.5,
|
||||
);
|
||||
tl.from(
|
||||
outroDisplay,
|
||||
{ y: 28, opacity: 0, scale: 1.04, duration: 0.85, ease: "power3.out" },
|
||||
8.62,
|
||||
);
|
||||
tl.from(
|
||||
outroSub,
|
||||
{ y: 10, opacity: 0, duration: 0.55, ease: "power3.out" },
|
||||
9.0,
|
||||
);
|
||||
tl.from(
|
||||
outroFoot,
|
||||
{ y: 8, opacity: 0, duration: 0.5, ease: "power3.out" },
|
||||
9.25,
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- Shader transitions ----------
|
||||
Domain Warp on every handoff (Shadow Cut style guide).
|
||||
init() reads __hf if present (set by the HDR engine), wires
|
||||
transitions into the timeline at the requested times, and
|
||||
registers the timeline on window.__timelines under the
|
||||
compositionId we pass.
|
||||
|
||||
Transition layout (5 cuts, 0.45s each):
|
||||
1.40 → 1.85: intro → sdr-vid
|
||||
3.20 → 3.65: sdr-vid → hdr-vid (BT.709 → PQ jump)
|
||||
5.00 → 5.45: hdr-vid → sdr-still (PQ → BT.709 jump)
|
||||
6.50 → 6.95: sdr-still → hdr-still (BT.709 → PQ jump)
|
||||
8.00 → 8.45: hdr-still → outro
|
||||
*/
|
||||
if (typeof HyperShader !== "undefined" && HyperShader.init) {
|
||||
HyperShader.init({
|
||||
bgColor: "#0a0a0a",
|
||||
accentColor: "#C1121F",
|
||||
compositionId: "main-comp",
|
||||
scenes: [
|
||||
"scene-intro",
|
||||
"scene-sdr-vid",
|
||||
"scene-hdr-vid",
|
||||
"scene-sdr-still",
|
||||
"scene-hdr-still",
|
||||
"scene-outro",
|
||||
],
|
||||
transitions: [
|
||||
{ time: 1.4, shader: "domain-warp", duration: 0.45, ease: "power3.out" },
|
||||
{ time: 3.2, shader: "domain-warp", duration: 0.45, ease: "power3.out" },
|
||||
{ time: 5.0, shader: "domain-warp", duration: 0.45, ease: "power3.out" },
|
||||
{ time: 6.5, shader: "domain-warp", duration: 0.45, ease: "power3.out" },
|
||||
{ time: 8.0, shader: "domain-warp", duration: 0.45, ease: "power3.out" },
|
||||
],
|
||||
timeline: tl,
|
||||
});
|
||||
}
|
||||
|
||||
/* When init() runs above with a custom timeline it does NOT
|
||||
auto-register on window.__timelines — registration only
|
||||
happens when the library owns the timeline. So we always
|
||||
register the timeline ourselves; this also covers the
|
||||
fallback case where HyperShader is unavailable (CDN miss),
|
||||
in which case the engine renders scenes as hard cuts but
|
||||
internal scene motion still plays. */
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["main-comp"] = tl;
|
||||
})();
|
||||
@@ -1,314 +0,0 @@
|
||||
/* ============================================================
|
||||
Shadow Cut — Hans Hillmann inspired film-noir card style.
|
||||
Near-monochrome stack: deep black, cold grey, stark white,
|
||||
plus one accent — blood red (#C1121F). Every reveal emerges
|
||||
from darkness; the shader transition (Domain Warp) is what
|
||||
dissolves reality before the next plate appears.
|
||||
============================================================ */
|
||||
|
||||
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;600&display=swap");
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #0a0a0a;
|
||||
font-family: "Inter", system-ui, sans-serif;
|
||||
font-weight: 400;
|
||||
color: #f4f4f4;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#main {
|
||||
position: relative;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
background: #0a0a0a;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Persistent darkness — a faint cold-grey vignette that lives
|
||||
behind every scene so even when html2canvas captures an
|
||||
"empty" backdrop for a transition it carries the mood. */
|
||||
#main::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
background:
|
||||
radial-gradient(
|
||||
ellipse at 50% 50%,
|
||||
rgba(58, 58, 58, 0.18) 0%,
|
||||
rgba(10, 10, 10, 0.0) 65%
|
||||
),
|
||||
linear-gradient(
|
||||
180deg,
|
||||
#050505 0%,
|
||||
#0a0a0a 50%,
|
||||
#050505 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Faint horizontal interrogation bars — top + bottom. Lend a
|
||||
noir "redacted document" feel without competing with copy. */
|
||||
.bar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 28px;
|
||||
background: #050505;
|
||||
border-top: 1px solid rgba(193, 18, 31, 0.35);
|
||||
border-bottom: 1px solid rgba(193, 18, 31, 0.35);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.bar.top {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.bar.bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
/* ---------- Scene container baseline ----------
|
||||
Shadow Cut uses shader transitions, so the library will set
|
||||
non-target scenes to opacity:0 during transition and promote
|
||||
the target to opacity:1 on completion. We mirror that — only
|
||||
the intro is visible at frame 0. */
|
||||
|
||||
.scene {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#scene-intro {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ---------- Title cards (intro + outro) ---------- */
|
||||
|
||||
.title-card {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding: 0 180px;
|
||||
}
|
||||
|
||||
.classification {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.36em;
|
||||
text-transform: uppercase;
|
||||
color: #C1121F;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.classification::before,
|
||||
.classification::after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 38px;
|
||||
height: 1px;
|
||||
background: #C1121F;
|
||||
}
|
||||
|
||||
.display {
|
||||
font-family: "Bebas Neue", "Oswald", sans-serif;
|
||||
font-size: 184px;
|
||||
font-weight: 400;
|
||||
line-height: 0.94;
|
||||
letter-spacing: 0.012em;
|
||||
color: #fafafa;
|
||||
text-shadow:
|
||||
0 6px 36px rgba(0, 0, 0, 0.85),
|
||||
0 0 1px rgba(255, 255, 255, 0.6);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.display .accent {
|
||||
color: #C1121F;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.subdisplay {
|
||||
margin-top: 48px;
|
||||
font-family: "Inter", sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0.42em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(244, 244, 244, 0.55);
|
||||
}
|
||||
|
||||
.colophon {
|
||||
margin-top: 72px;
|
||||
display: flex;
|
||||
gap: 72px;
|
||||
justify-content: center;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.28em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(193, 18, 31, 0.85);
|
||||
}
|
||||
|
||||
/* ---------- Media-frame scenes ---------- */
|
||||
|
||||
.media-frame {
|
||||
background: #050505;
|
||||
}
|
||||
|
||||
.media-frame video,
|
||||
.media-frame img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
/* Heavy shadow vignette so plates look like they're emerging
|
||||
from darkness — Shadow Cut's whole reveal-from-black thing. */
|
||||
.shadow-vignette {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
box-shadow:
|
||||
inset 0 0 0 1px rgba(193, 18, 31, 0.22),
|
||||
inset 0 0 220px rgba(0, 0, 0, 0.78),
|
||||
inset 0 0 80px rgba(0, 0, 0, 0.65);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/* Evidence-stamp HUD overlays in the corners. Mono, condensed. */
|
||||
.evidence {
|
||||
position: absolute;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.28em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(244, 244, 244, 0.85);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.evidence .red {
|
||||
color: #C1121F;
|
||||
}
|
||||
|
||||
.evidence.top-left {
|
||||
top: 64px;
|
||||
left: 64px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.evidence.top-right {
|
||||
top: 64px;
|
||||
right: 64px;
|
||||
text-align: right;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.evidence.bottom-left {
|
||||
bottom: 64px;
|
||||
left: 64px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* Bottom-right "case label" — large mono number. */
|
||||
.case-label {
|
||||
position: absolute;
|
||||
bottom: 56px;
|
||||
right: 64px;
|
||||
text-align: right;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-weight: 600;
|
||||
font-size: 64px;
|
||||
letter-spacing: 0.04em;
|
||||
color: #fafafa;
|
||||
line-height: 1;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.case-label .label {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.32em;
|
||||
color: rgba(193, 18, 31, 0.95);
|
||||
}
|
||||
|
||||
/* Diagonal corner ticks — 4 small marks at the inside edge of
|
||||
the plate, like a film slate. */
|
||||
.corner-tick {
|
||||
position: absolute;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.corner-tick::before,
|
||||
.corner-tick::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background: rgba(244, 244, 244, 0.78);
|
||||
}
|
||||
|
||||
.corner-tick::before {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 22px;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.corner-tick::after {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.corner-tick.top-left {
|
||||
top: 56px;
|
||||
left: 56px;
|
||||
}
|
||||
|
||||
.corner-tick.top-right {
|
||||
top: 56px;
|
||||
right: 56px;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.corner-tick.bottom-left {
|
||||
bottom: 56px;
|
||||
left: 56px;
|
||||
transform: scaleY(-1);
|
||||
}
|
||||
|
||||
.corner-tick.bottom-right {
|
||||
bottom: 56px;
|
||||
right: 56px;
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 250 KiB |
Binary file not shown.
Binary file not shown.
@@ -1,142 +0,0 @@
|
||||
[
|
||||
{
|
||||
"text": "the",
|
||||
"start": 0.1,
|
||||
"end": 0.31
|
||||
},
|
||||
{
|
||||
"text": "makers",
|
||||
"start": 0.31,
|
||||
"end": 0.86
|
||||
},
|
||||
{
|
||||
"text": "of",
|
||||
"start": 0.94,
|
||||
"end": 1.13
|
||||
},
|
||||
{
|
||||
"text": "Subnautica,",
|
||||
"start": 1.13,
|
||||
"end": 2.28
|
||||
},
|
||||
{
|
||||
"text": "and",
|
||||
"start": 2.28,
|
||||
"end": 2.44
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 2.44,
|
||||
"end": 2.54
|
||||
},
|
||||
{
|
||||
"text": "promised",
|
||||
"start": 2.54,
|
||||
"end": 2.99
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 2.99,
|
||||
"end": 3.12
|
||||
},
|
||||
{
|
||||
"text": "founders",
|
||||
"start": 3.12,
|
||||
"end": 3.65
|
||||
},
|
||||
{
|
||||
"text": "$250",
|
||||
"start": 3.75,
|
||||
"end": 4.71
|
||||
},
|
||||
{
|
||||
"text": "million",
|
||||
"start": 4.71,
|
||||
"end": 5.4
|
||||
},
|
||||
{
|
||||
"text": "if",
|
||||
"start": 5.44,
|
||||
"end": 5.6
|
||||
},
|
||||
{
|
||||
"text": "their",
|
||||
"start": 5.6,
|
||||
"end": 5.95
|
||||
},
|
||||
{
|
||||
"text": "next",
|
||||
"start": 5.95,
|
||||
"end": 6.23
|
||||
},
|
||||
{
|
||||
"text": "game",
|
||||
"start": 6.24,
|
||||
"end": 6.64
|
||||
},
|
||||
{
|
||||
"text": "hits",
|
||||
"start": 6.64,
|
||||
"end": 6.91
|
||||
},
|
||||
{
|
||||
"text": "certain",
|
||||
"start": 6.98,
|
||||
"end": 7.36
|
||||
},
|
||||
{
|
||||
"text": "targets.",
|
||||
"start": 7.36,
|
||||
"end": 7.98
|
||||
},
|
||||
{
|
||||
"text": "And",
|
||||
"start": 8.06,
|
||||
"end": 8.14
|
||||
},
|
||||
{
|
||||
"text": "at",
|
||||
"start": 8.14,
|
||||
"end": 8.25
|
||||
},
|
||||
{
|
||||
"text": "the",
|
||||
"start": 8.25,
|
||||
"end": 8.41
|
||||
},
|
||||
{
|
||||
"text": "time,",
|
||||
"start": 8.41,
|
||||
"end": 8.72
|
||||
},
|
||||
{
|
||||
"text": "he",
|
||||
"start": 8.72,
|
||||
"end": 8.82
|
||||
},
|
||||
{
|
||||
"text": "thought",
|
||||
"start": 8.83,
|
||||
"end": 9.19
|
||||
},
|
||||
{
|
||||
"text": "there",
|
||||
"start": 9.24,
|
||||
"end": 9.48
|
||||
},
|
||||
{
|
||||
"text": "was",
|
||||
"start": 9.48,
|
||||
"end": 9.63
|
||||
},
|
||||
{
|
||||
"text": "no",
|
||||
"start": 9.64,
|
||||
"end": 9.75
|
||||
},
|
||||
{
|
||||
"text": "way-",
|
||||
"start": 9.75,
|
||||
"end": 9.98
|
||||
}
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"name": "HDR Regression — SDR Baseline (Velvet Standard)",
|
||||
"description": "Baseline 1920x1080 SDR composition with all media types (video, audio, images), CSS/GSAP transitions, captions, and the Velvet Standard visual identity. Used to confirm that introducing the HDR pipeline does not regress SDR output.",
|
||||
"tags": ["hdr-regression", "sdr", "video", "audio", "image", "captions", "css-transitions", "velvet-standard"],
|
||||
|
||||
"minPsnr": 28,
|
||||
"maxFrameFailures": 0,
|
||||
|
||||
"minAudioCorrelation": 0.85,
|
||||
"maxAudioLagWindows": 120,
|
||||
|
||||
"renderConfig": {
|
||||
"fps": 30
|
||||
}
|
||||
}
|
||||
@@ -1,170 +0,0 @@
|
||||
<template id="captions-template">
|
||||
<div
|
||||
data-composition-id="captions"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<div id="captions-container"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
|
||||
<style>
|
||||
[data-composition-id="captions"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 96px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#captions-container {
|
||||
position: relative;
|
||||
width: 1280px;
|
||||
min-height: 120px;
|
||||
text-align: center;
|
||||
font-family: "Cormorant Garamond", "Playfair Display", "Times New Roman", Times, serif;
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
font-size: 56px;
|
||||
color: #fffaf0;
|
||||
text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
|
||||
letter-spacing: -0.005em;
|
||||
}
|
||||
|
||||
.vs-chunk {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 0 18px;
|
||||
}
|
||||
|
||||
.vs-word {
|
||||
opacity: 0;
|
||||
display: inline-block;
|
||||
transition: none;
|
||||
color: #fffaf0;
|
||||
}
|
||||
|
||||
.vs-word.is-active {
|
||||
color: #c9a55a;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
const TRANSCRIPT = [
|
||||
{ "text": "the", "start": 0.1, "end": 0.31 },
|
||||
{ "text": "makers", "start": 0.31, "end": 0.86 },
|
||||
{ "text": "of", "start": 0.94, "end": 1.13 },
|
||||
{ "text": "Subnautica,", "start": 1.13, "end": 2.28 },
|
||||
{ "text": "and", "start": 2.28, "end": 2.44 },
|
||||
{ "text": "he", "start": 2.44, "end": 2.54 },
|
||||
{ "text": "promised", "start": 2.54, "end": 2.99 },
|
||||
{ "text": "the", "start": 2.99, "end": 3.12 },
|
||||
{ "text": "founders", "start": 3.12, "end": 3.65 },
|
||||
{ "text": "$250", "start": 3.75, "end": 4.71 },
|
||||
{ "text": "million", "start": 4.71, "end": 5.4 },
|
||||
{ "text": "if", "start": 5.44, "end": 5.6 },
|
||||
{ "text": "their", "start": 5.6, "end": 5.95 },
|
||||
{ "text": "next", "start": 5.95, "end": 6.23 },
|
||||
{ "text": "game", "start": 6.24, "end": 6.64 },
|
||||
{ "text": "hits", "start": 6.64, "end": 6.91 },
|
||||
{ "text": "certain", "start": 6.98, "end": 7.36 },
|
||||
{ "text": "targets.", "start": 7.36, "end": 7.98 },
|
||||
{ "text": "And", "start": 8.06, "end": 8.14 },
|
||||
{ "text": "at", "start": 8.14, "end": 8.25 },
|
||||
{ "text": "the", "start": 8.25, "end": 8.41 },
|
||||
{ "text": "time,", "start": 8.41, "end": 8.72 },
|
||||
{ "text": "he", "start": 8.72, "end": 8.82 },
|
||||
{ "text": "thought", "start": 8.83, "end": 9.19 },
|
||||
{ "text": "there", "start": 9.24, "end": 9.48 },
|
||||
{ "text": "was", "start": 9.48, "end": 9.63 },
|
||||
{ "text": "no", "start": 9.64, "end": 9.75 },
|
||||
{ "text": "way-", "start": 9.75, "end": 9.98 }
|
||||
];
|
||||
|
||||
const container = document.getElementById("captions-container");
|
||||
const tl = gsap.timeline({ paused: true });
|
||||
|
||||
// Group into chunks of 4 words
|
||||
const chunks = [];
|
||||
let current = [];
|
||||
for (let i = 0; i < TRANSCRIPT.length; i++) {
|
||||
current.push(TRANSCRIPT[i]);
|
||||
if (current.length >= 4 || i === TRANSCRIPT.length - 1) {
|
||||
chunks.push(current);
|
||||
current = [];
|
||||
}
|
||||
}
|
||||
|
||||
chunks.forEach((chunk) => {
|
||||
const start = chunk[0].start;
|
||||
const end = chunk[chunk.length - 1].end;
|
||||
|
||||
const div = document.createElement("div");
|
||||
div.className = "vs-chunk";
|
||||
container.appendChild(div);
|
||||
|
||||
// Reveal chunk container
|
||||
tl.fromTo(
|
||||
div,
|
||||
{ opacity: 0, y: 14 },
|
||||
{ opacity: 1, y: 0, duration: 0.35, ease: "sine.out" },
|
||||
start - 0.1,
|
||||
);
|
||||
|
||||
chunk.forEach((wordData, wordIndex) => {
|
||||
const w = document.createElement("span");
|
||||
w.className = "vs-word";
|
||||
w.innerText = wordData.text;
|
||||
div.appendChild(w);
|
||||
|
||||
// Word entrance
|
||||
tl.to(
|
||||
w,
|
||||
{ opacity: 1, duration: 0.18, ease: "sine.out" },
|
||||
wordData.start,
|
||||
);
|
||||
|
||||
// Highlight on (gold)
|
||||
tl.to(
|
||||
w,
|
||||
{ color: "#c9a55a", duration: 0.08 },
|
||||
wordData.start,
|
||||
);
|
||||
|
||||
// Highlight off when next word fires (or chunk end)
|
||||
const offTime =
|
||||
wordIndex < chunk.length - 1 ? chunk[wordIndex + 1].start : end;
|
||||
tl.to(
|
||||
w,
|
||||
{ color: "#fffaf0", duration: 0.08 },
|
||||
offTime,
|
||||
);
|
||||
});
|
||||
|
||||
// Hide chunk after last word
|
||||
tl.to(
|
||||
div,
|
||||
{ opacity: 0, y: -10, duration: 0.35, ease: "sine.in" },
|
||||
end + 0.05,
|
||||
);
|
||||
// Deterministic kill — the karaoke word tweens can race the exit fade
|
||||
tl.set(div, { opacity: 0, visibility: "hidden" }, end + 0.4);
|
||||
});
|
||||
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["captions"] = tl;
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,126 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>HDR Regression — SDR Baseline</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="main"
|
||||
data-composition-id="main-comp"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
data-width="1920"
|
||||
data-height="1080"
|
||||
>
|
||||
<!-- ============================================================
|
||||
Velvet Standard — six scenes, ~10s, all hand-staged with
|
||||
CSS/GSAP transitions (no shaders). Tests SDR baseline path.
|
||||
============================================================ -->
|
||||
|
||||
<!-- Scene 1: cold open title card (0.0 – 1.6s) -->
|
||||
<section id="scene-intro" class="scene title-card">
|
||||
<div class="eyebrow">Hyperframes · HDR Regression Suite</div>
|
||||
<h1 class="display">
|
||||
A study in <span class="accent">light</span>,<br />precisely composed.
|
||||
</h1>
|
||||
<div class="colophon">
|
||||
<span>Volume I</span>
|
||||
<span>SDR · BT.709</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 2: SDR video A (1.6 – 4.0s) -->
|
||||
<section id="scene-video-a" class="scene media-frame">
|
||||
<video
|
||||
id="vid-sdr-1"
|
||||
src="../assets/sdr-source-1.mp4"
|
||||
data-start="1.6"
|
||||
data-duration="2.4"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="vignette"></div>
|
||||
<div class="glyph">Plate I</div>
|
||||
<div class="lower-third">
|
||||
<span class="kicker">Plate I · Subnautica</span>
|
||||
<span class="label">Saturation, restrained.</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 3: SDR still photograph (4.0 – 5.8s) -->
|
||||
<section id="scene-still" class="scene media-frame">
|
||||
<img
|
||||
id="img-sdr"
|
||||
src="../assets/photo-sdr.jpg"
|
||||
alt="SDR reference photograph"
|
||||
/>
|
||||
<div class="vignette"></div>
|
||||
<div class="glyph">Plate II</div>
|
||||
<div class="lower-third">
|
||||
<span class="kicker">Plate II · Reference</span>
|
||||
<span class="label">Still life, sRGB.</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 4: SDR video B (5.8 – 8.0s) -->
|
||||
<section id="scene-video-b" class="scene media-frame">
|
||||
<video
|
||||
id="vid-sdr-2"
|
||||
src="../assets/sdr-source-2.mp4"
|
||||
data-start="5.8"
|
||||
data-duration="2.2"
|
||||
muted
|
||||
playsinline
|
||||
></video>
|
||||
<div class="vignette"></div>
|
||||
<div class="glyph">Plate III</div>
|
||||
<div class="lower-third">
|
||||
<span class="kicker">Plate III · Studio cut</span>
|
||||
<span class="label">Movement, in measure.</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Scene 5: closing title (8.0 – 10.05s) -->
|
||||
<section id="scene-outro" class="scene title-card">
|
||||
<div class="eyebrow">Composition · Velvet Standard</div>
|
||||
<h1 class="display">
|
||||
<span class="accent">SDR</span> ·<br />the control plate.
|
||||
</h1>
|
||||
<div class="colophon">
|
||||
<span>BT.709 · 8-bit · Rec.709</span>
|
||||
<span>End of Volume I</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============================================================
|
||||
Voiceover — single audio track for the entire composition
|
||||
============================================================ -->
|
||||
<audio
|
||||
id="vo"
|
||||
src="../assets/voiceover.mp3"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></audio>
|
||||
|
||||
<!-- ============================================================
|
||||
Captions — sub-composition, lower-third, 5–word chunks
|
||||
============================================================ -->
|
||||
<div
|
||||
id="captions-comp"
|
||||
data-composition-id="captions"
|
||||
data-composition-src="compositions/captions.html"
|
||||
data-start="0"
|
||||
data-duration="10.0"
|
||||
></div>
|
||||
|
||||
<script>
|
||||
window.__timelines = window.__timelines || {};
|
||||
</script>
|
||||
<script src="script.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,112 +0,0 @@
|
||||
/* Velvet Standard — six-scene SDR baseline.
|
||||
Motion rules: sine.inOut for all morphs, power1.out for entrances,
|
||||
long sustains, slow cross-warp morphs. No bouncing, no overshoot. */
|
||||
|
||||
(function () {
|
||||
const tl = gsap.timeline({ paused: true, defaults: { ease: "sine.inOut" } });
|
||||
|
||||
/* The whole comp is 10s. Six scenes, each with a slow Velvet handoff:
|
||||
0.00 – 1.60 intro card (1.60s on screen, 0.45s morph)
|
||||
1.60 – 4.00 sdr video A (2.40s)
|
||||
4.00 – 5.80 sdr still (1.80s)
|
||||
5.80 – 8.00 sdr video B (2.20s)
|
||||
8.00 – 10.00 outro card (2.00s)
|
||||
*/
|
||||
|
||||
const FADE = 0.55;
|
||||
|
||||
const scenes = [
|
||||
{ id: "scene-intro", in: 0.0, out: 1.6 },
|
||||
{ id: "scene-video-a", in: 1.6, out: 4.0 },
|
||||
{ id: "scene-still", in: 4.0, out: 5.8 },
|
||||
{ id: "scene-video-b", in: 5.8, out: 8.0 },
|
||||
{ id: "scene-outro", in: 8.0, out: 10.0 },
|
||||
];
|
||||
|
||||
scenes.forEach((s) => {
|
||||
const el = document.getElementById(s.id);
|
||||
|
||||
tl.fromTo(
|
||||
el,
|
||||
{ opacity: 0, scale: 1.04, filter: "blur(8px) brightness(0.85)" },
|
||||
{
|
||||
opacity: 1,
|
||||
scale: 1.0,
|
||||
filter: "blur(0px) brightness(1)",
|
||||
duration: FADE,
|
||||
ease: "power1.out",
|
||||
},
|
||||
s.in,
|
||||
);
|
||||
|
||||
if (s.out < 10.0) {
|
||||
tl.to(
|
||||
el,
|
||||
{
|
||||
opacity: 0,
|
||||
scale: 0.985,
|
||||
filter: "blur(6px) brightness(0.92)",
|
||||
duration: FADE,
|
||||
ease: "sine.inOut",
|
||||
},
|
||||
s.out - FADE,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
/* ----- Inner motion per scene ----- */
|
||||
|
||||
// Intro: serif headline glides up + gold rule sweeps in
|
||||
const introCard = document.querySelector("#scene-intro .display");
|
||||
const introBrow = document.querySelector("#scene-intro .eyebrow");
|
||||
if (introCard && introBrow) {
|
||||
tl.from(introBrow, { y: 14, opacity: 0, duration: 0.7, ease: "power1.out" }, 0.05);
|
||||
tl.from(introCard, { y: 26, opacity: 0, duration: 0.95, ease: "power1.out" }, 0.18);
|
||||
}
|
||||
|
||||
// SDR Video A: subtle Ken Burns push-in
|
||||
const vidA = document.getElementById("vid-sdr-1");
|
||||
if (vidA) {
|
||||
tl.fromTo(
|
||||
vidA,
|
||||
{ scale: 1.06 },
|
||||
{ scale: 1.0, duration: 2.4, ease: "sine.out" },
|
||||
1.6,
|
||||
);
|
||||
}
|
||||
|
||||
// Still: slow horizontal drift to give photo motion
|
||||
const still = document.getElementById("img-sdr");
|
||||
if (still) {
|
||||
tl.fromTo(
|
||||
still,
|
||||
{ scale: 1.08, x: -20 },
|
||||
{ scale: 1.02, x: 18, duration: 1.8, ease: "sine.inOut" },
|
||||
4.0,
|
||||
);
|
||||
}
|
||||
|
||||
// SDR Video B: pull-back, opposite Ken Burns
|
||||
const vidB = document.getElementById("vid-sdr-2");
|
||||
if (vidB) {
|
||||
tl.fromTo(
|
||||
vidB,
|
||||
{ scale: 1.0 },
|
||||
{ scale: 1.06, duration: 2.2, ease: "sine.inOut" },
|
||||
5.8,
|
||||
);
|
||||
}
|
||||
|
||||
// Outro: gold rule sweeps in, headline lifts
|
||||
const outroDisplay = document.querySelector("#scene-outro .display");
|
||||
const outroBrow = document.querySelector("#scene-outro .eyebrow");
|
||||
const outroFoot = document.querySelector("#scene-outro .colophon");
|
||||
if (outroDisplay && outroBrow && outroFoot) {
|
||||
tl.from(outroBrow, { y: 12, opacity: 0, duration: 0.7, ease: "power1.out" }, 8.05);
|
||||
tl.from(outroDisplay, { y: 20, opacity: 0, duration: 0.85, ease: "power1.out" }, 8.18);
|
||||
tl.from(outroFoot, { y: 8, opacity: 0, duration: 0.6, ease: "power1.out" }, 8.55);
|
||||
}
|
||||
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["main-comp"] = tl;
|
||||
})();
|
||||
@@ -1,171 +0,0 @@
|
||||
/* Velvet Standard — Massimo Vignelli editorial reduction.
|
||||
Deep navy + cream, generous whitespace, Bodoni-style serif headlines. */
|
||||
|
||||
:root {
|
||||
--ink: #fffaf0; /* warm cream */
|
||||
--paper: #0b0d1a; /* near-black with navy bias */
|
||||
--navy: #1a237e; /* deep editorial navy */
|
||||
--gold: #c9a55a; /* aged gold accent */
|
||||
--rule: rgba(255, 250, 240, 0.18);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font-family: "Cormorant Garamond", "Playfair Display", "Times New Roman", Times, serif;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#main {
|
||||
position: relative;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
background: var(--paper);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.scene {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
.scene video,
|
||||
.scene img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* ----- title cards (Velvet Standard layout) ----- */
|
||||
|
||||
.title-card {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--paper);
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto 1fr;
|
||||
align-items: center;
|
||||
padding: 96px 144px;
|
||||
}
|
||||
|
||||
.title-card .eyebrow {
|
||||
font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: 300;
|
||||
font-size: 22px;
|
||||
letter-spacing: 0.42em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gold);
|
||||
align-self: end;
|
||||
border-bottom: 1px solid var(--rule);
|
||||
padding-bottom: 24px;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.title-card .display {
|
||||
font-family: "Cormorant Garamond", "Playfair Display", "Times New Roman", Times, serif;
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
font-size: 152px;
|
||||
line-height: 1.02;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--ink);
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.title-card .display .accent {
|
||||
color: var(--gold);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.title-card .colophon {
|
||||
font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: 300;
|
||||
font-size: 18px;
|
||||
letter-spacing: 0.3em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink);
|
||||
opacity: 0.65;
|
||||
align-self: end;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* ----- media frames ----- */
|
||||
|
||||
.media-frame .vignette {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: radial-gradient(
|
||||
ellipse at center,
|
||||
rgba(0, 0, 0, 0) 55%,
|
||||
rgba(11, 13, 26, 0.55) 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.media-frame .lower-third {
|
||||
position: absolute;
|
||||
left: 96px;
|
||||
bottom: 96px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 20px 28px;
|
||||
border-left: 2px solid var(--gold);
|
||||
}
|
||||
|
||||
.media-frame .lower-third .kicker {
|
||||
font-family: "Inter", sans-serif;
|
||||
font-weight: 300;
|
||||
font-size: 18px;
|
||||
letter-spacing: 0.32em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.media-frame .lower-third .label {
|
||||
font-family: "Cormorant Garamond", serif;
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
font-size: 56px;
|
||||
line-height: 1;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* ----- corner glyph (rule signature) ----- */
|
||||
|
||||
.glyph {
|
||||
position: absolute;
|
||||
top: 56px;
|
||||
right: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
font-family: "Inter", sans-serif;
|
||||
font-weight: 300;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.4em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink);
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.glyph::before {
|
||||
content: "";
|
||||
width: 38px;
|
||||
height: 1px;
|
||||
background: var(--gold);
|
||||
}
|
||||
Reference in New Issue
Block a user