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
Linux: Stopping Virtual Camera Requires v4l2loopback Restart to Restart Virtual Camera #12506
After stopping the virtual camera, it should restart without issue.
Current Behavior
The virtual camera fails to start, showing the following error:
Steps to Reproduce
Start the virtual camera after a fresh boot with v4l2loopback up and running.
Stop the virtual camera.
Start it again.
...
Anything else we should know?
This started for me with 31.1.0.
As shown in the logs, after stopping v4l2loopback, /dev/video has the following:
crw-rw----+ 1 root video 81, 1 Aug 14 06:01 /dev/video0
crw-rw----+ 1 root video 81, 2 Aug 14 06:01 /dev/video1
crw-rw----+ 1 root video 81, 0 Aug 14 18:43 /dev/video10
I noticed that when I was last Recording: I wasn't able to close and re-open my webcam (not the Virtual Camera); something that I don't think has happened before.
If this means you're using the usual Ubuntu 24.04 v4l2loopback-dkms package, then you've probably got version 0.12.7.
I can reproduce the behaviour provided I don't open the Virtual Camera in another application. A (horrible) workaround is:
Start the virtual camera.
Open it with ffplay or something.
Stop the virtual camera.
Close ffplay.
You can now start and stop the virtual camera as often as you like.
This is still (basically) a problem with v4l2loopback which OBS has tried to work around for some time. Newer versions of the loopback module don't exhibit this behaviour; but OBS had a non-compliant work-around - so we had to try a new work-around in OBS. But corner cases seem to keep popping up :/
I'll have a quick look today to see if there's a way to clean this corner case up.
@stephematician Yep, looks like I'm using 0.12.7-2ubuntu5 if I'm parsing the output from apt list correctly.
I can reproduce the behaviour provided I don't open the Virtual Camera in another application. A (horrible) workaround is:
Start the virtual camera.
Open it with ffplay or something.
Stop the virtual camera.
Close ffplay.
That didn't work for me—I had the same error condition with the virtual camera when I tried to restart it after closing ffplay. The thing that's been working continuously is to remove and reload the v4l2loopback module.
Yeah; sorry, I could have linked to the packaged files. Otherwise, the .deb can be built from the source package as follows:
Download the .dsc, the v4l2loopback_0.15.0.orig.tar.gz and v4l2loopback_0.15.0-2.debian.tar.xz from the link I provided into a folder, say ~/debian/loopback.
Go to ~/debian/loopback in a terminal, and extract the files into a folder v4l2loopback-0.15.2 via:
dpkg-source -x v4l2loopback_0.15.0-2.dsc
Then cd v4l2loopback-0.15.0 and build the debian files which will be placed back in ~/debian/loopback:
debuild -us -uc
NOTE: this is an unsigned build.
Go back and use dpkg or apt or gdebi to install the .deb.
Details are provided in the maintainers guide, but it's way more detail than most need.
Anyway; I wouldn't close this issue because in theory (I believe) Ubuntu 24.04 is a target platform for OBS; so if we can fix it up so that it works with the loopback module provided for 24.04, then we should. I've got a proposed fix already: #12510
Yeah; sorry, I could have linked to the packaged files. Otherwise, the .deb can be built from the source package as follows:
I wanted to mention a slightly alternative approach, I think it is more canonical based on the upstream readme but like most nerd things it's an opinionated take and debatable. My thinking was if I'm managing the package out-of-band from apt then I should probably remove the apt packages and lean into the notion I have to manage this myself.
Remove the apt packages: sudo apt remove v4l2loopback-dkms v4l2loopback-utils
Mark dkms as manually installed: sudo apt install dkms
Prevents dkms being auto-removed later if v4l2loopback was the only package needing it
Download the latest source and extract to the system source tree :
curl -L https://github.com/umlaeute/v4l2loopback/archive/v0.15.3.tar.gz | tar xvz -C /usr/src
I can confirm the issue with flatpak Version on Linux Mint 22 Cinnamon.
The consistent fix is to run this: sudo modprobe -r v4l2loopback; sudo modprobe v4l2loopback
But that's super annoying to do.
End users without technical skills will not be able to make it work.
I'm very aware of that. If it wasn't clear, my in-between-the-lines statement is that while the workaround works, it's not viable for regular users (heck, even if you're tech savvy this is a very annoying fix because it requires opening Terminal + running a command that requires sudo)
It failed to install (Linux Mint 22.3 Xfce) because of this bug which was fixed in v4l2loopback-v0.15.1. The package on stable Debian is still 0.15.0-2, and doesn't have the fix. Luckily, the next version of Debian has a more updated version 0.15.3-1 https://packages.debian.org/forky/all/v4l2loopback-dkms and this seemed to install fine. That's it... I think. OBS can start and stop the virtual camera as many times as needed. Apps like Discord, Signal and Zoom appear to see the camera.
Now, the next issue might affect only me and probably has nothing to do with OBS, but I just cannot get Firefox specifically to see the camera picture. It detects that the camera exists, but it just can't show it in the preview and websites trying to use the camera get a blank image. I haven't looked into this issue yet, and frankly I ran out of patience for this. But still I would like to know if anyone else is having this exact problem.
Now, the next issue might affect only me and probably has nothing to do with OBS, but I just cannot get Firefox specifically to see the camera picture. It detects that the camera exists, but it just can't show it in the preview and websites trying to use the camera get a blank image. I haven't looked into this issue yet, and frankly I ran out of patience for this. But still I would like to know if anyone else is having this exact problem.
I'm not having this problem. Just tested with a Google Meet link. Hopefully, you can find a resolution quickly.
Activity
stephematician commentedon Aug 15, 2025
What version of v4l2loopback are you using, e.g. as reported by
modinfo v4l2loopback.I think you mean that it started with 31.1.2; because I don't think 31.1.0 would include the "attempting to reset output capability" shown in the log.
stephematician commentedon Aug 15, 2025
@cmosetick - you reported a similar problem but I never saw any further details (I suggested trying the OBS forum)
Given that two people have reported this, I am wondering if there's something that has been missed in #11906 (in spite of best efforts to test).
stephematician commentedon Aug 15, 2025
Alternatively; there could be a new problem.
I noticed that when I was last
Recording: I wasn't able to close and re-open my webcam (not the Virtual Camera); something that I don't think has happened before.hcgernhardtiii commentedon Aug 15, 2025
Output from
modinfo v4l2loopback:I just performed an
apt update && apt full-upgrade, so this should be the most recent version from the repos.stephematician commentedon Aug 16, 2025
If this means you're using the usual Ubuntu 24.04 v4l2loopback-dkms package, then you've probably got version 0.12.7.
I can reproduce the behaviour provided I don't open the Virtual Camera in another application. A (horrible) workaround is:
You can now start and stop the virtual camera as often as you like.
This is still (basically) a problem with v4l2loopback which OBS has tried to work around for some time. Newer versions of the loopback module don't exhibit this behaviour; but OBS had a non-compliant work-around - so we had to try a new work-around in OBS. But corner cases seem to keep popping up :/
I'll have a quick look today to see if there's a way to clean this corner case up.
A better workaround, btw, is to use a newer version of the loopback module. There's nothing really stopping you from downloading the .deb package of 0.15.0 from here: https://packages.debian.org/trixie/all/v4l2loopback-dkms and installing it with gdebi or apt.
hcgernhardtiii commentedon Aug 16, 2025
@stephematician Yep, looks like I'm using 0.12.7-2ubuntu5 if I'm parsing the output from
apt listcorrectly.That didn't work for me—I had the same error condition with the virtual camera when I tried to restart it after closing
ffplay. The thing that's been working continuously is to remove and reload thev4l2loopbackmodule.The updated version appears to be working. It was a bit of a slog for me to actually find the .deb files. For those who might look at this later, I found them at https://ftp.debian.org/debian/pool/main/v/v4l2loopback/
Given that upgrading
v4l2loopbacksolves the issue, and it's fairly painless, shall we consider this resolved?stephematician commentedon Aug 17, 2025
Yeah; sorry, I could have linked to the packaged files. Otherwise, the
.debcan be built from the source package as follows:.dsc, thev4l2loopback_0.15.0.orig.tar.gzandv4l2loopback_0.15.0-2.debian.tar.xzfrom the link I provided into a folder, say~/debian/loopback.~/debian/loopbackin a terminal, and extract the files into a folderv4l2loopback-0.15.2via:cd v4l2loopback-0.15.0and build the debian files which will be placed back in~/debian/loopback:.deb.Details are provided in the maintainers guide, but it's way more detail than most need.
Anyway; I wouldn't close this issue because in theory (I believe) Ubuntu 24.04 is a target platform for OBS; so if we can fix it up so that it works with the loopback module provided for 24.04, then we should. I've got a proposed fix already: #12510
yllekz commentedon Dec 22, 2025
I have run into this on a consistent basis with the Flatpak OBS for a few months now.
The consistent fix is to run this:
sudo modprobe -r v4l2loopback; sudo modprobe v4l2loopbackBut that's super annoying to do. I don't seem to have this issue in any other app, just OBS.
notyourbiz commentedon Dec 23, 2025
hey there, i'm having the exact same problems here...
running OBS-.Studio 32.0.4 (Flatpak) on Linux Mint 22 Wilma Cinnamon
lizzi193 commentedon Dec 25, 2025
I can confirm the issue with flatpak Version on Linux Mint 22 Cinnamon.
End users without technical skills will not be able to make it work.
stephematician commentedon Dec 25, 2025
In case this has been missed, there is a proposed fix already #12510
Just waiting for it to get merged.
dephekt commentedon Dec 27, 2025
I wanted to mention a slightly alternative approach, I think it is more canonical based on the upstream readme but like most nerd things it's an opinionated take and debatable. My thinking was if I'm managing the package out-of-band from apt then I should probably remove the apt packages and lean into the notion I have to manage this myself.
sudo apt remove v4l2loopback-dkms v4l2loopback-utilssudo apt install dkmsTo update the module in the future, just repeat steps 3, 4, and 5 using the new release tag (e.g. 0.15.4 or 0.16.1).
Looking forward to your proposed MR getting merged, thanks for your effort ❤️
yllekz commentedon Dec 27, 2025
I'm very aware of that. If it wasn't clear, my in-between-the-lines statement is that while the workaround works, it's not viable for regular users (heck, even if you're tech savvy this is a very annoying fix because it requires opening Terminal + running a command that requires
sudo)philb61 commentedon Jan 22, 2026
Is this fix ever going to get merged in? I'm presently using v4l2loopback-dkms:
v4l2loopback-dkms/now 0.15.2-1 all [installed,local]
Source for the v4l2loopback driver (DKMS)
on Ubuntu 24.04, and it still happens.
NeatNit commentedon Apr 23, 2026
Leaving a note here for anyone unlucky enough to have to deal with this but lucky enough to find this post.
TL;DR: this is the .deb to install: https://packages.debian.org/forky/all/v4l2loopback-dkms/download just pick any of the mirrors and continue despite no https. Verify the download afterwards using the SHA256 checksum at the bottom of the page. On Mint, I could just double-click the .deb and a GUI opened to install it. Hope it's as easy on other distros. Done.
More details: This plan sounded good to me, but failed:
It failed to install (Linux Mint 22.3 Xfce) because of this bug which was fixed in v4l2loopback-v0.15.1. The package on stable Debian is still 0.15.0-2, and doesn't have the fix. Luckily, the next version of Debian has a more updated version 0.15.3-1 https://packages.debian.org/forky/all/v4l2loopback-dkms and this seemed to install fine. That's it... I think. OBS can start and stop the virtual camera as many times as needed. Apps like Discord, Signal and Zoom appear to see the camera.
Now, the next issue might affect only me and probably has nothing to do with OBS, but I just cannot get Firefox specifically to see the camera picture. It detects that the camera exists, but it just can't show it in the preview and websites trying to use the camera get a blank image. I haven't looked into this issue yet, and frankly I ran out of patience for this. But still I would like to know if anyone else is having this exact problem.
philb61 commentedon Apr 23, 2026
I'm not having this problem. Just tested with a Google Meet link. Hopefully, you can find a resolution quickly.
NeatNit commentedon Apr 24, 2026
Thanks for the data point!