UI: Autoremux Replay Buffer

Replays from the replay buffer will be automatically remuxed to MP4 like
recordings are, if autoremux is enabled.
This commit is contained in:
gxalpha
2021-08-07 14:05:43 +02:00
committed by Jim
parent 725fce78ba
commit 3e16296403
2 changed files with 5 additions and 4 deletions

View File

@@ -6395,7 +6395,7 @@ void OBSBasic::StreamingStop(int code, QString last_error)
}
}
void OBSBasic::AutoRemux()
void OBSBasic::AutoRemux(QString input)
{
bool autoRemux = config_get_bool(Config(), "Video", "AutoRemux");
@@ -6409,7 +6409,6 @@ void OBSBasic::AutoRemux()
if (ffmpegOutput)
return;
QString input = outputHandler->lastRecordingPath.c_str();
if (input.isEmpty())
return;
@@ -6571,7 +6570,7 @@ void OBSBasic::RecordingStop(int code, QString last_error)
if (diskFullTimer->isActive())
diskFullTimer->stop();
AutoRemux();
AutoRemux(outputHandler->lastRecordingPath.c_str());
OnDeactivate();
UpdatePause(false);
@@ -6721,6 +6720,8 @@ void OBSBasic::ReplayBufferSaved()
if (api)
api->on_event(OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED);
AutoRemux(path);
}
void OBSBasic::ReplayBufferStop(int code)