obsproject / obsproject/obs-studio

v4l2: BRIO Ultra HD Webcam camera hangs

Open
#9,418 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/confirmed platform/linux
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

Manjaro

OBS Studio Version

Other

OBS Studio Version (Other)

29.1.3-1

OBS Studio Log URL

https://obsproject.com/logs/GQ7ja9u8yzDocJIe

OBS Studio Crash Log URL

No response

Expected Behavior

A USB UVC webcam can be added as a video source in OBS.

Current Behavior

The v4l device does not get detected by OBS, other apps detect it fine. After trying to add the device, it causes the /dev/videoX file to disappear, OBS hangs and must be killed to exit, and pipewire exits with a 245 status code.

OBS cannot be restarted without a full system reboot, running obs in the terminal causes it to hang after loading modules. log file when OBS hangs after the issue
Restarting pipewire using systemctl restart --user pipewire causes the command to hang.
Trying to shut down hangs, the system is waiting and trying to kill pipewire, which does not react to SIGTERM
Running v4l2-ctl --list-devices results the following error code: Cannot open device /dev/video0, exiting.

Using any other app to test the device yields the expected result of the webcamera working.

Steps to Reproduce
  1. Run v4l2-ctl --list-devices (returns list of devices)
  2. Open OBS
  3. Add source
  4. Select Video Capture Device (V4L2)
  5. Select Create New and click OK
  6. Cannot select device
  7. Click Exit
  8. Kill OBS because it hangs
  9. Run v4l2-ctl --list-devices again (results in Cannot open device /dev/video0, exiting.)
Anything else we should know?

OBS was installed from the Manjaro linux repository

The offending USB UVC device:
Bus 002 Device 003: ID 046d:085e Logitech, Inc. BRIO Ultra HD Webcam

Shortened output of neofetch:

OS: Manjaro Linux x86_64 
Kernel: 6.1.44-1-MANJARO 
DE: GNOME 44.3 
WM: Mutter 
CPU: Intel i7-7700K (8) @ 4.500GHz 
GPU: Intel HD Graphics 630 
GPU: AMD ATI Radeon RX Vega 56/64 
Memory: 4052MiB / 15866MiB 

Running v4l2-ctl --list-devices before opening OBS with the v4l source added yields:

Logitech BRIO (usb-0000:00:14.0-3.2):
	/dev/video0
	/dev/video1
	/dev/video2
	/dev/video3
	/dev/media0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked OBS logs and reproduce the failure using v4l2-ctl, OBS, and the Logitech BRIO on Manjaro. Compare device behavior before and after adding the V4L2 source; the issue is done when the webcam remains available, OBS exits normally, and pipewire does not hang.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
desktop-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.