Resource icon

OBS Python Additional Replay Buffer 0.1

Bootscreen

New Member
Bootscreen submitted a new resource:

Additional Replay Buffer - Add 3 additional Replay buffer. In reality, it saves the normal replaybuffer and clip the seconds fr

Adds 3 "additional" ReplayBuffer. In reality, it saves the normal replaybuffer and clip the seconds from begin or end and save it as a new file.
The seconds should be lesser then the whole replay buffer from obs, otherwise the replay is only copied.
When you leave the Path empty, the path of the orginial replay is used and the seconds were attached at the end.
To save a replay buffer set the hotkey in the obs settings.

View attachment 45312

Read more about this resource...
 

hauschka

New Member
I'm on 23.2.1 OBS, and sadly all i'm seeing is this:
1560599542356.png

any suggestions?
 

I3ordo

Member
I get this error, no paths configured for replay location so it should work on original location.
Code:
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "O:/!_Scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "O:/!_Scripts\AdditionalReplays.py", line 188, in save_replay
[AdditionalReplays.py]     new_replay = os.path.join(new_path, last_replay_name + "_" + seconds + "s" + last_replay_type)
[AdditionalReplays.py] TypeError: must be str, not int
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "O:/!_Scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "O:/!_Scripts\AdditionalReplays.py", line 188, in save_replay
[AdditionalReplays.py]     new_replay = os.path.join(new_path, last_replay_name + "_" + seconds + "s" + last_replay_type)
[AdditionalReplays.py] TypeError: must be str, not int
 

Slopz

New Member
Code:
[Multiple Replay Buffers.py] Traceback (most recent call last):
[Multiple Replay Buffers.py]   File "C:/Users/N/Desktop\Multiple Replay Buffers.py", line 138, in save_replay1
[Multiple Replay Buffers.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[Multiple Replay Buffers.py]   File "C:/Users/N/Desktop\Multiple Replay Buffers.py", line 188, in save_replay
[Multiple Replay Buffers.py]     new_replay = os.path.join(new_path, last_replay_name + "_" + seconds + "s" + last_replay_type)
[Multiple Replay Buffers.py] TypeError: must be str, not int
I keep getting those errors
 

areha11fz

New Member
auto cut from end doesn't flow flawlessly, sometimes the begin of the next clip is lose and sometimes it's still contain from previous clip.
is this OBS fault? or you can fix it?
 

KensonPlays

New Member
Trying out this plugin, not sure if its dead or not, but it seems to save fine with CQP but not if I have CBR selected?
Also doesn't seem to save the correct lengths. I've tried 'from end' checked and unchecked. I set the first one to 30s, and another to 120s, but it seems to generate random length files even though I wait like 2 minutes between tests. Even the "30 seconds" one generated a file at 1 min 45. haha
 

Aggermor

New Member
Python:
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'

I'm a casual user that doesn't know how to code. I wanted this feature, googled it and ended up here. Tried my best to install what I need but I'm getting this error and I'm not sure how to fix it.
 

Leet

New Member
To fix this, run "pip install -U moviepy" in terminal with OBS closed
Then on line 188 of the script, change "seconds" to "str(seconds)"
Then reload the script in OBS and restart OBS.
 

zxx511

New Member
Python:
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'

I'm a casual user that doesn't know how to code. I wanted this feature, googled it and ended up here. Tried my best to install what I need but I'm getting this error and I'm not sure how to fix it.
Hello
Has this problem been resolved for you?
Because I am facing the same problem right now
 

ikarycs

New Member
Python:
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 138, in save_replay1
[AdditionalReplays.py]     save_replay(replay1_seconds, replay1_path, replay1_remove, replay1_from_end)
[AdditionalReplays.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 166, in save_replay
[AdditionalReplays.py]     from moviepy.config import get_setting
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py", line 35, in <module>
[AdditionalReplays.py]     from imageio.plugins.ffmpeg import get_exe
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\__init__.py", line 22, in <module>
[AdditionalReplays.py]     from .core import FormatManager, RETURN_BYTES
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\__init__.py", line 16, in <module>
[AdditionalReplays.py]     from .format import Format, FormatManager
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\format.py", line 40, in <module>
[AdditionalReplays.py]     from ..config import known_plugins, known_extensions, PluginConfig, FileExtension
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\__init__.py", line 7, in <module>
[AdditionalReplays.py]     from .plugins import known_plugins, PluginConfig
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\config\plugins.py", line 4, in <module>
[AdditionalReplays.py]     from ..core.legacy_plugin_wrapper import LegacyPlugin
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\legacy_plugin_wrapper.py", line 6, in <module>
[AdditionalReplays.py]     from .v3_plugin_api import PluginV3, ImageProperties
[AdditionalReplays.py]   File "C:\Users\Synys\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\v3_plugin_api.py", line 2, in <module>
[AdditionalReplays.py]     from numpy.typing import ArrayLike
[AdditionalReplays.py] ModuleNotFoundError: No module named 'numpy.typing'

I'm a casual user that doesn't know how to code. I wanted this feature, googled it and ended up here. Tried my best to install what I need but I'm getting this error and I'm not sure how to fix it.
Hello
Has this problem been resolved for you?
Because I am facing the same problem right now
I solved this issue by installing python 3.7, make sure to delete previous environment variables and just leave the 3.7 ones, then pip install moviepy and numpy with poweshell, also don't forget to change the pathing in obs>tools>scripts>python settings
 

cerahmed

New Member
I solved this issue by installing python 3.7, make sure to delete previous environment variables and just leave the 3.7 ones, then pip install moviepy and numpy with poweshell, also don't forget to change the pathing in obs>tools>scripts>python settings
Hey there,

I did exactly the same thing but I'm still unable to see the script settings.
Clicking on the "Edit Script" button shows me the error that I'm having: ModuleNotFoundError: No module named 'obspython'.

Any idea?
 

ikarycs

New Member
Hey there,

I did exactly the same thing but I'm still unable to see the script settings.
Clicking on the "Edit Script" button shows me the error that I'm having: ModuleNotFoundError: No module named 'obspython'.

Any idea?
did u set the pathing (in obs>tools>scripts>python settings' tab) to where the python 3.7 is installed?
for me it is like this:
python.JPG

Hope this helps.
 

ikarycs

New Member

did u set the pathing (in obs>tools>scripts>python settings' tab) to where the python 3.7 is installed?
for me it is like this:
View attachment 84651
Hope this helps.
Disregard this info above as it just worked once.

Here is how I got it working consistently this time, hope this helps to someone some day.

I will just tell the history of what I did as I'm not a pro in python but I like to google and see tutorials.
I have installed 3 version of python in my pc, 3.10, 3.7.0 and 3.6.0, I installed 3.10 1st, then 3.6.0 2nd, and 3.7.0 last, in my windows variables I only have python 3.7.0 addresses as this was the last one installed (i think this is not very important but I'm telling it anyways).

I instaled numpy and moviepy via pip, in all of them, each one have its own version, so for example 3.10 prob have a higher update version of what 3.6 and 3.7 can support, to do this is complicated (well at least for someone like me who barely knows some code) as u would need to run powershell and specifically address the version of python u want to update, cause if u use -pip "whatever" it will just update the one that u have in windows variables i think (u can use google and youtube to document urself).

Now, this way I tried many configs, but nothing did work, when I saved the replays and error prompted. So i decided to try the latest 3.6 version availabe, and that is 3.6.8 (last update was 3.6.15 but that one isnt available for downloading), and voila! script is now working, (just make sure to change the address to the python 3.6.8 in obs>tools>scripts>python settings' tab). Im sure that i can unninstall 3.10 and 3.7 now and it will work but I will just leave them there just in case XD.

And as I said, hope this helps someone out there.
Cheers.
 

ikarycs

New Member
Edit: the script only works when OBS is recently launched, after a couple of minutes the scripts gives the same errors
 

ikarycs

New Member
Update:
thanks to this guy (a legend btw), in this thread I could manage to get the script to work properly.

Short version is:
1. Install Python 3.6.8, and install within it moviepy and numpy
2. paste the script script in the correct folder of obs, and edit this next, look for line 117, and look for this block of code:
Python:
def save_and_get_last_replay():
    timestamp = time.time()
    obs.obs_frontend_replay_buffer_save()
    path = get_last_replay()
    if path is None:
        sleep(2)
        path = get_last_replay()
    if not os.path.exists(path):
        sleep(2)
        path = get_last_replay()
    for i in range(20):
        file_timestamp = os.path.getctime(path)
        if file_timestamp < timestamp:
            sleep(1)
            path = get_last_replay()
        else:
            break
    
    file_timestamp = os.path.getctime(path)
    if file_timestamp < timestamp:
        return None
    else:
        return path
and replace it for this:
Python:
def save_and_get_last_replay():
    timestamp = time.time()
    obs.obs_frontend_replay_buffer_save()

    # Try to get the file timestamp 20 times, only then give up, interval 1 sec
    for i in range(20):
        path = get_last_replay()
        if path and os.path.isfile(path):
            file_timestamp = os.path.getctime(path)
            if file_timestamp < timestamp:
                path = None
            else:
                break
        sleep(1)

    return path
I'm not entirely sure but if ur replay takes too long for being copied into ur disk (hdd instead of ssd), perhaps u would need to increase the value in seconds from 1 to 1.5 or 2 (don't quote me here since I'm not even sure cause I'm not a coder, perhaps someone with more knowledge can confirm or deny this)
3. After this just configure the timers in settings to your liking and also assign the keybindings too.
4. That's it, just run the replay buffer and be ready to record your clips :)
Hope this helps.
 

Attachments

  • AdditionalReplays_fixed.zip
    3.4 KB · Views: 84

Suslik V

Active Member
Just in case, for the developer of the script.
For the test I used the variant attached below (Windows only).

AdditionalReplays_0_2_1_alphafix_2022_07_17.zip, ~5KB to download.
CRC of the zip archive MD5:2892C4A7B623C8154103C9E58DD65FC7

The test was running in obsolete OS, OBS v27.2.4 64-bit, with the embedded (that itself is not recommended for this use case) version of the Python v3.6.7. I didn't check the whole algorithm, so

As is.
 

Attachments

  • AdditionalReplays_0_2_1_alphafix_2022_07_17.zip
    4.5 KB · Views: 94

KittieCatKay

New Member
This is a late contribution, but the original script lacks a function to capture several audio streams properly (if you have multiple audio streams configured). To change that, replace the line
Python:
"-vcodec", "copy", "-acodec", "copy", targetname]
with
Python:
"-map", "0?", "-vcodec", "copy", "-c:a", "copy", targetname]

Additionally, you can replace the FFMPEG file from moviepy with a newer version (the one it uses is quite old)
If you installed it using pip, the default location should be
C:\Users\"Your Name"\AppData\Local\Programs\Python\...\Lib\site-packages\imageio_ffmpeg\binaries
or wherever you installed Python to.
 
Top