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

feat: Add Max Bitrate option #3628

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

utkarshdalal
Copy link

@utkarshdalal utkarshdalal commented Feb 3, 2025

Description

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

ReenigneArcher and others added 30 commits October 30, 2022 15:05
# Conflicts:
#	src/platform/windows/publish.cpp
#	src_assets/common/assets/web/config.html
# Conflicts:
#	docs/source/about/advanced_usage.rst
* added max bitrate to latest version

* Trigger workflow

* removed third party libraries that were making build fail

* removed another unneeded library

* updated tray ref

* attempt 2 at updating tray

* updated third party moonlight as well fuck this repo

* added logging to see if max bitrate is working

* removed extraneous l
@ReenigneArcher ReenigneArcher changed the title Added Max Bitrate option feat: Add Max Bitrate option Feb 3, 2025
Copy link
Member

@ReenigneArcher ReenigneArcher left a comment

Choose a reason for hiding this comment

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

I think something went wrong with your rebase.

.github/workflows/CI.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
docs/Makefile Outdated Show resolved Hide resolved
third-party/Simple-Web-Server Outdated Show resolved Hide resolved
third-party/ViGEmClient Outdated Show resolved Hide resolved
third-party/nanors Outdated Show resolved Hide resolved
third-party/nvapi-open-source-sdk Outdated Show resolved Hide resolved
third-party/wayland-protocols Outdated Show resolved Hide resolved
third-party/wlr-protocols Outdated Show resolved Hide resolved
src/video.cpp Outdated Show resolved Hide resolved
src/config.h Outdated Show resolved Hide resolved
utkarshdalal and others added 3 commits February 6, 2025 09:22
Check if max_bitrate is > 0 instead of equal

Co-authored-by: ReenigneArcher <[email protected]>
…desSettings.vue


added line break
    fixed some indentation
    fixed label for id
    placeholder should be the default value in most cases
    added missing closing div

Co-authored-by: ReenigneArcher <[email protected]>
Removed unused variables

Co-authored-by: ReenigneArcher <[email protected]>
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link
Member

@ReenigneArcher ReenigneArcher left a comment

Choose a reason for hiding this comment

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

Sorry, I just realized a few other issues. If the value is not set by the config file, then there is no default value in the cpp. I'd also like the config option as part of the video object instead of the nvhttp object.

Add default value here should fix that.
image

If you could also move this up to below min_fps_factor that would be ideal (same for config.h).
image

@@ -1151,6 +1151,7 @@ namespace config {

string_f(vars, "external_ip", nvhttp.external_ip);
list_prep_cmd_f(vars, "global_prep_cmd", config::sunshine.prep_cmds);
int_f(vars, "max_bitrate", nvhttp.max_bitrate);
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be part of the video section.

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.

2 participants