Two seperate replays possible? One instant and the other for on-demand replay.

kfranky

New Member
Hey there,

this is my first post after doing some research on here - let me know if I‘m in the wrong subforum or anything.

Here‘s what I want to achieve:
  • Use instant replay as intended (this works flawlessly right now with Stream Deck Hotkey).
  • Have a second Hotkey (Hotkey #2) on my Stream Deck to save another Replay (seperate file that also overwrites itself with new replay capture just like my instant replay does right now) - let‘s call this „regular replay“ as opposed to the Instant replay.
  • Have a third Hotkey (Hotkey #3)to play this regular replay file on demand without capturing a new one unless I press Hotkey #2 again.
Here‘s a scenario:
At the beginning of my stream I save a highlight as a regular replay (Hotkey #2). I want to be able to show this regular replay throughout the entirety of my stream with the press of Hotkey #3 (until I save a new regular replay with Hotkey #2) AND still be able to use the instant replay function for anything that‘s worth replaying immediately (triple kill or whatever).

As of right now I have all Hotkeys set up successfully but I only ever record one file. Once I trigger instant replay I lose my regular replay file since they both use the same file. And if I let OBS save multiple replays with the default file name formatting I have no idea how to direct the regular replay to a specific file (without alt-tabbing and manually directing it there in OBS) and instant replay to the latest.

My ideal solution would be two seperate files: one for Hotkey #1 (Instant Replay) and one for Hotkey #2 (both overwriting themselves once triggered again)

Is this achievable with scripts/plugins right now? If so: how do I set that up exactly?

If it‘s not: can this be achieved with a custom script or plugin at all?


Ask away if anything is unclear and thanks a bunch for reading!
 

kfranky

New Member
I just looked at the instantreplay.lua code in hopes of finding a way to have it save the replay separately from the regular replay buffer file.

Since I have 0 coding knowledge this went as poorly as expected. Would that be a possible solution?
 

kfranky

New Member
Update on this matter:

I got it working using Replay Source for the Instant Replay and the regular replay buffer for the regular on-demand replay.

I don‘t think replay source is currently saving the clips correctly. Is there a way to have it save the files as *.mkv?

Other than that: seems to be working pretty good. I‘ll have to double check if sound is actually working or not, now that I think about it.

Oh another thing that comes to mind: is there a way to switch back to previous scene after a media source stops playing? I know advanced scene Switcher exists, but when I tried it briefly it was too slow for a smooth transition and I was better off timing a scene switch with a stream deck delay.
 

kfranky

New Member
Solved

If anyone wants to achieve the same thing in the future, I hope this helps.

I created a batch file that automatically moves the latest file from the save directory (folder where replay buffer saves replays) to a new directory. I then set up a multi-action with my stream deck to:
1. save replay to save folder
2. run batch file to move this latest replay to a new folder (for replays only)

This way I can save a replay, move it to a safe place and have it play whenever I want without having an instant replay save a new file to the save folder. Only the replays that are meant for instant replay stay in the original save folder and can also be replayed at a later date.

For me the perfect solution.
 

ThePailot

New Member
Hi Friend!
I Know this thread is too old but I would like to know if you could send me the batch file to do the same you did.
Could I replace the move action for a copy-paste?
 
Top