Repository navigation
Use tested hardware H.264 encoders for Linux recordings - #17
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.