-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add max bitrate option #1463
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
Add max bitrate option #1463
Conversation
v0.15.0 resubmit
v0.15.0 resubmit
v0.15.0 resubmit
|
Your PR was set to |
ReenigneArcher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I have some changes to request. In addition to the other comments, we also need to update the advanced usage section of the docs.
src/platform/windows/publish.cpp
Outdated
|
|
||
| extern "C" { | ||
| constexpr auto DNS_REQUEST_PENDING = 9506L; | ||
| constexpr auto MY_DNS_REQUEST_PENDING = 9506L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really name variables "my_variable".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the change I had to make for the CI, it was failing with this error otherwise - https://github.com/utkarshdalal/Sunshine-GameAway/actions/runs/5632865670/job/15261219026. Screenshot below.

I can name it something else also if you like, but this variable name was conflicting with a reserved variable name.
|
Also, there was no change to the CI. Guessing you were working off the master branch, and fixed something we already fixed in nightly? |
# Conflicts: # src/platform/windows/publish.cpp # src_assets/common/assets/web/config.html
|
@ReenigneArcher The PR is updated, the only thing that I didn't change was renaming the variable to |
ReenigneArcher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few more requested changes.
Regarding the variable, I think it should be changed back. I'm a bit confused why it failed for you as we have many builds going daily and not had any failures from this recently. My first inclination is that this was something that we fixed a while back in the nightly branch, but you were working from the master branch, so didn't have our fixes. (@cgutman thoughts?)
| }, // supported resolutions | ||
|
|
||
| { 10, 30, 60, 90, 120 }, // supported fps | ||
| 0, // max bitrate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 0, // max bitrate | |
| 0, // max bitrate |
2 spaces (linting rules)
| v-model="config.max_bitrate" | ||
| /> | ||
| <div class="form-text"> | ||
| Maximum bitrate for streaming in Kbps. If not specified, the default bitrate is used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Maximum bitrate for streaming in Kbps. If not specified, the default bitrate is used | |
| Maximum bitrate for streaming in Kbps. |
We always use the default value if not specified (or if the value provided by the user is outside an acceptable range). Actually we should probably enforce a max value for the setting.
| list_string_f(vars, "resolutions"s, nvhttp.resolutions); | ||
| list_int_f(vars, "fps"s, nvhttp.fps); | ||
| list_prep_cmd_f(vars, "global_prep_cmd", config::sunshine.prep_cmds); | ||
| int_f(vars, "max_bitrate", nvhttp.max_bitrate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| int_f(vars, "max_bitrate", nvhttp.max_bitrate); | |
| int_between_f(vars, "max_bitrate", nvhttp.max_bitrate, { 0, 150000 }); |
|
@ReenigneArcher I've addressed all your comments including renaming the variable. Maybe you haven't seen it break because the action (Windows Build) only runs when pushing to the master branch. Anyway, whenever you want to make a new version, if it breaks changing the name of this variable is the fix. |
|
It runs all all PRs, as well as push events to nightly and master branches. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@ReenigneArcher signed. |
ReenigneArcher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found an additional item to change. Placeholder should be the default value.
| type="number" | ||
| class="form-control" | ||
| id="max_bitrate" | ||
| placeholder="5000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| placeholder="5000" | |
| placeholder="0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's done, sorry for the delay I missed the notification.
# Conflicts: # docs/source/about/advanced_usage.rst
|
Anything remaining to be done on this issue? |
Agreement from other team members to merge this. |
|
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
|
I mean you guys aren't reviewing it so not sure what you want from me
…On Sun, 31 Mar, 2024, 14:06 LizardByte-bot, ***@***.***> wrote:
It looks like this PR has been idle for 90 days. If it's still something
you're working on or would like to pursue, please leave a comment or update
your branch. Otherwise, we'll be closing this PR in 10 days to reduce our
backlog. Thanks!
—
Reply to this email directly, view it on GitHub
<#1463 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4SWC4UXGUOAMDZHV4KMGDY27NZDAVCNFSM6AAAAAA2UO5LB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGYZDIMZTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@utkarshdalal I apologize, but at this time our team doesn't feel that this feature would be valuable to Sunshine. We can possibly revisit it in the future if there is more interest from users. |
Description
Added a parameter for max bitrate to the web UI, config file and
video.cpp. Additionally, made some small changes to fix CI deployment script for Windows - renamed a conflicting parameter.Screenshot
Issues Fixed or Closed
Type of Change
.github/...)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.