Script for OBS to automatically create a new recording file after a specified length of time
Using Lua
To install go to Tools>Scripts and use the + symbol to add the .lua file.
Enable the script in order to allow it to split recordings
Set Recording Duration to your desired video lengths (30 sec - 3 hours)