Implement input only mode w/ double framerate for virtual display

This commit is contained in:
Yukino Song
2025-02-05 06:54:30 +08:00
parent e0d81d3c5f
commit 23dd06b344
13 changed files with 184 additions and 55 deletions

View File

@@ -1056,6 +1056,8 @@ namespace rtsp_stream {
config.monitor.encodingFramerate = config.monitor.framerate;
}
config.monitor.input_only = session.input_only;
configuredBitrateKbps = util::from_view(args.at("x-ml-video.configuredBitrateKbps"sv));
}
catch (std::out_of_range &) {
@@ -1099,6 +1101,8 @@ namespace rtsp_stream {
config.audio.flags[audio::config_t::CUSTOM_SURROUND_PARAMS] = valid;
}
config.audio.input_only = session.input_only;
// If the client sent a configured bitrate, we will choose the actual bitrate ourselves
// by using FEC percentage and audio quality settings. If the calculated bitrate ends up
// too low, we'll allow it to exceed the limits rather than reducing the encoding bitrate