From 9d76b0861eb0249194e96b663fbeca60cd5bfeb0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 9 Oct 2024 19:08:55 +0200 Subject: Add constant bitrate option --- include/Config.hpp | 1 + include/gui/SettingsPage.hpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/Config.hpp b/include/Config.hpp index 549696e..0d2c822 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -17,6 +17,7 @@ namespace gsr { int32_t record_area_width = 0; int32_t record_area_height = 0; int32_t fps = 60; + int32_t video_bitrate = 5000; bool merge_audio_tracks = true; std::vector audio_tracks; std::string color_range = "limited"; diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index e9102da..4f5a7c9 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -49,8 +49,9 @@ namespace gsr { std::unique_ptr create_audio_track_section(); std::unique_ptr create_merge_audio_tracks_checkbox(); std::unique_ptr create_audio_device_section(); - std::unique_ptr create_video_quality_box(); - std::unique_ptr create_video_quality(); + std::unique_ptr create_video_quality_box(); + std::unique_ptr create_video_bitrate_entry(); + std::unique_ptr create_video_bitrate(); std::unique_ptr create_color_range_box(); std::unique_ptr create_color_range(); std::unique_ptr create_video_quality_section(); @@ -115,6 +116,8 @@ namespace gsr { Entry *area_width_entry_ptr = nullptr; Entry *area_height_entry_ptr = nullptr; Entry *framerate_entry_ptr = nullptr; + Entry *video_bitrate_entry_ptr = nullptr; + List *video_bitrate_list_ptr = nullptr; List *audio_devices_list_ptr = nullptr; CheckBox *merge_audio_tracks_checkbox_ptr = nullptr; ComboBox *color_range_box_ptr = nullptr; -- cgit v1.2.3