[1] 2 >>> MLD-5.x / Systems / x86 Systeme (PC) / {MLD5.5 testing} v4l2loopback - EpocCam
 

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
{MLD5.5 testing} v4l2loopback - EpocCam
« on: January 21, 2020, 17:51:33 »


Hello,

v4l2loopback is a module that allows you to create "virtual video devices" to be used by Skype in case if you don't have any physical USB Webcam.

Link to build the module
https://github.com/umlaeute/v4l2loopback

I compiled it for kernel 5.3.11
Is it possible to build it for newer kernels?

With the help of v4l2loopback you can also use EpocCam which will turn your phone into wireless High Definition webcam for PC.

EpocCam_linux

https://github.com/ohwgiles/epoccam_linux

Apk download link

https://play.google.com/store/apps/details?id=com.kinoni.webcam2

Bdw: that is not my dog in Skype webcam, it's a video file  :)

It can be played after you build v4l2loopback as follows

ffmpeg -re -i video.avi -f v4l2 /dev/video0

Best regards.
« Last Edit: May 30, 2021, 23:47:31 by gr4vity »

Offline P3f

  • Administrator
  • Expert Member
  • ********
  • Posts: 1460
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #1 on: January 23, 2020, 17:47:53 »
Hello gr4vity,

at the next Kernelupdate i will also provide an Patch for these v4l2Loopback. At the moment it is only in our internal unstable Kernelversion existing.

The Program EpoCam are also needed? Or you will use the normal Way -without an MLD Package- the Installation?

Regards,

Pit
----------------------------------------------------------------------
VDR 1:(MLD 5.4-64), ZOTAC ION ITX F-E, 1GB 1033, ATRIC-Einschalter, ImonLCD, Cinergy S2 HD
VDR 2 MLD-BPI: BananaPI | 16 GB SD-Card | MLD 5.3 in Entwicklung
MLD-WTK: WeTek-Play | 8 GB MicroSD-Card | MLD 5.3 als SatIP-Server

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #2 on: January 24, 2020, 01:44:55 »
Hi P3f,

Thanks a lot, it would be great if you can include the v4l2Loopback module inside dvb-mb package.
It can be compiled same way as vtuner.
I already compiled it for kernel 5.3.11 using docker container.
It should be located in
 /lib/modules/~/extra/v4l2Loopback.ko

EpocCam can be easily compiled, i included it in the topic description just in case someone is interested to try it.

Bdw: you can also broadcast live tv to skype webcam using vdr-streamdev-server url using ffmpeg

ffmpeg -re -i vdr-streamdev-server url -f v4l2 /dev/video0



Best regards.
« Last Edit: January 24, 2020, 01:59:43 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #3 on: March 04, 2020, 20:29:56 »
Hi Peter,

I Upgrade to kernel v5.4.20.202.42 two days ago,
I thought you forgot about v4l2Loopback module patch since you never verify that you actually did it.
However, i was checking dvb-mb release log then was surprised that you already added V4L2Loopback module since 2020-01-24

Version 29.7 at 2020-01-24 by Peter Pfeifer
   add V4L2Loopback Modul

Thanks a lot  :)

The thing is it refused to work, error message as follows:

modprobe: can't load module v4l2loopback (kernel/drivers/media/v4l2-core/v4l2loopback.ko): Invalid argument
MLD>

Any idea?

Offline baltic

  • MLD-Debugger
  • Expert Member
  • *****
  • Posts: 724
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #4 on: March 05, 2020, 08:00:16 »
This error often appears, when a module doesn't fit with the kernel. It possibly needs a rebuild.
MLD 5.5 – unstable  Asus M3N78-EM  SkyStar2

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #5 on: March 06, 2020, 14:07:44 »
Hi baltic,

That's correct, it means it was built against a different kernel version or different headers.
I will try to build it later.

« Last Edit: March 06, 2020, 20:23:57 by gr4vity »

Offline P3f

  • Administrator
  • Expert Member
  • ********
  • Posts: 1460
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #6 on: March 08, 2020, 14:27:19 »
Hello gr4vity,

now there are an new Kernel (5.4.24) include an re-compile of the additionals patches. Also include the loopback, which are now in the dvb-mb package.

Thanks, for your patient.

Regards,

Pit
----------------------------------------------------------------------
VDR 1:(MLD 5.4-64), ZOTAC ION ITX F-E, 1GB 1033, ATRIC-Einschalter, ImonLCD, Cinergy S2 HD
VDR 2 MLD-BPI: BananaPI | 16 GB SD-Card | MLD 5.3 in Entwicklung
MLD-WTK: WeTek-Play | 8 GB MicroSD-Card | MLD 5.3 als SatIP-Server

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #7 on: March 08, 2020, 16:11:45 »
Hello P3f,

Thank you very much for your effort,
I just build dvb-mb package inside container but i don't see v4l2loopback module.
P.s. i'm using kernel 5.4.20

Is there anyway to upgrade to kernel 5.4.24? because it's not described in MLD wiki.

Best Regards.
« Last Edit: March 08, 2020, 16:14:16 by gr4vity »

Offline P3f

  • Administrator
  • Expert Member
  • ********
  • Posts: 1460
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #8 on: March 08, 2020, 16:42:03 »
Hello gr4vity,

if you realy use the MLD 5.4 Testing (64-Bit) there are an update available.

Regards,

Pit
----------------------------------------------------------------------
VDR 1:(MLD 5.4-64), ZOTAC ION ITX F-E, 1GB 1033, ATRIC-Einschalter, ImonLCD, Cinergy S2 HD
VDR 2 MLD-BPI: BananaPI | 16 GB SD-Card | MLD 5.3 in Entwicklung
MLD-WTK: WeTek-Play | 8 GB MicroSD-Card | MLD 5.3 als SatIP-Server

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #9 on: March 08, 2020, 22:12:13 »
Hi P3f,

I think there is some misunderstanding,
My docker container has MLD kernel 5.4.20
I want to do make checkout for dvb-mb then build v4l2loopback module for kernel 5.4.20
Otherwise, is it possible to upgrade to kernel 5.4.24 for docker container without having to start from scratch?

Best Regards.

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20117
    • View Profile
    • ClausMuus.de
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #10 on: March 08, 2020, 22:26:28 »
The dvb-mb package do not have the option to compile a loopback device. That is only part of the dvb package.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #11 on: March 08, 2020, 22:33:27 »
The dvb-mb package do not have the option to compile a loopback device. That is only part of the dvb package.

No problem i compiled it manually by copying v4l2loopback source inside dvb-mb folder
Just the same way vtuner was compiled.

What about upgrading to kernel 5.4.24 for docker container?
Do i must start from scratch?  :o

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20117
    • View Profile
    • ClausMuus.de
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #12 on: March 09, 2020, 00:03:23 »
It's enougth to update the kernel package, and than rebuild the kernel and after that do a "make all_depends" in the kernel folder to build all kernel depended packages.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #13 on: March 09, 2020, 15:53:00 »
Hi claus,

I will stick with kernel 5.4.20 for now.
So if i want to upgrade MLD kernel in the future, which steps i should follow?

rm -r /MLD/kernel?
or
cd /MLD/kernel
or
cd /MLD/kernel/src

Then?

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20117
    • View Profile
    • ClausMuus.de
[MLD 5.4 testing] v4l2loopback - EpocCam
« Reply #14 on: March 09, 2020, 16:00:58 »
Code: [Select]
cd MLD/kernel
git pull
make clean
make all_depends
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

[1] 2 >>> MLD-5.x / Systems / x86 Systeme (PC) / {MLD5.5 testing} v4l2loopback - EpocCam
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.