Bug 26701 - v4l2loopback (video for linux 2) kernel module, NEW PKG REQUEST
Summary: v4l2loopback (video for linux 2) kernel module, NEW PKG REQUEST
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: Mageia 9
Assignee: Marc Krämer
QA Contact:
URL: https://github.com/umlaeute/v4l2loopback
: 28488 (view as bug list)
Depends on:
Blocks: 26703
  Show dependency treegraph
Reported: 2020-05-29 12:27 CEST by Christian Lohmaier
Modified: 2023-05-15 06:43 CEST (History)
5 users (show)

See Also:
Source RPM:
Status comment:

spec file I used to build a dkms package for my own use (1.49 KB, text/x-matlab)
2020-05-29 12:29 CEST, Christian Lohmaier

Description Christian Lohmaier 2020-05-29 12:27:22 CEST
Description of problem:
There's no loopback support in upstream kernel yet, and mageia doesn't ship the v4l2loopback module package yet.
A v4l2 (video for linux 2) device is used as source by many applications, including browsers for video-conferencing but also other programs that are making use of video-captures.

A loopback device allows to use other programs to create a video stream instead of using an actual camera attached to the computer. This allows adding video-filters to applications that otherwise would not support it. For example combining multiple individual videos into a single one for applications that only accept a single input, crop, colorgrade or otherwise improve your video or create a video stream from other sources that don't have a v4l2 interface, like for example a feed from a DSLR via USB

The project's wiki https://github.com/umlaeute/v4l2loopback/wiki lists various examples using different tools
Comment 1 Christian Lohmaier 2020-05-29 12:29:51 CEST
Created attachment 11668 [details]
spec file I used to build a dkms package for my own use

sample spec file that can be used as a basis.
v4l2loopback includes a utility application that can be used to configure various parameters once the loopback device was created that is not built/installed in this spec - for my use it's optional, but it would be nice if a proper mageia package did include it.
Christian Lohmaier 2020-05-29 12:45:17 CEST

Blocks: (none) => 26703

Comment 2 Lewis Smith 2020-06-05 21:19:45 CEST
Thank you for the suggestion and the details.

Assigning this package request to all packagers collectively. On a voluntary basis, one of them might, if there are no license or other legal issues, want to integrate it to the distribution and maintain it for bug and security fixes.

You Christian might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs
Summary: Add v4l2loopback kernel module => v4l2loopback (video for linux 2) kernel module, NEW PKG REQUEST
Source RPM: https://github.com/umlaeute/v4l2loopback => (none)
Severity: normal => enhancement
URL: (none) => https://github.com/umlaeute/v4l2loopback

Lewis Smith 2020-06-05 21:37:34 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=26703

Comment 3 Lewis Smith 2020-06-05 21:39:13 CEST
Forgot to point out the obvious that this request applies even more to Cauldron/M8.
Comment 4 Aurelien Oudelet 2021-02-28 20:32:18 CET
*** Bug 28488 has been marked as a duplicate of this bug. ***

CC: (none) => mageia

Aurelien Oudelet 2021-02-28 20:35:25 CET

Target Milestone: --- => Mageia 9
Version: 7 => Cauldron
CC: (none) => ouaurelien, smelror

Aurelien Oudelet 2021-02-28 20:35:40 CET

CC: (none) => kernel

Comment 5 Marc Krämer 2021-02-28 22:04:43 CET
Since this is an dkms module, do we have someone who has experience in dkms modules and can import this package from fedora?
Comment 6 Marc Krämer 2021-03-01 09:54:32 CET
tried to use

made some adaptions, but I think we have different scripts for dkms...

Does some has a hint how this is done on mga? Checked nvidia390, but this looks very specific to adapt to our needs here
Comment 7 Christian Lohmaier 2021-03-01 11:23:02 CET
why not try the spec file I used and attached to the bugreport already? works fine for me....
Comment 8 Marc Krämer 2021-03-01 11:30:16 CET
I've overread your attachment. I'll give it a try.
Comment 9 Thomas Backlund 2021-03-01 11:52:51 CET
why is the util omitted ?
Comment 10 Christian Lohmaier 2021-03-01 18:27:36 CET
out of laziness really - in 0.12.5 it still is just a script that doesn't require much, but on current master it is a c file/needs to be compiled, and not sure how strict the packaging policies in Mageia are and whether it would be OK to just ship it as part of a dkms package or whether it would need to be split out.

But real issue is that I don't have a use for it personally, I only use a single setting/device that I can just configure with module parameters…
Marc Krämer 2021-03-01 21:25:03 CET

Assignee: pkg-bugs => mageia

Comment 11 Marc Krämer 2021-03-01 23:47:38 CET
initial version submitted.
Comment 12 Thomas Backlund 2021-03-01 23:51:13 CET
wrong naming of dkms package.

dkms packages should always be named dkms-<packagename>
Comment 13 Marc Krämer 2021-03-02 08:37:37 CET
Thx Thomas. This was still the naming from fedora. Corrected.
Comment 14 Marc Krämer 2021-03-02 08:39:59 CET
can we use #28488 as backports request?
Comment 15 David GEIGER 2023-05-15 06:43:07 CEST
v4l2loopback was imported on Mageia, so closing as fixed!

CC: (none) => geiger.david68210
Resolution: (none) => FIXED

Note You need to log in before you can comment on or make changes to this bug.