Re: [RFC PATCH] media: Virtual camera driver
From: Mauro Carvalho Chehab
Date: Sun Feb 01 2026 - 18:17:26 EST
On Sun, 01 Feb 2026 21:26:24 +0100
Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx> wrote:
> On neděle 1. února 2026 21:21:33, středoevropský standardní čas Mauro Carvalho Chehab wrote:
> > > My use-case for v4l2loopback is to stream a webcam from one machine to another (with the help of ffmpeg). Is this covered by something other than v4l2loopback now?
> >
> > Using a kernel driver for something like that is a bad idea and may end
> > causing dead lock problems. You may also have performance issues and
> > high network traffic. The best solution for it is to use a proper
> > userspace tool, like obs:
> >
> > https://obsproject.com/kb/linux-installation
>
> Ignoring the fact I've never had any performance issues, and I don't care much about how big the traffic is in my isolated VLAN dedicated to this specific task, the OBS solution still uses v4l2loopback under the hood. Could you please tell me what do I miss in this regard?
No. At the machine with the camera, obs can read from a V4L input,
generate a mpeg TS stream, and listen to a UDP port (for instance).
At the remote machine, you can just pass the URL to ffmpeg.
No need to use OOT kernel drivers.
Btw, there are other solutions that work the same way, like
motioneye.
Thanks,
Mauro