Also,
OBS AUTO START STREAMING USING BATCH FILE
If you need to start and stop OBS automatically, you can use the batch commands below and use windows task scheduler to run them at specific times of the day.
To start OBS and start streaming automatically on Windows
start /d "C:\OBS\obs-studio\bin\32bit" obs32.exe --startstreaming
To stop OBS
taskkill /F /IM obs32.exe
OBS AUTO START STREAMING USING CRONNIX ON MAC OSX
If you are using Mac OSX for your encoder, You can use Cronnix application (free) to schedule start and stop task.
command to start obs streaming: open –a obs --args --startstreaming
command to stop obs: killall obs
OBS AUTO START STREAMING ON UBUNTU USING CRONTAB
On terminal start crontab, the first command below tell crontab to start streaming at 08:30 everyday and second code tells kill obs process at 18:30
crontab –e
30 08 * * * export DISPLAY=:0 && obs --startstreaming
00 18 * * * killall obs