From 832ba94b9cccc8e3288e9b7616617a08e10a5b79 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 4 Mar 2023 13:24:52 +0100 Subject: Add screen-direct-force option for VRR monitor, Add opus/flac audio options for .mp4 and .mkv --- src/config.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/config.hpp') 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 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()); -- cgit v1.2.3