1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 David Thompson <davet@gnu.org>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2020 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca>
8 ;;; Copyright © 2015, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Alex Vong <alexvong1995@gmail.com>
10 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
12 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
13 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
14 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
15 ;;; Copyright © 2016, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
16 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
17 ;;; Copyright © 2017 Feng Shu <tumashu@163.com>
18 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
22 ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
23 ;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
24 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
26 ;;; Copyright © 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
28 ;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
29 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
30 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
31 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
32 ;;; Copyright © 2018 Mark Meyer <mark@ofosos.org>
33 ;;; Copyright © 2018 Gábor Boskovit <boskovits@gmail.com>
34 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
35 ;;; Copyright © 2019 Timo Eisenmann <eisenmann@fn.de>
36 ;;; Copyright © 2019 Arne Babenhauserheide <arne_bab@web.de>
37 ;;; Copyright © 2019 Riku Viitanen <riku.viitanen@protonmail.com>
38 ;;; Copyright © 2020, 2021 Oleg Pykhalov <go.wigust@gmail.com>
39 ;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
42 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
43 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
44 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
45 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
46 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
47 ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro>
48 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
49 ;;; Copyright © 2020 Antoine Côté <antoine.cote@posteo.net>
50 ;;; Copyright © 2021 Alexey Abramov <levenson@mmer.org>
51 ;;; Copyright © 2021 Andrew Tropin <andrew@trop.in>
52 ;;; Copyright © 2021 David Wilson <david@daviwil.com>
54 ;;; This file is part of GNU Guix.
56 ;;; GNU Guix is free software; you can redistribute it and/or modify it
57 ;;; under the terms of the GNU General Public License as published by
58 ;;; the Free Software Foundation; either version 3 of the License, or (at
59 ;;; your option) any later version.
61 ;;; GNU Guix is distributed in the hope that it will be useful, but
62 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
63 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
64 ;;; GNU General Public License for more details.
66 ;;; You should have received a copy of the GNU General Public License
67 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
69 (define-module (gnu packages video)
70 #:use-module (ice-9 match)
71 #:use-module ((srfi srfi-1) #:hide (zip))
72 #:use-module (srfi srfi-26)
73 #:use-module ((guix licenses) #:prefix license:)
74 #:use-module (guix utils)
75 #:use-module (guix packages)
76 #:use-module (guix download)
77 #:use-module (guix git-download)
78 #:use-module (guix svn-download)
79 #:use-module (guix hg-download)
80 #:use-module (guix build-system cargo)
81 #:use-module (guix build-system cmake)
82 #:use-module (guix build-system copy)
83 #:use-module (guix build-system gnu)
84 #:use-module (guix build-system glib-or-gtk)
85 #:use-module (guix build-system meson)
86 #:use-module (guix build-system perl)
87 #:use-module (guix build-system python)
88 #:use-module (guix build-system waf)
89 #:use-module (guix build-system trivial)
90 #:use-module (gnu packages)
91 #:use-module (gnu packages algebra)
92 #:use-module (gnu packages assembly)
93 #:use-module (gnu packages audio)
94 #:use-module (gnu packages autotools)
95 #:use-module (gnu packages avahi)
96 #:use-module (gnu packages backup)
97 #:use-module (gnu packages base)
98 #:use-module (gnu packages bison)
99 #:use-module (gnu packages boost)
100 #:use-module (gnu packages cdrom)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages crates-io)
106 #:use-module (gnu packages crates-graphics)
107 #:use-module (gnu packages curl)
108 #:use-module (gnu packages dejagnu)
109 #:use-module (gnu packages dns)
110 #:use-module (gnu packages docbook)
111 #:use-module (gnu packages documentation)
112 #:use-module (gnu packages elf)
113 #:use-module (gnu packages file)
114 #:use-module (gnu packages flex)
115 #:use-module (gnu packages fonts)
116 #:use-module (gnu packages fontutils)
117 #:use-module (gnu packages freedesktop)
118 #:use-module (gnu packages fribidi)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gl)
122 #:use-module (gnu packages glib)
123 #:use-module (gnu packages guile)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnunet)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gstreamer)
128 #:use-module (gnu packages gtk)
129 #:use-module (gnu packages image)
130 #:use-module (gnu packages imagemagick)
131 #:use-module (gnu packages iso-codes)
132 #:use-module (gnu packages libidn)
133 #:use-module (gnu packages libreoffice)
134 #:use-module (gnu packages libusb)
135 #:use-module (gnu packages linux)
136 #:use-module (gnu packages lua)
137 #:use-module (gnu packages m4)
138 #:use-module (gnu packages man)
139 #:use-module (gnu packages markup)
140 #:use-module (gnu packages maths)
141 #:use-module (gnu packages mp3)
142 #:use-module (gnu packages ncurses)
143 #:use-module (gnu packages networking)
144 #:use-module (gnu packages ocr)
145 #:use-module (gnu packages pcre)
146 #:use-module (gnu packages perl)
147 #:use-module (gnu packages perl-check)
148 #:use-module (gnu packages perl-web)
149 #:use-module (gnu packages photo)
150 #:use-module (gnu packages pkg-config)
151 #:use-module (gnu packages popt)
152 #:use-module (gnu packages pretty-print)
153 #:use-module (gnu packages protobuf)
154 #:use-module (gnu packages pulseaudio)
155 #:use-module (gnu packages python)
156 #:use-module (gnu packages python-crypto)
157 #:use-module (gnu packages python-web)
158 #:use-module (gnu packages python-xyz)
159 #:use-module (gnu packages qt)
160 #:use-module (gnu packages rdesktop)
161 #:use-module (gnu packages re2c)
162 #:use-module (gnu packages ruby)
163 #:use-module (gnu packages rust-apps)
164 #:use-module (gnu packages samba)
165 #:use-module (gnu packages sdl)
166 #:use-module (gnu packages serialization)
167 #:use-module (gnu packages shells)
168 #:use-module (gnu packages sqlite)
169 #:use-module (gnu packages ssh)
170 #:use-module (gnu packages swig)
171 #:use-module (gnu packages texinfo)
172 #:use-module (gnu packages textutils)
173 #:use-module (gnu packages tls)
174 #:use-module (gnu packages time)
175 #:use-module (gnu packages upnp)
176 #:use-module (gnu packages vulkan)
177 #:use-module (gnu packages web)
178 #:use-module (gnu packages webkit)
179 #:use-module (gnu packages wxwidgets)
180 #:use-module (gnu packages xdisorg)
181 #:use-module (gnu packages xiph)
182 #:use-module (gnu packages xml)
183 #:use-module (gnu packages xorg))
185 (define-public transcode
193 (string-append "https://sources.archlinux.org/other/community/"
194 name "/" name "-" version ".tar.bz2"))
196 (base32 "14ha9xjsjrj131f35jd56z5v1jb4rbsrj1nril5shqnxw3c74khy"))
198 (search-patches "transcode-ffmpeg.patch"))))
199 (build-system gnu-build-system)
205 "--enable-libmpeg2convert"
207 ;;; XXX: Not available.
212 ;;; XXX: Not available.
213 ;"--enable-libpostproc"
220 ;;; XXX: Not available.
223 "--enable-libquicktime"
228 ;;; XXX: Not available.
230 ;;"--enable-mjpegtools"
232 "--enable-imagemagick"
233 ;;; XXX: Not available.
234 ;"--enable-libjpegmmx"
235 "--enable-libjpeg")))
236 ;;; XXX: Not available.
241 `(("autoconf" ,autoconf)
242 ("automake" ,automake)
247 ("pkg-config" ,pkg-config)
248 ("python" ,python-wrapper)))
250 `(("alsa-lib" ,alsa-lib)
253 ("freetype" ,freetype)
254 ("imagemagick" ,imagemagick)
258 ("libdvdread" ,libdvdread)
259 ("libjpeg" ,libjpeg-turbo)
260 ("libmpeg2" ,libmpeg2)
262 ("libquicktime" ,libquicktime)
263 ("libtheora" ,libtheora)
264 ("libvorbis" ,libvorbis)
266 ("mjepgtools" ,mjpegtools)
268 ("v4l-utils" ,v4l-utils)
277 (synopsis "Audio/Video Transcoder")
278 (description "Transcode is a fast, versatile and command-line based
279 audio/video everything to everything converter primarily focussed on producing
280 AVI video files with MP3 audio, but also including a program to read all the
281 video and audio streams from a DVD.")
283 "http://linuxfromscratch.org/blfs/view/svn/multimedia/transcode.html")
284 (license license:gpl2+)))
286 (define-public svt-hevc
295 (url "https://github.com/OpenVisualCloud/SVT-HEVC")
296 (commit (string-append "v" version))))
297 (file-name (git-file-name name version))
299 (base32 "038r3x3axil895vh2dq6223623ybrc45vn58vfmfb7cikz68sy23"))))
300 (build-system cmake-build-system)
302 `(#:tests? #f)) ; Test script is stand-alone
305 (synopsis "SVT HEVC encoder")
306 (description "Scalable Video Technology (SVT) is a software-based video
307 coding technology that is highly optimized for Intel's Xeon processors. Using
308 the SVT-HEVC encoder, it is possible to spread video encoding processing across
309 multiple Intel's Xeon processors to achieve a real advantage of processing
311 (home-page "https://01.org/svt")
312 (license (license:non-copyleft "file:///LICENSE.md"))))
314 (define-public mediasdk
323 (url "https://github.com/Intel-Media-SDK/MediaSDK")
324 (commit (string-append "intel-" name "-" version))))
325 (file-name (git-file-name name version))
327 (base32 "0blwcxr5j8762nylx2cxrq0h53bpgnk859dbs6crq4wr9fcxlx9z"))))
328 (build-system cmake-build-system)
333 "-DENABLE_X11_DRI3=ON"
334 "-DENABLE_WAYLAND=ON"
335 "-DENABLE_TEXTLOG=ON"
339 (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
340 (assoc-ref %outputs "out") "/lib"))))
342 `(("pkg-config" ,pkg-config)
343 ("python" ,python-wrapper)))
347 ("pciaccess" ,libpciaccess)
350 (synopsis "Intel Media SDK")
351 (description "MediaSDK provides a plain C API to access hardware-accelerated
352 video decode, encode and filtering on Intel's Gen graphics hardware platforms.")
353 (home-page "http://mediasdk.intel.com/")
354 (license (license:non-copyleft "file:///LICENSE"))))
356 (define-public schroedinger
358 (name "schroedinger")
364 (string-append "https://launchpad.net/" name "/trunk/" version
365 "/+download/" name "-" version ".tar.gz"))
367 (base32 "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy"))))
368 (build-system gnu-build-system)
369 (outputs '("out" "doc"))
372 (modify-phases %standard-phases
373 (add-after 'install 'move-docs
374 (lambda* (#:key outputs #:allow-other-keys)
375 (let* ((out (assoc-ref outputs "out"))
376 (doc (assoc-ref outputs "doc")))
377 (mkdir-p (string-append doc "/share"))
379 (string-append out "/share/gtk-doc")
380 (string-append doc "/share/gtk-doc"))
384 ("gtk-doc" ,gtk-doc/stable)
385 ("pkg-config" ,pkg-config)))
391 (synopsis "Dirac video codec")
392 (description "Schroedinger is a project implementing the Dirac video codec in
393 ANSI C code. It is meant to be highly optimized and portable. It is developed
394 as a joint effort between the BBC and Fluendo.")
395 (home-page "https://launchpad.net/schroedinger")
397 ;; This library is licensed under 4 different licenses,
398 ;; and you can choose to use it under the terms of any one of them.
405 (define-public libquicktime
407 (name "libquicktime")
413 (string-append "https://sourceforge.net/projects/" name "/files/"
414 name "/" version "/" name "-" version ".tar.gz"))
416 (base32 "0s3kshzl3zfjw3phzv73r91fkr9z8q8kc3dhsys4f4xk6ff3alqw"))
418 (search-patches "libquicktime-ffmpeg.patch"))))
419 (build-system gnu-build-system)
421 `(("gettext" ,gettext-minimal)
423 ("pkg-config" ,pkg-config)))
430 ("libjpeg" ,libjpeg-turbo)
432 ("libvorbis" ,libvorbis)
434 ("schroedinger" ,schroedinger)
439 (synopsis "Quick Time Library")
440 (description "The goal of this project is to enhance the quicktime4linux
442 (home-page "http://libquicktime.sourceforge.net/")
443 (license license:lgpl2.1+)))
445 (define-public mjpegtools
453 (string-append "https://sourceforge.net/projects/" name "/files/"
454 name "/" version "/" name "-" version ".tar.gz"))
456 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
457 (build-system gnu-build-system)
462 ("libquicktime" ,libquicktime)
464 (synopsis "Tools for handling MPEG")
465 (description "Mjpeg tools is a suite of programs which support video capture,
466 editing, playback, and compression to MPEG of MJPEG video. Edit, play and
467 compression software is hardware independent.")
468 (home-page "http://mjpeg.sourceforge.net/")
469 (license license:gpl2+)))
471 (define-public libmms
479 (string-append "https://sourceforge.net/projects/" name "/files/"
480 name "/" version "/" name "-" version ".tar.gz"))
482 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
483 (build-system gnu-build-system)
484 (synopsis "MMS stream protocol library")
485 (description "Libmms is a library for streaming media files using the mmst
486 and mmsh protocols.")
487 (home-page "https://sourceforge.net/projects/libmms/")
488 (license license:lgpl2.1+)))
490 (define-public libvideogfx
499 (url "https://github.com/farindk/libvideogfx")
500 (commit (string-append "v" version))))
501 (file-name (git-file-name name version))
503 (base32 "154b0j8cfg879pg08xcbwvbz8z9nrfnyj31i48vxir1psas70ynq"))))
504 (build-system gnu-build-system)
507 (modify-phases %standard-phases
508 (add-after 'unpack 'fix-build-errors
510 (substitute* "libvideogfx/graphics/fileio/ffmpeg.cc"
511 (("av_close_input_file\\(")
512 "avformat_close_input(&"))
513 (substitute* "libvideogfx/graphics/fileio/png.cc"
514 (("is != NULL") "is.good()"))
517 `(("autoconf" ,autoconf)
518 ("automake" ,automake)
520 ("pkg-config" ,pkg-config)))
522 `(("ffmpeg" ,ffmpeg-2.8)
523 ("jpeg" ,libjpeg-turbo)
527 (synopsis "Video processing library")
528 (description "LibVideoGfx is a C++ library for low-level video processing.
529 It aims at speeding up the development process for image and video processing
530 applications by providing high-level classes for commonly required tasks.")
531 (home-page "https://dirk-farin.net/software/libvideogfx/index.html")
532 (license license:lgpl2.1+)))
534 (define-public libde265
543 (url "https://github.com/strukturag/libde265")
544 (commit (string-append "v" version))))
545 (file-name (git-file-name name version))
547 (base32 "1dzflqbk248lz5ws0ni5acmf32b3rmnq5gsfaz7691qqjxkl1zml"))))
548 (build-system gnu-build-system)
551 (list "--disable-static")))
553 `(("autoconf" ,autoconf)
554 ("automake" ,automake)
556 ("pkg-config" ,pkg-config)
557 ("python" ,python-wrapper)))
559 `(;; XXX: Build fails with libvideogfx.
560 ;; ("libvideogfx" ,libvideogfx)
563 (synopsis "H.265 video codec implementation")
564 (description "Libde265 is an implementation of the h.265 video codec. It is
565 written from scratch and has a plain C API to enable a simple integration into
567 (home-page "https://www.libde265.org/")
584 (url "https://github.com/libts/tslib")
586 (file-name (git-file-name name version))
588 (base32 "197p6vy539wvfrv23agbvmay4rjya1jnisi46llm0nx4cvqh48by"))))
589 (build-system gnu-build-system)
591 `(#:test-target "tests"
593 (list "--with-sdl2")))
595 `(("autoconf" ,autoconf)
596 ("automake" ,automake)
598 ("pkg-config" ,pkg-config)))
600 `(("linux-headers" ,linux-libre-headers)
602 (synopsis "Touchscreen access library")
603 (description "TSLib is a cross-platform library that provides access to
604 touchscreen devices and the ability to apply filters to their input events.")
605 (home-page "http://www.tslib.org/")
606 (license license:lgpl2.1+)))
608 (define-public libmpeg3
616 (string-append "https://sourceforge.net/projects/heroines/files/"
617 "releases/081108/" name "-" version "-src.tar.bz2"))
619 (base32 "1i53vv0wm5qfwgg1z7j9g14s6c7gxxkiy4vbdkq3lijjyyz50vv5"))))
620 (build-system gnu-build-system)
622 `(#:test-target "test"
625 (string-append "A52DIR=" (assoc-ref %build-inputs "liba52"))
626 (string-append "DST=" (assoc-ref %outputs "out") "/bin"))
628 (modify-phases %standard-phases
629 (add-after 'unpack 'delete-bundled-a52dec
631 (delete-file-recursively "a52dec-0.7.3")
632 (substitute* "Makefile"
633 (("include Makefile\\.a52")
635 (("\\(A52DIR\\)/include")
636 "(A52DIR)/include/a52dec")
638 (string-append match "-la52 ")))
640 (add-before 'install 'create-destination-directory
641 (lambda* (#:key outputs #:allow-other-keys)
642 (let* ((out (string-append (assoc-ref outputs "out"))))
643 (mkdir-p (string-append out "/bin"))
648 `(("liba52" ,liba52)))
649 (synopsis "Advanced MPEG editing and manipulation library")
650 (description "Libmpeg3 decodes MP2, MP3, AC3, MPEG-1 video, MPEG-2 video,
651 and DVD footage in a single library. It supports many esoteric features like
652 parallel video decoding, frame-accurate editing, YUV 4:2:2, and ATSC transport
654 (home-page "http://heroinewarrior.com/libmpeg3.php")
655 (license license:gpl2+)))
663 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
664 version "/" name "-" version ".tar.gz"))
667 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
668 (build-system gnu-build-system)
670 `(("makeinfo" ,texinfo)))
672 `(("ncurses" ,ncurses)))
675 (modify-phases %standard-phases
677 (lambda* (#:key build inputs outputs #:allow-other-keys)
678 ;; This old `configure' script doesn't support
679 ;; variables passed as arguments.
680 (let ((out (assoc-ref outputs "out"))
681 (ncurses (assoc-ref inputs "ncurses")))
682 (setenv "CONFIG_SHELL" (which "bash"))
683 (invoke "./configure"
684 (string-append "--prefix=" out)
685 (string-append "--build=" build)
686 ;; The ancient config.guess is unable to
687 ;; guess the host triplet on mips64el.
688 ,@(if (string=? "mips64el-linux"
690 '("--host=mips64el-unknown-linux-gnu")
692 ;; The same is also true with aarch64.
693 ,@(if (string=? "aarch64-linux"
695 '("--host=aarch64-unknown-linux-gnu")
697 (string-append "--with-ncurses="
699 (home-page "http://aa-project.sourceforge.net/aalib/")
700 (synopsis "ASCII-art library")
702 "AA-lib is a low level gfx library which does not require graphics device.
703 In fact, there is no graphical output possible. AA-lib replaces those
704 old-fashioned output methods with powerful ascii-art renderer.")
705 (license license:lgpl2.0+)))
707 (define-public celluloid
714 (uri (string-append "https://github.com/celluloid-player/celluloid"
715 "/releases/download/v" version
716 "/celluloid-" version ".tar.xz"))
718 (base32 "1dvyf21iv9hrgv99szc24386vkacmhidm5b4d31hqqjs3b6di692"))))
719 (build-system glib-or-gtk-build-system)
721 `(("intltool" ,intltool)
722 ("pkg-config" ,pkg-config)))
725 ("libepoxy" ,libepoxy)
727 (home-page "https://github.com/celluloid-player/celluloid")
728 (synopsis "GTK+ frontend for the mpv media player")
729 (description "Celluloid is a simple GTK+ frontend for the mpv media player.
730 It interacts with mpv via the client API exported by libmpv, allowing access to
731 mpv's powerful playback capabilities.")
732 (license license:gpl3+)))
734 (define-public liba52
741 ;; A mirror://sourceforge URI doesn't work, presumably
742 ;; because the SourceForge project is misconfigured.
743 "http://liba52.sourceforge.net/files/a52dec-" version
747 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
748 (patches (search-patches "liba52-enable-pic.patch"
749 "liba52-set-soname.patch"
750 "liba52-use-mtune-not-mcpu.patch"
751 "liba52-link-with-libm.patch"))))
752 (build-system gnu-build-system)
753 ;; XXX We need to run ./bootstrap because of the build system fixes above.
755 `(("autoconf" ,autoconf)
756 ("automake" ,automake)
757 ("libtool" ,libtool)))
758 (arguments `(#:configure-flags '("--enable-shared")
760 (modify-phases %standard-phases
761 ;; XXX We need to run ./bootstrap because of the build
762 ;; system fixes above.
764 (lambda _ (invoke "sh" "bootstrap"))))))
765 (home-page "http://liba52.sourceforge.net/")
766 (synopsis "ATSC A/52 stream decoder")
767 (description "liba52 is a library for decoding ATSC A/52 streams. The
768 A/52 standard is used in a variety of applications, including digital
769 television and DVD. It is also known as AC-3.")
770 (license license:gpl2+)))
772 (define-public libaom
779 (url "https://aomedia.googlesource.com/aom/")
780 (commit (string-append "v" version))))
781 (file-name (git-file-name name version))
784 "178rq1d7i9q4lg40bipkyhdrk18j9wi5k5avpa5bls0zm7g5ifsx"))))
785 (build-system cmake-build-system)
788 ("pkg-config" ,pkg-config)
789 ("python" ,python))) ; to detect the version
791 `(#:tests? #f ;no check target
793 ;; build dynamic library
794 (list "-DBUILD_SHARED_LIBS=YES"
796 "-DAOM_TARGET_CPU=generic"
797 (string-append "-DCMAKE_INSTALL_PREFIX="
798 (assoc-ref %outputs "out")))))
799 (home-page "https://aomedia.googlesource.com/aom/")
800 (synopsis "AV1 video codec")
801 (description "Libaom is the reference implementation of AV1. It includes a
802 shared library and encoder and decoder command-line executables.")
803 (license license:bsd-2)))
805 (define-public libmpeg2
811 ;; A mirror://sourceforge URI doesn't work, presumably
812 ;; because the SourceForge project is misconfigured.
813 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
814 name "-" version ".tar.gz"))
815 (patches (search-patches "libmpeg2-arm-private-symbols.patch"
816 "libmpeg2-global-symbol-test.patch"))
819 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
827 (build-system gnu-build-system)
828 (home-page "http://libmpeg2.sourceforge.net/")
829 (synopsis "MPEG1 and MPEG2 video decoder library")
831 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
832 (license license:gpl2+)))
834 (define-public libx264
835 ;; There are no tags in the repository, so we take the version number from
836 ;; the X264_BUILD variable defined in x264.h.
837 (let ((version "161")
838 (commit "4c2aafd864dd201832ec2be0fef4484925146650")
842 (version (git-version version revision commit))
846 (url "https://code.videolan.org/videolan/x264.git")
848 (file-name (git-file-name name version))
851 "1i6v9h3xx9pi0zmlj3anwwjxqa63sbhy9crrif8dphipwfn9hyg5"))))
852 (build-system gnu-build-system)
854 `(("pkg-config" ,pkg-config)
856 ;; TODO: Add gpac input
858 `(#:tests? #f ;no check target
859 #:configure-flags '("--enable-shared"
860 ;; Don't build the command-line program. If we
861 ;; want it later, we should do so in a different
862 ;; package to avoid a circular dependency (the x264
863 ;; program depends on ffmpeg and ffmpeg depends on
867 ;; On MIPS, we must pass "--disable-asm" or else
868 ;; configure fails after printing: "You specified a
869 ;; pre-MSA CPU in your CFLAGS. If you really want
870 ;; to run on such a CPU, configure with
872 ,@(if (string-prefix? "mips"
873 (or (%current-target-system)
877 (home-page "https://www.videolan.org/developers/x264.html")
878 (synopsis "H.264 video coding library")
879 (description "libx264 is an advanced encoding library for creating
880 H.264 (MPEG-4 AVC) video streams.")
881 (license (list license:gpl2+ ;most files
882 license:isc ;common/x86/x86inc.asm
883 license:lgpl2.1+ ;extras/getopt.c
884 license:bsd-3 ;extras/inttypes.h
885 (license:non-copyleft ;extras/cl*.h
887 "See extras/cl.h in the distribution."))))))
889 (define-public mkvtoolnix
896 (uri (string-append "https://mkvtoolnix.download/sources/"
897 "mkvtoolnix-" version ".tar.xz"))
899 (base32 "15y7ahlifsclnkl70wn5w34dil8nwcwcjnw3k2ydqc6dz4vb0j5s"))
900 (modules '((guix build utils)))
902 ;; Delete bundled libraries.
903 (for-each delete-file-recursively
911 (build-system gnu-build-system)
912 (outputs '("out" "gui")) ; "mkvtoolnix-gui" brings the closure size from ~300 MB to 1.5+ GB.
921 ("libdvdread" ,libdvdread)
922 ("libmatroska" ,libmatroska)
924 ("libvorbis" ,libvorbis)
929 ("qtmultimedia" ,qtmultimedia)
933 `(("docbook-xsl" ,docbook-xsl)
934 ("gettext" ,gettext-minimal)
935 ("googletest" ,googletest)
937 ("json-modern-cxx" ,json-modern-cxx)
939 ("pkg-config" ,pkg-config)
945 (list (string-append "--with-boost="
946 (assoc-ref %build-inputs "boost"))
947 (string-append "--with-docbook-xsl-root="
948 (assoc-ref %build-inputs "docbook-xsl")
949 "/xml/xsl/docbook-xsl-"
950 ,(package-version docbook-xsl))
951 "--enable-update-check=no"
952 "--enable-precompiled-headers=no")
954 (modify-phases %standard-phases
955 (add-after 'unpack 'patch-relative-file-names
956 (lambda* (#:key outputs #:allow-other-keys)
957 (let ((out (assoc-ref outputs "out")))
958 (substitute* "src/mkvtoolnix-gui/util/settings.cpp"
960 (string-append out "/bin/" match)))
962 (add-before 'configure 'add-googletest
963 (lambda* (#:key inputs #:allow-other-keys)
965 (string-append (assoc-ref inputs "googletest")
966 "/include/gtest") "lib/gtest")
970 (let ((-j (list "-j" (number->string (parallel-job-count)))))
971 (apply invoke "rake" -j))))
974 (invoke "rake" "tests/unit")))
977 (invoke "rake" "install")))
978 (add-after 'install 'post-install
979 (lambda* (#:key outputs #:allow-other-keys)
980 ;; Move the Qt interface to "gui".
981 (let* ((out (assoc-ref outputs "out"))
982 (gui (assoc-ref outputs "gui"))
983 (strip-store-dir (lambda (path)
984 (substring path (string-prefix-length out path)))))
987 (mkdir-p (string-append gui (dirname file)))
988 (rename-file (string-append out file)
989 (string-append gui file)))
990 (append '("/bin/mkvtoolnix-gui"
991 "/share/applications/org.bunkus.mkvtoolnix-gui.desktop"
992 "/share/metainfo/org.bunkus.mkvtoolnix-gui.appdata.xml"
993 "/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml")
994 (map strip-store-dir (find-files out "\\.ogg$"))
995 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.png$"))
996 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.1"))))
999 (delete-file-recursively (string-append out file)))
1000 '("/share/applications"
1003 "/share/mkvtoolnix")))
1005 (home-page "https://mkvtoolnix.download")
1006 (synopsis "Tools to create, alter and inspect Matroska files")
1008 "MKVToolNix provides tools for getting information about Matroska files
1009 (@command{mkvinfo}), extracting tracks/data from Matroska files
1010 (@command{mkvextract}), and creating Matroska files from other media files
1011 (@command{mkvmerge}).")
1012 (license license:gpl2)))
1014 (define-public straw-viewer
1016 (name "straw-viewer")
1022 (url "https://github.com/trizen/straw-viewer")
1024 (file-name (git-file-name name version))
1026 (base32 "1n21byn7hqykpm94jmmnir1fwsskq6dp9wgj0bd2qf0qx5nq33cl"))))
1027 (build-system perl-build-system)
1029 `(("perl-module-build" ,perl-module-build)
1030 ("perl-test-pod" ,perl-test-pod)))
1032 `(("perl-data-dump" ,perl-data-dump)
1033 ("perl-json" ,perl-json)
1034 ("perl-libwww" ,perl-libwww)
1035 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1036 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
1037 ("perl-mozilla-ca" ,perl-mozilla-ca)
1038 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
1039 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
1040 ("xdg-utils" ,xdg-utils)))
1041 ;; Required only when building the graphical interface (--gtk).
1042 ;;("perl-file-sharedir" ,perl-file-sharedir)
1044 ;; Some videos play without youtube-dl, but others silently fail to.
1046 `(("youtube-dl" ,youtube-dl)))
1048 `(#:modules ((guix build perl-build-system)
1052 (modify-phases %standard-phases
1053 (add-after 'unpack 'refer-to-inputs
1054 (lambda* (#:key inputs #:allow-other-keys)
1055 (substitute* "lib/WWW/StrawViewer.pm"
1057 (format #f "'~a/bin/youtube-dl'"
1058 (assoc-ref inputs "youtube-dl"))))
1059 (substitute* "bin/gtk-straw-viewer"
1061 (format #f "'~a/bin/xdg-open'"
1062 (assoc-ref inputs "xdg-utils"))))
1064 ;; (add-after 'install 'install-desktop
1065 ;; (lambda* (#:key outputs #:allow-other-keys)
1066 ;; (let* ((out (assoc-ref outputs "out"))
1067 ;; (sharedir (string-append out "/share")))
1068 ;; (install-file "share/gtk-straw-viewer.desktop"
1069 ;; (string-append sharedir "/applications"))
1070 ;; (install-file "share/icons/gtk-straw-viewer.png"
1071 ;; (string-append sharedir "/pixmaps"))
1073 (add-after 'install 'wrap-program
1074 (lambda* (#:key outputs #:allow-other-keys)
1075 (let* ((out (assoc-ref outputs "out"))
1076 (bin-dir (string-append out "/bin/"))
1077 (site-dir (string-append out "/lib/perl5/site_perl/"))
1078 (lib-path (getenv "PERL5LIB")))
1079 (for-each (cut wrap-program <>
1080 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1081 (find-files bin-dir))
1084 "Light-weight application for searching and streaming videos from YouTube")
1086 "Straw-viewer searches for YouTube videos using @uref{https://invidio.us/,
1087 invidio.us} and plays them locally in a native media player like @command{vlc}
1090 You can search for videos, playlists, and/or channels. The videos are streamed
1091 directly to the player at the best chosen resolution and with closed captions if
1093 ;; XXX Add #:module-build-flags '("--gtk") dependencies and this sentence.
1094 ;; Both a command-line and a graphical interface are available.
1095 (home-page "https://github.com/trizen/youtube-viewer")
1096 (license license:perl-license)))
1102 (outputs '("out" "static"))
1106 (uri (list (string-append "https://bitbucket.org/multicoreware/x265"
1107 "/downloads/x265_" version ".tar.gz")
1108 (string-append "https://download.videolan.org/videolan/x265/"
1109 "x265_" version ".tar.gz")))
1111 (base32 "0wl62hfsdqpf3r3z3s6l9bz7pdb1rcik5ll00b3yaadplqipy162"))
1112 (patches (search-patches "x265-arm-flags.patch"))
1113 (modules '((guix build utils)))
1115 (delete-file-recursively "source/compat/getopt")
1117 (build-system cmake-build-system)
1119 ;; XXX: ASM optimization fails on i686-linux, see <https://bugs.gnu.org/41768>.
1120 (if (string-prefix? "i686" (%current-system))
1124 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
1126 ;; Ensure position independent code for everyone.
1127 (list "-DENABLE_PIC=TRUE"
1129 '("-DENABLE_ASSEMBLY=OFF")
1131 (string-append "-DCMAKE_INSTALL_PREFIX="
1132 (assoc-ref %outputs "out")))
1134 (modify-phases %standard-phases
1135 (add-after 'unpack 'prepare-build
1137 (delete-file-recursively "build")
1140 (add-before 'configure 'build-12-bit
1141 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1142 (mkdir "../build-12bit")
1143 (with-directory-excursion "../build-12bit"
1146 "-DHIGH_BIT_DEPTH=ON"
1147 "-DEXPORT_C_API=OFF"
1151 (substitute* (cons "cmake_install.cmake"
1153 (find-files "CMakeFiles/x265-shared.dir" ".")
1154 (find-files "CMakeFiles/x265-static.dir" ".")))
1155 (("libx265") "libx265_main12"))
1157 (add-before 'configure 'build-10-bit
1158 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1159 (mkdir "../build-10bit")
1160 (with-directory-excursion "../build-10bit"
1163 "-DHIGH_BIT_DEPTH=ON"
1164 "-DEXPORT_C_API=OFF"
1167 (substitute* (cons "cmake_install.cmake"
1169 (find-files "CMakeFiles/x265-shared.dir" ".")
1170 (find-files "CMakeFiles/x265-static.dir" ".")))
1171 (("libx265") "libx265_main10"))
1173 (add-after 'install 'install-more-libs
1175 (with-directory-excursion "../build-12bit"
1176 (invoke "make" "install"))
1177 (with-directory-excursion "../build-10bit"
1178 (invoke "make" "install"))))
1179 (add-before 'strip 'move-static-libs
1180 (lambda* (#:key outputs #:allow-other-keys)
1181 (let ((out (assoc-ref outputs "out"))
1182 (static (assoc-ref outputs "static")))
1183 (mkdir-p (string-append static "/lib"))
1184 (with-directory-excursion
1185 (string-append out "/lib")
1189 (string-append static "/lib/" file)))
1190 (find-files "." "\\.a$"))))
1192 (home-page "http://x265.org/")
1193 (synopsis "Library for encoding h.265/HEVC video streams")
1194 (description "x265 is a H.265 / HEVC video encoder application library,
1195 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
1196 (license license:gpl2+)))
1198 (define-public libass
1205 "https://github.com/libass/libass/releases/download/"
1206 version "/libass-" version ".tar.xz"))
1209 "0cz8v6kh3f2j5rdjrra2z0h715fa16vjm7kambvqx9hak86262cz"))))
1210 (build-system gnu-build-system)
1212 '(#:configure-flags '("--disable-static")))
1214 `(("pkg-config" ,pkg-config)
1217 `(("freetype" ,freetype)
1218 ("fribidi" ,fribidi)
1219 ("fontconfig" ,fontconfig)
1220 ("harfbuzz" ,harfbuzz)))
1221 (home-page "https://github.com/libass/libass")
1222 (synopsis "Subtitle rendering library for the ASS/SSA format")
1223 (description "libass is a subtitle rendering library for the
1224 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
1225 (license license:isc)))
1227 (define-public libcaca
1230 (version "0.99.beta19")
1233 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
1237 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))
1238 (patches (search-patches "libcaca-CVE-2021-3410-pt1.patch"
1239 "libcaca-CVE-2021-3410-pt2.patch"))))
1240 (build-system gnu-build-system)
1242 '(#:configure-flags '("--disable-static")))
1243 (native-inputs `(("pkg-config" ,pkg-config)))
1245 `(("freeglut" ,freeglut)
1250 ("ncurses" ,ncurses)
1252 (home-page "http://caca.zoy.org/wiki/libcaca")
1253 (synopsis "Colour ASCII-art library")
1254 (description "libcaca is a graphics library that outputs text instead of
1255 pixels, so that it can work on older video cards or text terminals. It
1256 supports Unicode, 2048 colors, dithering of color images, and advanced text
1257 canvas operations.")
1258 (license license:wtfpl2)))
1260 (define-public libdca
1267 "https://download.videolan.org/pub/videolan/libdca/"
1268 version "/libdca-" version ".tar.bz2"))
1271 "0sjz0s0nrv7jcpvh1i432x3jza0y5yycmzw84cfncb2qby0i62rs"))))
1272 (build-system gnu-build-system)
1274 `(("autoconf" ,autoconf)
1275 ("automake" ,automake)
1276 ("libtool" ,libtool)))
1277 (home-page "https://www.videolan.org/developers/libdca.html")
1278 (synopsis "DTS Coherent Acoustics decoder")
1279 (description "libdca is a library for decoding DTS Coherent Acoustics
1281 (license license:gpl2+)))
1283 (define-public libdv
1290 "mirror://sourceforge/libdv/libdv/"
1291 version "/libdv-" version ".tar.gz"))
1294 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
1295 (build-system gnu-build-system)
1296 (native-inputs `(("pkg-config" ,pkg-config)))
1297 (inputs `(("libxv" ,libxv)))
1298 (home-page "http://libdv.sourceforge.net/")
1299 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
1300 (description "The Quasar DV codec (libdv) is a software codec for DV
1301 video, the encoding format used by most digital camcorders, typically those
1302 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
1303 developed according to the official standards for DV video: IEC 61834 and
1305 (license license:lgpl2.1+)))
1307 (define-public libmatroska
1309 (name "libmatroska")
1314 (uri (string-append "https://dl.matroska.org/downloads/"
1315 "libmatroska/libmatroska-" version ".tar.xz"))
1317 (base32 "06h81sxyz2riic0gpzik6ffcnq32wrqphi8c6k55glcdymiimyfs"))))
1318 (build-system cmake-build-system)
1320 `(("libebml" ,libebml)))
1323 (list "-DBUILD_SHARED_LIBS=YES")
1324 #:tests? #f)) ; no test suite
1325 (home-page "https://www.matroska.org")
1326 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
1328 "Matroska aims to become the standard of multimedia container formats.
1329 It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
1330 of XML. EBML enables the Matroska Development Team to gain significant
1331 advantages in terms of future format extensibility, without breaking file
1332 support in old parsers.
1333 libebml is a C++ library to read and write EBML files.")
1334 (license license:lgpl2.1)))
1336 (define-public libva
1343 (uri (string-append "https://github.com/intel/libva/releases/download/"
1344 version "/libva-" version ".tar.bz2"))
1346 (base32 "0dh2zjn6wi74ga75r6pbrrj8hjm213zyxvn9bv78z0fra1dy70gs"))))
1347 (build-system gnu-build-system)
1349 `(("pkg-config" ,pkg-config)))
1351 `(("libdrm" ,libdrm)
1353 ("libxext" ,libxext)
1354 ("libxfixes" ,libxfixes)
1356 ("wayland" ,wayland)))
1359 (modify-phases %standard-phases
1361 'build 'fix-dlopen-paths
1362 (lambda* (#:key outputs #:allow-other-keys)
1363 (let ((out (assoc-ref outputs "out")))
1364 (substitute* "va/drm/va_drm_auth_x11.c"
1365 (("\"libva-x11\\.so\\.%d\"")
1366 (string-append "\"" out "/lib/libva-x11.so.%d\"")))
1368 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
1369 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
1371 (list (string-append "--with-drivers-path="
1372 (assoc-ref %build-inputs "mesa") "/lib/dri"))
1373 ;; However, we can't write to mesa's store directory, so override the
1374 ;; following make variable to install the dummy driver to libva's
1375 ;; $prefix/lib/dri directory.
1377 (list (string-append "dummy_drv_video_ladir="
1378 (assoc-ref %outputs "out") "/lib/dri"))))
1379 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
1380 (synopsis "Video acceleration library")
1381 (description "The main motivation for VA-API (Video Acceleration API) is
1382 to enable hardware accelerated video decode/encode at various
1383 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
1384 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
1385 (license license:expat)))
1387 (define-public libva-utils
1389 (name "libva-utils")
1394 (uri (string-append "https://github.com/intel/libva-utils/releases/download/"
1395 version "/libva-utils-" version ".tar.bz2"))
1397 (base32 "05rasyqnsg522zqxak1q8rrm1hys7wwbi41kd0szjq0d27awjf4j"))))
1398 (build-system gnu-build-system)
1401 (list "--enable-wayland"
1404 `(("pkg-config" ,pkg-config)))
1406 `(("libdrm" ,libdrm)
1410 ("wayland" ,wayland)))
1411 (home-page "https://01.org/linuxmedia/vaapi")
1412 (synopsis "Collection of testing utilities for VA-API")
1414 "This is a collection of utilities to query and test the @acronym{VA-API,
1415 Video Acceleration API} implemented by the libva library.
1417 These tools require a supported graphics chip, driver, and VA-API back end to
1419 (license license:expat)))
1421 (define-public ffmpeg
1427 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1431 "1nyd9jlcy0pqnwzi29a7sg50hq37vb0g3f9l16y3q8yh3m7ydr26"))))
1432 (build-system gnu-build-system)
1435 ("fontconfig" ,fontconfig)
1436 ("freetype" ,freetype)
1437 ("frei0r-plugins" ,frei0r-plugins)
1444 ("libbluray" ,libbluray)
1445 ("libcaca" ,libcaca)
1446 ("libcdio-paranoia" ,libcdio-paranoia)
1448 ("libtheora" ,libtheora)
1450 ("libvdpau" ,libvdpau)
1451 ("libvorbis" ,libvorbis)
1454 ("libx264" ,libx264)
1457 ("pulseaudio" ,pulseaudio)
1458 ;; XXX: rav1e depends on rust, which currently only works on x86_64.
1459 ;; See also the related configure flag when changing this.
1460 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1467 ;; FFmpeg is not yet compatible with SRT > 1.4.1.
1469 ("twolame" ,twolame)
1470 ("vidstab" ,vidstab)
1477 ("pkg-config" ,pkg-config)
1478 ("texinfo" ,texinfo)
1482 `(#:test-target "fate"
1484 ;; possible additional inputs:
1485 ;; --enable-avisynth enable reading of AviSynth script
1487 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
1488 ;; --enable-libcelt enable CELT decoding via libcelt [no]
1489 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
1490 ;; and libraw1394 [no]
1491 ;; --enable-libfaac enable AAC encoding via libfaac [no]
1492 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
1493 ;; --enable-libflite enable flite (voice synthesis) support via
1495 ;; --enable-libgme enable Game Music Emu via libgme [no]
1496 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
1497 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
1498 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
1499 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
1500 ;; --enable-libnut enable NUT (de)muxing via libnut,
1501 ;; native (de)muxer exists [no]
1502 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
1503 ;; libopencore-amrnb [no]
1504 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
1505 ;; libopencore-amrwb [no]
1506 ;; --enable-libopencv enable video filtering via libopencv [no]
1507 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
1509 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
1510 ;; --enable-libschroedinger enable Dirac de/encoding via
1511 ;; libschroedinger [no]
1512 ;; --enable-libshine enable fixed-point MP3 encoding via
1514 ;; --enable-libssh enable SFTP protocol via libssh [no]
1515 ;; (libssh2 does not work)
1516 ;; --enable-libstagefright-h264 enable H.264 decoding via
1517 ;; libstagefright [no]
1518 ;; --enable-libutvideo enable Ut Video encoding and decoding via
1520 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
1521 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
1522 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
1523 ;; libvo-amrwbenc [no]
1524 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
1525 ;; --enable-libxavs enable AVS encoding via xavs [no]
1526 ;; --enable-libzmq enable message passing via libzmq [no]
1527 ;; --enable-libzvbi enable teletext support via libzvbi [no]
1528 ;; --enable-opencl enable OpenCL code
1529 '("--enable-avresample"
1530 "--enable-gpl" ; enable optional gpl licensed parts
1533 "--enable-fontconfig"
1538 "--enable-libbluray"
1542 "--enable-libfreetype"
1543 "--enable-libmp3lame"
1546 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1548 '("--enable-librav1e")
1553 "--enable-libtheora"
1554 "--enable-libtwolame"
1555 "--enable-libvidstab"
1556 "--enable-libvorbis"
1565 "--enable-runtime-cpudetect"
1567 ;; The HTML pages take 7.2 MiB
1568 "--disable-htmlpages"
1570 ;; The static libraries are 23 MiB
1573 ;; Runtime cpu detection is not implemented on
1574 ;; MIPS, so we disable some features.
1575 "--disable-mips32r2"
1577 "--disable-mipsdspr2"
1578 "--disable-mipsfpu")
1580 (modify-phases %standard-phases
1583 ;; configure does not work followed by "SHELL=..." and
1584 ;; "CONFIG_SHELL=..."; set environment variables instead
1585 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1586 (let ((out (assoc-ref outputs "out")))
1587 (substitute* "configure"
1588 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1589 (setenv "SHELL" (which "bash"))
1590 (setenv "CONFIG_SHELL" (which "bash"))
1593 (string-append "--prefix=" out)
1594 ;; Add $libdir to the RUNPATH of all the binaries.
1595 (string-append "--extra-ldflags=-Wl,-rpath="
1599 'check 'set-ld-library-path
1601 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1603 (let* ((dso (find-files "." "\\.so$"))
1604 (path (string-join (map dirname dso) ":")))
1605 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1606 (setenv "LD_LIBRARY_PATH" path)
1608 (home-page "https://www.ffmpeg.org/")
1609 (synopsis "Audio and video framework")
1610 (description "FFmpeg is a complete, cross-platform solution to record,
1611 convert and stream audio and video. It includes the libavcodec
1612 audio/video codec library.")
1613 (license license:gpl2+)))
1615 (define-public ffmpeg-3.4
1621 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1625 "1j7mdk9szrljgv4sdx69bm1pnbb3cldbdxbkr42jbdi9zn11gl7g"))))
1627 (substitute-keyword-arguments (package-arguments ffmpeg)
1628 ((#:modules modules %gnu-build-system-modules)
1631 ((#:configure-flags flags)
1634 '("--enable-libdav1d"
1637 "--enable-libsrt")))))
1638 (inputs (fold alist-delete
1639 (package-inputs ffmpeg)
1640 '("dav1d" "libaom" "rav1e" "srt")))))
1642 (define-public ffmpeg-2.8
1648 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1652 "14n0xg22yz1r4apif2idm91s3avcmkz4sl8gyj5763gcy415k2bb"))))
1654 `(#:tests? #f ; XXX: Enable them later, if required
1659 "--extra-cflags=-DFF_API_OLD_ENCODE_VIDEO -DFF_API_OLD_ENCODE_AUDIO")
1661 (modify-phases %standard-phases
1663 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1664 (let ((out (assoc-ref outputs "out")))
1665 (substitute* "configure"
1666 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1667 ;; configure does not work followed by "SHELL=..." and
1668 ;; "CONFIG_SHELL=..."; set environment variables instead.
1669 (setenv "SHELL" (which "bash"))
1670 (setenv "CONFIG_SHELL" (which "bash"))
1673 (string-append "--prefix=" out)
1674 ;; Add $libdir to the RUNPATH of all the binaries.
1675 (string-append "--extra-ldflags=-Wl,-rpath="
1679 'check 'set-ld-library-path
1681 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1683 (let* ((dso (find-files "." "\\.so$"))
1684 (path (string-join (map dirname dso) ":")))
1685 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1686 (setenv "LD_LIBRARY_PATH" path)
1688 (inputs (fold alist-delete
1689 (package-inputs ffmpeg)
1690 '("dav1d" "libaom" "rav1e" "srt")))))
1692 (define-public ffmpeg-for-stepmania
1701 (url "https://github.com/stepmania/ffmpeg")
1702 (commit "eda6effcabcf9c238e4635eb058d72371336e09b")))
1704 (base32 "1by8rmbva8mfrivdbbkr2gx4kga89zqygkd4cfjl76nr8mdcdamb"))
1705 (file-name (git-file-name "ffmpeg" version))))
1707 (substitute-keyword-arguments (package-arguments ffmpeg)
1708 ((#:configure-flags flags)
1709 '(list "--disable-programs"
1712 "--disable-avdevice"
1713 "--disable-swresample"
1714 "--disable-postproc"
1715 "--disable-avfilter"
1717 "--enable-static"))))
1720 (define-public ffmpegthumbnailer
1722 (name "ffmpegthumbnailer")
1727 (url "https://github.com/dirkvdb/ffmpegthumbnailer")
1729 (file-name (git-file-name name version))
1732 "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich"))))
1733 (build-system cmake-build-system)
1735 `(("pkg-config" ,pkg-config)))
1737 `(("ffmpeg" ,ffmpeg)
1738 ("libjpeg-turbo" ,libjpeg-turbo)
1742 `(#:configure-flags (list "-DENABLE_GIO=ON" "-DENABLE_THUMBNAILER=ON")))
1743 (home-page "https://github.com/dirkvdb/ffmpegthumbnailer")
1744 (synopsis "Create thumbnails from video files")
1745 (description "FFmpegthumbnailer is a lightweight video thumbnailer that
1746 can be used by file managers to create thumbnails for your video files. The
1747 thumbnailer uses ffmpeg to decode frames from the video files, so supported
1748 videoformats depend on the configuration flags of ffmpeg.")
1749 (license license:gpl2+)))
1758 "https://download.videolan.org/pub/videolan/vlc/"
1759 (car (string-split version #\-))
1760 "/vlc-" version ".tar.xz"))
1763 "0ygqihw2c5vvzv8950dlf7rdwz1cpz1668jgyja604ljibrmix7g"))))
1764 (build-system gnu-build-system)
1768 ("gettext" ,gettext-minimal)
1769 ("pkg-config" ,pkg-config)))
1770 ;; FIXME: Add optional inputs once available.
1772 `(("alsa-lib" ,alsa-lib)
1779 ("fontconfig" ,fontconfig)
1780 ("freetype" ,freetype)
1781 ("fribidi" ,fribidi)
1784 ("libarchive" ,libarchive)
1786 ("libavc1394" ,libavc1394)
1787 ("libbluray" ,libbluray)
1788 ("libcaca" ,libcaca)
1789 ("libcddb" ,libcddb)
1791 ("libdvbpsi" ,libdvbpsi)
1792 ("libdvdnav" ,libdvdnav)
1793 ("libdvdread" ,libdvdread)
1794 ("libebml" ,libebml)
1795 ("libgcrypt" ,libgcrypt)
1797 ("libkate" ,libkate)
1799 ("libmatroska" ,libmatroska)
1800 ("libmicrodns" ,libmicrodns)
1801 ("libmodplug" ,libmodplug)
1802 ("libmpeg2" ,libmpeg2)
1805 ("libraw1394" ,libraw1394)
1806 ("librsvg" ,librsvg)
1807 ("libsamplerate" ,libsamplerate)
1808 ("libsecret" ,libsecret)
1809 ("libssh2" ,libssh2)
1810 ("libupnp" ,libupnp)
1812 ("libvdpau" ,libvdpau)
1813 ("libvorbis" ,libvorbis)
1815 ("libtheora" ,libtheora)
1816 ("libx264" ,libx264)
1817 ("libxext" ,libxext)
1819 ("libxinerama" ,libxinerama)
1820 ("libxml2" ,libxml2)
1822 ("livemedia-utils" ,livemedia-utils)
1827 ("pulseaudio" ,pulseaudio)
1828 ("protobuf" ,protobuf)
1829 ("python" ,python-wrapper)
1832 ("qtx11extras" ,qtx11extras)
1835 ("sdl-image" ,sdl-image)
1837 ("speexdsp" ,speexdsp)
1838 ;; VLC is not yet compatible with SRT > 1.4.1.
1841 ("twolame" ,twolame)
1843 ("wayland" ,wayland)
1844 ("wayland-protocols" ,wayland-protocols)
1846 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1850 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
1851 (assoc-ref %build-inputs "ffmpeg")
1852 "/lib")) ;needed for the tests
1855 (modify-phases %standard-phases
1856 (add-after 'unpack 'patch-source
1857 (lambda* (#:key inputs #:allow-other-keys)
1858 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
1859 (substitute* "configure"
1860 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
1861 (string-append "LIVE555_PREFIX=" livemedia-utils)))
1862 ;; Some of the tests require using the display to test out VLC,
1863 ;; which fails in our sandboxed build system
1864 (substitute* "test/run_vlc.sh"
1865 (("./vlc --ignore-config") "echo"))
1867 (add-after 'strip 'regenerate-plugin-cache
1868 (lambda* (#:key outputs #:allow-other-keys)
1869 ;; The 'install-exec-hook' rule in the top-level Makefile.am
1870 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
1871 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
1872 ;; it references. Thus, we first reset the timestamps of all
1873 ;; these files, and then regenerate the cache such that the
1874 ;; mtimes it includes are always zero instead of being dependent
1875 ;; on the build time.
1876 (let* ((out (assoc-ref outputs "out"))
1877 (pkglibdir (string-append out "/lib/vlc"))
1878 (plugindir (string-append pkglibdir "/plugins"))
1879 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
1880 ;; TODO: Factorize 'reset-timestamps'.
1881 (for-each (lambda (file)
1882 (let ((s (lstat file)))
1883 (unless (eq? (stat:type s) 'symlink)
1885 (find-files plugindir))
1886 (invoke cachegen plugindir))))
1887 (add-after 'install 'wrap-executable
1888 (lambda* (#:key outputs #:allow-other-keys)
1889 (let ((out (assoc-ref outputs "out"))
1890 (plugin-path (getenv "QT_PLUGIN_PATH")))
1891 (wrap-program (string-append out "/bin/vlc")
1892 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
1894 (home-page "https://www.videolan.org/")
1895 (synopsis "Audio and video framework")
1896 (description "VLC is a cross-platform multimedia player and framework
1897 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
1898 streaming protocols.")
1899 (license license:gpl2+)))
1901 (define-public mplayer
1908 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
1912 "0j5mflr0wnklxsvnpmxvk704hscyn2785hvvihj2i3a7b3anwnc2"))))
1913 (build-system gnu-build-system)
1914 ;; FIXME: Add additional inputs once available.
1916 `(("pkg-config" ,pkg-config)
1919 `(("alsa-lib" ,alsa-lib)
1920 ("cdparanoia" ,cdparanoia)
1922 ("fontconfig" ,fontconfig)
1923 ("freetype" ,freetype)
1927 ("libdvdcss" ,libdvdcss)
1928 ("libdvdnav" ,libdvdnav) ; ignored without libdvdread
1929 ("libdvdread" ,libdvdread) ; ignored without libdvdnav
1930 ("libjpeg" ,libjpeg-turbo)
1931 ("libmpeg2" ,libmpeg2)
1932 ("libmpg123" ,mpg123) ; audio codec for MP3
1934 ("libtheora" ,libtheora)
1935 ("libvdpau" ,libvdpau)
1936 ("libvorbis" ,libvorbis)
1938 ("libx264" ,libx264)
1939 ("libxinerama" ,libxinerama)
1941 ("libxxf86dga" ,libxxf86dga)
1945 ("pulseaudio" ,pulseaudio)
1946 ("python" ,python-wrapper)
1951 `(#:tests? #f ; no test target
1953 (modify-phases %standard-phases
1955 ;; configure does not work followed by "SHELL=..." and
1956 ;; "CONFIG_SHELL=..."; set environment variables instead
1957 (lambda* (#:key inputs outputs #:allow-other-keys)
1958 (let ((out (assoc-ref outputs "out"))
1959 (libx11 (assoc-ref inputs "libx11")))
1960 (substitute* "configure"
1961 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1962 (setenv "SHELL" (which "bash"))
1963 (setenv "CONFIG_SHELL" (which "bash"))
1964 (invoke "./configure"
1965 (string-append "--extra-cflags=-I"
1966 libx11 "/include") ; to detect libx11
1967 "--disable-ffmpeg_a" ; disables bundled ffmpeg
1968 (string-append "--prefix=" out)
1969 ;; Enable runtime cpu detection where supported,
1970 ;; and choose a suitable target.
1971 ,@(match (or (%current-target-system)
1974 '("--enable-runtime-cpudetection"
1975 "--target=x86_64-linux"))
1977 '("--enable-runtime-cpudetection"
1978 "--target=i686-linux"))
1980 '("--target=mips3-linux"))
1981 (_ (list (string-append
1983 (or (%current-target-system)
1984 (nix-system->gnu-triplet
1985 (%current-system)))))))
1986 "--disable-iwmmxt")))))))
1987 (home-page "https://www.mplayerhq.hu")
1988 (synopsis "Audio and video player")
1989 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
1990 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
1991 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
1992 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
1993 (license license:gpl2)))
2002 (url "https://github.com/mpv-player/mpv")
2003 (commit (string-append "v" version))))
2004 (file-name (git-file-name name version))
2007 "06rw1f55zcsj78ql8w70j9ljp2qb1pv594xj7q9cmq7i92a7hq45"))))
2008 (build-system waf-build-system)
2010 `(("perl" ,perl) ; for zsh completion file
2011 ("pkg-config" ,pkg-config)
2012 ("python-docutils" ,python-docutils)))
2013 ;; Missing features: libguess, V4L2
2015 `(("alsa-lib" ,alsa-lib)
2022 ("libbluray" ,libbluray)
2023 ("libcaca" ,libcaca)
2024 ("libbs2b" ,libbs2b)
2025 ("libcdio-paranoia" ,libcdio-paranoia)
2026 ("libdvdread" ,libdvdread)
2027 ("libdvdnav" ,libdvdnav)
2028 ("libjpeg" ,libjpeg-turbo)
2030 ("libvdpau" ,libvdpau)
2032 ("libxext" ,libxext)
2033 ("libxinerama" ,libxinerama)
2034 ("libxrandr" ,libxrandr)
2035 ("libxscrnsaver" ,libxscrnsaver)
2037 ;; XXX: lua > 5.2 is not currently supported; see
2038 ;; waftools/checks/custom.py
2042 ("pulseaudio" ,pulseaudio)
2044 ("shaderc" ,shaderc)
2045 ("vulkan-headers" ,vulkan-headers)
2046 ("vulkan-loader" ,vulkan-loader)
2048 ("wayland" ,wayland)
2049 ("wayland-protocols" ,wayland-protocols)
2050 ("libxkbcommon" ,libxkbcommon)
2051 ("youtube-dl" ,youtube-dl)
2055 (modify-phases %standard-phases
2057 'unpack 'patch-paths
2058 (lambda* (#:key inputs #:allow-other-keys)
2059 (let ((ytdl (assoc-ref inputs "youtube-dl")))
2060 (substitute* "player/lua/ytdl_hook.lua"
2061 (("\"youtube-dl\",")
2062 (string-append "\"" ytdl "/bin/youtube-dl\",")))
2064 (add-before 'configure 'build-reproducibly
2066 ;; Somewhere in the build system library dependencies are enumerated
2067 ;; and passed as linker flags, but the order in which they are added
2068 ;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
2069 ;; Set PYTHONHASHSEED as a workaround for deterministic results.
2070 (setenv "PYTHONHASHSEED" "1")
2073 'configure 'setup-waf
2074 (lambda* (#:key inputs #:allow-other-keys)
2075 (let ((waf (assoc-ref inputs "waf")))
2076 (copy-file (string-append waf "/bin/waf") "waf"))
2079 #:configure-flags (list "--enable-libmpv-shared"
2082 "--disable-build-date")
2083 ;; No check function defined.
2085 (home-page "https://mpv.io/")
2086 (synopsis "Audio and video player")
2087 (description "mpv is a general-purpose audio and video player. It is a
2088 fork of mplayer2 and MPlayer. It shares some features with the former
2089 projects while introducing many more.")
2090 (license license:gpl2+)))
2092 (define-public gnome-mpv
2093 (deprecated-package "gnome-mpv" celluloid))
2095 (define-public mpv-mpris
2103 (url "https://github.com/hoyon/mpv-mpris")
2105 (file-name (git-file-name name version))
2108 "07p6li5z38pkfd40029ag2jqx917vyl3ng5p2i4v5a0af14slcnk"))))
2109 (build-system copy-build-system)
2112 '(("mpris.so" "lib/"))
2114 (modify-phases %standard-phases
2115 (add-before 'install 'build
2117 (setenv "CC" (which "gcc"))
2118 (invoke "make"))))))
2120 `(("pkg-config" ,pkg-config)))
2124 (home-page "https://github.com/hoyon/mpv-mpris")
2125 (synopsis "MPRIS plugin for mpv")
2126 (description "This package provides an @dfn{MPRIS} (Media Player Remote
2127 Interfacing Specification) plugin for the @code{mpv} media player. It implements
2128 @code{org.mpris.MediaPlayer2} and @code{org.mpris.MediaPlayer2.Player} D-Bus
2131 To load this plugin, specify the following option when starting mpv:
2132 @code{--script $GUIX_PROFILE/lib/mpris.so} or link it into
2133 @file{$HOME/.config/mpv/scripts}.")
2134 (license license:expat)))
2136 (define-public libvpx
2143 (url "https://chromium.googlesource.com/webm/libvpx")
2144 (commit (string-append "v" version))))
2145 (file-name (git-file-name name version))
2148 "16xv6ambc82g14h1y0q1vyy57wp6j9fbp0nk0wd5csnrw407rhry"))
2149 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
2150 (build-system gnu-build-system)
2152 `(#:configure-flags (list "--enable-shared"
2155 ;; Limit size to avoid CVE-2015-1258
2156 "--size-limit=16384x16384"
2157 (string-append "--prefix=" (assoc-ref %outputs "out")))
2158 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2159 (assoc-ref %outputs "out") "/lib"))
2160 #:phases (modify-phases %standard-phases
2162 (lambda* (#:key configure-flags #:allow-other-keys)
2163 ;; The configure script does not understand some of the GNU
2164 ;; options, so we only add the flags specified above.
2165 (apply invoke "./configure" configure-flags))))
2167 ;; XXX: The test suite wants to download 871 files from a cloud storage
2168 ;; service (see test/test-data.sha1). It is possible to specify a
2169 ;; custom directory, but there seems to be no tarball with all files.
2174 (synopsis "VP8/VP9 video codec")
2175 (description "libvpx is a codec for the VP8/VP9 video compression format.")
2176 (license license:bsd-3)
2177 (home-page "https://www.webmproject.org/")))
2179 (define-public youtube-dl
2182 (version "2021.05.16")
2185 (uri (string-append "https://youtube-dl.org/downloads/latest/"
2186 "youtube-dl-" version ".tar.gz"))
2189 "1z8sdzvkxhscnzy7cnjag308glif0k8jylr11biqwzypm1f2l0fl"))
2192 ;; Delete the pre-generated files, except for the man page
2193 ;; which requires 'pandoc' to build.
2194 (for-each delete-file '("youtube-dl"
2195 ;;pandoc is needed to generate
2197 "youtube-dl.bash-completion"
2201 (build-system python-build-system)
2203 ;; The problem here is that the directory for the man page and completion
2204 ;; files is relative, and for some reason, setup.py uses the
2205 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
2206 ;; So, we need pass the prefix directly. In addition, make sure the Bash
2207 ;; completion file is called 'youtube-dl' rather than
2208 ;; 'youtube-dl.bash-completion'.
2209 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
2210 #:phases (modify-phases %standard-phases
2211 (add-after 'unpack 'default-to-the-ffmpeg-input
2213 ;; See <https://issues.guix.gnu.org/43418#5>.
2214 ;; ffmpeg is big but required to request free formats
2215 ;; from, e.g., YouTube so pull it in unconditionally.
2216 ;; Continue respecting the --ffmpeg-location argument.
2217 (substitute* "youtube_dl/postprocessor/ffmpeg.py"
2218 (("\\.get\\('ffmpeg_location'\\)" match)
2219 (format #f "~a or '~a'" match (which "ffmpeg"))))
2221 (add-before 'build 'build-generated-files
2223 ;; Avoid the make targets that require pandoc.
2227 ;;"youtube-dl.1" ; needs pandoc
2228 "youtube-dl.bash-completion"
2230 "youtube-dl.fish")))
2231 (add-before 'install 'fix-the-data-directories
2232 (lambda* (#:key outputs #:allow-other-keys)
2233 (let ((prefix (assoc-ref outputs "out")))
2234 (mkdir "bash-completion")
2235 (rename-file "youtube-dl.bash-completion"
2236 "bash-completion/youtube-dl")
2237 (substitute* "setup.py"
2238 (("youtube-dl\\.bash-completion")
2239 "bash-completion/youtube-dl")
2241 (string-append "'" prefix "/etc/"))
2243 (string-append "'" prefix "/share/")))
2245 (add-after 'install 'install-completion
2246 (lambda* (#:key outputs #:allow-other-keys)
2247 (let* ((out (assoc-ref outputs "out"))
2248 (zsh (string-append out
2249 "/share/zsh/site-functions")))
2251 (copy-file "youtube-dl.zsh"
2252 (string-append zsh "/_youtube-dl"))
2257 `(("ffmpeg" ,ffmpeg)))
2258 (synopsis "Download videos from YouTube.com and other sites")
2260 "Youtube-dl is a small command-line program to download videos from
2261 YouTube.com and many more sites.")
2262 (home-page "https://yt-dl.org")
2263 (license license:public-domain)))
2265 (define-public youtube-dl-gui
2267 (name "youtube-dl-gui")
2272 (uri (pypi-uri "Youtube-DLG" version))
2275 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
2276 (build-system python-build-system)
2278 ;; In Guix, wxpython has not yet been packaged for Python 3.
2279 `(#:python ,python-2
2280 ;; This package has no tests.
2283 (modify-phases %standard-phases
2284 (add-before 'build 'patch-source
2285 (lambda* (#:key inputs #:allow-other-keys)
2286 ;; The youtube-dl-gui program lets you configure options. Some of
2287 ;; them are problematic, so we change their defaults.
2288 (substitute* "youtube_dl_gui/optionsmanager.py"
2289 ;; When this is true, the builder process will try (and fail) to
2290 ;; write logs to the builder user's home directory.
2291 (("'enable_log': True") "'enable_log': False")
2292 ;; This determines which youtube-dl program youtube-dl-gui will
2293 ;; run. If we don't set this, then youtube-dl-gui might download
2294 ;; an arbitrary copy from the Internet into the user's home
2295 ;; directory and run it, so let's make sure youtube-dl-gui uses
2296 ;; the youtube-dl from the inputs by default.
2297 (("'youtubedl_path': self.config_path")
2298 (string-append "'youtubedl_path': '"
2299 (assoc-ref inputs "youtube-dl")
2301 ;; When this is True, when youtube-dl-gui is finished downloading
2302 ;; a file, it will try (and possibly fail) to open the directory
2303 ;; containing the downloaded file. This can fail because it
2304 ;; assumes that xdg-open is in PATH. Unfortunately, simply
2305 ;; adding xdg-utils to the propagated inputs is not enough to
2306 ;; make this work, so for now we set the default to False.
2307 (("'open_dl_dir': True") "'open_dl_dir': False"))
2308 ;; The youtube-dl program from the inputs is actually a wrapper
2309 ;; script written in bash, so attempting to invoke it as a python
2310 ;; script will fail.
2311 (substitute* "youtube_dl_gui/downloaders.py"
2312 (("cmd = \\['python', self\\.youtubedl_path\\]")
2313 "cmd = [self.youtubedl_path]"))
2314 ;; Use relative paths for installing data files so youtube-dl-gui
2315 ;; installs the files relative to its prefix in the store, rather
2316 ;; than relative to /. Also, instead of installing data files into
2317 ;; $prefix/usr/share, install them into $prefix/share for
2318 ;; consistency (see: (standards) Directory Variables).
2319 (substitute* "setup.py"
2320 (("= '/usr/share") "= 'share"))
2321 ;; Update get_locale_file() so it finds the installed localization
2323 (substitute* "youtube_dl_gui/utils.py"
2324 (("os\\.path\\.join\\('/usr', 'share'")
2325 (string-append "os.path.join('"
2326 (assoc-ref %outputs "out")
2329 (add-after 'install 'create-desktop-file
2330 (lambda* (#:key outputs #:allow-other-keys)
2331 (let* ((out (assoc-ref outputs "out"))
2332 (applications (string-append out "/share/applications")))
2333 (mkdir-p applications)
2334 (call-with-output-file
2335 (string-append applications "/youtube-dl-gui.desktop")
2340 Name=Youtube-dl GUI~@
2341 Comment=Graphical interface to download video with youtube-dl~@
2342 Exec=youtube-dl-gui~@
2343 TryExec=youtube-dl-gui~@
2345 Icon=youtube-dl-gui~@
2347 Categories=AudioVideo;Audio;Video;Network~%")))
2350 `(("python2-wxpython" ,python2-wxpython)
2351 ("youtube-dl" ,youtube-dl)))
2352 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
2354 "GUI (Graphical User Interface) for @command{youtube-dl}")
2356 "Youtube-dlG is a GUI (Graphical User Interface) for
2357 @command{youtube-dl}. You can use it to download videos from YouTube and any
2358 other site that youtube-dl supports.")
2359 (license license:unlicense)))
2361 (define-public you-get
2364 (version "0.4.1500")
2368 (url "https://github.com/soimort/you-get")
2369 (commit (string-append "v" version))))
2370 (file-name (git-file-name name version))
2373 "02wkmq6bjg9iz0kccsgs192aiky99l2jnw1xs6zjhvjvq7jyvf7s"))))
2374 (build-system python-build-system)
2376 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
2379 (modify-phases %standard-phases
2380 (add-after 'unpack 'qualify-input-references
2381 ;; Explicitly invoke the input ffmpeg, instead of whichever one
2382 ;; happens to be in the user's $PATH at run time.
2383 (lambda* (#:key inputs #:allow-other-keys)
2384 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
2386 (substitute* "src/you_get/processor/ffmpeg.py"
2387 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
2388 ;; same string is also used when sniffing ffmpeg's output.
2389 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
2390 (string-append prefix "'" ffmpeg "'")))
2392 #:tests? #f)) ; XXX some tests need Internet access
2393 (synopsis "Download videos, audio, or images from Web sites")
2395 "You-Get is a command-line utility to download media contents (videos,
2396 audio, images) from the Web. It can use either mpv or vlc for playback.")
2397 (home-page "https://you-get.org/")
2398 (license license:expat)))
2400 (define-public youtube-viewer
2402 (name "youtube-viewer")
2407 (url "https://github.com/trizen/youtube-viewer")
2409 (file-name (git-file-name name version))
2412 "0xdybiihd66b79rbsawjhxs9snm78gld5ziz3gnp8vdcw0bshwz7"))))
2413 (build-system perl-build-system)
2415 `(("perl-module-build" ,perl-module-build)))
2417 `(("perl-data-dump" ,perl-data-dump)
2418 ("perl-file-sharedir" ,perl-file-sharedir)
2419 ("perl-gtk2" ,perl-gtk2)
2420 ("perl-json" ,perl-json)
2421 ("perl-json-xs" ,perl-json-xs)
2422 ("perl-libwww" ,perl-libwww)
2423 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2424 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
2425 ("perl-memoize" ,perl-memoize)
2426 ("perl-mozilla-ca" ,perl-mozilla-ca)
2427 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
2428 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
2429 ("xdg-utils" ,xdg-utils)
2431 ;; Some videos play without youtube-dl, but others silently fail to.
2432 ("youtube-dl" ,youtube-dl)))
2434 `(#:modules ((guix build perl-build-system)
2437 ;; gtk-2/3 variants are both installed by default but the gtk3 variant
2438 ;; is broken without perl-gtk3.
2439 #:module-build-flags '("--gtk2")
2441 (modify-phases %standard-phases
2442 (add-after 'unpack 'refer-to-inputs
2443 (lambda* (#:key inputs #:allow-other-keys)
2444 (substitute* "lib/WWW/YoutubeViewer.pm"
2446 (format #f "'~a/bin/youtube-dl'"
2447 (assoc-ref inputs "youtube-dl"))))
2448 (substitute* '("bin/gtk2-youtube-viewer"
2449 "bin/gtk3-youtube-viewer")
2451 (format #f "'~a/bin/xdg-open'"
2452 (assoc-ref inputs "xdg-utils"))))
2454 (add-after 'install 'install-desktop
2455 (lambda* (#:key outputs #:allow-other-keys)
2456 (let* ((out (assoc-ref outputs "out"))
2457 (sharedir (string-append out "/share")))
2458 (install-file "share/gtk-youtube-viewer.desktop"
2459 (string-append sharedir "/applications"))
2460 (install-file "share/icons/gtk-youtube-viewer.png"
2461 (string-append sharedir "/pixmaps"))
2463 (add-after 'install 'wrap-program
2464 (lambda* (#:key outputs #:allow-other-keys)
2465 (let* ((out (assoc-ref outputs "out"))
2466 (bin-dir (string-append out "/bin/"))
2467 (site-dir (string-append out "/lib/perl5/site_perl/"))
2468 (lib-path (getenv "PERL5LIB")))
2469 (for-each (cut wrap-program <>
2470 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
2471 (find-files bin-dir))
2474 "Lightweight application for searching and streaming videos from YouTube")
2476 "Youtube-viewer searches and plays YouTube videos in a native player.
2477 It comes with various search options; it can search for videos, playlists
2478 and/or channels. The videos are streamed directly in a selected video player
2479 at the best resolution (customizable) and with closed-captions (if available).
2480 Both command-line and GTK2 interface are available.")
2481 (home-page "https://github.com/trizen/youtube-viewer")
2482 (license license:perl-license)))
2484 (define-public libbluray
2490 (uri (string-append "https://download.videolan.org/videolan/"
2491 name "/" version "/"
2492 name "-" version ".tar.bz2"))
2495 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
2496 (build-system gnu-build-system)
2498 `(#:configure-flags '("--disable-bdjava-jar"
2501 (modify-phases %standard-phases
2502 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
2503 ;; Avoid the need to propagate libxml2 by referring to it
2504 ;; directly, as is already done for fontconfig & freetype.
2505 (lambda* (#:key inputs #:allow-other-keys)
2506 (let ((libxml2 (assoc-ref inputs "libxml2")))
2507 (substitute* "configure"
2508 ((" libxml-2.0") ""))
2509 (substitute* "src/libbluray.pc.in"
2510 (("^Libs.private:" field)
2511 (string-append field " -L" libxml2 "/lib -lxml2")))
2513 (add-before 'build 'fix-dlopen-paths
2514 (lambda* (#:key inputs #:allow-other-keys)
2515 (let ((libaacs (assoc-ref inputs "libaacs"))
2516 (libbdplus (assoc-ref inputs "libbdplus")))
2517 (substitute* "src/libbluray/disc/aacs.c"
2519 (string-append "\"" libaacs "/lib/libaacs\"")))
2520 (substitute* "src/libbluray/disc/bdplus.c"
2522 (string-append "\"" libbdplus "/lib/libbdplus\"")))
2524 (native-inputs `(("pkg-config" ,pkg-config)))
2526 `(("fontconfig" ,fontconfig)
2527 ("freetype" ,freetype)
2528 ("libaacs" ,libaacs)
2529 ("libbdplus" ,libbdplus)
2530 ("libxml2" ,libxml2)))
2531 (home-page "https://www.videolan.org/developers/libbluray.html")
2532 (synopsis "Blu-Ray Disc playback library")
2534 "libbluray is a library designed for Blu-Ray Disc playback for media
2535 players, like VLC or MPlayer.")
2536 (license license:lgpl2.1+)))
2538 (define-public libdvdread
2544 (uri (string-append "https://download.videolan.org/videolan/"
2545 "libdvdread/" version "/"
2546 "libdvdread-" version ".tar.bz2"))
2549 "1c7yqqn67m3y3n7nfrgrnzz034zjaw5caijbwbfrq89v46ph257r"))))
2550 (build-system gnu-build-system)
2552 `(#:configure-flags '("--with-libdvdcss=yes")))
2554 `(("pkg-config" ,pkg-config)))
2556 `(("libdvdcss" ,libdvdcss)))
2557 (home-page "http://dvdnav.mplayerhq.hu/")
2558 (synopsis "Library for reading video DVDs")
2560 "Libdvdread provides a simple foundation for reading DVD video
2561 disks. It provides the functionality that is required to access many
2562 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
2563 authentication and descrambling (if an external libdvdcss library is
2565 (license license:gpl2+)))
2567 (define-public dvdauthor
2574 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
2578 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
2579 (build-system gnu-build-system)
2581 `(("libdvdread" ,libdvdread)
2583 ("imagemagick" ,imagemagick)
2584 ("libxml2" ,libxml2)
2585 ("freetype" ,freetype)))
2587 `(("pkg-config" ,pkg-config)))
2588 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
2589 (description "@command{dvdauthor} will generate a DVD-Video movie from a
2590 MPEG-2 stream containing VOB packets.")
2591 (home-page "http://dvdauthor.sourceforge.net")
2592 (license license:gpl3+)))
2594 (define-public libdvdnav
2600 (uri (string-append "https://download.videolan.org/videolan/"
2601 "libdvdnav/" version "/"
2602 "libdvdnav-" version ".tar.bz2"))
2605 "0cv7j8irsv1n2dadlnhr6i1b8pann2ah6xpxic41f04my6ba6rp5"))))
2606 (build-system gnu-build-system)
2608 `(("pkg-config" ,pkg-config)))
2610 `(("libdvdread" ,libdvdread)))
2611 (home-page "http://dvdnav.mplayerhq.hu/")
2612 (synopsis "Library for video DVD navigation features")
2614 "Libdvdnav is a library for developers of multimedia
2615 applications. It allows easy use of sophisticated DVD navigation features
2616 such as DVD menus, multiangle playback and even interactive DVD games. All
2617 this functionality is provided through a simple API which provides the DVD
2618 playback as a single logical stream of blocks, intermitted by special
2619 dvdnav events to report certain conditions. The main usage of libdvdnav is
2620 a loop regularly calling a function to get the next block, surrounded by
2621 additional calls to tell the library of user interaction. The whole
2622 DVD virtual machine and internal playback states are completely
2624 (license license:gpl2+)))
2626 (define-public libdvdcss
2632 (uri (string-append "https://download.videolan.org/pub/"
2633 name "/" version "/"
2634 name "-" version ".tar.bz2"))
2637 "0y800y33spblb20s1lsjbaiybknmwwmmiczmjqx5s760blpwjg13"))))
2638 (build-system gnu-build-system)
2639 (home-page "https://www.videolan.org/developers/libdvdcss.html")
2640 (synopsis "Library for accessing DVDs as block devices")
2642 "libdvdcss is a simple library designed for accessing DVDs like a block
2643 device without having to bother about the decryption.")
2644 (license license:gpl2+)))
2646 (define-public srt2vtt
2653 "https://files.dthompson.us/srt2vtt/srt2vtt-"
2657 "1ravl635x81fcai4h2xnsn926i69pafgr6zkghq6319iprkw8ffv"))))
2658 (build-system gnu-build-system)
2661 (modify-phases %standard-phases
2662 (add-after 'install 'wrap-srt2vtt
2663 (lambda* (#:key outputs #:allow-other-keys)
2664 (let* ((out (assoc-ref outputs "out"))
2665 (bin (string-append out "/bin"))
2666 (version ,(let ((v (package-version guile-3.0)))
2667 (string-append (car (string-split v #\.))
2669 (site (string-append out "/share/guile/site/" version))
2670 (compiled (string-append
2671 out "/lib/guile/" version
2673 (wrap-program (string-append bin "/srt2vtt")
2674 `("GUILE_LOAD_PATH" ":" prefix (,site))
2675 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,compiled)))))))))
2677 `(("pkg-config" ,pkg-config)))
2679 `(("guile" ,guile-3.0)))
2680 (synopsis "SubRip to WebVTT subtitle converter")
2681 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
2682 for use with HTML5 video.")
2683 (home-page "https://dthompson.us/projects/srt2vtt.html")
2684 (license license:gpl3+)))
2686 (define-public avidemux
2693 "mirror://sourceforge/avidemux/avidemux/" version "/"
2694 "avidemux_" version ".tar.gz"))
2697 "00blv5455ry3bb86zyzk1xmq3rbqmbif62khc0kq3whza97l12k2"))
2698 (patches (search-patches "avidemux-install-to-lib.patch"))))
2699 (build-system cmake-build-system)
2702 ("pkg-config" ,pkg-config)
2703 ("python" ,python-wrapper)
2704 ("qttools" ,qttools)
2706 ;; FIXME: Once packaged, add libraries not found during the build.
2708 `(("alsa-lib" ,alsa-lib)
2709 ("fontconfig" ,fontconfig)
2710 ("freetype" ,freetype)
2711 ("fribidi" ,fribidi)
2717 ("libvdpau" ,libvdpau)
2718 ("libvorbis" ,libvorbis)
2721 ("pulseaudio" ,pulseaudio)
2726 `(#:tests? #f ; no check target
2728 ;; Make sure files inside the included ffmpeg tarball are
2730 (let ((ffmpeg "ffmpeg-4.2.4"))
2731 (modify-phases %standard-phases
2732 (add-before 'patch-source-shebangs 'unpack-ffmpeg
2734 (with-directory-excursion "avidemux_core/ffmpeg_package"
2735 (invoke "tar" "xf" (string-append ffmpeg ".tar.bz2"))
2736 (delete-file (string-append ffmpeg ".tar.bz2")))
2738 (add-after 'patch-source-shebangs 'repack-ffmpeg
2740 (with-directory-excursion "avidemux_core/ffmpeg_package"
2741 (substitute* (string-append ffmpeg "/configure")
2742 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2743 (invoke "tar" "cjf" (string-append ffmpeg ".tar.bz2") ffmpeg
2744 ;; avoid non-determinism in the archive
2745 "--sort=name" "--mtime=@0"
2746 "--owner=root:0" "--group=root:0")
2747 (delete-file-recursively ffmpeg))
2751 ;; Copy-paste settings from the cmake build system.
2752 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2753 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2756 (lambda* (#:key inputs outputs #:allow-other-keys)
2757 (let* ((out (assoc-ref outputs "out"))
2758 (lib (string-append out "/lib"))
2761 (lambda* (component srcdir #:optional (args '()))
2762 (let ((builddir (string-append "build_" component)))
2764 (with-directory-excursion builddir
2765 (apply invoke "cmake"
2766 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
2767 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
2768 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
2769 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
2770 "\"-Wl,-rpath=" lib "\"")
2771 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
2772 (string-append "../" srcdir)
2776 (number->string (parallel-job-count)))
2777 (invoke "make" "install"))))))
2779 (build_component "core" "avidemux_core")
2780 (build_component "cli" "avidemux/cli")
2781 (build_component "qt4" "avidemux/qt4")
2782 (build_component "plugins_common" "avidemux_plugins"
2783 '("-DPLUGIN_UI=COMMON"))
2784 (build_component "plugins_cli" "avidemux_plugins"
2785 '("-DPLUGIN_UI=CLI"))
2786 (build_component "plugins_qt4" "avidemux_plugins"
2787 '("-DPLUGIN_UI=QT4"))
2788 (build_component "plugins_settings" "avidemux_plugins"
2789 '("-DPLUGIN_UI=SETTINGS"))
2790 ;; Remove .exe and .dll file.
2791 (delete-file-recursively
2792 (string-append out "/share/ADM6_addons"))
2794 (delete 'install)))))
2795 (home-page "http://fixounet.free.fr/avidemux/")
2796 (synopsis "Video editor")
2797 (description "Avidemux is a video editor designed for simple cutting,
2798 filtering and encoding tasks. It supports many file types, including AVI,
2799 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
2800 can be automated using projects, job queue and powerful scripting
2802 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
2803 ;; Software with various licenses is included, see License.txt.
2804 (license license:gpl2+)))
2806 (define-public vapoursynth
2808 (name "vapoursynth")
2813 (url "https://github.com/vapoursynth/vapoursynth")
2814 (commit (string-append "R" version))))
2815 (file-name (git-file-name name version))
2818 "1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
2819 (build-system gnu-build-system)
2821 `(("autoconf" ,autoconf)
2822 ("automake" ,automake)
2823 ("cython" ,python-cython)
2824 ("libtool" ,libtool)
2825 ("pkg-config" ,pkg-config)
2829 `(("ffmpeg" ,ffmpeg)
2831 ("tesseract-ocr" ,tesseract-ocr)
2833 (home-page "http://www.vapoursynth.com/")
2834 (synopsis "Video processing framework")
2835 (description "VapourSynth is a C++ library and Python module for video
2836 manipulation. It aims to be a modern rewrite of Avisynth, supporting
2837 multithreading, generalized colorspaces, per frame properties, and videos with
2839 ;; src/core/cpufeatures only allows x86, ARM or PPC
2840 (supported-systems (fold delete %supported-systems
2841 '("mips64el-linux" "aarch64-linux")))
2842 ;; As seen from the source files.
2843 (license license:lgpl2.1+)))
2852 "http://downloads.xvid.com/downloads/xvidcore-"
2853 version ".tar.bz2"))
2856 "1xyg3amgg27zf7188kss7y248s0xhh1vv8rrk0j9bcsd5nasxsmf"))))
2857 (build-system gnu-build-system)
2858 (native-inputs `(("yasm" ,yasm)))
2861 (modify-phases %standard-phases
2862 (add-before 'configure 'pre-configure
2864 (chdir "build/generic")
2865 (substitute* "configure"
2866 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2868 #:tests? #f)) ; no test suite
2869 (home-page "https://www.xvid.com/")
2870 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
2871 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
2872 codec library. It uses ASP features such as b-frames, global and quarter
2873 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
2874 and custom quantization matrices.")
2875 (license license:gpl2+)))
2877 (define-public streamlink
2884 (uri (pypi-uri "streamlink" version))
2887 "1nv2kj1k42a1b20ws8sdzlxk3wh1qz6pg5mxp75433b3c7lxksn0"))))
2888 (build-system python-build-system)
2889 (home-page "https://github.com/streamlink/streamlink")
2891 `(("python-freezegun" ,python-freezegun)
2892 ("python-pytest" ,python-pytest)
2893 ("python-mock" ,python-mock)
2894 ("python-requests-mock" ,python-requests-mock)))
2896 `(("python-pysocks" ,python-pysocks)
2897 ("python-websocket-client" ,python-websocket-client)
2898 ("python-iso3166" ,python-iso3166)
2899 ("python-iso639" ,python-iso639)
2900 ("python-isodate" ,python-isodate)
2901 ("python-pycryptodome" ,python-pycryptodome)
2902 ("python-requests" ,python-requests)
2903 ("python-urllib3" ,python-urllib3)))
2904 (synopsis "Extract streams from various services")
2905 (description "Streamlink is command-line utility that extracts streams
2906 from sites like Twitch.tv and pipes them into a video player of choice.")
2907 (license license:bsd-2)))
2909 (define-public twitchy
2910 (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag
2913 (version (git-version "3.4" "1" commit))
2918 (url "https://github.com/BasioMeusPuga/twitchy")
2920 (file-name (git-file-name name version))
2923 "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7"))))
2924 (build-system python-build-system)
2927 (modify-phases %standard-phases
2928 (add-after 'unpack 'patch-paths
2929 (lambda* (#:key inputs #:allow-other-keys)
2930 (substitute* "twitchy/twitchy_play.py"
2932 (string-append "\"" (assoc-ref inputs "streamlink")
2933 "/bin/streamlink ")))
2935 (add-before 'check 'check-setup
2937 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
2939 (add-after 'install 'install-rofi-plugin
2940 (lambda* (#:key outputs #:allow-other-keys)
2941 (install-file "plugins/rofi-twitchy"
2942 (string-append (assoc-ref outputs "out")
2946 `(("python-requests" ,python-requests)
2947 ("streamlink" ,streamlink)))
2948 (home-page "https://github.com/BasioMeusPuga/twitchy")
2949 (synopsis "Command-line interface for Twitch.tv")
2951 "This package provides a command-line interface for Twitch.tv")
2952 (license license:gpl3+))))
2961 (url "https://github.com/mltframework/mlt")
2962 (commit (string-append "v" version))))
2963 (file-name (git-file-name name version))
2966 "0jxv848ykw0csbnayrd710ylw46m0picfv7rpzsxz1vh4jzs395k"))))
2967 (build-system gnu-build-system)
2969 `(#:tests? #f ; no tests
2970 #:make-flags '("CC=gcc" "CXX=g++")
2972 (list "--enable-gpl3"
2975 (modify-phases %standard-phases
2977 'configure 'override-LDFLAGS
2978 (lambda* (#:key outputs #:allow-other-keys)
2979 (substitute* "config.mak"
2981 (string-append "LDFLAGS+=-Wl,-rpath="
2982 (assoc-ref outputs "out")
2986 `(("alsa-lib" ,alsa-lib)
2989 ("frei0r-plugins" ,frei0r-plugins)
2990 ("gdk-pixbuf" ,gdk-pixbuf)
2992 ("libxml2" ,libxml2)
2995 ("libexif" ,libexif)
2996 ("libvorbis" ,libvorbis)
2997 ("rubberband" ,rubberband)
2998 ("libsamplerate" ,libsamplerate)
2999 ("pulseaudio" ,pulseaudio)
3005 `(("pkg-config" ,pkg-config)))
3006 (home-page "https://www.mltframework.org/")
3007 (synopsis "Author, manage, and run multitrack audio/video compositions")
3009 "MLT is a multimedia framework, designed and developed for television
3010 broadcasting. It provides a toolkit for broadcasters, video editors, media
3011 players, transcoders, web streamers and many more types of applications. The
3012 functionality of the system is provided via an assortment of ready to use
3013 tools, XML authoring components, and an extensible plug-in based API.")
3014 (license license:gpl3)))
3016 (define-public v4l-utils
3022 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
3023 "/v4l-utils-" version ".tar.bz2"))
3026 "1xr66y6w422hil6s7n8d61a2vhwh4im8l267amf41jvw7xqihqcm"))))
3027 (build-system gnu-build-system)
3028 ;; Separate graphical tools in order to save almost 1 GiB on the closure
3029 ;; for the common case.
3030 (outputs '("out" "gui"))
3033 (list "--disable-static"
3034 (string-append "--with-udevdir="
3035 (assoc-ref %outputs "out")
3038 (modify-phases %standard-phases
3039 (add-after 'install 'split
3040 (lambda* (#:key outputs #:allow-other-keys)
3041 (let ((out (assoc-ref outputs "out"))
3042 (gui (assoc-ref outputs "gui")))
3043 (mkdir-p (string-append gui "/bin"))
3044 (mkdir-p (string-append gui "/share/man/man1"))
3045 (mkdir-p (string-append gui "/share/applications"))
3050 (rename-file (string-append out file)
3051 (string-append gui file)))
3053 (string-append "/bin/" prog)
3054 (string-append "/share/man/man1/" prog ".1")
3055 (string-append "/share/applications/" prog ".desktop"))))
3056 '("qv4l2" "qvidcap"))
3057 (copy-recursively (string-append out "/share/icons")
3058 (string-append gui "/share/icons"))
3059 (delete-file-recursively (string-append out "/share/icons"))
3060 (rmdir (string-append out "/share/applications"))
3064 ("pkg-config" ,pkg-config)))
3066 `(("alsa-lib" ,alsa-lib)
3068 ("libjpeg" ,libjpeg-turbo)
3072 (synopsis "Realtime video capture utilities for Linux")
3073 (description "The v4l-utils provide a series of libraries and utilities to
3074 be used for realtime video capture via Linux-specific APIs.")
3075 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
3076 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
3077 (license (list license:lgpl2.1+ license:gpl2))))
3086 (url "https://github.com/obsproject/obs-studio")
3088 (file-name (git-file-name name version))
3091 "1k1asqiqw757v59ayx0w029ril947hs0lcp8n91knzjl891fr4nc"))
3093 (search-patches "obs-modules-location.patch"))))
3094 (build-system cmake-build-system)
3097 (list (string-append "-DOBS_VERSION_OVERRIDE=" ,version)
3098 "-DENABLE_UNIT_TESTS=TRUE")
3100 (modify-phases %standard-phases
3101 (add-after 'install 'wrap-executable
3102 (lambda* (#:key outputs #:allow-other-keys)
3103 (let ((out (assoc-ref outputs "out"))
3104 (plugin-path (getenv "QT_PLUGIN_PATH")))
3105 (wrap-program (string-append out "/bin/obs")
3106 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
3108 (native-search-paths
3109 (list (search-path-specification
3110 (variable "OBS_PLUGINS_DIRECTORY")
3111 (separator #f) ;single entry
3112 (files '("lib/obs-plugins")))
3113 (search-path-specification
3114 (variable "OBS_PLUGINS_DATA_DIRECTORY")
3115 (separator #f) ;single entry
3116 (files '("share/obs/obs-plugins")))))
3118 `(("cmocka" ,cmocka)
3119 ("pkg-config" ,pkg-config)))
3121 `(("alsa-lib" ,alsa-lib)
3125 ("fontconfig" ,fontconfig)
3126 ("freetype" ,freetype)
3128 ("jansson" ,jansson)
3129 ("libx264" ,libx264)
3130 ("libxcomposite" ,libxcomposite)
3131 ("mbedtls" ,mbedtls-apache)
3133 ("pulseaudio" ,pulseaudio)
3136 ("qtx11extras" ,qtx11extras)
3137 ("speexdsp" ,speexdsp)
3138 ("v4l-utils" ,v4l-utils)
3140 (synopsis "Live streaming software")
3141 (description "Open Broadcaster Software provides a graphical interface for
3142 video recording and live streaming. OBS supports capturing audio and video
3143 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
3145 (home-page "https://obsproject.com")
3146 (license license:gpl2+)))
3148 (define-public obs-spectralizer
3150 (name "obs-spectralizer")
3156 (url "https://github.com/univrsal/spectralizer")
3157 (commit (string-append "v" version))))
3158 (file-name (git-file-name name version))
3160 ;; Remove bundled Windows DLLs.
3161 (snippet '(delete-file-recursively "fftw3"))
3162 (modules '((guix build utils)))
3166 "0q75cnyqydpvfda51zm9gxqj3wqr99ad0lxzjhw0ld67qvj1ag6i"))))
3167 (build-system cmake-build-system)
3171 (list "-DGLOBAL_INSTALLATION=ON" "-DUSE_CMAKE_LIBDIR=ON")))
3172 (inputs `(("obs" ,obs)
3174 (home-page "https://github.com/univrsal/spectralizer")
3175 (synopsis "OBS plugin for audio visualization")
3176 (description "This OBS plugins allows you to vizualize MPD and internal
3177 OBS audio sources.")
3178 (license license:gpl2)))
3180 (define-public obs-websocket
3182 (name "obs-websocket")
3188 (url "https://github.com/Palakis/obs-websocket")
3191 (file-name (git-file-name name version))
3193 (base32 "1r47861ma1s3998clahbnbc216wcf706b1ps514k5p28h511l5w0"))))
3194 (build-system cmake-build-system)
3196 `(#:tests? #f ;no tests
3198 (modify-phases %standard-phases
3199 (add-after 'unpack 'remove-permission-change
3201 (substitute* "CMakeLists.txt"
3202 ;; Remove lines that set writeable permissions on outputs.
3203 (("set\\(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS") "")
3204 (("OWNER_READ.*\\)") "")
3205 (("PERMISSIONS") ")"))
3209 ("qtbase" ,qtbase)))
3210 (home-page "https://github.com/Palakis/obs-websocket")
3211 (synopsis "OBS plugin for remote control via WebSockets")
3212 (description "This OBS plugin allows you to establish a WebSocket channel
3213 from within your running OBS instance so that you can control it remotely from
3214 programs on your current machine or on other machines.")
3215 (license license:gpl2+)))
3217 (define-public obs-wlrobs
3225 (url "https://hg.sr.ht/~scoopta/wlrobs")
3226 (changeset (string-append "v" version))))
3227 (file-name (git-file-name name version))
3230 "1faiq2gdb7qis3m1hilm4pz8lkmkab75vzm608dbiazahhybf96p"))))
3231 (build-system meson-build-system)
3233 `(("pkg-config" ,pkg-config)))
3234 (propagated-inputs `() )
3235 (inputs `(("obs" ,obs)
3236 ("libx11" ,libx11 "out")
3237 ("wayland" ,wayland)
3238 ("wayland-protocols" ,wayland-protocols)))
3239 (home-page "https://hg.sr.ht/~scoopta/wlrobs")
3240 (synopsis "OBS plugin for Wayland (wlroots) screen capture")
3242 "This OBS plugin allows you to capture the screen on wlroots-based
3243 Wayland compositors.")
3244 (license license:gpl3+)))
3246 (define-public libvdpau
3254 (url "https://gitlab.freedesktop.org/vdpau/libvdpau.git")
3256 (file-name (git-file-name name version))
3259 "1hc4mcrbr1yhfiy4zfd8wc2iiqbp90z6jswap0jia20vmyk5lqld"))))
3260 (build-system meson-build-system)
3262 `(("pkg-config" ,pkg-config)))
3264 `(("libx11" ,libx11 "out")
3265 ("libxext" ,libxext)
3266 ("xorgproto" ,xorgproto)))
3267 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3268 (synopsis "Video Decode and Presentation API")
3269 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
3270 provides an interface to video decode acceleration and presentation hardware
3271 present in modern GPUs.")
3272 (license (license:x11-style "file://COPYING"))))
3274 (define-public vdpauinfo
3282 (url "https://gitlab.freedesktop.org/vdpau/vdpauinfo")
3284 (file-name (git-file-name name version))
3286 (base32 "0s84bavxr39w0r7zfaac7kpbfsg88hgymqyzcr0yvbj1yry3liz2"))))
3287 (build-system gnu-build-system)
3290 (modify-phases %standard-phases
3292 ;; ./autogen.sh runs ./configure too soon.
3294 (invoke "autoreconf" "-fiv"))))))
3296 `(("autoconf" ,autoconf)
3297 ("automake" ,automake)
3299 ("pkg-config" ,pkg-config)))
3301 `(("libvdpau" ,libvdpau)))
3302 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3303 (synopsis "Tool to query the capabilities of a VDPAU implementation")
3304 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
3306 (license (license:x11-style "file://COPYING"))))
3308 (define-public libvdpau-va-gl
3310 (name "libvdpau-va-gl")
3315 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
3316 "releases/download/v" version "/libvdpau-va-gl-"
3320 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
3321 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
3322 (modules '((guix build utils)))
3323 (snippet '(begin (delete-file-recursively "3rdparty")
3325 (build-system cmake-build-system)
3327 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
3329 `(("libvdpau" ,libvdpau)
3330 ("pkg-config" ,pkg-config)))
3334 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
3335 (synopsis "VDPAU driver with VA-API/OpenGL backend")
3337 "Many applications can use VDPAU to accelerate portions of the video
3338 decoding process and video post-processing to the GPU video hardware. Since
3339 there is no VDPAU available on Intel chips, they fall back to different drawing
3340 techniques. This driver uses OpenGL under the hood to accelerate drawing and
3341 scaling and VA-API (if available) to accelerate video decoding.")
3342 (license license:expat)))
3344 (define-public recordmydesktop
3346 (name "recordmydesktop")
3350 (uri (string-append "mirror://sourceforge/" name "/" name "/"
3351 version "/recordmydesktop-" version ".tar.gz"))
3354 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
3355 (build-system gnu-build-system)
3356 (inputs `(("popt" ,popt)
3361 ("libxfixes" ,libxfixes)
3362 ("libxdamage" ,libxdamage)
3363 ("libxext" ,libxext)
3364 ("alsa-lib" ,alsa-lib)
3365 ("libvorbis" ,libvorbis)
3366 ("libtheora" ,libtheora)))
3367 (home-page "http://recordmydesktop.sourceforge.net/")
3368 (synopsis "Desktop session video recorder")
3370 "recordMyDesktop is a command-line tool that captures the activity in
3371 your graphical desktop and encodes it as a video. This is a useful tool for
3372 making @dfn{screencasts}.")
3373 (license license:gpl2+)))
3375 (define-public simplescreenrecorder
3377 (name "simplescreenrecorder")
3383 (url "https://github.com/MaartenBaert/ssr")
3385 (file-name (git-file-name name version))
3388 "1dzp5yzqlha65crzklx2qlan6ssw1diwzfpc4svd7gnr858q2292"))))
3389 (build-system cmake-build-system)
3390 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
3391 ;; README.md, the program builds and functions properly without them.
3392 ;; As a result, they are omitted. Please add them back if problems appear.
3394 `(("alsa-lib" ,alsa-lib)
3399 ("libxinerama" ,libxinerama)
3400 ("pulseaudio" ,pulseaudio)
3402 ("qtx11extras" ,qtx11extras)))
3403 (native-inputs `(("pkg-config" ,pkg-config)))
3406 (list "-DWITH_QT5=TRUE")
3407 #:tests? #f)) ; no test suite
3408 ;; Using HTTPS causes part of the page to be displayed improperly.
3409 (home-page "https://www.maartenbaert.be/simplescreenrecorder/")
3410 (synopsis "Screen recorder")
3411 (description "SimpleScreenRecorder is an easy to use screen recorder with
3412 a graphical user interface. It supports recording the entire screen, or a
3413 part of it, and allows encoding in many different codecs and file formats.
3414 Other features include a live preview and live streaming.")
3415 (license (list license:gpl3+ ; most files
3416 license:zlib ; glinject/elfhacks.*
3417 license:isc ; glinject/*
3418 license:x11)))) ; build-aux/install-sh
3420 (define-public libsmpeg
3423 (version "0.4.5-401")
3427 (url "svn://svn.icculus.org/smpeg/trunk/")
3428 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
3429 (file-name (string-append name "-" version "-checkout"))
3432 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
3433 (build-system gnu-build-system)
3435 ;; libsmpeg fails to build with -std=c++11, which is the default with
3436 ;; GCC 7. Also, 'configure' does CXXFLAGS=$CFLAGS, hence this hack.
3437 '(#:configure-flags '("CFLAGS=-O2 -g -std=c++03")))
3439 `(("autoconf" ,autoconf)
3440 ("automake" ,automake)))
3443 (home-page "https://icculus.org/smpeg/")
3444 (synopsis "SDL MPEG decoding library")
3446 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
3447 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
3448 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
3449 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
3450 and MPEG system streams.")
3451 (license (list license:expat
3457 (define-public libsmpeg-with-sdl1
3458 (package (inherit libsmpeg)
3460 (version "0.4.5-399")
3464 (url "svn://svn.icculus.org/smpeg/trunk/")
3465 (revision 399))) ; tagged release 0.4.5
3466 (file-name (string-append name "-" version "-checkout"))
3469 "0jfi085rf3fa5xsn0vd3nqf32my8ph9c6a9445y7a8lrlz4dms64"))))
3473 (define-public libbdplus
3480 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
3481 version "/" name "-" version ".tar.bz2"))
3483 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
3485 `(("libgcrypt" ,libgcrypt)))
3486 (build-system gnu-build-system)
3487 (home-page "https://www.videolan.org/developers/libbdplus.html")
3488 (synopsis "Library for decrypting certain Blu-Ray discs")
3489 (description "libbdplus is a library which implements the BD+ System
3491 (license license:lgpl2.1+)))
3493 (define-public libaacs
3500 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
3501 version "/libaacs-" version ".tar.bz2"))
3503 (base32 "11skjqjlldmbjkyxdcz4fmcn6y4p95r1xagbcnjy4ndnzf0l723d"))))
3505 `(("libgcrypt" ,libgcrypt)))
3509 (build-system gnu-build-system)
3510 (home-page "https://www.videolan.org/developers/libaacs.html")
3511 (synopsis "Library for decrypting certain Blu-Ray discs")
3512 (description "libaacs is a library which implements the Advanced Access
3513 Content System specification.")
3514 (license license:lgpl2.1+)))
3516 (define-public mps-youtube
3518 (name "mps-youtube")
3524 (url "https://github.com/mps-youtube/mps-youtube")
3525 (commit (string-append "v" version))))
3526 (file-name (git-file-name name version))
3529 "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y"))))
3530 (build-system python-build-system)
3532 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
3533 ;; test suite results differ depending on the country and also introduce
3534 ;; non-determinism in the tests.
3535 ;; https://github.com/mps-youtube/mps-youtube/issues/556
3538 `(("python-pafy" ,python-pafy)
3539 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
3540 (home-page "https://github.com/mps-youtube/mps-youtube")
3541 (synopsis "Terminal based YouTube player and downloader")
3543 "@code{mps-youtube} is based on mps, a terminal based program to
3544 search, stream and download music. This implementation uses YouTube as
3545 a source of content and can play and download video as well as audio.
3546 It can use either mpv or mplayer for playback, and for conversion of
3547 formats ffmpeg or libav is used. Users should install one of the
3548 supported players in addition to this package.")
3549 (license license:gpl3+)))
3551 (define-public handbrake
3557 (uri (string-append "https://github.com/HandBrake/HandBrake/"
3558 "releases/download/" version "/"
3559 "HandBrake-" version "-source.tar.bz2"))
3562 "11bzhyp052bmng5119x74xvdj5632smx6qsk537ygda8bzckg2i1"))
3563 (modules '((guix build utils)))
3565 ;; Remove "contrib" and source not necessary for
3566 ;; building/running under a GNU environment.
3568 (for-each delete-file-recursively
3569 '("contrib" "macosx" "win")) ; 540KiB, 11MiB, 5.9MiB resp.
3570 (substitute* "make/include/main.defs"
3571 ;; Disable unconditional inclusion of "contrib" libraries
3572 ;; (ffmpeg, libvpx, libdvdread, libdvdnav, and libbluray),
3573 ;; which would lead to fetching and building of these
3574 ;; libraries. Use our own instead.
3575 (("MODULES \\+= contrib") "# MODULES += contrib"))
3577 (build-system glib-or-gtk-build-system)
3579 `(("automake" ,automake) ; GUI subpackage must be bootstrapped
3580 ("autoconf" ,autoconf)
3581 ("intltool" ,intltool)
3582 ("libtool" ,libtool)
3583 ("pkg-config" ,pkg-config)
3584 ("python" ,python-2))) ; For configuration
3587 ("dbus-glib" ,dbus-glib)
3589 ("fontconfig" ,fontconfig)
3590 ("freetype" ,freetype)
3592 ("gstreamer" ,gstreamer)
3593 ("gst-plugins-base" ,gst-plugins-base)
3595 ("jansson" ,jansson)
3598 ("libbluray" ,libbluray)
3600 ("libdvdnav" ,libdvdnav)
3601 ("libdvdread" ,libdvdread)
3602 ("libgudev" ,libgudev)
3603 ("libmpeg2" ,libmpeg2)
3604 ("libnotify" ,libnotify)
3605 ("libnuma" ,numactl)
3608 ("libsamplerate" ,libsamplerate)
3609 ("libtheora" ,libtheora)
3610 ("libvorbis" ,libvorbis)
3612 ("libxml2" ,libxml2)
3613 ("libx264" ,libx264)
3618 `(#:tests? #f ;tests require Ruby and claim to be unsupported
3620 (list "--disable-gtk-update-checks"
3622 (string-append "CPPFLAGS=-I"
3623 (assoc-ref %build-inputs "libxml2")
3627 (modify-phases %standard-phases
3629 ;; Run bootstrap ahead of time so that shebangs get patched.
3631 (setenv "CONFIG_SHELL" (which "sh"))
3632 ;; Patch the Makefile so that it doesn't bootstrap again.
3633 (substitute* "gtk/module.rules"
3634 ((".*autoreconf.*") ""))
3635 (with-directory-excursion "gtk"
3636 (invoke "autoreconf" "-fiv"))))
3637 (add-before 'configure 'patch-SHELL
3639 (substitute* "gtk/po/Makefile.in.in"
3640 (("SHELL = /bin/sh") "SHELL = @SHELL@"))
3642 (add-before 'configure 'relax-reqs
3644 (substitute* "make/configure.py"
3645 ;; cmake is checked for so that it can be used to build
3646 ;; contrib/harfbuzz and contrib/x265, but we get these as
3647 ;; inputs, so don't abort if it's not found. Similarly, meson
3648 ;; and ninja are only needed for contrib/libdav1d, and nasm
3650 (("((cmake|meson|ninja|nasm) *=.*abort=)True" _ &)
3651 (string-append & "False")))
3654 (lambda* (#:key outputs configure-flags #:allow-other-keys)
3655 ;; 'configure' is not an autoconf-generated script, and
3656 ;; errors on unrecognized arguments,
3657 ;; e.g. --enable-fast-install
3658 (let ((out (assoc-ref outputs "out")))
3659 (apply invoke "./configure"
3660 (string-append "--prefix=" out)
3661 (or configure-flags '())))))
3662 (add-after 'configure 'chdir-build
3663 (lambda _ (chdir "./build") #t)))))
3664 (home-page "https://handbrake.fr")
3665 (synopsis "Video transcoder")
3667 "HandBrake is a tool for converting video from any format to a selection
3668 of modern, widely supported codecs.")
3669 ;; Some under GPLv2+, some under LGPLv2.1+, and portions under BSD3.
3670 ;; Combination under GPLv2. See LICENSE.
3671 (license license:gpl2)))
3673 (define-public intel-vaapi-driver
3675 (name "intel-vaapi-driver")
3681 (url "https://github.com/intel/intel-vaapi-driver")
3684 (base32 "1cidki3av9wnkgwi7fklxbg3bh6kysf8w3fk2qadjr05a92mx3zp"))
3685 (file-name (git-file-name name version))))
3686 (build-system gnu-build-system)
3688 `(("autoconf" ,autoconf)
3689 ("automake" ,automake)
3690 ("libtool" ,libtool)
3691 ("pkg-config" ,pkg-config)))
3693 `(("libdrm" ,libdrm)
3695 ("libx11" ,libx11)))
3698 (modify-phases %standard-phases
3699 (add-before 'configure 'set-target-directory
3700 (lambda* (#:key outputs #:allow-other-keys)
3701 (let ((out (assoc-ref outputs "out")))
3702 (setenv "LIBVA_DRIVERS_PATH" (string-append out "/lib/dri"))
3704 ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add
3705 ;; this to all VA-API back ends instead of once to libva.
3706 (native-search-paths
3707 (list (search-path-specification
3708 (variable "LIBVA_DRIVERS_PATH")
3709 (files '("lib/dri")))))
3710 (supported-systems '("i686-linux" "x86_64-linux"))
3711 (home-page "https://01.org/linuxmedia/vaapi")
3712 (synopsis "VA-API video acceleration driver for Intel GEN Graphics devices")
3714 "This is the @acronym{VA-API, Video Acceleration API} back end required for
3715 hardware-accelerated video processing on Intel GEN Graphics devices supported by
3716 the i915 driver, such as integrated Intel HD Graphics. It provides access to
3717 both hardware and shader functionality for faster encoding, decoding, and
3718 post-processing of video formats like MPEG2, H.264/AVC, and VC-1.")
3719 (license (list license:bsd-2 ; src/gen9_vp9_const_def.c
3720 license:expat)))) ; the rest, excluding the test suite
3722 (define-public openh264
3729 (url "https://github.com/cisco/openh264")
3730 (commit (string-append "v" version))))
3731 (file-name (git-file-name name version))
3734 "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s"))))
3735 (build-system gnu-build-system)
3738 ("python" ,python)))
3740 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3742 #:test-target "test"
3743 #:phases (modify-phases %standard-phases
3744 ;; no configure script
3745 (delete 'configure))))
3746 (home-page "https://www.openh264.org/")
3747 (synopsis "H264 decoder library")
3749 "Openh264 is a library which can decode H264 video streams.")
3750 (license license:bsd-2)))
3752 (define-public libmp4v2
3759 ;; XXX: The new location of upstream is uncertain and will become relevant the
3760 ;; moment when the googlecode archive shuts down. It is past the date it
3761 ;; should've been turned off. I tried to communicate with upstream, but this
3762 ;; wasn't very responsive and not very helpful. The short summary is, it is
3763 ;; chaos when it comes to the amount of forks and only time will tell where
3764 ;; the new upstream location is.
3765 (uri (string-append "https://storage.googleapis.com/google-"
3766 "code-archive-downloads/v2/"
3767 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
3768 (file-name (string-append name "-" version ".tar.bz2"))
3769 (patches (search-patches "libmp4v2-c++11.patch"))
3772 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
3773 (build-system gnu-build-system)
3775 "static")) ; 3.7MiB .a file
3778 (modify-phases %standard-phases
3779 (add-after 'unpack 'remove-dates
3781 ;; Make the build reproducible.
3782 (substitute* "configure"
3783 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
3784 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
3786 (add-after 'install 'move-static-libraries
3787 (lambda* (#:key outputs #:allow-other-keys)
3788 ;; Move static libraries to the "static" output.
3789 (let* ((out (assoc-ref outputs "out"))
3790 (lib (string-append out "/lib"))
3791 (static (assoc-ref outputs "static"))
3792 (slib (string-append static "/lib")))
3794 (for-each (lambda (file)
3795 (install-file file slib)
3797 (find-files lib "\\.a$"))
3800 `(("help2man" ,help2man)
3801 ("dejagnu" ,dejagnu)))
3802 (home-page "https://code.google.com/archive/p/mp4v2/")
3803 (synopsis "API to create and modify mp4 files")
3805 "The MP4v2 library provides an API to create and modify mp4 files as defined by
3806 ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
3807 file format that has been used as a multimedia file format in a variety of platforms and
3808 applications. It is a very powerful and extensible format that can accommodate
3809 practically any type of media.")
3810 (license license:mpl1.1)))
3812 (define-public libmediainfo
3814 (name "libmediainfo")
3818 (uri (string-append "https://mediaarea.net/download/source/"
3819 name "/" version "/"
3820 name "_" version ".tar.xz"))
3823 "1jm4mk539wf3crgpcddgwdixshwdzm37mkb5441lifhcz2mykdsn"))))
3824 ;; TODO add a Big Buck Bunny webm for tests.
3826 `(("autoconf" ,autoconf)
3827 ("automake" ,automake)
3828 ("libtool" ,libtool)
3829 ("pkg-config" ,pkg-config)
3831 ("tinyxml2" ,tinyxml2)
3833 ("libzen" ,libzen)))
3834 (build-system gnu-build-system)
3836 '(#:tests? #f ; see above TODO
3838 ;; build scripts not in root of archive
3839 (modify-phases %standard-phases
3840 (add-after 'unpack 'change-to-build-dir
3842 (chdir "Project/GNU/Library")
3844 (home-page "https://mediaarea.net/en/MediaInfo")
3845 (synopsis "Library for retrieving media metadata")
3846 (description "MediaInfo is a library used for retrieving technical
3847 information and other metadata about audio or video files. A non-exhaustive
3848 list of the information MediaInfo can retrieve from media files include:
3851 @item General: title, author, director, album, track number, date, duration...
3852 @item Video: codec, aspect, fps, bitrate...
3853 @item Audio: codec, sample rate, channels, language, bitrate...
3854 @item Text: language of subtitle
3855 @item Chapters: number of chapters, list of chapters
3858 MediaInfo supports the following formats:
3861 @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
3862 MPEG-2, MPEG-4, DVD (VOB)...
3863 @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
3864 @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
3865 @item Subtitles: SRT, SSA, ASS, SAMI...
3867 (license license:bsd-2)))
3869 ;; TODO also have a GUI version available
3870 (define-public mediainfo
3876 ;; Warning: This source has proved unreliable 1 time at least.
3877 ;; Consider an alternate source or report upstream if this
3879 (uri (string-append "https://mediaarea.net/download/source/"
3880 name "/" version "/"
3881 name "_" version ".tar.xz"))
3884 "07h2a1lbw5ak6c9bcn8qydchl0wpgk945rf9sfcqjyv05h5wll6y"))))
3886 `(("autoconf" ,autoconf)
3887 ("automake" ,automake)
3888 ("libtool" ,libtool)
3889 ("pkg-config" ,pkg-config)
3891 ("libmediainfo" ,libmediainfo)
3892 ("libzen" ,libzen)))
3893 (build-system gnu-build-system)
3895 '(#:tests? #f ; lacks tests
3897 ;; build scripts not in root of archive
3898 (modify-phases %standard-phases
3899 (add-after 'unpack 'change-to-build-dir
3901 (chdir "Project/GNU/CLI")
3903 (home-page "https://mediaarea.net/en/MediaInfo")
3904 (synopsis "Utility for reading media metadata")
3905 (description "MediaInfo is a utility used for retrieving technical
3906 information and other metadata about audio or video files. It supports the
3907 many codecs and formats supported by libmediainfo.")
3908 (license license:bsd-2)))
3910 (define-public atomicparsley
3912 (name "atomicparsley")
3913 (version "20200701.154658.b0d6223")
3917 (url "https://github.com/wez/atomicparsley")
3919 (file-name (git-file-name name version))
3922 "1kym2l5y34nmbrrlkfmxsf1cwrvch64kb34jp0hpa0b89idbhwqh"))))
3923 (build-system cmake-build-system)
3925 `(#:tests? #f ;; no tests included
3927 (modify-phases %standard-phases
3928 (add-before 'configure 'set-cmake-version
3930 (substitute* "CMakeLists.txt"
3931 ;; At the time of writing, Guix has CMake at 3.16, but
3932 ;; AtomicParsley uses 3.17. This brings the required CMake
3933 ;; version down to what Guix can afford.
3934 (("VERSION 3.17") "VERSION 3.16"))
3937 (lambda* (#:key outputs #:allow-other-keys)
3938 (let* ((out (assoc-ref outputs "out"))
3939 (bin (string-append out "/bin")))
3940 (install-file "AtomicParsley" bin))
3944 (synopsis "Metadata editor for MPEG-4 files")
3945 (description "AtomicParsley is a lightweight command line program for
3946 reading, parsing and setting metadata into MPEG-4 files, in particular,
3947 iTunes-style metadata.")
3948 (home-page "https://github.com/wez/atomicparsley")
3949 (license license:gpl2+)))
3951 (define-public livemedia-utils
3953 (name "livemedia-utils")
3954 (version "2020.11.19")
3958 "https://download.videolan.org/contrib/live555/live."
3962 "16w6yxdbmjdhvffnrb752dn4llf3l0wb00dgdkyia0vqsv2qqyn7"))))
3963 (build-system gnu-build-system)
3965 `(#:tests? #f ; no tests
3966 #:make-flags (list (string-append "CC=" ,(cc-for-target))
3967 (string-append "CXX=" ,(cxx-for-target))
3968 (string-append "LDFLAGS=-Wl,-rpath="
3969 (assoc-ref %outputs "out") "/lib")
3970 (string-append "PREFIX="
3971 (assoc-ref %outputs "out")))
3972 #:phases (modify-phases %standard-phases
3973 (add-before 'configure 'fix-makefiles-generation
3975 (substitute* "genMakefiles"
3980 (invoke "./genMakefiles"
3981 "linux-with-shared-libraries"))))))
3983 `(("openssl" ,openssl)))
3984 (home-page "http://www.live555.com/liveMedia/")
3985 (synopsis "Set of C++ libraries for multimedia streaming")
3986 (description "This code forms a set of C++ libraries for multimedia
3987 streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
3988 can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
3989 JPEG video, and several audio codecs. They can easily be extended to support
3990 additional (audio and/or video) codecs, and can also be used to build basic
3991 RTSP or SIP clients and servers.")
3992 (license license:lgpl3+)))
3994 (define-public libdvbpsi
4001 "https://download.videolan.org/pub/libdvbpsi/"
4002 version "/libdvbpsi-" version ".tar.bz2"))
4005 "04h1l3vrkrdsrvkgzcr51adk10g6hxcxvgjphyyxz718ry5rkd82"))))
4006 (build-system gnu-build-system)
4007 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
4008 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
4010 (description "libdvbpsi is a simple library designed for decoding and
4011 generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
4012 and ITU-T H.222.0.")
4013 (license license:lgpl2.1)))
4015 (define-public ffms2
4019 (home-page "https://github.com/FFMS/ffms2")
4023 (url "https://github.com/FFMS/ffms2")
4025 (file-name (git-file-name name version))
4028 "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5"))))
4029 (build-system gnu-build-system)
4032 (list "--enable-avresample")))
4036 `(("ffmpeg" ,ffmpeg)))
4038 `(("pkg-config" ,pkg-config)))
4039 (synopsis "Cross-platform wrapper around ffmpeg/libav")
4041 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
4042 programmers to access a standard API to open and decompress media files.")
4043 ;; sources are distributed under a different license that the binary.
4044 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
4045 (license license:gpl2+))); inherits from ffmpeg
4047 (define-public aegisub
4054 "http://ftp.aegisub.org/pub/archives/releases/source/"
4055 name "-" version ".tar.xz"))
4058 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))
4059 (patches (search-patches "aegisub-icu59-include-unistr.patch"
4060 "aegisub-make43.patch"
4061 "aegisub-boost68.patch"))))
4062 (build-system gnu-build-system)
4065 (list "--disable-update-checker"
4066 "--without-portaudio"
4069 "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1")
4070 ;; tests require busted, a lua package we don't have yet
4073 (modify-phases %standard-phases
4074 (add-before 'configure 'fix-ldflags
4076 (setenv "LDFLAGS" "-pthread")
4078 (add-after 'unpack 'fix-boost-headers
4081 '("src/subtitles_provider_libass.cpp"
4082 "src/colour_button.cpp"
4083 "src/video_provider_dummy.cpp"
4084 "./src/video_frame.cpp")
4085 (("#include <boost/gil/gil_all.hpp>")
4086 "#include <boost/gil.hpp>"))
4092 ("hunspell" ,hunspell)
4095 ("alsa-lib" ,alsa-lib)
4096 ("pulseaudio" ,pulseaudio)
4098 ("freetype" ,freetype)
4099 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
4101 `(("intltool" ,intltool)
4102 ("desktop-file-utils" ,desktop-file-utils)
4103 ("pkg-config" ,pkg-config)))
4104 (home-page "http://www.aegisub.org/")
4105 (synopsis "Subtitle engine")
4107 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
4108 it quick and easy to time subtitles to audio, and features many powerful
4109 tools for styling them, including a built-in real-time video preview.")
4110 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
4111 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
4112 license:expat)))) ; and src/gl that is under a license similar
4113 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
4114 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
4115 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
4117 (define-public pitivi
4118 ;; Pitivi switched to a non-semantic versioning scheme close before 1.0
4119 (let ((latest-semver "0.999.0")
4120 (%version "2021.01.0"))
4123 (version (string-append latest-semver "-" %version))
4128 (url "https://gitlab.gnome.org/GNOME/pitivi.git")
4130 (file-name (git-file-name name version))
4132 (base32 "1jics10l16ismi5br6wxi4jxz3dd4p0c0xv8l0l3nvksvda4aafi"))))
4133 (build-system meson-build-system)
4136 ("gst-editing-services" ,gst-editing-services)
4137 ("gstreamer" ,gstreamer)
4138 ("gst-plugins-base" ,gst-plugins-base)
4139 ("gst-plugins-good" ,gst-plugins-good)
4141 ,(gst-plugins/selection gst-plugins-bad
4142 #:plugins '("debugutils" "transcoder")
4143 #:configure-flags '("-Dintrospection=enabled")))
4144 ("gst-libav" ,gst-libav)
4147 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
4148 ("libpeas" ,libpeas)
4149 ("libnotify" ,libnotify)
4151 ("python-gst" ,python-gst)
4152 ("python-numpy" ,python-numpy)
4153 ("python-matplotlib" ,python-matplotlib)
4154 ("python-pycairo" ,python-pycairo)
4155 ("python-pygobject" ,python-pygobject)))
4157 `(("gettext" ,gettext-minimal)
4158 ("glib:bin" ,glib "bin")
4159 ("itstool" ,itstool)
4160 ("pkg-config" ,pkg-config)))
4164 (modify-phases %standard-phases
4165 (add-after 'glib-or-gtk-wrap 'wrap-other-dependencies
4166 (lambda* (#:key outputs #:allow-other-keys)
4167 (let ((prog (string-append (assoc-ref outputs "out")
4170 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
4171 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
4172 ;; We've only added inputs for what Pitivi deems either
4173 ;; necessary or optional. Let the user's packages take
4174 ;; precedence in case they have e.g. the full gst-plugins-bad.
4175 `("GST_PLUGIN_SYSTEM_PATH" suffix
4176 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))))
4178 (home-page "http://www.pitivi.org")
4179 (synopsis "Video editor based on GStreamer Editing Services")
4180 (description "Pitivi is a video editor built upon the GStreamer Editing
4181 Services. It aims to be an intuitive and flexible application that can appeal
4182 to newbies and professionals alike.")
4183 (license license:lgpl2.1+))))
4192 (uri (string-append "mirror://sourceforge/gmerlin/"
4193 name "/" version "/"
4194 name "-" version ".tar.gz"))
4195 (file-name (string-append name "-" version ".tar.gz"))
4198 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
4199 (build-system gnu-build-system)
4201 '(#:configure-flags '("LIBS=-lm")))
4203 `(("pkg-config" ,pkg-config)
4204 ("doxygen" ,doxygen)))
4205 (home-page "http://gmerlin.sourceforge.net")
4206 (synopsis "Low level library for multimedia API building")
4208 "Gavl is short for Gmerlin Audio Video Library. It is a low level
4209 library, upon which multimedia APIs can be built. Gavl handles all the
4210 details of audio and video formats like colorspaces, sample rates,
4211 multichannel configurations, etc. It provides standardized definitions for
4212 those formats as well as container structures for carrying audio samples or
4213 video images inside an application.
4215 In addition, it handles the sometimes ugly task of converting between all
4216 these formats and provides some elementary operations (copying, scaling,
4217 alpha blending etc).")
4218 (license license:gpl3)))
4220 (define-public frei0r-plugins
4222 (name "frei0r-plugins")
4227 (uri (string-append "https://files.dyne.org/frei0r/"
4228 "frei0r-plugins-" version ".tar.gz"))
4231 "0fjji3060r4fwr7vn91lwfzl80lg3my9lkp94kbyw8xwz7qgh7qv"))))
4232 (build-system gnu-build-system)
4235 (modify-phases %standard-phases
4236 (add-after 'unpack 'patch-Makefile
4238 ;; XXX: The 1.7.0 Makefile looks for files that have slightly different
4239 ;; names in the tarball. Try removing this for future versions.
4240 (substitute* "Makefile.in"
4241 (("README\\.md ChangeLog TODO AUTHORS")
4242 "README.txt ChangeLog.txt TODO.txt AUTHORS.txt"))
4244 ;; TODO: opencv for additional face detection filters.
4249 `(("pkg-config" ,pkg-config)))
4250 (home-page "https://www.dyne.org/software/frei0r/")
4251 (synopsis "Minimalistic plugin API for video effects")
4253 "Frei0r is a minimalistic plugin API for video effects.
4254 The main emphasis is on simplicity for an API that will round up
4255 the most common video effects into simple filters, sources and
4256 mixers that can be controlled by parameters. Frei0r wants to
4257 provide a way to share these simple effects between many
4258 applications, avoiding their reimplementation by different projects.
4259 It counts more than 100 plugins.")
4260 (license (list license:gpl2+
4261 ;; The following files are licensed as LGPL2.1+:
4262 ;; src/generator/ising0r/ising0r.c
4263 ;; src/generator/onecol0r/onecol0r.cpp
4264 ;; src/generator/nois0r/nois0r.cpp
4265 ;; src/generator/lissajous0r/lissajous0r.cpp
4266 ;; src/filter/ndvi/gradientlut.hpp
4267 ;; src/filter/ndvi/ndvi.cpp
4268 ;; src/filter/facedetect/facedetect.cpp
4269 license:lgpl2.1+))))
4271 (define-public motion
4275 (home-page "https://motion-project.github.io/")
4279 (url "https://github.com/Motion-Project/motion")
4280 (commit (string-append "release-" version))))
4283 "09xs815jsivcilpmnrx2jkcxirj4lg5kp99fkr0p2sdxw03myi95"))
4284 (file-name (git-file-name name version))))
4285 (build-system gnu-build-system)
4287 `(("autoconf" ,autoconf)
4288 ("automake" ,automake)
4289 ("gettext" ,gettext-minimal)
4290 ("pkg-config" ,pkg-config)))
4292 `(("libjpeg" ,libjpeg-turbo)
4294 ("libmicrohttpd" ,libmicrohttpd)
4295 ("sqlite" ,sqlite)))
4297 '(#:phases (modify-phases %standard-phases
4300 (patch-shebang "scripts/version.sh")
4301 (invoke "autoreconf" "-vfi"))))
4302 #:configure-flags '("--sysconfdir=/etc")
4303 #:make-flags (list (string-append "sysconfdir="
4304 (assoc-ref %outputs "out")
4307 #:tests? #f)) ; no 'check' target
4308 (synopsis "Detect motion from video signals")
4310 "Motion is a program that monitors the video signal from one or more
4311 cameras and is able to detect if a significant part of the picture has
4312 changed. Or in other words, it can detect motion.")
4314 ;; Some files say "version 2" and others "version 2 or later".
4315 (license license:gpl2)))
4317 (define-public subdl
4318 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
4322 (version (git-version "1.0.3" revision commit))
4326 (url "https://github.com/alexanderwink/subdl")
4328 (file-name (git-file-name name version))
4331 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
4332 (build-system trivial-build-system)
4334 `(#:modules ((guix build utils))
4336 (use-modules (guix build utils))
4337 (let* ((out (assoc-ref %outputs "out"))
4338 (bin (string-append out "/bin"))
4339 (source (assoc-ref %build-inputs "source"))
4340 (python (assoc-ref %build-inputs "python")))
4341 (install-file (string-append source "/subdl") bin)
4342 (patch-shebang (string-append bin "/subdl")
4343 (list (string-append python "/bin")))))))
4344 (inputs `(("python" ,python)))
4345 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
4346 (description "Subdl is a command-line tool for downloading subtitles from
4347 opensubtitles.org. By default, it will search for English subtitles, display
4348 the results, download the highest-rated result in the requested language and
4349 save it to the appropriate filename.")
4350 (license license:gpl3+)
4351 (home-page "https://github.com/alexanderwink/subdl"))))
4353 (define-public l-smash
4360 (url "https://github.com/l-smash/l-smash")
4361 (commit (string-append "v" version))))
4362 (file-name (git-file-name name version))
4365 "0rcq9727im6kd8da8b7kzzbzxdldvmh5nsljj9pvr4m3lj484b02"))))
4366 (build-system gnu-build-system)
4368 `(#:tests? #f ;no tests
4370 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
4371 (assoc-ref %outputs "out") "/lib"))
4373 (modify-phases %standard-phases
4374 ;; configure fails if it is followed by CONFIG_SHELL
4376 (lambda* (#:key outputs #:allow-other-keys)
4377 (let ((out (assoc-ref outputs "out")))
4378 (invoke "./configure" (string-append "--prefix=" out)
4379 "--disable-static")))))))
4381 `(("which" ,which)))
4382 (home-page "https://l-smash.github.io/l-smash/")
4383 (synopsis "MP4 multiplexer and demultiplexer library")
4385 "L-SMASH is a cross-platform library that handles the ISO base media file
4386 format and some of its derived file formats, including MP4. It operates as a
4387 multiplexer and demultiplexer, and can mux video and audio in several formats
4388 using standalone executable files.")
4389 (license license:isc)))
4391 (define-public qtfaststart
4393 (name "qtfaststart")
4397 (uri (pypi-uri "qtfaststart" version))
4400 "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h"))))
4401 (build-system python-build-system)
4403 '(#:tests? #f)) ; no test suite
4404 (synopsis "Move QuickTime and MP4 metadata to the beginning of the file")
4405 (description "qtfaststart enables streaming and pseudo-streaming of
4406 QuickTime and MP4 files by moving metadata and offset information to the
4407 beginning of the file. It can also print some useful information about the
4408 structure of the file. This program is based on qt-faststart.c from the FFmpeg
4409 project, which is released into the public domain, as well as ISO 14496-12:2005
4410 (the official spec for MP4), which can be obtained from the ISO or found
4412 (home-page "https://github.com/danielgtaylor/qtfaststart")
4413 (license license:expat)))
4415 (define-public vidstab
4416 (let ((commit "aeabc8daa7904f9edf7441a11f293965a5ef53b8")
4420 (version (git-version "1.1.0" revision commit))
4424 (url "https://github.com/georgmartius/vid.stab")
4426 (file-name (git-file-name name version))
4429 "042iy0f3khwzr68djzvqgn301sy21ljvkf52rnc2c73q7ircnzzn"))))
4430 (build-system cmake-build-system)
4432 '(#:tests? #f)) ; tests are not run as part of standard build process
4433 (home-page "http://public.hronopik.de/vid.stab/")
4434 (synopsis "Video stabilization library")
4435 (description "Vidstab is a video stabilization library which can be used
4436 with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a
4437 vehicle typically suffers from undesirable shakes and jitters. Activities such
4438 as surfing, skiing, riding and walking while shooting videos are especially
4439 prone to erratic camera shakes. Vidstab targets these video contents to help
4440 create smoother and stable videos.")
4441 (license license:gpl2+))))
4443 (define-public libopenshot
4445 (name "libopenshot")
4450 (url "https://github.com/OpenShot/libopenshot")
4451 (commit (string-append "v" version))))
4452 (file-name (git-file-name name version))
4455 "1mxjkgjmjzgf628y3rscc6rqf55hxgjpmvwxlncfk1216i5xskwp"))
4456 (modules '((guix build utils)))
4458 ;; Allow overriding of the python installation dir
4459 (substitute* "src/bindings/python/CMakeLists.txt"
4460 (("(SET\\(PYTHON_MODULE_PATH.*)\\)" _ set)
4461 (string-append set " CACHE PATH "
4462 "\"Python bindings directory\")")))
4463 (delete-file-recursively "thirdparty")
4465 (build-system cmake-build-system)
4467 `(("pkg-config" ,pkg-config)
4470 ("unittest++" ,unittest-cpp)))
4471 (propagated-inputs ;all referenced in installed headers
4472 `(("cppzmq" ,cppzmq)
4474 ("imagemagick" ,imagemagick)
4475 ("jsoncpp" ,jsoncpp)
4476 ("libopenshot-audio" ,libopenshot-audio)
4478 ("qtmultimedia" ,qtmultimedia)
4479 ("zeromq" ,zeromq)))
4482 (list (string-append "-DPYTHON_MODULE_PATH:PATH=" %output "/lib/python"
4483 ,(version-major+minor (package-version python))
4485 "-DUSE_SYSTEM_JSONCPP:BOOL=ON")
4487 (modify-phases %standard-phases
4488 (add-before 'configure 'set-vars
4489 (lambda* (#:key inputs #:allow-other-keys)
4490 (setenv "LIBOPENSHOT_AUDIO_DIR"
4491 (assoc-ref inputs "libopenshot-audio"))
4493 (assoc-ref inputs "zeromq"))
4494 (setenv "UNITTEST_DIR"
4495 (string-append (assoc-ref inputs "unittest++")
4496 "/include/UnitTest++"))
4498 (home-page "https://openshot.org")
4499 (synopsis "Video-editing, animation, and playback library")
4500 (description "OpenShot Library (libopenshot) is a powerful C++ video
4501 editing library with a multi-threaded and feature rich video editing
4502 API. It includes bindings for Python, Ruby, and other languages.")
4503 (license license:lgpl3+)))
4505 (define-public openshot
4512 (url "https://github.com/OpenShot/openshot-qt")
4513 (commit (string-append "v" version))))
4514 (file-name (git-file-name name version))
4517 "0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq"))
4518 (modules '((guix build utils)))
4521 ;; TODO: Unbundle jquery and others from src/timeline/media
4522 (delete-file-recursively "src/images/fonts") #t))))
4523 (build-system python-build-system)
4525 `(("ffmpeg" ,ffmpeg)
4526 ("font-ubuntu" ,font-ubuntu)
4527 ("libopenshot" ,libopenshot)
4529 ("python-pyqt" ,python-pyqt)
4530 ("python-pyzmq" ,python-pyzmq)
4531 ("python-requests" ,python-requests)
4534 `(#:modules ((guix build python-build-system)
4535 (guix build qt-utils)
4537 #:imported-modules (,@%python-build-system-modules
4538 (guix build qt-utils))
4539 #:phases (modify-phases %standard-phases
4540 (delete 'build) ;install phase does all the work
4543 (setenv "QT_QPA_PLATFORM" "offscreen")
4544 (invoke "python" "src/tests/query_tests.py")))
4545 (add-after 'unpack 'patch-font-location
4546 (lambda* (#:key inputs #:allow-other-keys)
4547 (let ((font (assoc-ref inputs "font-ubuntu")))
4548 (substitute* "src/classes/app.py"
4549 (("info.IMAGES_PATH") (string-append "\"" font "\""))
4550 (("fonts") "share/fonts/truetype")))
4552 (add-before 'install 'set-tmp-home
4554 ;; src/classes/info.py "needs" to create several
4555 ;; directories in $HOME when loaded during build
4556 (setenv "HOME" "/tmp")
4558 (add-after 'install 'wrap-program
4559 (lambda* (#:key outputs #:allow-other-keys)
4560 (let ((out (assoc-ref outputs "out")))
4561 (wrap-qt-program out "openshot-qt"))
4563 (home-page "https://www.openshot.org/")
4564 (synopsis "Video editor")
4565 (description "OpenShot takes your videos, photos, and music files and
4566 helps you create the film you have always dreamed of. Easily add sub-titles,
4567 transitions, and effects and then export your film to many common formats.")
4568 (license license:gpl3+)))
4570 (define-public dav1d
4578 (url "https://code.videolan.org/videolan/dav1d.git")
4580 (file-name (git-file-name name version))
4582 (base32 "0plmnxpz66yv3nqv1kgbyyfnwfqi9dqs0zbsdj488i6464a1m6si"))))
4583 (build-system meson-build-system)
4584 (native-inputs `(("nasm" ,nasm)))
4585 (home-page "https://code.videolan.org/videolan/dav1d")
4586 (synopsis "AV1 decoder")
4587 (description "dav1d is a new AV1 cross-platform decoder, and focused on
4588 speed and correctness.")
4589 (license license:bsd-2)))
4591 (define-public wlstream
4592 (let ((commit "182076a94562b128c3a97ecc53cc68905ea86838")
4596 (version (git-version "0.0" revision commit))
4601 (url "https://github.com/atomnuker/wlstream")
4603 (file-name (git-file-name name version))
4606 "01qbcgfl3g9kfwn1jf1z9pdj3bvf5lmg71d1vwkcllc2az24bjqp"))))
4607 (build-system meson-build-system)
4608 (native-inputs `(("libdrm" ,libdrm)
4609 ("pkg-config" ,pkg-config)))
4610 (inputs `(("ffmpeg" ,ffmpeg)
4611 ("pulseaudio" ,pulseaudio)
4612 ("wayland" ,wayland)
4613 ("wayland-protocols" ,wayland-protocols)))
4614 (home-page "https://github.com/atomnuker/wlstream")
4615 (synopsis "Screen capture tool for Wayland sessions")
4616 (description "Wlstream is a screen capture tool for recording audio and
4617 video from a Wayland session.")
4618 (license license:lgpl2.1+))))
4620 (define-public gaupol
4627 (url "https://github.com/otsaloma/gaupol/")
4629 (file-name (git-file-name name version))
4632 "1mmjg8nwhif2hmmp8i11643izwzdf839brqdai3ksfg0qkh8rnxk"))))
4633 (build-system python-build-system)
4635 `(("gettext" ,gettext-minimal)
4636 ("pkg-config" ,pkg-config)))
4638 `(("python-pygobject" ,python-pygobject)
4640 ("python-pycairo" ,python-pycairo) ; Required or else clicking on a subtitle line fails.
4641 ("python-chardet" ,python-chardet) ; Optional: Character encoding detection.
4642 ("gtkspell3" ,gtkspell3) ; Optional: Inline spell-checking.
4643 ("iso-codes" ,iso-codes) ; Optional: Translations.
4644 ("gstreamer" ,gstreamer)
4645 ("gst-libav" ,gst-libav)
4646 ("gst-plugins-base" ,gst-plugins-base)
4647 ("gst-plugins-good" ,gst-plugins-good)
4648 ("gst-plugins-bad" ,gst-plugins-bad)
4649 ("gst-plugins-ugly" ,gst-plugins-ugly)))
4651 `(#:tests? #f ; Tests seem to require networking.
4653 (modify-phases %standard-phases
4654 ;; gaupol's setup.py script does not support one of the Python build
4655 ;; system's default flags, "--single-version-externally-managed".
4657 (lambda* (#:key outputs #:allow-other-keys)
4658 (invoke "python" "setup.py" "install"
4659 (string-append "--prefix=" (assoc-ref outputs "out"))
4661 (add-after 'install 'wrap-gaupol
4662 (lambda* (#:key outputs #:allow-other-keys)
4663 (let ((out (assoc-ref outputs "out"))
4664 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4665 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4666 (wrap-program (string-append out "/bin/gaupol")
4667 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
4668 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4670 (add-after 'unpack 'patch-data-dir
4671 ;; Fix some path variables that setup.py seems to garble.
4672 (lambda* (#:key outputs #:allow-other-keys)
4673 (let ((out (assoc-ref outputs "out")))
4674 (substitute* "setup.py"
4675 (("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
4676 (string-append "DATA_DIR = '" out "/share/gaupol'\""))
4677 (("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
4678 (string-append "LOCALE_DIR = '" out "/share/locale'\"")))
4680 (synopsis "Editor for text-based subtitles")
4682 "Gaupol supports multiple subtitle file formats and provides means of
4683 creating subtitles, editing texts and timing subtitles to match video. The
4684 user interface features a builtin video player and is designed with attention
4685 to convenience of translating and batch processing of multiple documents.")
4686 (home-page "https://otsaloma.io/gaupol/")
4687 (license license:gpl3+)))
4689 (define-public theorafile
4690 (let ((commit "404b14d7602b5918d117eaa64e8aa6601ede8593"))
4693 (version (git-version "0.0.0" "1" commit))
4698 (url "https://github.com/FNA-XNA/Theorafile")
4700 (file-name (git-file-name name version))
4702 (base32 "128c3pjzqbgrj020glm5jd6ss18vl19471lj615w2brjwb7c1f0z"))))
4703 (build-system gnu-build-system)
4705 '(#:make-flags '("CC=gcc")
4707 (modify-phases %standard-phases
4712 (invoke "make" "test")))
4714 (lambda* (#:key outputs #:allow-other-keys)
4715 (let ((out (assoc-ref outputs "out")))
4716 (install-file "libtheorafile.so" (string-append out "/lib"))
4717 (install-file "theorafile.h" (string-append out "/include")))
4722 (home-page "https://github.com/FNA-XNA/Theorafile")
4723 (synopsis "Ogg Theora Video Decoder Library")
4724 (description "Theorafile is a library for quickly and easily decoding Ogg
4725 Theora videos. Theorafile was written to be used for FNA's VideoPlayer.")
4726 (license license:zlib))))
4728 (define-public dvdbackup
4735 (uri (string-append "mirror://sourceforge/dvdbackup/dvdbackup/"
4736 "dvdbackup-" version "/"
4737 "dvdbackup-" version ".tar.xz"))
4739 (base32 "1rl3h7waqja8blmbpmwy01q9fgr5r0c32b8dy3pbf59bp3xmd37g"))))
4740 (build-system gnu-build-system)
4742 `(("libdvdcss" ,libdvdcss)
4743 ("libdvdread" ,libdvdread)))
4744 (home-page "http://dvdbackup.sourceforge.net")
4745 (synopsis "DVD video ripper")
4747 "A simple command line tool to backup video from a DVD. Decrypts the
4748 DVD using @command{libdvdcss}, but does @strong{not} demux, remux,
4749 transcode or reformat the videos in any way, producing perfect backups.")
4750 (license license:gpl3+)))
4752 (define-public svt-av1
4760 (url "https://gitlab.com/AOMediaCodec/SVT-AV1.git")
4761 (commit (string-append "v" version))))
4762 (file-name (git-file-name name version))
4764 (base32 "1xlxb6kn6hqz9dxz0nd905m4i2mwjwq1330rbabwzmg4b66cdslg"))))
4765 (build-system cmake-build-system)
4766 ;; SVT-AV1 only supports 64-bit Intel-compatible CPUs.
4767 (supported-systems '("x86_64-linux"))
4769 ;; The test suite tries to download test data and git clone a 3rd-party
4770 ;; fork of libaom. Skip it.
4773 (modify-phases %standard-phases
4774 (add-after 'install 'install-documentation
4775 (lambda* (#:key outputs #:allow-other-keys)
4776 (let* ((out (assoc-ref %outputs "out"))
4777 (doc (string-append out "/share/doc/svt-av1-" ,version)))
4778 (copy-recursively "../source/Docs" doc)
4782 (synopsis "AV1 video codec")
4783 (description "SVT-AV1 is an AV1 codec implementation. The encoder is a
4784 work-in-progress, aiming to support video-on-demand and live streaming
4785 applications. It only supports Intel-compatible CPUs (x86).")
4786 (home-page "https://gitlab.com/AOMediaCodec/SVT-AV1")
4787 (license license:bsd-2)))
4789 (define-public svt-vp9
4796 (url "https://github.com/OpenVisualCloud/SVT-VP9")
4797 (commit (string-append "v" version))))
4798 (file-name (git-file-name name version))
4801 "1ypdiw4cq22llvm8jyszxdq6r1aydkj80dsxjarjn5b7c1f2q3ar"))))
4802 ;; SVT-VP9 only supports 64-bit Intel-compatible CPUs.
4803 (supported-systems '("x86_64-linux"))
4804 (build-system cmake-build-system)
4806 `(#:tests? #f ; No test suite
4808 (modify-phases %standard-phases
4809 (add-after 'install 'install-documentation
4810 (lambda* (#:key outputs #:allow-other-keys)
4811 (let* ((out (assoc-ref %outputs "out"))
4812 (doc (string-append out "/share/doc/" ,name "-" ,version)))
4813 (copy-recursively "../source/Docs" doc)
4817 (home-page "https://github.com/OpenVisualCloud/SVT-VP9")
4818 (synopsis "VP9 video encoder")
4819 (description "SVT-VP9 is a VP9 video encoder implementation. It is focused
4820 on supporting video-on-demand and live encoding on Intel Xeon processors.")
4821 (license license:bsd-2)))
4823 (define-public w-scan
4826 (version "20170107")
4830 (uri (string-append "https://www.gen2vdr.de/wirbel/w_scan/w_scan-"
4831 version ".tar.bz2"))
4833 (base32 "1zkgnj2sfvckix360wwk1v5s43g69snm45m0drnzyv7hgf5g7q1q"))))
4834 (build-system gnu-build-system)
4835 (synopsis "Scan ATSC/DVB-C/DVB-S/DVB-T channels")
4837 "This is a small command line utility used to perform frequency scans for
4838 DVB and ATSC transmissions without initial tuning data. It can print the
4839 result in several formats:
4841 @item VDR channels.conf,
4842 @item czap/tzap/xine/mplayer channels.conf,
4843 @item Gstreamer dvbsrc plugin,
4844 @item VLC xspf playlist,
4846 @item initial tuning data for scan or dvbv5-scan.
4848 (home-page "https://www.gen2vdr.de/wirbel/w_scan/index2.html")
4849 (license license:gpl2+)))
4851 (define-public rav1e
4858 (uri (crate-uri "rav1e" version))
4860 (string-append name "-" version ".tar.gz"))
4863 "0c40gq4qid2apmlgzx98f6826jmn2n61prk0rn7sjxaw7yimw854"))))
4864 (build-system cargo-build-system)
4867 (("rust-aom-sys" ,rust-aom-sys-0.2)
4868 ("rust-arbitrary" ,rust-arbitrary-0.2)
4869 ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3)
4870 ("rust-arrayvec" ,rust-arrayvec-0.5)
4871 ("rust-backtrace" ,rust-backtrace-0.3)
4872 ("rust-bitstream-io" ,rust-bitstream-io-0.8)
4873 ("rust-byteorder" ,rust-byteorder-1)
4874 ("rust-cc" ,rust-cc-1)
4875 ("rust-cfg-if" ,rust-cfg-if-0.1)
4876 ("rust-clap" ,rust-clap-2)
4877 ("rust-console" ,rust-console-0.11)
4878 ("rust-dav1d-sys" ,rust-dav1d-sys-0.3)
4879 ("rust-fern" ,rust-fern-0.6)
4880 ("rust-image" ,rust-image-0.23)
4881 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4882 ("rust-itertools" ,rust-itertools-0.9)
4883 ("rust-ivf" ,rust-ivf-0.1)
4884 ("rust-libc" ,rust-libc-0.2)
4885 ("rust-log" ,rust-log-0.4)
4886 ("rust-nasm-rs" ,rust-nasm-rs-0.2)
4887 ("rust-noop-proc-macro" ,rust-noop-proc-macro-0.2)
4888 ("rust-num-derive" ,rust-num-derive-0.3)
4889 ("rust-num-traits" ,rust-num-traits-0.2)
4890 ("rust-paste" ,rust-paste-0.1)
4891 ("rust-rand" ,rust-rand-0.7)
4892 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4893 ("rust-rayon" ,rust-rayon-1)
4894 ("rust-rust-hawktracer" ,rust-rust-hawktracer-0.7)
4895 ("rust-rustc-version" ,rust-rustc-version-0.2)
4896 ("rust-scan-fmt" ,rust-scan-fmt-0.2)
4897 ("rust-serde" ,rust-serde-1)
4898 ("rust-signal-hook" ,rust-signal-hook-0.1)
4899 ("rust-simd-helpers" ,rust-simd-helpers-0.1)
4900 ("rust-thiserror" ,rust-thiserror-1)
4901 ("rust-toml" ,rust-toml-0.5)
4902 ("rust-vergen" ,rust-vergen-3)
4903 ("rust-y4m" ,rust-y4m-0.5))
4904 #:cargo-development-inputs
4905 (("rust-assert-cmd" ,rust-assert-cmd-1)
4906 ("rust-criterion" ,rust-criterion-0.3)
4907 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4908 ("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
4909 ("rust-rand" ,rust-rand-0.7)
4910 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4911 ("rust-semver" ,rust-semver-0.9))
4913 (modify-phases %standard-phases
4915 (lambda* (#:key outputs #:allow-other-keys)
4916 (let ((out (assoc-ref outputs "out")))
4917 (invoke "cargo" "cinstall" "--release"
4918 (string-append "--prefix=" out))))))))
4920 `(("cargo-c" ,rust-cargo-c)))
4923 (home-page "https://github.com/xiph/rav1e/")
4924 (synopsis "The fastest and safest AV1 encoder")
4926 "The fastest and safest AV1 encoder.")
4927 (license license:bsd-2)))
4937 (url "https://github.com/phw/peek")
4939 (file-name (git-file-name name version))
4941 (base32 "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x"))))
4942 (build-system meson-build-system)
4943 (arguments '(#:glib-or-gtk? #t))
4947 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4948 ("gettext" ,gettext-minimal)
4949 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4950 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
4951 ("pkg-config" ,pkg-config)
4953 (home-page "https://github.com/phw/peek")
4954 (synopsis "Simple animated GIF screen recorder")
4956 "Peek makes it easy to create short screencasts of a screen area. It was
4957 built for the specific use case of recording screen areas, e.g. for easily
4958 showing UI features of your own apps or for showing a bug in bug reports.
4959 With Peek, you simply place the Peek window over the area you want to record
4960 and press \"Record\". Peek is optimized for generating animated GIFs, but you
4961 can also directly record to WebM or MP4 if you prefer.")
4962 (license license:gpl3+)))
4964 (define-public wf-recorder
4966 (name "wf-recorder")
4971 (url "https://github.com/ammen99/wf-recorder")
4972 (commit (string-append "v" version))))
4973 (file-name (git-file-name name version))
4976 "1cw6kpcbl33wh95pvy32xrsrm6kkk1awccr3phyh885xjs3b3iim"))))
4977 (build-system meson-build-system)
4979 `(("pkg-config" ,pkg-config)))
4981 `(("ffmpeg" ,ffmpeg)
4982 ("pulseaudio" ,pulseaudio)
4983 ("wayland" ,wayland)
4984 ("wayland-protocols" ,wayland-protocols)
4985 ("libx264" ,libx264)))
4986 (home-page "https://github.com/ammen99/wf-recorder")
4987 (synopsis "Screen recorder for wlroots-based compositors")
4989 "@code{wf-recorder} is a utility program for screen recording of
4990 wlroots-based compositors. More specifically, those that support
4991 @code{wlr-screencopy-v1} and @code{xdg-output}.")
4992 (license license:expat)))
4994 (define-public guvcview
5000 (uri (string-append "mirror://sourceforge/guvcview/source/guvcview-"
5001 "src-" version ".tar.gz"))
5004 "11byyfpkcik7wvf2qic77zjamfr2rhji97dpj1gy2fg1bvpiqf4m"))))
5005 (build-system gnu-build-system)
5007 ;; There are no tests and "make check" would fail on an intltool error.
5010 `(("pkg-config" ,pkg-config)
5011 ("intltool" ,intltool)))
5016 ("v4l-utils" ,v4l-utils) ;libv4l2
5017 ("ffmpeg" ,ffmpeg) ;libavcodec, libavutil
5020 ("portaudio" ,portaudio)
5021 ("alsa-lib" ,alsa-lib)))
5022 (home-page "http://guvcview.sourceforge.net/")
5023 (synopsis "Control your webcam and capture videos and images")
5025 "GTK+ UVC Viewer (guvcview) is a graphical application to control a
5026 webcam accessible with Video4Linux (V4L2) and to capture videos and images.
5027 It provides control over precise settings of the webcam such as exposure,
5028 brightness, contrast, and frame rate.")
5030 ;; 'COPYING' is GPLv3 but source headers say GPLv2+.
5031 (license license:gpl2+)))
5033 (define-public get-iplayer
5035 (name "get-iplayer")
5041 (url "https://github.com/get-iplayer/get_iplayer")
5042 (commit (string-append "v" version))))
5043 (file-name (git-file-name name version))
5045 (base32 "077y31gg020wjpx5pcivqgkqawcjxh5kjnvq97x2gd7i3wwc30qi"))))
5046 (build-system perl-build-system)
5048 `(#:tests? #f ; no tests
5050 (modify-phases %standard-phases
5054 (lambda* (#:key outputs #:allow-other-keys)
5055 (let* ((out (assoc-ref outputs "out"))
5056 (bin (string-append out "/bin"))
5057 (man (string-append out "/share/man/man1")))
5058 (install-file "get_iplayer" bin)
5059 (install-file "get_iplayer.cgi" bin)
5060 (install-file "get_iplayer.1" man))
5062 (add-after 'install 'wrap-program
5063 (lambda* (#:key inputs outputs #:allow-other-keys)
5064 (let* ((out (assoc-ref outputs "out"))
5065 (perllib (string-append out "/lib/perl5/site_perl/"
5066 ,(package-version perl))))
5067 (wrap-program (string-append out "/bin/get_iplayer")
5069 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
5070 (wrap-program (string-append out "/bin/get_iplayer.cgi")
5072 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
5075 `(("perl-mojolicious" ,perl-mojolicious)
5076 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
5077 ("perl-xml-libxml" ,perl-xml-libxml)))
5078 (home-page "https://github.com/get-iplayer/get_iplayer")
5079 (synopsis "Download or stream available BBC iPlayer TV and radio programmes")
5080 (description "@code{get_iplayer} lists, searches and records BBC iPlayer
5081 TV/Radio, BBC Podcast programmes. Other third-party plugins may be available.
5082 @code{get_iplayer} has three modes: recording a complete programme for later
5083 playback, streaming a programme directly to a playback application, such as
5084 mplayer; and as a @dfn{Personal Video Recorder} (PVR), subscribing to search
5085 terms and recording programmes automatically. It can also stream or record live
5086 BBC iPlayer output.")
5087 (license license:gpl3+)))
5089 (define-public ogmtools
5095 (uri (string-append "https://www.bunkus.org/videotools/ogmtools/ogmtools-"
5100 "1spx81p5wf59ksl3r3gvf78d77sh7gj8a6lw773iv67bphfivmn8"))))
5101 (build-system gnu-build-system)
5103 `(("libvorbis" ,libvorbis)
5104 ("libdvdread" ,libdvdread)))
5105 (synopsis "Information, extraction or creation for OGG media streams")
5107 "These tools allow information about (@code{ogminfo}) or extraction from
5108 \(@code{ogmdemux}) or creation of (@code{ogmmerge}) OGG media streams. It
5109 includes @code{dvdxchap} tool for extracting chapter information from DVD.")
5110 (license license:gpl2)
5111 (home-page "https://www.bunkus.org/videotools/ogmtools/")))
5113 (define-public libcaption
5120 (url "https://github.com/szatmary/libcaption")
5122 (file-name (git-file-name name version))
5125 "16mhw8wpl7wdjj4n7rd1c294p1r8r322plj7z91crla5aah726rq"))))
5126 (build-system cmake-build-system)
5128 `(#:tests? #f ; Cannot figure out how to run the unit tests
5129 #:configure-flags '("-DENABLE_RE2C=ON")))
5132 (synopsis "CEA608 / CEA708 closed-caption codec")
5133 (description "Libcaption creates and parses closed-caption data,
5134 providing an encoder / decoder for the EIA608 and CEA708 closed-caption
5137 608 support is currently limited to encoding and decoding the necessary control
5138 and preamble codes as well as support for the Basic North American, Special
5139 North American and Extended Western European character sets.
5141 708 support is limited to encoding the 608 data in NTSC field 1 user data type
5144 In addition, utility functions to create h.264 SEI (Supplementary enhancement
5145 information) NALUs (Network Abstraction Layer Unit) for inclusion into an h.264
5146 elementary stream are provided.")
5147 (home-page "https://github.com/szatmary/libcaption")
5148 (license license:expat)))