Increase bitrate to 150 Mbps

This commit is contained in:
rock88 2020-05-08 22:29:43 +03:00
parent f0ad543051
commit ae25e8fbcd
2 changed files with 5 additions and 4 deletions

View file

@ -103,12 +103,12 @@ SettingsWindow::SettingsWindow(nanogui::Widget* parent): ContentWindow(parent, "
auto video_bitrate_label = container()->add<Label>(bitrate_str);
auto video_bitrate_slider = container()->add<Slider>();
video_bitrate_slider->set_highlight_color(Color(62, 78, 184, 255));
video_bitrate_slider->set_range({0.5, 30});
video_bitrate_slider->set_range({0.5, 150});
video_bitrate_slider->set_value(float(Settings::settings()->bitrate()) / 1000);
video_bitrate_slider->set_highlighted_range({0, float(Settings::settings()->bitrate()) / 1000 / 30});
video_bitrate_slider->set_fixed_size(Size(200, 30));
video_bitrate_slider->set_highlighted_range({0, float(Settings::settings()->bitrate()) / 1000 / 150});
video_bitrate_slider->set_fixed_size(Size(300, 30));
video_bitrate_slider->set_callback([video_bitrate_label, video_bitrate_slider](auto value) {
video_bitrate_slider->set_highlighted_range({0, value / 30});
video_bitrate_slider->set_highlighted_range({0, value / 150});
float bitrate = round(2.0 * value) / 2.0;
char bitrate_str[100];
sprintf(bitrate_str, "Video bitrate: %0.1f Mbps", bitrate);

View file

@ -41,6 +41,7 @@ StreamWindow::StreamWindow(Widget *parent, const std::string &address, int app_i
break;
case H265:
m_config.supportsHevc = 1;
m_config.hevcBitratePercentageMultiplier = 75;
break;
default:
break;