diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-03-04 13:24:52 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-03-04 13:24:52 +0100 |
commit | 832ba94b9cccc8e3288e9b7616617a08e10a5b79 (patch) | |
tree | e85f746976b0f4fa14b5118058ce752e37e241c7 /src/config.hpp | |
parent | f8a1b99a922d75bbd12f398e5d2e535c059c542e (diff) |
Add screen-direct-force option for VRR monitor, Add opus/flac audio options for .mp4 and .mkv
Diffstat (limited to 'src/config.hpp')
-rw-r--r-- | src/config.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.hpp b/src/config.hpp index fc19cd2..bd43166 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -24,7 +24,8 @@ struct MainConfig { bool merge_audio_tracks = true; std::vector<std::string> audio_input; std::string quality; - std::string codec; + std::string codec; // Video codec + std::string audio_codec; }; struct StreamingConfig { @@ -242,6 +243,8 @@ static Config read_config() { config.main_config.quality.assign(value.str, value.size); } else if(key == "main.codec") { config.main_config.codec.assign(value.str, value.size); + } else if(key == "main.audio_codec") { + config.main_config.audio_codec.assign(value.str, value.size); } else if(key == "streaming.service") { config.streaming_config.streaming_service.assign(value.str, value.size); } else if(key == "streaming.key") { @@ -325,6 +328,7 @@ static void save_config(const Config &config) { } fprintf(file, "main.quality %s\n", config.main_config.quality.c_str()); fprintf(file, "main.codec %s\n", config.main_config.codec.c_str()); + fprintf(file, "main.audio_codec %s\n", config.main_config.audio_codec.c_str()); fprintf(file, "streaming.service %s\n", config.streaming_config.streaming_service.c_str()); fprintf(file, "streaming.key %s\n", config.streaming_config.stream_key.c_str()); |