aboutsummaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-07 01:55:20 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-07 01:55:42 +0200
commitc9362b68b1cc9d9b31e00fc3f88947c5613c65d0 (patch)
tree726ebe5eac2a89d47415c2939cc00f05e75a57a4 /src/config.hpp
parent7ee360b0d44956691200791746880bf704c0c0b1 (diff)
Add constant bitrate mode
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 4cd0524..33c7e0d 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -24,6 +24,7 @@ struct MainConfig {
int32_t record_area_width = 0;
int32_t record_area_height = 0;
int32_t fps = 60;
+ int32_t video_bitrate = 5400;
bool merge_audio_tracks = true;
std::vector<std::string> audio_input;
std::string color_range;
@@ -305,6 +306,7 @@ static std::map<std::string, ConfigValue> get_config_options(Config &config) {
{"main.record_area_width", {CONFIG_TYPE_I32, &config.main_config.record_area_width}},
{"main.record_area_height", {CONFIG_TYPE_I32, &config.main_config.record_area_height}},
{"main.fps", {CONFIG_TYPE_I32, &config.main_config.fps}},
+ {"main.video_bitrate", {CONFIG_TYPE_I32, &config.main_config.video_bitrate}},
{"main.merge_audio_tracks", {CONFIG_TYPE_BOOL, &config.main_config.merge_audio_tracks}},
{"main.audio_input", {CONFIG_TYPE_STRING_ARRAY, &config.main_config.audio_input}},
{"main.color_range", {CONFIG_TYPE_STRING, &config.main_config.color_range}},