Question / Help OBS Recording from Command Line with Task Scheduler = Blank recording?

badtz-maru

New Member
Hello!

I have OBS configured with 2 video sources. I can manually record to MKV just fine. I can create a shortcut file on my desktop using the appropriate command line flags and auto-record to MKV and it works fine. However, if I take that same command set and put it into a scheduled task, OBS will start to auto-record, but the output MKV is always a blank video. My objective is to record these two video sources daily for X hours starting at a specific time.

Win 10 1909
nVidia 2070 Super (No onboard/Intel graphics chip)
Scheduled Task is set to run under the same local user account that I can manually auto-record with.

Any idea what I'm missing? Thanks in advance ...
 

koala

Active Member
If you use a scheduled task, there must be a user logged in and his desktop must be unlocked. If the locksceen is active, OBS isn't able to record anything. This is a Windows limitation, not an OBS limitation.
 

badtz-maru

New Member
If you use a scheduled task, there must be a user logged in and his desktop must be unlocked. If the locksceen is active, OBS isn't able to record anything. This is a Windows limitation, not an OBS limitation.

Thanks, but it's not that either - I get a blank recording when I go into Task Scheduler and manually run the task too. The system is a monitoring/dashboard system that is unlocked/displaying 24/7. I also tried using just Display Capture instead of specifying individual video sources, but that had no effect.
 

koala

Active Member
I don't know how it is called in english, but in the properties of the scheduled task you can choose between "only if the user is logged in" and "run independently from user login". Choose the first (run only if the user is logged in). For the second, a new Windows session is created but no GUI resources allocated, even if the user is already logged in.
 
Top