Resource icon

Smart Replays 1.0.8.2

Maran_Rose

New Member
Hey, I'm not sure if this is an issue per-say or if I'm doing anything wrong but I get this error when trying to load the script, and there are no properties to go off of, nor is there anything to really... do with it? The test notification works when I click edit script. I'm on OBS 31.0.0-rc1

[smart_replays.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\smart_replays.py", line 31, in <module>
[smart_replays.py] from packaging.version import Version
[smart_replays.py] ModuleNotFoundError: No module named 'packaging'
 

Qvvonk

Member
Hey, I'm not sure if this is an issue per-say or if I'm doing anything wrong but I get this error when trying to load the script, and there are no properties to go off of, nor is there anything to really... do with it? The test notification works when I click edit script. I'm on OBS 31.0.0-rc1

[smart_replays.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\smart_replays.py", line 31, in <module>
[smart_replays.py] from packaging.version import Version
[smart_replays.py] ModuleNotFoundError: No module named 'packaging'
Hi, my bad, i thought "packaging" is built-in lib. Will fix soon.
 

Qvvonk

Member
Hey, I'm not sure if this is an issue per-say or if I'm doing anything wrong but I get this error when trying to load the script, and there are no properties to go off of, nor is there anything to really... do with it? The test notification works when I click edit script. I'm on OBS 31.0.0-rc1

[smart_replays.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\smart_replays.py", line 31, in <module>
[smart_replays.py] from packaging.version import Version
[smart_replays.py] ModuleNotFoundError: No module named 'packaging

Hello!
Im not able to check my update rn, so, if you can, it will be awesome.

 

Maran_Rose

New Member
Hi @Qvvonk, me again.
An user on this forum suggested me to contact you about an issue i'm having, maybe you have a better knowledge on why this is happening.
Rn i'm only using your script on Obs (version OBS 30.2.3 w Python 3.10 + Tkinter installed, as required).
Every time i try to save a replay buffer, there's a huge delay between me pressing the hotkey to save it and the replay being actually saved (if i do turn the sound notification on in your script, they are delayed too, same with the pop-up).
Here's the link to the log.
In that session, i turned off both the sound notifications and the pop-up, yet there's a massive delay between me pressing the hotkey to save the replay and it being actually saved (also, strange thing ,it's just the replay itself being "registered" as saved, because the clip itself that it produces does stop the moment i press the hotkey, like it should). Any idea of what could cause this?

Thanks in advance

Oh, and happy new year
 

Qvvonk

Member
Hi @Qvvonk, me again.
An user on this forum suggested me to contact you about an issue i'm having, maybe you have a better knowledge on why this is happening.
Rn i'm only using your script on Obs (version OBS 30.2.3 w Python 3.10 + Tkinter installed, as required).
Every time i try to save a replay buffer, there's a huge delay between me pressing the hotkey to save it and the replay being actually saved (if i do turn the sound notification on in your script, they are delayed too, same with the pop-up).
Here's the link to the log.
In that session, i turned off both the sound notifications and the pop-up, yet there's a massive delay between me pressing the hotkey to save the replay and it being actually saved (also, strange thing ,it's just the replay itself being "registered" as saved, because the clip itself that it produces does stop the moment i press the hotkey, like it should). Any idea of what could cause this?

Thanks in advance

Oh, and happy new year
Hello @ThatRonin8 !
This is an OBS issue. If you do not restart the replay buffer for a long time, it may take a long time to save clips.
All that can be done at this point:
  1. Set a high priority to the OBS process (this really can help a lot);
  2. In Smart Replays script, enable the function to automatically restart the replay buffer after saving a clip;
  3. Enable cyclic restart of Replay buffer every 1-2 hours (also in Smart Replays script).
The script itself does not affect the speed of saving clips in any way, since it performs its functions (renaming files, moving them to folders, showing/playing notifications, etc.) after the clip is saved and OBS alone is responsible for saving clips.
 
Hello @ThatRonin8 !
This is an OBS issue. If you do not restart the replay buffer for a long time, it may take a long time to save clips.
All that can be done at this point:
  1. Set a high priority to the OBS process (this really can help a lot);
  2. In Smart Replays script, enable the function to automatically restart the replay buffer after saving a clip;
  3. Enable cyclic restart of Replay buffer every 1-2 hours (also in Smart Replays script).
The script itself does not affect the speed of saving clips in any way, since it performs its functions (renaming files, moving them to folders, showing/playing notifications, etc.) after the clip is saved and OBS alone is responsible for saving clips.
Thanks!
In the end, under another post i've made specifically for this, it came out that it's most prob an hw issue.
Thanks again for the help, have a nice day
 

Chad711

Member
Hi, never used scripts in OBS. How do I install and use this? I read the readme file but didn't see any instructions. I have python installed along with the TKinter. Thanks
 

Chad711

Member
Guess I cannot edit my post above. I'm on Python 3.13.1 and OBS will not load it no matter what. Not sure what is up. I'm guessing this is why I do not see any options when I load the script. I have the script in the OBS script folder location but I do not see any options like you have in your screenshot. Guessing this is because Python isn't be detected by OBS.
 

Qvvonk

Member
Guess I cannot edit my post above. I'm on Python 3.13.1 and OBS will not load it no matter what. Not sure what is up. I'm guessing this is why I do not see any options when I load the script. I have the script in the OBS script folder location but I do not see any options like you have in your screenshot. Guessing this is because Python isn't be detected by OBS.
Hello, @Chad711

You need to specify python path in obs settings (Tools -> Scripts -> Python settings)
 

Chad711

Member
Not in v31.0.0 of OBS for Windows. Your Python is too new. Python v3.10 should work OK. Older OBS requires even older Python.

Edit: if I understanding it right, OBS v31.0.0 may load Python from v3.12 to v3.6, but author of the script recommends Python v3.10
(tech details: https://github.com/obsproject/obs-s...ripting/obs-scripting-python-import.c#L41-L90)
Thanks this was the issue. I installed 3.10. Quick question for anyone that may know. What is the difference in key binds between "Save Replay" vs the three options above it that are "Save buffer (force mode)? Not sure I understand the purpose of those 3 options. Thanks!
 

Qvvonk

Member
Thanks this was the issue. I installed 3.10. Quick question for anyone that may know. What is the difference in key binds between "Save Replay" vs the three options above it that are "Save buffer (force mode)? Not sure I understand the purpose of those 3 options. Thanks!
There are 3 modes of clip naming in Smart Replays script.
1736103542842.png



When you are using "Save Replay" hotkey (hotkey by OBS), Smart Replays script will save clips according to the selected mode.
But you can set up hotkeys for each mode as well (force mode hotkeys). So, if at some point you realize that you need to save a clip in some another mode, you can simply press the hotkeys that were set for that mode.


For example:
1736103827480.png


In this situation, if I will press Alt + Shift + Z, Smart Replays script will save my clip in selected in properties mode (first, by default).
But if i will press Alt+A, Smart Replays script will ignore my properties and will save clip in second mode.
 

Romalllka

New Member
Hi gang, sorry if it is not a good place to ask, but I used smart replays for quite some time and find it very convenient. Makes me wonder if there is a script with the function to rename files to the most active window like here, but for usual recordings, not replay buffers ones? It feels like i tried almost every script that tried to do something similar but they all either don't work or work very poorly.
 

Qvvonk

Member
Hi gang, sorry if it is not a good place to ask, but I used smart replays for quite some time and find it very convenient. Makes me wonder if there is a script with the function to rename files to the most active window like here, but for usual recordings, not replay buffers ones? It feels like i tried almost every script that tried to do something similar but they all either don't work or work very poorly.
Hi, @Romalllka
am already working on this functionality. In a week (maybe a bit more) I will add all the functionality from Smart Replays, but for regular recordings.
 

vroyasumi

New Member
Hi!

Yes, you are right, in fullscreen programms popup notifications dont work.
Need to create an overlay or something to make notifications visible on top of games in fullscreen mode, and that's too complicated for a small script.

The solution I'm using is to play in frameless window mode.

P.S. Actually, i have some idea that might work, but i only can start makin' it in 5-6 days. And it definitelly will require to install 3rd party libs.
Hey!

Any update on this? I was able to get Smart Replay working and it's very similar to Shadowplay except for the visual notification in fullscreen. Personally, I like to see that the clip is saved via visual cues rather than audio cues or nothing at all. I would love to see this function in future updates :)

Also, is there a way for the pop-up notification to display the entire directory/destination that the clip is being saved to before disappearing? Currently, the pop-up notification ends right before the name of the saved destination. The duration seems to be too short. I'd like to see the full destination before the notification disappears just in case Smart Replay captures a random application that I'm unfamiliar with (and will soon have trouble finding).

Regardless, thank you so much for this application! I just moved from NVIDIA to Intel Arc and Intel doesn't have software similar to Shadowplay yet. This has been working great in the meantime.
 

Qvvonk

Member
Hey!

Any update on this? I was able to get Smart Replay working and it's very similar to Shadowplay except for the visual notification in fullscreen. Personally, I like to see that the clip is saved via visual cues rather than audio cues or nothing at all. I would love to see this function in future updates :)

Also, is there a way for the pop-up notification to display the entire directory/destination that the clip is being saved to before disappearing? Currently, the pop-up notification ends right before the name of the saved destination. The duration seems to be too short. I'd like to see the full destination before the notification disappears just in case Smart Replay captures a random application that I'm unfamiliar with (and will soon have trouble finding).

Regardless, thank you so much for this application! I just moved from NVIDIA to Intel Arc and Intel doesn't have software similar to Shadowplay yet. This has been working great in the meantime.
Hi!
Haven't come up with anything about it yet (
To show visual notifications in full screen mode, i need to work with drivers (create an overlay) or something like that. I'm having difficulties with that so far.

As for displaying all the way to the disappearance of the notification - I'll do it!
 

vroyasumi

New Member
Thank you so much!

I appreciate the extra seconds of stationary movement at the end of the notification.

I find this great for local/personal use but I realized that the save directory visual could reveal private information like users' real names after "C:/". This may affect those who tend to clip back-to-back or those who record/stream as it may capture the pop-up notification.

Perhaps an option to enable or disable the save directory visual would be best; whether a checkbox to enable or disable, or a setting to automatically disable the save directory visual during recording/streaming and enable when not recording/streaming.
 
Top