The shortcut tweak works, but I noticed that sometimes when I update OBS the shortcut gets replaced, and then I lose my auto-start setup. I found another way to do it.
1. Make a script file, I called mine start-virtual-camera.lua
and save it somewhere
2. Contents of the script file should be:
obs = obslua
function script_load(settings)
obs.obs_frontend_start_virtualcam()
end
3. save the file
4. in OBS go to Tools > Scripts, select the + button and browse to the start-virtual-camera.lua
file. Then close the Scripts dialogue window.
5. Now, whenever you start OBS from a shortcut that doesn't have --startvirtualcam
, the script will run at startup and your Virtual Camera will start automatically.
It seems to work for me, anyway, running OBS v30 in Windows 11. Can anybody confirm whether this works for them, too?