You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing camera resolution breaks the camera portal #10399
Changing camera resolution should keep the camera working.
Current Behavior
Changing the camera resolution breaks the portal -camera turns off and the video freezes-, and changing it back doesn't fix it. You have to restart OBS.
Steps to Reproduce
Create a new camera source using the pipewire camera portal.
Have you tested if you are getting the same result when using the V4L2 capture instead?
I can say from my own experience that some capture devices are just buggy like that. They don't allow changing capture parameters until turned off and on. This was consistent with other camera-applications.
Not doubting there could be an issue, just wanting to make sure this is actually related to the portal implementation.
Have you tested if you are getting the same result when using the V4L2 capture instead?
Yeah, using the V4L2 works as expected, but I found another way to get the bug to go away other than restarting the app, I can just change the camera source in the portal settings and change it back.
Using journalctl -u pipewire -a -o cat --user -r I scroll down and see that this is where things kick off, some error reported by libcamera:
[0:52:11.277887757] [20407] ERROR Camera camera.cpp:696 Camera in Running state trying configure() requiring state between Acquired and Configured
If I select a camera whose backend is v4l2 (not libcamera) then this crash doesn't happen (there are other glitches, similar to #10588 - I have to switch back and forth sometimes to get a particular framerate working).
Activity
mihawk90 commentedon Mar 17, 2024
Have you tested if you are getting the same result when using the V4L2 capture instead?
I can say from my own experience that some capture devices are just buggy like that. They don't allow changing capture parameters until turned off and on. This was consistent with other camera-applications.
Not doubting there could be an issue, just wanting to make sure this is actually related to the portal implementation.
shetozz commentedon Mar 17, 2024
Yeah, using the V4L2 works as expected, but I found another way to get the bug to go away other than restarting the app, I can just change the camera source in the portal settings and change it back.
GeorgesStavracas commentedon Apr 4, 2024
Hi @shetozz, can you please reproduce this issue while you run
$ pw-monin a terminal, and share the output with us?Please double check if the logs don't contain sensitive information before uploading them!
shetozz commentedon Apr 4, 2024
@GeorgesStavracas
obs.txt
stephematician commentedon Oct 8, 2024
I see this same behaviour too.
Seems to give pipewire a hard time, as audio drops out in firefox and I have to restart the pipewire service.
Here's the debug output:
stephematician commentedon Oct 8, 2024
pw-moncrashes immediately.Here's the
pw-monoutput pre-crash when I switch from 320x240 [YUYV] to 160x120 [YUYV]:pipewire_obs_pre_crash.txt
If I restart pipewire and run obs, the camera is at the new resolution. So it does change the settings, but something else fails along the way.
stephematician commentedon Oct 8, 2024
Using
journalctl -u pipewire -a -o cat --user -rI scroll down and see that this is where things kick off, some error reported by libcamera:If I select a camera whose backend is v4l2 (not libcamera) then this crash doesn't happen (there are other glitches, similar to #10588 - I have to switch back and forth sometimes to get a particular framerate working).