all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
To: Morgan.J.Smith@outlook.com
Cc: 41759@debbugs.gnu.org
Subject: [bug#41759] [PATCH] gnu: Add v4l2loopback-linux-module.
Date: Mon, 08 Jun 2020 10:37:41 +0200	[thread overview]
Message-ID: <87lfkyq7fu.fsf@nckx> (raw)
In-Reply-To: <DM5PR1001MB21056EE80613C3F9FDFCA857C5850@DM5PR1001MB2105.namprd10.prod.outlook.com>


[-- Attachment #1.1: Type: text/plain, Size: 2495 bytes --]

Morgan,

Morgan.J.Smith@outlook.com 写道:
> +  (package
> +    (name "v4l2loopback-linux-module")
> +    (version "0.12.5")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url 
> "https://github.com/umlaeute/v4l2loopback.git")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> + 
> "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn"))))
> +    (build-system linux-module-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (replace 'check
> +           (lambda _
> +             (invoke "make"
> +                     "--directory=./tests"
> +                     (string-append "CC=" 
> ,(cc-for-target))))))))

This only builds the ‘test_dqbuf’ executable, but doesn't run it. 
Trying to fails with:

  usage: tests/test_dqbuf <videodevice>

i.e. it needs the kernel module to be loaded as we discussed on 
IRC.  That's the norm for kernel drivers.  For obvious reasons, 
loading them in the build environment isn't an option.

(Computers are magic and one could virtualise a kernel, similar to 
what we do with Xvfb for X11 tests, but it would work only for 
drivers that don't require any hardware and excuse me the word 
‘overkill’ is knocking at the door.)

> +    (home-page "https://github.com/umlaeute/v4l2loopback")
> +    (synopsis "Linux kernel module that allows you to create 
> \"virtual video devices\"")

Life hack: s/that allows you//

> +    (description "This module allows you to create \"virtual 
> video devices\"
> +normal (v4l2) applications will read these devices as if they 
> were ordinary
> +video devices, but the video will not be read from e.g. a 
> capture card but
> +instead it is generated by another application. this allows you 
> for instance
> +to apply some nifty video effects on your Jitsi video... it 
> also allows some
> +more serious things (e.g. using it to add streaming 
> capabilities to an
> +application by the means of hooking GStreamer into the loopback 
> devices).")

Double-spacing between sentences is mandatory in Texinfo, because 
we are all boomers.

I was just about to push with the edits below, but… OK.  Done 
separately as fdcd193744dbb92d3478c8e4e6c4f4336a872831 et al.

Thanks!

T G-R


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: Type: text/x-patch, Size: 1917 bytes --]

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 3a8d45e20b..c40b33a0a9 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1150,23 +1150,17 @@ supported under @file{/sys/class/backlight/}.")
                (base32
                 "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn"))))
     (build-system linux-module-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda _
-             (invoke "make"
-                     "--directory=./tests"
-                     (string-append "CC=" ,(cc-for-target))))))))
     (home-page "https://github.com/umlaeute/v4l2loopback")
-    (synopsis "Linux kernel module that allows you to create \"virtual video devices\"")
-    (description "This module allows you to create \"virtual video devices\"
-normal (v4l2) applications will read these devices as if they were ordinary
-video devices, but the video will not be read from e.g. a capture card but
-instead it is generated by another application. this allows you for instance
-to apply some nifty video effects on your Jitsi video... it also allows some
-more serious things (e.g. using it to add streaming capabilities to an
-application by the means of hooking GStreamer into the loopback devices).")
+    (synopsis "Linux kernel module to create virtual V4L2 video devices")
+    (description
+     "This Linux module creates virtual video devices.  @acronym{V4L2, Video
+for Linux 2} applications will treat these as ordinary video devices but read
+video data generated by another application, instead of a hardware device such
+as a capture card.
+
+This lets you apply nifty effects to your Jitsi video, for example, but also
+allows some more serious things like adding streaming capabilities to an
+application by hooking GStreamer into the loopback device.")
     (license license:gpl2+)))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

      reply	other threads:[~2020-06-08  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-08  3:49 [bug#41759] [PATCH] gnu: Add v4l2loopback-linux-module Morgan.J.Smith
2020-06-08  8:37 ` Tobias Geerinckx-Rice via Guix-patches via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfkyq7fu.fsf@nckx \
    --to=guix-patches@gnu.org \
    --cc=41759@debbugs.gnu.org \
    --cc=Morgan.J.Smith@outlook.com \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.