Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): x264/x265 params not being set correctly #8587

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Apr 7, 2024

Description

Passing -x264-params multiple times overwrites the full set of parameters, so this PR changes the logic here to pass it once with all relevant parameters.

Of note, the intent behind setting these flags is to lower CPU usage in constrained environments. Disabling the thread pool is highly detrimental to performance, so it's only passed when specifying 1 thread.

Fixes #8494

How Has This Been Tested?

Tested that transcoding H.264 works when the thread count is set to 0 as well as 1, and that the latter shows much more mild CPU usage

@mertalev mertalev merged commit 0d130b8 into main Apr 7, 2024
24 of 25 checks passed
@mertalev mertalev deleted the fix/server-x264-x265-params branch April 7, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transcoding: Using x264-params/x265-params etc. multiple times will override any previously set values
2 participants