Skip to content

feat: adopt the media-layer spec: Steam trailer and vertical reel presets, window:exe/hwnd targets (#107) - #164

Merged
TMHSDigital merged 1 commit into
mainfrom
feat/media-layer-spec-107
Oct 25, 2026
Merged

TMHSDigital merged 1 commit into
mainfrom
feat/media-layer-spec-107

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Closes #107: the Game-Systems media-layer checklist.

Adopted already (confirmed against the spec): the edit operation set, quality presets, input validation, two-level filter-path escaping with tests, the ffmpeg integration suite, the preset table with pad/crop reframe, the target grammar, the session registry, graceful stop, DPI-aware monitors, and even regions. The spec's escaping fixture table was missing a UNC path; added.

Gap closed: two export presets (also usable as pipeline export steps)

  • steam_trailer: 1920×1080, H.264 High, padded 5.5 Mbps CBR (nal-hrd=cbr, stays above Steam's 5 Mbps floor), AAC 48 kHz stereo at −14 LUFS, faststart.
  • vertical_reel: 1080×1920 with the footage fitted in a centred square over a blurred, filled copy of itself; audio at −14 LUFS.
  • exportPresetParts gained an optional audio filter, which pipeline appends to its audio chain. Layout labels are namespaced per step. The older presets are unchanged (a test pins that).

Dropped: title-based window grab. New targets work everywhere a target is accepted: window:exe=Code.exe picks that app's topmost window, and window:hwnd=0x1A2B (or decimal) one exact window. Enumeration now reports each window's executable, with process names cached per pid. Results still report the matched title, and exe= warns when several windows matched. #113 asked for the same forms.

Tests

  • Unit: both presets' args, the old presets unchanged, the selectors (hex/decimal hwnd, exe with or without .exe, several matches, clear errors), the UNC escape, and pipeline carrying the preset audio filter and namespaced labels.
  • Integration (real ffmpeg, runs on CI): steam_trailer probes as 1920×1080 High yuv420p 30 fps, bit rate above 5 Mb/s, AAC 48 kHz stereo, loudness between −16 and −12 LUFS. vertical_reel is 1080×1920 with a blurred fill, not black bars.
  • Live harness: 18/18. Selectors also checked against real windows.

Bumps to 0.31.0.

🤖 Generated with Claude Code

…sets, window:exe/hwnd targets (#107)

steam_trailer (1080p High, padded 5.5M CBR, 48 kHz at -14 LUFS) and
vertical_reel (footage over a blurred fill, -14 LUFS) export presets,
also as pipeline steps. window:exe= and window:hwnd= pick a window
without relying on its title. UNC escape fixture.

Closes #107

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 25, 2026
@TMHSDigital
TMHSDigital merged commit 2e1513f into main Oct 25, 2026
8 checks passed
@TMHSDigital
TMHSDigital deleted the feat/media-layer-spec-107 branch October 25, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt Game-Systems canonical specs: media-layer

1 participant