-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Changes from all commits
660d8e1
1e6d9da
8509ee7
e1b112c
08d623c
b2fe042
b2c5da2
09dff34
446825b
9563419
0dfbcfd
483e225
d70d084
31e8b79
9cfa228
6d39591
23fbeae
d8b62ff
72551fe
3fb13de
5f49733
3955d2d
5bca024
415fe56
66e8b9f
82416e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -403,6 +403,7 @@ namespace config { | |||||
| }, // supported resolutions | ||||||
|
|
||||||
| { 10, 30, 60, 90, 120 }, // supported fps | ||||||
| 0, // max bitrate | ||||||
| }; | ||||||
|
|
||||||
| input_t input { | ||||||
|
|
@@ -993,6 +994,7 @@ namespace config { | |||||
| 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); | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| string_f(vars, "audio_sink", audio.sink); | ||||||
| string_f(vars, "virtual_sink", audio.virtual_sink); | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -228,6 +228,19 @@ <h2 class="accordion-header"> | |||||
| resolutions and fps are supported.<br> | ||||||
| This setting does <b>not</b> change how the screen stream is sent to Moonlight | ||||||
| </div> | ||||||
| <div class="mb-3"> | ||||||
| <label for="max_bitrate" class="form-label">Max Bitrate</label> | ||||||
| <input | ||||||
| type="number" | ||||||
| class="form-control" | ||||||
| id="max_bitrate" | ||||||
| placeholder="5000" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's done, sorry for the delay I missed the notification. |
||||||
| v-model="config.max_bitrate" | ||||||
| /> | ||||||
| <div class="form-text"> | ||||||
| Maximum bitrate for streaming in Kbps. If not specified, the default bitrate is used | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
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. |
||||||
| </div> | ||||||
| </div> | ||||||
| </div> | ||||||
| <!-- Mapping Key AltRight to Key Windows --> | ||||||
| <div class="mb-3"> | ||||||
|
|
@@ -1164,10 +1177,12 @@ <h2 class="accordion-header"> | |||||
| "encoder": "", | ||||||
| "fps": "[10,30,60,90,120]", | ||||||
| "gamepad": "auto", | ||||||
| "global_prep_cmd": "[]", | ||||||
| "hevc_mode": 0, | ||||||
| "av1_mode": 0, | ||||||
| "key_rightalt_to_key_win": "disabled", | ||||||
| "keyboard": "enabled", | ||||||
| "max_bitrate": 0, | ||||||
| "min_log_level": 2, | ||||||
| "mouse": "enabled", | ||||||
| "nvenc_h264_cavlc": "disabled", | ||||||
|
|
@@ -1184,7 +1199,6 @@ <h2 class="accordion-header"> | |||||
| "vt_coder": "auto", | ||||||
| "vt_realtime": "enabled", | ||||||
| "vt_software": "auto", | ||||||
| "global_prep_cmd": "[]", | ||||||
| } | ||||||
|
|
||||||
| new Vue({ | ||||||
|
|
||||||
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.
2 spaces (linting rules)