* [PATCHES] Add v4l-utils in order to add support for webcams to OBS
@ 2016-01-20 3:17 Thompson, David
2016-01-20 6:55 ` 宋文武
2016-01-20 10:08 ` Andreas Enge
0 siblings, 2 replies; 4+ messages in thread
From: Thompson, David @ 2016-01-20 3:17 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
These patches scratch a particularly timely itch. I want to use
OpenBroadcaster to record my talk tomorrow, but recording video from a
webcam requires libv4l.
(Sorry that these are likely not inline attachments. I'm dealing with
a less-than-ideal email setup right now.)
Thanks in advance for review!
- Dave
[-- Attachment #2: 0001-gnu-Add-v4l-utils.patch --]
[-- Type: text/x-diff, Size: 2012 bytes --]
From b1ccba1616dc77950b8495714a47d5e3f9b9eda1 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Tue, 19 Jan 2016 22:11:16 -0500
Subject: [PATCH 1/2] gnu: Add v4l-utils.
* gnu/packages/video.scm (v4l-utils): New variable.
---
gnu/packages/video.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 9e41835..c135770 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1265,6 +1265,39 @@ functionality of the system is provided via an assortment of ready to use
tools, XML authoring components, and an extensible plug-in based API.")
(license license:lgpl2.1+)))
+(define-public v4l-utils
+ (package
+ (name "v4l-utils")
+ (version "1.8.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://linuxtv.org/downloads/v4l-utils"
+ "/v4l-utils-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "0cqv8drw0z0kfmz4f50a8kzbrz6vbj6j6q78030hgshr7yq1jqig"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:configure-flags
+ (list (string-append "--with-udevdir="
+ (assoc-ref %outputs "out")
+ "/lib/udev"))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("alsa-lib" ,alsa-lib)
+ ("glu" ,glu)
+ ("libjpeg" ,libjpeg)
+ ("libx11" ,libx11)
+ ("qt" ,qt)
+ ("eudev" ,eudev)))
+ (synopsis "Realtime video capture utilities for Linux")
+ (description "The v4l-utils provide a series of libraries and utilities to
+be used for realtime video capture via Linux-specific APIs.")
+ (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
+ ;; libv4l2 is LGPL2.1+, while utilties are GPL2 only.
+ (license (list license:lgpl2.1+ license:gpl2))))
+
(define-public obs
(package
(name "obs")
--
2.5.0
[-- Attachment #3: 0002-gnu-obs-Add-support-for-webcams.patch --]
[-- Type: text/x-diff, Size: 837 bytes --]
From 00ad398215837b64daf577024511330c1f73ce6a Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Tue, 19 Jan 2016 22:11:35 -0500
Subject: [PATCH 2/2] gnu: obs: Add support for webcams.
* gnu/packages/video.scm (obs)[inputs]: Add v4l-utils.
---
gnu/packages/video.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c135770..4939194 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1326,6 +1326,7 @@ be used for realtime video capture via Linux-specific APIs.")
("mesa" ,mesa)
("pulseaudio" ,pulseaudio)
("qt" ,qt)
+ ("v4l-utils" ,v4l-utils)
("zlib" ,zlib)))
(synopsis "Live streaming software")
(description "Open Broadcaster Software provides a graphical interface for
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCHES] Add v4l-utils in order to add support for webcams to OBS
2016-01-20 3:17 [PATCHES] Add v4l-utils in order to add support for webcams to OBS Thompson, David
@ 2016-01-20 6:55 ` 宋文武
2016-01-20 10:08 ` Andreas Enge
1 sibling, 0 replies; 4+ messages in thread
From: 宋文武 @ 2016-01-20 6:55 UTC (permalink / raw)
To: Thompson, David; +Cc: guix-devel
"Thompson, David" <dthompson2@worcester.edu> writes:
> [...]
>
> From b1ccba1616dc77950b8495714a47d5e3f9b9eda1 Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Tue, 19 Jan 2016 22:11:16 -0500
> Subject: [PATCH 1/2] gnu: Add v4l-utils.
>
> * gnu/packages/video.scm (v4l-utils): New variable.
> ---
> gnu/packages/video.scm | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index 9e41835..c135770 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
Or linux.scm? since it's linux-specific.
> @@ -1265,6 +1265,39 @@ functionality of the system is provided via an assortment of ready to use
> tools, XML authoring components, and an extensible plug-in based API.")
> (license license:lgpl2.1+)))
>
> +(define-public v4l-utils
> + (package
> + (name "v4l-utils")
> + (version "1.8.1")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "http://linuxtv.org/downloads/v4l-utils"
> + "/v4l-utils-" version ".tar.bz2"))
> + (sha256
> + (base32
> + "0cqv8drw0z0kfmz4f50a8kzbrz6vbj6j6q78030hgshr7yq1jqig"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:configure-flags
> + (list (string-append "--with-udevdir="
> + (assoc-ref %outputs "out")
> + "/lib/udev"))))
> + (native-inputs
> + `(("pkg-config" ,pkg-config)))
> + (inputs
> + `(("alsa-lib" ,alsa-lib)
> + ("glu" ,glu)
> + ("libjpeg" ,libjpeg)
> + ("libx11" ,libx11)
> + ("qt" ,qt)
> + ("eudev" ,eudev)))
> + (synopsis "Realtime video capture utilities for Linux")
> + (description "The v4l-utils provide a series of libraries and utilities to
> +be used for realtime video capture via Linux-specific APIs.")
> + (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
> + ;; libv4l2 is LGPL2.1+, while utilties are GPL2 only.
> + (license (list license:lgpl2.1+ license:gpl2))))
> +
> (define-public obs
> (package
> (name "obs")
> --
> 2.5.0
>
>
> From 00ad398215837b64daf577024511330c1f73ce6a Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Tue, 19 Jan 2016 22:11:35 -0500
> Subject: [PATCH 2/2] gnu: obs: Add support for webcams.
>
> * gnu/packages/video.scm (obs)[inputs]: Add v4l-utils.
> ---
> gnu/packages/video.scm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index c135770..4939194 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
> @@ -1326,6 +1326,7 @@ be used for realtime video capture via Linux-specific APIs.")
> ("mesa" ,mesa)
> ("pulseaudio" ,pulseaudio)
> ("qt" ,qt)
> + ("v4l-utils" ,v4l-utils)
> ("zlib" ,zlib)))
> (synopsis "Live streaming software")
> (description "Open Broadcaster Software provides a graphical interface for
Look good!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHES] Add v4l-utils in order to add support for webcams to OBS
2016-01-20 3:17 [PATCHES] Add v4l-utils in order to add support for webcams to OBS Thompson, David
2016-01-20 6:55 ` 宋文武
@ 2016-01-20 10:08 ` Andreas Enge
2016-01-20 13:46 ` Thompson, David
1 sibling, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2016-01-20 10:08 UTC (permalink / raw)
To: Thompson, David; +Cc: guix-devel
Tiny typo in a comment:
On Tue, Jan 19, 2016 at 10:17:47PM -0500, Thompson, David wrote:
> + ;; libv4l2 is LGPL2.1+, while utilties are GPL2 only.
"util_i_ties"
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHES] Add v4l-utils in order to add support for webcams to OBS
2016-01-20 10:08 ` Andreas Enge
@ 2016-01-20 13:46 ` Thompson, David
0 siblings, 0 replies; 4+ messages in thread
From: Thompson, David @ 2016-01-20 13:46 UTC (permalink / raw)
To: Andreas Enge; +Cc: guix-devel
On Wed, Jan 20, 2016 at 5:08 AM, Andreas Enge <andreas@enge.fr> wrote:
> Tiny typo in a comment:
>
> On Tue, Jan 19, 2016 at 10:17:47PM -0500, Thompson, David wrote:
>> + ;; libv4l2 is LGPL2.1+, while utilties are GPL2 only.
> "util_i_ties"
Thanks. Fixed and pushed.
- Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-20 13:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 3:17 [PATCHES] Add v4l-utils in order to add support for webcams to OBS Thompson, David
2016-01-20 6:55 ` 宋文武
2016-01-20 10:08 ` Andreas Enge
2016-01-20 13:46 ` Thompson, David
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).