Hey guys, it's Defrag, and today I'm gonna show you how to do this.. with absolute
ease. Because it should always be simple! And, yeah let's just get started. --And if
you were wondering: no that wasn't added in, yes it was all live in OBS studio
and yes, I pressed one button to make it all happen
and disappear. I guarantee by the end of this video you're gonna be doing the
same. So let's get st-.. let's good start?.. Let's get going?
It's over used now.. whatever.
Before we begin anything, update your OBS Studio to the latest version. I've
had so many people mention how they can't find plugins after installing, so
just make sure your OBS studio is up-to-date. I try to make the
installation process of plugins, which is easy by the way, for the most part, as
clear as possible so if you're having issues I even after that.. reinstall OBS
Studio and hopefully that should solve any problems of things not showing up.
Moving on! STEPONE: Before opening OBS studio, we're
gonna need to install the Lua and the plug-in. To do the instant replay, we're
gonna need an instant replay Lua file which you can download here (download link) link is
also in the description. You want to place it within this path of our OBS
studio directory. Next we want to download the move plugin from here, and
extract the zip contents to the OBS studio folder, where it's all going to be
placed accordingly into your directory. I should note that these plugins are made
by the incredible Exeldro: who also made the replay source plugin I used in
the freeze-frame tutorial. He's an incredible developer, very responsive and
constantly updating his plugins with new features. We're lucky to have him working
with in OBS studio I would say, so support him however you can.. he rocks, OK?
Good, all set up? Great! Let's get OBS studio up and running. We've got our OBS
studio open and we've got our typical scene where we're going to want to pop
up replays: it could be our game play, our webcam or a blend of both! It's totally
up to you. STEPTWO:Create a brand new scene and call an "instant replay scene". In here, add
a media source. For now we're just gonna set at the loop, but we're gonna be
coming back to switch this off. Set it the close when an active, hit OK and
rename this "instant replay source".
STEP THREE: Next, we need to set up that "instant replay" LUA that we installed. Go to
tools and down to scripts. In here we want to hit the + button and add the
instant replay Lua from the directory that pops up. Next, select it and set up
the media source to select "instant replay source". The interval equals the
milliseconds between checks for a new replay save being completed in the
memory, and the maximum attempts segment relates the how much time between each
check so, in this case I have my interval set to 1000 milliseconds or one second
I've left the max attempts at 5 and the replaced playlist checkbox is unchecked.
So for every 5 seconds the LUA will check to see if the replay has been
saved. The replay playlist is for a VLC player source and it can add the replay
to the playlist of that VLC player source or replace the playlist entirely
with a new replay. We'll not be doing that in this example, so you leave that
unchecked if you wish. Once those are set up, hit close. STEP FOUR: Now we've done that we want
to setup our replay buffer. Go to settings, then output and to the replay
buffer tab. Be sure to enable this, set your replay duration. I'm hoping to
catch roughly 8 second replays here, so I'm going to set mine to 10 seconds.
Simply because it's good to have a bit of extra time to avoid getting cut o-
--Go to the recording tab and setup the video settings for your recordings.
All instant replays captured will follow these settings, and the recording directory
you set, is where they're going to go as well. Here's my settings: it might seem
like overkill, but it's handy to have high quality clips if you want to make
edits for YouTube or an intro for your twitch. Next, we want to go to the general
tab and check "automatically start replay buffer when streaming". This way, you don't
have to think about the replay buffer being started once you're live,
it'll just begin and you'll not need to worry about hitting that instant replay
capture later and missing a replay because your buffer wasn't running. So
that's great. While we're still in here, we're gonna go down to the hotkeys and
set a hotkey for the "instant replay". If you have a StreamDeck, at this point
I would recommend setting up a hotkey on that. From the drop-down menu, under a
hotkey setting on the stream deck, select one of the function keys. I've chose F13
in this case. Highlight the "instant replay" field in the hotkey segment of
OBS studio, and hit the newly made hotkey, after which it should update as
OBS_KEY_F13. I find this really useful for hotkeying, keys that
I don't actually have on my keyboard, so it means that there's a little chance of
that hotkey doing some funky stuff while I'm streaming. If you don't have a
StreamDeck, simply set this bind to whatever you wish. You can use combination binds
to do control + shift, and any number of the function buttons for example. That's
always a good shout. Though maybe avoid alt + f4, OK? Hmm?
Great! Now we have a new button: "Start Replay Buffer", and it's running!.. Well it
should be running, if it isn't.. click it! Let's get it running. Since we've never
generated a replay, we need to make one to gets started. STEP FIVE: Click this and the
replay buffer will start. What the buffer does is, it continually records the last
10 seconds of my OBS feed, keeping it in my computer's memory. You can adjust this
by selecting a longer interval of time within your replay buffer settings. I'm
not entirely sure on this, but if you adjust it.. it might be worth
restarting the replay buffer, just to make sure that it updates that newly entered
interval. If you've got it set to 10 seconds for example, wait at least
10 seconds after starting the buffer before saving a replay. It can't see it
before that and we'll need a video file to set up some things in the following
steps. Click the "Save replay" button here. The recording path we set earlier in the
recordings tab is where you're gonna find that newly made replay. Go back
to the "instant replay scene" we made, and in "instant replay source", we want to locate
that replay video we just made. Select it, once that's done ..hit OK.
Alright, so we've made an instant replay scene with our instant replay
source in it, and it's currently playing a replay we've made on loop. We've created a
hotkey to capture an instant replay as well,
awesome. Where does that that show up? Currently only in the instant replay scene, but
that ...is about to change! STEP SIX: Take the scene you like the replays to pop up in, here's
a typical fullscreen webcam scene. Duplicate the entire scene and change
the affix of it to say "(replay display)", for example. It doesn't matter
what you name yours, just make it clear that it's a version of that scene, but
for displaying replays. Once we're done that, we're gonna add the instant replay
scene to this new duplicate, proceeding the reposition and resize the instant
replay scene somewhere within this scene that we're happy with. Before we do that
though, I would recommend right-clicking the newly nested scene, going to "edit
transform" and switching this field to "center". After which you can do all the
repositioning and sizing for the instant replay scene as you would like it to
appear when calling up replays. STEP SEVENE: Seven steps! I hope you're still with me! The
great stuff is just around the corner. So remember that move plug-in we installed?
Yeah! it's time to get that set up! STEP SEVEN: Go to the scene transitions tab and in the
drop-down menu, select "move". If it's not there, simply hit the + button and you
can add it. This transition plugin actually moves things around your scene
taking note of position and size of the scene, sources within the scene, but also
sources that are NOT within the scene. That is what we want to focus on right
now. So, scroll down and we can see "appearing items": this section here is
where we focus on items which are NOT n one scene setup but ARE in the next the
easing settings are entirely up to you, I personally would leave "ease and out" as your
easing setting and play around if the easing function, as there's a lot of cool
styles in here. I'll leave position and transition at
none, and curve at zero. I'll be doing a video going through this
plugin in much more depth soon, but for now hit OK. Now, when you switch
between your normal scene and the duplicate that has instant replay scene
nested in it, this happens [Example] yeah.. pretty cool, no? Yes it's cool, you know it's cool!
So we can hit our instant replay button, we can capture an instant replay, we can
then switch to that scene at our own leisure and it pops up, showing our
instant replay. Fantastic stuff, however I want more than that. I want what I did in
the intro! STEP EIGHT: Duplicate the replay scene again, and in the new duplicate name
call it "replay full screen" or "replay zoom". Unlock the instant replay
scene nested in this new duplicate, and let's make it bigger. You can fullscreen
it if you want, or just increase the size of it a good bit. To get the centering
just right, I usually right click transform and "center to screen". That
looks good to me. One more thing: go back to the instant
replay scene and the instant replay source, and switch off looping. We only
needed the video to loop while we got the sizing and the positioning right. If
you're happy if all that, then you're sorted! If not, you can always go back and
enable the loop again, until you get the size and position where you're happy.
Now, let's hop on the StreamDeck, and make some magic happen.. MAGICK!
STEP NINE: Here, on the StreamDeck, I've a few things set up: so I have a simple scene
switch from my basic scene without the replay here, followed by an instant
replay multi action. And what we're gonna do is take a look at how that multi
action is set up. So you can see that it begins with the hotkey we made earlier
for making an instant replay, followed by a 500 millisecond delay: you can make
this longer if you want, I just like to give OBS a moment to process things
before riding into the next command. I then have 8500 milliseconds or 8.5
second delay, but not all of it (context: not all of the replay clip), as I wanted and return to my original scene
by the end, creating a nice overall look and not leaving the replay suddenly
disappearing on my screen. Aesthetically, this is gonna look way better. Next, I
have a reload replay button. The instant replay multi action we've made will
always bring up the replay you've just made after you hit this button and
capture it. Whereas this button is there to bring up the last replay you just
made, if you wanted to watch again. I have a slight delay at the start, followed by
a scene switch, 8.5 second delay and then return to the original
scene. Here is a save replay hotkey. It's the hotkey we made earlier, so if
you simply wanted to save he replay but not view it right there and then, you can
have this as an option. This is my personal FAVOURITE! And it's what you saw
at the start of this video, it's the same as "reload replay", however we add on
another scene switch within. Since our overall duration of the clip being shown
is going to be around 8.5 seconds, we split the timing up amongst
these delays, so you can have 1.5 seconds on the normal replay and
7 on the larger replay, before it returns the scene 1. You can do this with
instant replays as well: simply put the hotkey for instant replay in the very
top of this multi action before everything, and that's that, it'll be perfect.