obsproject / obsproject/obs-studio
OBS causes uvcvideo to blank cameras after exiting and loads the wrong default properties
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 76.4k
- Forks
- 10.2k
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 12
Description
Operating System Info
Other
Other OS
reproducable, 2 different devices: 1.Desktop PC Arch Linux (x86) 2. Arch Linux (m1 arm64)
OBS Studio Version
Git
OBS Studio Version (Other)
28.0.1-5 (GIT)
OBS Studio Log URL
https://obsproject.com/logs/XkrZjuTzTkl4HhhW
OBS Studio (partial) blank/failing camera log
https://obsproject.com/logs/-YZjqDIYbvAXPq5a
Expected Behavior
- When OBS exits, and then when it is launched again, all webcams are still shown
- Default value of 'Zoom, Continuous', 'Pan Speed', 'Tilt Speed' is set to the minimum value upon creating new camera and loading it
Current Behavior
- When OBS exits, and then when it is launched again, some webcams are blank or not loaded at all
- Default value of 'Zoom, Continuous', 'Pan Speed', 'Tilt Speed' is set to the maximum value and my PTZ cameras go crazy
Steps to Reproduce
- Add webcam: NexiGo N970P to OBS. Exit OBS and Open OBS again
... - Create a new cam and load the N970P camera. Look at the values 'Zoom, Continuous', 'Pan Speed', 'Tilt Speed' is set to the maximum value
Anything else we should know?
This camera is having Flash Memory to retain its settings and takes ~1 second to initialize.
I use up to 4 of them at a time. But the problems relating blanking out also happen with only 1 camera connected.
This issue is only existing on Linux. It doesnt matter which kernel or Device I use. It happens on any machine.
As a workaround, it helps to issue 'sudo rmmod uvcvideo; sudo modprobe uvcvideo'
That problem is not present in 'cheese' or 'guvcview', Zoom or any other application!
The issue regarding zooming and panning like crazy when a settings dialog is opened or OBS has been started are only happening on newly created cameras with the said values and the default values of '3' loaded, which is the maximum.
Changing it afterwards to the minimum value fixes the issue.
This issue is no more present under Windows, after Hotfix 28.0.1. It was present in 28.0.0
I am in contact with the manufacturer and we found out that those problems are exclusive to ArchLinux / Linux.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the two linked OBS logs and reproduce the NexiGo N970P behavior on Arch Linux, focusing on camera initialization after restart and the PTZ property defaults. Compare the failing behavior with the stated workaround and confirm that webcams remain loaded after relaunch and that Zoom, Pan Speed, and Tilt Speed start at their minimum values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- audio-video-rtc, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100