Page 1 of 1

v4l2loopback-dkms in EasyOS

Posted: Sun Dec 25, 2022 9:50 am
by Maybe

Hello!

I can't compile. But I beg you please help me create a package virtv4l2loopback-dkms to use virtual camera in OBS Studio in EasyOS

From Dmitry (Russia)


Re: v4l2loopback-dkms in EasyOS

Posted: Sun Dec 25, 2022 11:29 am
by BarryK

Easy already has v4l2loopback-dc.ko:

Code: Select all

# modinfo v4l2loopback-dc
filename:       /lib/modules/5.15.79/extra/v4l2loopback-dc.ko
license:        GPL
author:         Vasily Levin, IOhannes m zmoelnig <zmoelnig@iem.at>, Stefan Diewald, Anton Novikov
description:    V4L2 loopback video device
depends:        videodev
name:           v4l2loopback_dc
vermagic:       5.15.79 SMP mod_unload modversions 
sig_id:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   unknown
signature:      
parm:           width:frame width (int)
parm:           height:frame height (int)
parm:           video_nr:video device numbers (-1=auto, 0=/dev/video0, etc.) (int)

Re: v4l2loopback-dkms in EasyOS

Posted: Sun Dec 25, 2022 11:54 am
by Maybe
BarryK wrote: Sun Dec 25, 2022 11:29 am

Easy already has v4l2loopback-dc.ko:

Hi, dear @BarryK this is great news! Thank you! But, how to make this package work with OBS so that the virtual camera works? I downloaded OBS studio and its dependencies from the package manager EasyOS.

Usually after installing v4l2loopback package the virtual camera button appears in the OBS studio interface. You don't need to do any tricky moves.

It's sad there is no button virtual camera in OBS studio interface in EasyOS.

Please tell me, maybe I missed something.


Re: v4l2loopback-dkms in EasyOS

Posted: Mon Dec 26, 2022 12:43 am
by BarryK

I cannot remember. It is fortunate that I post frequently to my blog. Maybe these posts will help:

https://bkhome.org/news/202204/kernel-5 ... odule.html

https://bkhome.org/news/202204/droidcam ... ssues.html

https://bkhome.org/news/202204/droidcam ... works.html

...that last one is using the phone as video input for OBS, which probably isn't what you want.

Can't say that I know what a "virtual camera" is.


Re: v4l2loopback-dkms in EasyOS

Posted: Sat Dec 31, 2022 10:05 am
by Maybe

Dear, @BarryK The fact that you have made it possible to use a phone as a webcam is amazing and very convenient. Thank you very much for this!

I want to tell a little about the virtual camera function in obs-studio. The virtual camera feature allows you to use obs-studio instead of a webcam in Zoom or another messenger.

The virtual camera in obs-studio allows you to use many convenient features, such as broadcasting photos of desktop graphs during a conference in zoom.

The effect is the same as while watching the news on television, there is an announcer who reads the news next to him, photographs of a quote or something else appear on the screen, while the image of the person reading the news does not disappear.

To implement these features need v4l2loopback-dkms kernel module


Re: v4l2loopback-dkms in EasyOS

Posted: Sat Dec 31, 2022 11:09 am
by BarryK

OK, looks like a very useful thing to do.
I'm starting a bit of a New Year break, but have written this down in the to-do list.


Re: v4l2loopback-dkms in EasyOS

Posted: Sat Dec 31, 2022 3:09 pm
by rockedge

@BarryK I have been following your work and Droidcam became an interesting subject. Inspired, I began to test using old cell phones as network cameras for ZoneMinder.

Turns out Droidcam works well with ZoneMinder and really opens up possibilities. I have now some interesting mobile phone mounting devices that turned out to be an easy Christmas gift for this grandfather.