Pages

Wednesday, May 21, 2025

OBS Replay using Source Record (1 Camera)

This replay will record a single camera input, not the program feed like the basic OBS replay does.

I show this in a 'from scratch' deployment of OBS, but you can add this to an existing input that you may already have.

This one uses a plugin called "Source Record" which allows us to directly record the camera feeds.

1> Download Exeldro's "Source Record" plugin and install it.  

https://obsproject.com/forum/resources/source-record.1285/

2> Setup a video source/input on your OBS

3> Right click on your video source that you want to record in your replay and select "FILTER"


4> Under "Effect Filters" select "Source Record"

5> You should now see something like this


6> Select the Path to put in the replay for this video source

7> Give it an unique file name for this replay recording.  This example will call this replay "Camera 1"


8> Scroll down to "Replay Buffer" and select the duration of the replay you want to have kept in memory.  OBS replay, in this case, will keep a buffer of the video in memory.  This example will keep 12 seconds in memory.



9> Now we setup a hotkey to tell OBS to save the replay buffer in memory to a file on the computer drive.

Goto SETTINGS -> HOTKEYS

When you scroll through the list, you will want to look for the "Save Replay", but you will want the one that is referenced with "...Source Record" in the title.


The default OBS buffer simply called "Replay Buffer" wont be used by us in this example.  We ignore that one.  
I've set the Hotkey of F8 beside my entry

10> Press your hotkey that you assigned to the source record replay, and you should see a file appear in the directory you assigned in Step 6


If nothing appears, review your steps above.  Also exit OBS, then reopen it.  Sometimes that will fix the issue as well.

11> Now create a scene called "Replay Camera 1"

12> In that scene, add a "Media Source" and called it "Camera 1 Replay"

13> Set "Local File" and point it to the location and the file name for the recording.


You can adjust the Speed of playback to let your replay be slow motion

14> Select "restart playback..."
        Select "Close file when inactive" (this keeps the file from being locked for subsequent replay saves

Using Replay

Now at any point press "F8".  I give the system about 1-2 seconds to create the file. \
Cut to your "Replay Camera 1" scene, and you should see the video playing.  
When its done you can cut back to your main camera feed.

You do not use the "start replay buffer" that is built into OBS.  Source Record is always running.

Using something like Advanced Scene Switcher, you can incorporate splash screens.  If that is something of interest, let me know in the comments.

No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.