OBS Studio 27.0.1 starts ... and stops after few seconds

I have installed OBS-Studio 27.0.1 by repo following this instruction

I have installed ffmpeg and the dkms module

sudo apt install ffmpeg
sudo apt install v4l2loopback-dkms

After that i added my user to the "video" group

sudo usermod -a -G video MY-USERNAME

After that i restarted Zorin.
OBS is installed and listed in the Main Menue. Starting OBS opens the OBS Windows for a few seconds and then the windows closed.

I started OBS by terminal with
sudo obs

OBS now runs without problems.

Starting obs by normal user delivers
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux 2)

error: v4l2-input: /dev/video0: select timed out
error: v4l2-input: /dev/video0: failed to log status

Any ideas?

Why not using the PPA instead?

EDIT: oh, you did. Sorry.

i think it has "only" to do with user rights but not sure what changes are needed.

The path ls - la /usr/bin/obs delivers
-rwxr-xr-x 1 root root

I think the normal user has no access to v4l2-input ...

concerning to this

i have checked
ls -la /dev/video0

what delivers
crw-rw----+ 1 root video 81, 0 Sep 9 07:00 /dev/video0

so the group "video" has access to /dev/video0
my USER is in the accessible group "video" ...

1 Like

I have never used OBS, but perhaps these troubleshooting posts can help you find a sense of direction:

Thanks for reply, but i think my OBS behaviour with version 27.0.1 does no longer depend on the ability to activate the virtual cam.

This is working with sudo obs - so modprobe v4l2loopback should be ok.

My BRIO Cam is recognized and working properly in OBS when starting the app as sudo.

My problem is, that OBS does not start properly itself before i can activate any v-cam ...

1 Like

OBS Forum:

my outputs
v4l2-ctl --get-priority
Priority: 2

v4l2-ctl -d /dev/video2 --get-parm
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0

Same with video0 so my framerate is not 0 but my Read buffers are.

Don't know if this has any impact on the start process as user.

Got it (nearly) working folks!

I updated ZorinOS to 16 by fresh install of the OS but i saved my homedir before and restored my settings from this backup!

That why i had a ~/.config/obs-studio dir in my homedir that contains some older settings and files. After removing / purge this dir - a new version has been created after starting OBS again.

But there is still another problem, when starting the virtual webcam OBS ask for sudo password.
Should be working as none root user too.
Any ideas to this behaviour?

Last Problem solved too

sudo modprobe v4l2loopback
sudo depmod -a

and last
sudo nano /etc/modules
added one line with "v4l2loopback"

so module starts at boot time and now OBS Studio don't ask for the sudo password when enabling the virtual cam.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.