diff options
-rw-r--r-- | src/Overlay.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp index 1d884d6..7fce89f 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -909,9 +909,10 @@ namespace gsr { // TODO: Validate input, fallback to valid values const std::string fps = std::to_string(config.replay_config.record_options.fps); const std::string video_bitrate = std::to_string(config.replay_config.record_options.video_bitrate); - const std::string output_file = config.replay_config.save_directory + "/Video_" + get_date_str() + "." + container_to_file_extension(config.replay_config.container.c_str()); + const std::string output_directory = config.replay_config.save_directory; const std::string audio_tracks_merged = merge_audio_tracks(config.replay_config.record_options.audio_tracks); const std::string framerate_mode = config.replay_config.record_options.framerate_mode == "auto" ? "vfr" : config.replay_config.record_options.framerate_mode; + const std::string replay_time = std::to_string(config.replay_config.replay_time); char region[64]; snprintf(region, sizeof(region), "%dx%d", (int)config.replay_config.record_options.record_area_width, (int)config.replay_config.record_options.record_area_height); @@ -928,7 +929,9 @@ namespace gsr { "-fm", framerate_mode.c_str(), "-k", config.replay_config.record_options.video_codec.c_str(), "-f", fps.c_str(), - "-o", output_file.c_str() + "-r", replay_time.c_str(), + "-v", "no", + "-o", output_directory.c_str() }; if(config.replay_config.record_options.video_quality == "custom") { @@ -1042,6 +1045,7 @@ namespace gsr { "-fm", framerate_mode.c_str(), "-k", config.record_config.record_options.video_codec.c_str(), "-f", fps.c_str(), + "-v", "no", "-o", output_file.c_str() }; @@ -1196,6 +1200,7 @@ namespace gsr { "-fm", framerate_mode.c_str(), "-k", config.streaming_config.record_options.video_codec.c_str(), "-f", fps.c_str(), + "-v", "no", "-o", url.c_str() }; |