Skip to content

Commit

Permalink
Fix hybrid mp4 for backtrack
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jun 21, 2024
1 parent 784a639 commit 1639a42
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vertical-canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5283,7 +5283,18 @@ void CanvasDock::StartReplayBuffer()
replayFilename = filename_formatting;
if (file_format.empty())
file_format = "mkv";
obs_data_set_string(s, "extension", file_format.c_str());
std::string ext = file_format;
if (ext == "hybrid_mp4")
ext = "mp4";
else if (ext == "fragmented_mp4")
ext = "mp4";
else if (ext == "fragmented_mov")
ext = "mov";
else if (ext == "hls")
ext = "m3u8";
else if (ext == "mpegts")
ext = "ts";
obs_data_set_string(s, "extension", ext.c_str());
//allow_spaces
obs_data_set_string(s, "directory", replayPath.c_str());
obs_output_update(replayOutput, s);
Expand Down

0 comments on commit 1639a42

Please sign in to comment.