This is an updated and improved version of francdv23's OBS Recordings Organizer Python script, that, similarly to NVidia ShadowPlay, allows OBS to rename and organize into folders video recordings based on the window title on focus whenever a replay buffer or a recording is saved.
I fixed the issues that this script has and added some additional feature to make it easier to use.
Python 3.6+ (3.11 recommended), as well as pywin32 and psutil libraries which can be installed via command line:
pip install pywin32
pip install psutil
Python can now be loaded in OBS by Tools > Scripts > Python Settings
and choosing Python311 path.
After the previous indications the actiual script can be now installed. It doesn't need to be placed in a specific directory, for convenience the scripts folder located at C:\Program Files\obs-studio\data\obs-plugins\frontend-tools\scripts\obs-rec-organizer
is ideal. It can be loaded into OBS by Tools > Scripts
hit the "+" sign and search for OBS-RecOrganizer-better.py from the previous path.
From OBS' Scripts window choose your main recordings folder by clicking Browse and write in the Extension box your videos extension of without the "." sign.
Within the scripts are included two cfg files named DesktopOverride.cfg and FullscreenOverride.cfg, you can write the executable name in them to respectively override a windowed game targetting it correctly or to tweak a fullscreen program in "Desktop" recording.
padii's edit: I did not test it, as I did not need it, so let me know if anything's wrong with this.
- If you experience any problems installing the libraries, the first thing I recommend to do is update pip with:
python -m pip install --upgrade pip
- If Pywin32 gives you any troubles, first uninstall it with
pip uninstall pywin32
and then download it from here choosing py36 version.
- Recordings not organized into subfolder or not renamed: it can occur in the first/second recording or buffer replay, but no more further because the script only needed to create its cache.