mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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:
parent
725fce78ba
commit
3e16296403
|
@ -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)
|
||||
|
|
|
@ -745,7 +745,7 @@ private:
|
|||
|
||||
static void HotkeyTriggered(void *data, obs_hotkey_id id, bool pressed);
|
||||
|
||||
void AutoRemux();
|
||||
void AutoRemux(QString input);
|
||||
|
||||
void UpdatePause(bool activate = true);
|
||||
void UpdateReplayBuffer(bool activate = true);
|
||||
|
|
Loading…
Reference in a new issue