Add constant bitrate option

This commit is contained in:
dec05eba
2024-10-09 19:08:55 +02:00
parent 61c9b4918e
commit 9d76b0861e
5 changed files with 60 additions and 13 deletions

View File

@@ -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<std::string> audio_tracks;
std::string color_range = "limited";

View File

@@ -49,8 +49,9 @@ namespace gsr {
std::unique_ptr<List> create_audio_track_section();
std::unique_ptr<CheckBox> create_merge_audio_tracks_checkbox();
std::unique_ptr<Widget> create_audio_device_section();
std::unique_ptr<ComboBox> create_video_quality_box();
std::unique_ptr<List> create_video_quality();
std::unique_ptr<List> create_video_quality_box();
std::unique_ptr<Entry> create_video_bitrate_entry();
std::unique_ptr<List> create_video_bitrate();
std::unique_ptr<ComboBox> create_color_range_box();
std::unique_ptr<List> create_color_range();
std::unique_ptr<List> 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;