aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-04 23:10:05 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-04 23:10:05 +0100
commit610fca510d4cafd4ed5851109bca6fe17154c578 (patch)
treeebde15252cd1df9d7c4fa6954f828143033400af /src
parent623297b18a812c3f64c9ae98df695f064c0ed240 (diff)
Default replay to constant bitrate
Diffstat (limited to 'src')
-rw-r--r--src/Config.cpp1
-rw-r--r--src/gui/SettingsPage.cpp14
2 files changed, 12 insertions, 3 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index 4bf9101..802fe3d 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -22,6 +22,7 @@ namespace gsr {
record_config.save_directory = default_save_directory;
record_config.record_options.audio_tracks.push_back("default_output");
+ replay_config.record_options.video_quality = "custom";
replay_config.save_directory = default_save_directory;
replay_config.record_options.audio_tracks.push_back("default_output");
diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp
index 7a27b00..eb9523d 100644
--- a/src/gui/SettingsPage.cpp
+++ b/src/gui/SettingsPage.cpp
@@ -237,15 +237,23 @@ namespace gsr {
list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video quality:", get_color_theme().text_color));
auto video_quality_box = std::make_unique<ComboBox>(&get_theme().body_font);
- video_quality_box->add_item("Custom (Constant bitrate, recommended for live streaming)", "custom");
+ if(type == Type::REPLAY || type == Type::STREAM)
+ video_quality_box->add_item("Constant bitrate (Recommended)", "custom");
+ else
+ video_quality_box->add_item("Constant bitrate", "custom");
video_quality_box->add_item("Medium", "medium");
video_quality_box->add_item("High", "high");
- video_quality_box->add_item("Very high (Recommended)", "very_high");
+ if(type == Type::REPLAY || type == Type::STREAM)
+ video_quality_box->add_item("Very high", "very_high");
+ else
+ video_quality_box->add_item("Very high (Recommended)", "very_high");
video_quality_box->add_item("Ultra", "ultra");
- if(type == Type::STREAM)
+
+ if(type == Type::REPLAY || type == Type::STREAM)
video_quality_box->set_selected_item("custom");
else
video_quality_box->set_selected_item("very_high");
+
video_quality_box_ptr = video_quality_box.get();
list->add_widget(std::move(video_quality_box));