Skip to content

feat(Talk): configure bitrate limits - #8994

Merged
szaimen merged 1 commit into
nextcloud:mainfrom
DevSysEngineer:feature/talk_bitrate
Nov 25, 2026
Merged

szaimen merged 1 commit into
nextcloud:mainfrom
DevSysEngineer:feature/talk_bitrate

Conversation

@DevSysEngineer

Copy link
Copy Markdown
Contributor

Motivation

This PR implements the configuration requested in [discussion #7830](#7830): allowing administrators to set TALK_MAX_STREAM_BITRATE and TALK_MAX_SCREEN_BITRATE through the AIO mastercontainer.

We currently use our own [Puppet workaround](https://github.com/DevSysEngineer/puppet-modules/blob/main/docker/manifests/nextcloud.pp) to increase these limits in our Nextcloud AIO deployment. Since increasing them, we have observed noticeably sharper video and much clearer screen sharing. The improvement is significant in everyday use.

In our deployment in the Netherlands, our upload and download capacity are sufficient for the higher limits we use. Being able to configure these limits allows us to make better use of that available bandwidth.

The existing defaults remain unchanged: 1048576 bits per second for publishing media streams and 2097152 bits per second for screen sharing. Administrators can opt into higher limits when their infrastructure and connections support them.

Why configure this through AIO?

The Talk container already supports both environment variables. The missing part is passing them from the mastercontainer to the managed Talk container.

Our current workaround modifies the generated signaling.conf and restarts signaling. Because AIO regenerates this configuration when the container starts, the overrides must subsequently be reapplied by Puppet. This adds maintenance work and means the intended settings are not consistently present from startup.

Passing the values through AIO’s existing configuration mechanism lets the Talk container generate the correct configuration immediately. It would allow us to remove that custom workaround.

This follows the same general configuration principle discussed in [PR #8787](#8787): administrators configure the mastercontainer, and AIO applies the relevant settings when creating its managed containers. This PR is limited to the two existing Talk bitrate settings.

Changes

  • Expose TALK_MAX_STREAM_BITRATE and TALK_MAX_SCREEN_BITRATE through the mastercontainer and pass them only to the Talk container.
  • Validate non-empty values at startup as positive decimal integers in bits per second, with clear errors for invalid input.
  • Use the existing configuration persistence mechanism, consistent with TALK_PORT. Omitting a variable retains its saved value; explicitly setting it to an empty string restores the Talk default after container recreation.
  • Preserve the existing defaults and reuse the Talk container’s existing configuration generation.
  • Update Docker Compose examples, manual-install configuration and Helm generation, avoiding duplicate Helm settings.
  • Document configuration, persistence, reset behaviour and the required container recreation steps.
  • Add automated coverage for validation, persistence, placeholder substitution, signaling configuration and generated Compose/Helm configuration, integrated into the existing CI workflows.

Summary

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

This change was developed with assistance from OpenAI Codex. The motivation and the reported improvements in video and screen-sharing quality come from our own experience using higher bitrate limits through our existing Puppet configuration.

@szaimen szaimen added 3. to review Waiting for reviews enhancement New feature or request labels Nov 11, 2026
@szaimen szaimen added this to the next milestone Nov 11, 2026
@szaimen
szaimen requested a review from pabzm November 11, 2026 11:35
@pabzm pabzm modified the milestones: v15.1.0, next Nov 13, 2026

@szaimen szaimen left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, Thanks a lot for the PR!

Unfortunately it is a bit over-engineered from my POV.

Please focus on the implementation for now and remove the added test suites. Afterwards we could look into adding tests in a follow-up PR for this.

@szaimen szaimen added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Nov 17, 2026
Comment thread tests/QA/060-environmental-variables.md Resolved
Comment thread readme.md Resolved
Comment thread readme.md Resolved
szaimen

This comment was marked as resolved.

@DevSysEngineer

Copy link
Copy Markdown
Contributor Author

@szaimen I updated the code.

Comment thread manual-install/update-yaml.sh Resolved
Comment thread Containers/mastercontainer/start.sh Resolved
Comment thread Containers/mastercontainer/start.sh Resolved
@DevSysEngineer

Copy link
Copy Markdown
Contributor Author

@szaimen I updated the code again.

Comment thread tests/QA/060-environmental-variables.md Resolved
Comment thread tests/QA/060-environmental-variables.md Resolved

@szaimen szaimen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As last step, please squash your changes into 1 commit and then is this ready to go from my POV :)

Assisted-by: Codex:GPT-6
Signed-off-by: Kevin van Steijn <info@kvansteijn.nl>
@szaimen
szaimen force-pushed the feature/talk_bitrate branch from 88dc6fb to f2d6b63 Compare November 24, 2026 13:59
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 24, 2026

@szaimen szaimen left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just rebased and fixed the conflicts.

@szaimen szaimen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 25, 2026
@szaimen
szaimen merged commit 1160d5e into nextcloud:main Nov 25, 2026
12 of 13 checks passed
@szaimen

szaimen commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

This is now released with v15.2.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants