aboutsummaryrefslogtreecommitdiff
path: root/src/Overlay.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-31 09:16:39 +0100
committerdec05eba <dec05eba@protonmail.com>2024-10-31 09:16:39 +0100
commitea0f9e564346344d2b41e2bb8c3072a740abcfdf (patch)
tree9a014d0c632a8e9210796f7bb88ded5d75446839 /src/Overlay.cpp
parent99604a892dbf8512693240120e08325e19fab6cd (diff)
Fix replay not actually being a replay
Diffstat (limited to 'src/Overlay.cpp')
-rw-r--r--src/Overlay.cpp9
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()
};