Bug 257624

Summary: multimedia/obs-studio: Fails to detect v4l2loopback
Product: Ports & Packages Reporter: David Schlachter <fbsd-bugzilla>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Some People CC: swills
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   

Description David Schlachter 2021-08-04 19:21:53 UTC
webcamd recently added support for v4l2loopback in FreeBSD (https://github.com/hselasky/webcamd/pull/9). It is now possible to create a v4l2loopback device:

    # webcamd -c v4l2loopback
    webcamd 74613 - - Creating /dev/video0

However, when OBS starts, it does not detect it and disables the virtual camera plugin:

    $ obs
    ...
    warning: v4l2loopback not installed, virtual camera disabled

Expected behavior is that OBS would detect the presence of v4l2loopback (via webcamd) and enable the virtual camera if it is present.
Comment 1 Steve Wills freebsd_committer freebsd_triage 2021-08-04 21:01:56 UTC
There's already a patch for this that's been sent upstream:

https://github.com/obsproject/obs-studio/pull/5069
Comment 2 David Schlachter 2021-08-04 21:06:08 UTC
Awesome, thanks!
Comment 3 Steve Wills freebsd_committer freebsd_triage 2021-08-04 21:10:46 UTC
Not sure I consider this fixed just yet.
Comment 4 David Schlachter 2021-11-05 10:11:35 UTC
The upstream patch has been backported to the OBS Studio port, so we now correctly detect v4l2loopback & the virtual camera works: https://cgit.freebsd.org/ports/commit/?id=c6f10a7b5ed6b991cf4c47254628ed7130e0116e