Skip to content

Use tested hardware H.264 encoders for Linux recordings - #17

Merged
DevanMetz merged 1 commit into
mainfrom
codex/hw-h264
Oct 28, 2026
Merged

DevanMetz merged 1 commit into
mainfrom
codex/hw-h264

Conversation

@DevanMetz

Copy link
Copy Markdown
Owner

Linux recordings now prefer NVENC, then VAAPI on a working render node, using cached real ffmpeg test encodes. High/standard quality maps to encoder-specific options, with libx264 fallback when discovery or recording-configuration validation fails. Diagnostics reports the selected encoder; PARITY.md documents the remaining limit.

Validation: Linux and Windows builds plus all three test projects build with zero warnings. Headless tests: 157 passed (display-dependent tests return early). Xvfb recording suite: 25 passed; the separate window-exclusion capture test fails in unchanged capture code. No hardware GPU is available here; injected probes cover hardware selection and failure paths.

Limit: this PR does not fully implement retry when the live ffmpeg process fails to start after successful validation. That requires changing FramePump.cs, explicitly excluded from this task. Recording-size/quality preflight catches encoder initialization failures before selecting the live command, but a later resource/driver failure can still end recording. Windows code is unchanged.

@DevanMetz
DevanMetz merged commit a5a53f9 into main Oct 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant