The virtual camera is not installed even tho i already installed and allow it on the setting

Ayash

New Member
So i working on python script that can start virtual camera automatically, but when i run the script, its show this

Screenshot 2025-01-19 at 14.40.27.png


I really confused because when i start the virtual camera manually, it works fine, but when i run my python script, it appear that pop up, here is my python looks like.

def start_obs(self):
"""Start OBS in headless mode"""
try:
# Start OBS with CLI arguments for headless mode and ensure virtual camera is enabled
subprocess.Popen([
self.obs_cli_path,
'--headless',
'--scene', self.obs_scene_name,
'--profile', self.obs_profile_name,
'--scene-collection', self.obs_scene_collection, # Ensure valid scene collection
'--startvirtualcam'
])
time.sleep(5) # Wait for OBS to initialize
print("OBS started in headless mode.")
except Exception as e:
print(f"Error starting OBS: {e}")

My device is MacBook pro 2018 with intel processor, and i use OBS Version: 31.0.1
 
Top