Skip to content

Allow virtual camera te be used by several applications #13215

@juantinazzo

Description

@juantinazzo

Operating System Info

Other

Other OS

Manjaro

OBS Studio Version

32.0.4

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/fEl1LwGUhO556fPj

OBS Studio Crash Log URL

No response

Expected Behavior

The virtual camera should be able to be used by several applications at the same time in Linux.

Current Behavior

The virtual camera can only be used with one application at the time, due to exclusive_caps:
pkexec modprobe v4l2loopback exclusive_caps=1 card_label='OBS Virtual Camera' && sleep 0.5

Steps to Reproduce

  1. Start virtual camera
  2. Try to use it in several browser tabs

...

Anything else we should know?

Reading the docs of v4l2loopback i can understand the reason behind exclusive_caps=1:

This will enable 'exclusive_caps' mode that only reports CAPTURE/OUTPUT capabilities exclusively. The newly created device will announce OUTPUT capabilities only (so ordinary webcam applications (including Chrome) won't see it). As soon as you have attached a producer to the device, it will start announcing CAPTURE capabilities only (so applications that refuse to open devices that have other capabilities apart from capturing can open it too.)

However, at least on Manjaro, both Firefox and Chromium seem to work well with exclusive_caps=0.

Right now my solution is to manually modprobe v4l2loopback at system startup, but it would better to have a configuration option in the settings for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions