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 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, 2018, 2019, 2020 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 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 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>
51 ;;; This file is part of GNU Guix.
53 ;;; GNU Guix is free software; you can redistribute it and/or modify it
54 ;;; under the terms of the GNU General Public License as published by
55 ;;; the Free Software Foundation; either version 3 of the License, or (at
56 ;;; your option) any later version.
58 ;;; GNU Guix is distributed in the hope that it will be useful, but
59 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
60 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61 ;;; GNU General Public License for more details.
63 ;;; You should have received a copy of the GNU General Public License
64 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
66 (define-module (gnu packages video)
67 #:use-module (ice-9 match)
68 #:use-module ((srfi srfi-1) #:hide (zip))
69 #:use-module (srfi srfi-26)
70 #:use-module ((guix licenses) #:prefix license:)
71 #:use-module (guix utils)
72 #:use-module (guix packages)
73 #:use-module (guix download)
74 #:use-module (guix git-download)
75 #:use-module (guix svn-download)
76 #:use-module (guix build-system cargo)
77 #:use-module (guix build-system cmake)
78 #:use-module (guix build-system copy)
79 #:use-module (guix build-system gnu)
80 #:use-module (guix build-system glib-or-gtk)
81 #:use-module (guix build-system meson)
82 #:use-module (guix build-system perl)
83 #:use-module (guix build-system python)
84 #:use-module (guix build-system waf)
85 #:use-module (guix build-system trivial)
86 #:use-module (gnu packages)
87 #:use-module (gnu packages algebra)
88 #:use-module (gnu packages assembly)
89 #:use-module (gnu packages audio)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages avahi)
92 #:use-module (gnu packages backup)
93 #:use-module (gnu packages base)
94 #:use-module (gnu packages bison)
95 #:use-module (gnu packages boost)
96 #:use-module (gnu packages cdrom)
97 #:use-module (gnu packages check)
98 #:use-module (gnu packages cmake)
99 #:use-module (gnu packages compression)
100 #:use-module (gnu packages cpp)
101 #:use-module (gnu packages crates-io)
102 #:use-module (gnu packages crates-graphics)
103 #:use-module (gnu packages curl)
104 #:use-module (gnu packages dejagnu)
105 #:use-module (gnu packages dns)
106 #:use-module (gnu packages docbook)
107 #:use-module (gnu packages documentation)
108 #:use-module (gnu packages elf)
109 #:use-module (gnu packages file)
110 #:use-module (gnu packages flex)
111 #:use-module (gnu packages fonts)
112 #:use-module (gnu packages fontutils)
113 #:use-module (gnu packages freedesktop)
114 #:use-module (gnu packages fribidi)
115 #:use-module (gnu packages gettext)
116 #:use-module (gnu packages ghostscript)
117 #:use-module (gnu packages gl)
118 #:use-module (gnu packages glib)
119 #:use-module (gnu packages guile)
120 #:use-module (gnu packages gnome)
121 #:use-module (gnu packages gnunet)
122 #:use-module (gnu packages gnupg)
123 #:use-module (gnu packages gstreamer)
124 #:use-module (gnu packages gtk)
125 #:use-module (gnu packages image)
126 #:use-module (gnu packages imagemagick)
127 #:use-module (gnu packages iso-codes)
128 #:use-module (gnu packages libidn)
129 #:use-module (gnu packages libreoffice)
130 #:use-module (gnu packages libusb)
131 #:use-module (gnu packages linux)
132 #:use-module (gnu packages lua)
133 #:use-module (gnu packages m4)
134 #:use-module (gnu packages man)
135 #:use-module (gnu packages markup)
136 #:use-module (gnu packages maths)
137 #:use-module (gnu packages mp3)
138 #:use-module (gnu packages ncurses)
139 #:use-module (gnu packages networking)
140 #:use-module (gnu packages ocr)
141 #:use-module (gnu packages pcre)
142 #:use-module (gnu packages perl)
143 #:use-module (gnu packages perl-check)
144 #:use-module (gnu packages perl-web)
145 #:use-module (gnu packages photo)
146 #:use-module (gnu packages pkg-config)
147 #:use-module (gnu packages popt)
148 #:use-module (gnu packages pretty-print)
149 #:use-module (gnu packages protobuf)
150 #:use-module (gnu packages pulseaudio)
151 #:use-module (gnu packages python)
152 #:use-module (gnu packages python-crypto)
153 #:use-module (gnu packages python-web)
154 #:use-module (gnu packages python-xyz)
155 #:use-module (gnu packages qt)
156 #:use-module (gnu packages rdesktop)
157 #:use-module (gnu packages re2c)
158 #:use-module (gnu packages ruby)
159 #:use-module (gnu packages rust-apps)
160 #:use-module (gnu packages samba)
161 #:use-module (gnu packages sdl)
162 #:use-module (gnu packages serialization)
163 #:use-module (gnu packages shells)
164 #:use-module (gnu packages sqlite)
165 #:use-module (gnu packages ssh)
166 #:use-module (gnu packages swig)
167 #:use-module (gnu packages texinfo)
168 #:use-module (gnu packages textutils)
169 #:use-module (gnu packages tls)
170 #:use-module (gnu packages time)
171 #:use-module (gnu packages upnp)
172 #:use-module (gnu packages vulkan)
173 #:use-module (gnu packages web)
174 #:use-module (gnu packages webkit)
175 #:use-module (gnu packages wxwidgets)
176 #:use-module (gnu packages xdisorg)
177 #:use-module (gnu packages xiph)
178 #:use-module (gnu packages xml)
179 #:use-module (gnu packages xorg))
181 (define-public transcode
189 (string-append "https://sources.archlinux.org/other/community/"
190 name "/" name "-" version ".tar.bz2"))
192 (base32 "14ha9xjsjrj131f35jd56z5v1jb4rbsrj1nril5shqnxw3c74khy"))
194 (search-patches "transcode-ffmpeg.patch"))))
195 (build-system gnu-build-system)
201 "--enable-libmpeg2convert"
203 ;;; XXX: Not available.
208 ;;; XXX: Not available.
209 ;"--enable-libpostproc"
216 ;;; XXX: Not available.
219 "--enable-libquicktime"
224 ;;; XXX: Not available.
226 ;;"--enable-mjpegtools"
228 "--enable-imagemagick"
229 ;;; XXX: Not available.
230 ;"--enable-libjpegmmx"
231 "--enable-libjpeg")))
232 ;;; XXX: Not available.
237 `(("autoconf" ,autoconf)
238 ("automake" ,automake)
243 ("pkg-config" ,pkg-config)
244 ("python" ,python-wrapper)))
246 `(("alsa-lib" ,alsa-lib)
249 ("freetype" ,freetype)
250 ("imagemagick" ,imagemagick-next)
254 ("libdvdread" ,libdvdread)
255 ("libjpeg" ,libjpeg-turbo)
256 ("libmpeg2" ,libmpeg2)
258 ("libquicktime" ,libquicktime)
259 ("libtheora" ,libtheora)
260 ("libvorbis" ,libvorbis)
262 ("mjepgtools" ,mjpegtools)
264 ("v4l-utils" ,v4l-utils)
273 (synopsis "Audio/Video Transcoder")
274 (description "Transcode is a fast, versatile and command-line based
275 audio/video everything to everything converter primarily focussed on producing
276 AVI video files with MP3 audio, but also including a program to read all the
277 video and audio streams from a DVD.")
279 "http://linuxfromscratch.org/blfs/view/svn/multimedia/transcode.html")
280 (license license:gpl2+)))
282 (define-public svt-hevc
291 (url "https://github.com/OpenVisualCloud/SVT-HEVC")
292 (commit (string-append "v" version))))
293 (file-name (git-file-name name version))
295 (base32 "1sqh3dciqm2p1b66kngcpxqy5fx3ramxlxy8gfcbdwn2i3rsqhs7"))))
296 (build-system cmake-build-system)
298 `(#:tests? #f)) ; Test script is stand-alone
301 (synopsis "SVT HEVC encoder")
302 (description "Scalable Video Technology (SVT) is a software-based video
303 coding technology that is highly optimized for Intel's Xeon processors. Using
304 the SVT-HEVC encoder, it is possible to spread video encoding processing across
305 multiple Intel's Xeon processors to achieve a real advantage of processing
307 (home-page "https://01.org/svt")
308 (license (license:non-copyleft "file:///LICENSE.md"))))
310 (define-public mediasdk
319 (url "https://github.com/Intel-Media-SDK/MediaSDK")
320 (commit (string-append "intel-" name "-" version))))
321 (file-name (git-file-name name version))
323 (base32 "0blwcxr5j8762nylx2cxrq0h53bpgnk859dbs6crq4wr9fcxlx9z"))))
324 (build-system cmake-build-system)
329 "-DENABLE_X11_DRI3=ON"
330 "-DENABLE_WAYLAND=ON"
331 "-DENABLE_TEXTLOG=ON"
335 (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
336 (assoc-ref %outputs "out") "/lib"))))
338 `(("pkg-config" ,pkg-config)
339 ("python" ,python-wrapper)))
343 ("pciaccess" ,libpciaccess)
346 (synopsis "Intel Media SDK")
347 (description "MediaSDK provides a plain C API to access hardware-accelerated
348 video decode, encode and filtering on Intel's Gen graphics hardware platforms.")
349 (home-page "http://mediasdk.intel.com/")
350 (license (license:non-copyleft "file:///LICENSE"))))
352 (define-public schroedinger
354 (name "schroedinger")
360 (string-append "https://launchpad.net/" name "/trunk/" version
361 "/+download/" name "-" version ".tar.gz"))
363 (base32 "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy"))))
364 (build-system gnu-build-system)
365 (outputs '("out" "doc"))
368 (modify-phases %standard-phases
369 (add-after 'install 'move-docs
370 (lambda* (#:key outputs #:allow-other-keys)
371 (let* ((out (assoc-ref outputs "out"))
372 (doc (assoc-ref outputs "doc")))
373 (mkdir-p (string-append doc "/share"))
375 (string-append out "/share/gtk-doc")
376 (string-append doc "/share/gtk-doc"))
381 ("pkg-config" ,pkg-config)))
387 (synopsis "Dirac video codec")
388 (description "Schroedinger is a project implementing the Dirac video codec in
389 ANSI C code. It is meant to be highly optimized and portable. It is developed
390 as a joint effort between the BBC and Fluendo.")
391 (home-page "https://launchpad.net/schroedinger")
393 ;; This library is licensed under 4 different licenses,
394 ;; and you can choose to use it under the terms of any one of them.
401 (define-public libquicktime
403 (name "libquicktime")
409 (string-append "https://sourceforge.net/projects/" name "/files/"
410 name "/" version "/" name "-" version ".tar.gz"))
412 (base32 "0s3kshzl3zfjw3phzv73r91fkr9z8q8kc3dhsys4f4xk6ff3alqw"))
414 (search-patches "libquicktime-ffmpeg.patch"))))
415 (build-system gnu-build-system)
417 `(("gettext" ,gettext-minimal)
419 ("pkg-config" ,pkg-config)))
426 ("libjpeg" ,libjpeg-turbo)
428 ("libvorbis" ,libvorbis)
430 ("schroedinger" ,schroedinger)
435 (synopsis "Quick Time Library")
436 (description "The goal of this project is to enhance the quicktime4linux
438 (home-page "http://libquicktime.sourceforge.net/")
439 (license license:lgpl2.1+)))
441 (define-public mjpegtools
449 (string-append "https://sourceforge.net/projects/" name "/files/"
450 name "/" version "/" name "-" version ".tar.gz"))
452 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
453 (build-system gnu-build-system)
458 ("libquicktime" ,libquicktime)
460 (synopsis "Tools for handling MPEG")
461 (description "Mjpeg tools is a suite of programs which support video capture,
462 editing, playback, and compression to MPEG of MJPEG video. Edit, play and
463 compression software is hardware independent.")
464 (home-page "http://mjpeg.sourceforge.net/")
465 (license license:gpl2+)))
467 (define-public libmms
475 (string-append "https://sourceforge.net/projects/" name "/files/"
476 name "/" version "/" name "-" version ".tar.gz"))
478 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
479 (build-system gnu-build-system)
480 (synopsis "MMS stream protocol library")
481 (description "Libmms is a library for streaming media files using the mmst
482 and mmsh protocols.")
483 (home-page "https://sourceforge.net/projects/libmms/")
484 (license license:lgpl2.1+)))
486 (define-public libvideogfx
495 (url "https://github.com/farindk/libvideogfx")
496 (commit (string-append "v" version))))
497 (file-name (git-file-name name version))
499 (base32 "154b0j8cfg879pg08xcbwvbz8z9nrfnyj31i48vxir1psas70ynq"))))
500 (build-system gnu-build-system)
503 (modify-phases %standard-phases
504 (add-after 'unpack 'fix-build-errors
506 (substitute* "libvideogfx/graphics/fileio/ffmpeg.cc"
507 (("av_close_input_file\\(")
508 "avformat_close_input(&"))
509 (substitute* "libvideogfx/graphics/fileio/png.cc"
510 (("is != NULL") "is.good()"))
513 `(("autoconf" ,autoconf)
514 ("automake" ,automake)
516 ("pkg-config" ,pkg-config)))
518 `(("ffmpeg" ,ffmpeg-2.8)
519 ("jpeg" ,libjpeg-turbo)
523 (synopsis "Video processing library")
524 (description "LibVideoGfx is a C++ library for low-level video processing.
525 It aims at speeding up the development process for image and video processing
526 applications by providing high-level classes for commonly required tasks.")
527 (home-page "https://dirk-farin.net/software/libvideogfx/index.html")
528 (license license:lgpl2.1+)))
530 (define-public libde265
539 (url "https://github.com/strukturag/libde265")
540 (commit (string-append "v" version))))
541 (file-name (git-file-name name version))
543 (base32 "1dzflqbk248lz5ws0ni5acmf32b3rmnq5gsfaz7691qqjxkl1zml"))))
544 (build-system gnu-build-system)
547 (list "--disable-static")))
549 `(("autoconf" ,autoconf)
550 ("automake" ,automake)
552 ("pkg-config" ,pkg-config)
553 ("python" ,python-wrapper)))
555 `(;; XXX: Build fails with libvideogfx.
556 ;; ("libvideogfx" ,libvideogfx)
559 (synopsis "H.265 video codec implementation")
560 (description "Libde265 is an implementation of the h.265 video codec. It is
561 written from scratch and has a plain C API to enable a simple integration into
563 (home-page "https://www.libde265.org/")
580 (url "https://github.com/libts/tslib")
582 (file-name (git-file-name name version))
584 (base32 "197p6vy539wvfrv23agbvmay4rjya1jnisi46llm0nx4cvqh48by"))))
585 (build-system gnu-build-system)
587 `(#:test-target "tests"
589 (list "--with-sdl2")))
591 `(("autoconf" ,autoconf)
592 ("automake" ,automake)
594 ("pkg-config" ,pkg-config)))
596 `(("linux-headers" ,linux-libre-headers)
598 (synopsis "Touchscreen access library")
599 (description "TSLib is a cross-platform library that provides access to
600 touchscreen devices and the ability to apply filters to their input events.")
601 (home-page "http://www.tslib.org/")
602 (license license:lgpl2.1+)))
604 (define-public libmpeg3
612 (string-append "https://sourceforge.net/projects/heroines/files/"
613 "releases/081108/" name "-" version "-src.tar.bz2"))
615 (base32 "1i53vv0wm5qfwgg1z7j9g14s6c7gxxkiy4vbdkq3lijjyyz50vv5"))))
616 (build-system gnu-build-system)
618 `(#:test-target "test"
621 (string-append "A52DIR=" (assoc-ref %build-inputs "liba52"))
622 (string-append "DST=" (assoc-ref %outputs "out") "/bin"))
624 (modify-phases %standard-phases
625 (add-after 'unpack 'delete-bundled-a52dec
627 (delete-file-recursively "a52dec-0.7.3")
628 (substitute* "Makefile"
629 (("include Makefile\\.a52")
631 (("\\(A52DIR\\)/include")
632 "(A52DIR)/include/a52dec")
634 (string-append match "-la52 ")))
636 (add-before 'install 'create-destination-directory
637 (lambda* (#:key outputs #:allow-other-keys)
638 (let* ((out (string-append (assoc-ref outputs "out"))))
639 (mkdir-p (string-append out "/bin"))
644 `(("liba52" ,liba52)))
645 (synopsis "Advanced MPEG editing and manipulation library")
646 (description "Libmpeg3 decodes MP2, MP3, AC3, MPEG-1 video, MPEG-2 video,
647 and DVD footage in a single library. It supports many esoteric features like
648 parallel video decoding, frame-accurate editing, YUV 4:2:2, and ATSC transport
650 (home-page "http://heroinewarrior.com/libmpeg3.php")
651 (license license:gpl2+)))
659 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
660 version "/" name "-" version ".tar.gz"))
663 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
664 (build-system gnu-build-system)
666 `(("makeinfo" ,texinfo)))
668 `(("ncurses" ,ncurses)))
671 (modify-phases %standard-phases
673 (lambda* (#:key build inputs outputs #:allow-other-keys)
674 ;; This old `configure' script doesn't support
675 ;; variables passed as arguments.
676 (let ((out (assoc-ref outputs "out"))
677 (ncurses (assoc-ref inputs "ncurses")))
678 (setenv "CONFIG_SHELL" (which "bash"))
679 (invoke "./configure"
680 (string-append "--prefix=" out)
681 (string-append "--build=" build)
682 ;; The ancient config.guess is unable to
683 ;; guess the host triplet on mips64el.
684 ,@(if (string=? "mips64el-linux"
686 '("--host=mips64el-unknown-linux-gnu")
688 ;; The same is also true with aarch64.
689 ,@(if (string=? "aarch64-linux"
691 '("--host=aarch64-unknown-linux-gnu")
693 (string-append "--with-ncurses="
695 (home-page "http://aa-project.sourceforge.net/aalib/")
696 (synopsis "ASCII-art library")
698 "AA-lib is a low level gfx library which does not require graphics device.
699 In fact, there is no graphical output possible. AA-lib replaces those
700 old-fashioned output methods with powerful ascii-art renderer.")
701 (license license:lgpl2.0+)))
703 (define-public celluloid
710 (uri (string-append "https://github.com/celluloid-player/celluloid"
711 "/releases/download/v" version
712 "/celluloid-" version ".tar.xz"))
714 (base32 "0kjjv2pcdvwcn4yi8kbpsca7pnx6cx6xdznv7ppqm0fssx68qyb3"))))
715 (build-system glib-or-gtk-build-system)
717 `(("intltool" ,intltool)
718 ("pkg-config" ,pkg-config)))
721 ("libepoxy" ,libepoxy)
723 (home-page "https://github.com/celluloid-player/celluloid")
724 (synopsis "GTK+ frontend for the mpv media player")
725 (description "Celluloid is a simple GTK+ frontend for the mpv media player.
726 It interacts with mpv via the client API exported by libmpv, allowing access to
727 mpv's powerful playback capabilities.")
728 (license license:gpl3+)))
730 (define-public liba52
737 ;; A mirror://sourceforge URI doesn't work, presumably
738 ;; because the SourceForge project is misconfigured.
739 "http://liba52.sourceforge.net/files/a52dec-" version
743 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
744 (patches (search-patches "liba52-enable-pic.patch"
745 "liba52-set-soname.patch"
746 "liba52-use-mtune-not-mcpu.patch"
747 "liba52-link-with-libm.patch"))))
748 (build-system gnu-build-system)
749 ;; XXX We need to run ./bootstrap because of the build system fixes above.
751 `(("autoconf" ,autoconf)
752 ("automake" ,automake)
753 ("libtool" ,libtool)))
754 (arguments `(#:configure-flags '("--enable-shared")
756 (modify-phases %standard-phases
757 ;; XXX We need to run ./bootstrap because of the build
758 ;; system fixes above.
760 (lambda _ (invoke "sh" "bootstrap"))))))
761 (home-page "http://liba52.sourceforge.net/")
762 (synopsis "ATSC A/52 stream decoder")
763 (description "liba52 is a library for decoding ATSC A/52 streams. The
764 A/52 standard is used in a variety of applications, including digital
765 television and DVD. It is also known as AC-3.")
766 (license license:gpl2+)))
768 (define-public libaom
775 (url "https://aomedia.googlesource.com/aom/")
776 (commit (string-append "v" version))))
777 (file-name (git-file-name name version))
780 "1vakwmcwvmmrdw7460m8hzq96y71lxqix8b2g07c6s12br0rrdhl"))))
781 (build-system cmake-build-system)
784 ("pkg-config" ,pkg-config)
785 ("python" ,python))) ; to detect the version
787 `(#:tests? #f ;no check target
789 ;; build dynamic library
790 (list "-DBUILD_SHARED_LIBS=YES"
792 "-DAOM_TARGET_CPU=generic"
793 (string-append "-DCMAKE_INSTALL_PREFIX="
794 (assoc-ref %outputs "out")))))
795 (home-page "https://aomedia.googlesource.com/aom/")
796 (synopsis "AV1 video codec")
797 (description "Libaom is the reference implementation of AV1. It includes a
798 shared library and encoder and decoder command-line executables.")
799 (license license:bsd-2)))
801 (define-public libmpeg2
807 ;; A mirror://sourceforge URI doesn't work, presumably
808 ;; because the SourceForge project is misconfigured.
809 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
810 name "-" version ".tar.gz"))
811 (patches (search-patches "libmpeg2-arm-private-symbols.patch"
812 "libmpeg2-global-symbol-test.patch"))
815 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
823 (build-system gnu-build-system)
824 (home-page "http://libmpeg2.sourceforge.net/")
825 (synopsis "MPEG1 and MPEG2 video decoder library")
827 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
828 (license license:gpl2+)))
830 (define-public libx264
831 ;; There are no tags in the repository, so we take the version number from
832 ;; the X264_BUILD variable defined in x264.h.
833 (let ((version "161")
834 (commit "4c2aafd864dd201832ec2be0fef4484925146650")
838 (version (git-version version revision commit))
842 (url "https://code.videolan.org/videolan/x264.git")
844 (file-name (git-file-name name version))
847 "1i6v9h3xx9pi0zmlj3anwwjxqa63sbhy9crrif8dphipwfn9hyg5"))))
848 (build-system gnu-build-system)
850 `(("pkg-config" ,pkg-config)
852 ;; TODO: Add gpac input
854 `(#:tests? #f ;no check target
855 #:configure-flags '("--enable-shared"
856 ;; Don't build the command-line program. If we
857 ;; want it later, we should do so in a different
858 ;; package to avoid a circular dependency (the x264
859 ;; program depends on ffmpeg and ffmpeg depends on
863 ;; On MIPS, we must pass "--disable-asm" or else
864 ;; configure fails after printing: "You specified a
865 ;; pre-MSA CPU in your CFLAGS. If you really want
866 ;; to run on such a CPU, configure with
868 ,@(if (string-prefix? "mips"
869 (or (%current-target-system)
873 (home-page "https://www.videolan.org/developers/x264.html")
874 (synopsis "H.264 video coding library")
875 (description "libx264 is an advanced encoding library for creating
876 H.264 (MPEG-4 AVC) video streams.")
877 (license (list license:gpl2+ ;most files
878 license:isc ;common/x86/x86inc.asm
879 license:lgpl2.1+ ;extras/getopt.c
880 license:bsd-3 ;extras/inttypes.h
881 (license:non-copyleft ;extras/cl*.h
883 "See extras/cl.h in the distribution."))))))
885 (define-public mkvtoolnix
892 (uri (string-append "https://mkvtoolnix.download/sources/"
893 "mkvtoolnix-" version ".tar.xz"))
895 (base32 "0w2crz6wnfw18m9m4zrij1yplcq5drzhz8n58w9kp51wl48a0yn1"))
896 (modules '((guix build utils)))
898 ;; Delete bundled libraries.
899 (for-each delete-file-recursively
907 (build-system gnu-build-system)
908 (outputs '("out" "gui")) ; "mkvtoolnix-gui" brings the closure size from ~300 MB to 1.5+ GB.
917 ("libmatroska" ,libmatroska)
919 ("libvorbis" ,libvorbis)
924 ("qtmultimedia" ,qtmultimedia)
928 `(("docbook-xsl" ,docbook-xsl)
929 ("gettext" ,gettext-minimal)
930 ("googletest" ,googletest)
932 ("json-modern-cxx" ,json-modern-cxx)
934 ("pkg-config" ,pkg-config)
940 (list (string-append "--with-boost="
941 (assoc-ref %build-inputs "boost"))
942 (string-append "--with-docbook-xsl-root="
943 (assoc-ref %build-inputs "docbook-xsl")
944 "/xml/xsl/docbook-xsl-"
945 ,(package-version docbook-xsl))
946 "--enable-update-check=no"
947 "--enable-precompiled-headers=no")
949 (modify-phases %standard-phases
950 (add-after 'unpack 'patch-relative-file-names
951 (lambda* (#:key outputs #:allow-other-keys)
952 (let ((out (assoc-ref outputs "out")))
953 (substitute* "src/mkvtoolnix-gui/util/settings.cpp"
955 (string-append out "/bin/" match)))
957 (add-before 'configure 'add-googletest
958 (lambda* (#:key inputs #:allow-other-keys)
960 (string-append (assoc-ref inputs "googletest")
961 "/include/gtest") "lib/gtest")
965 (let ((-j (list "-j" (number->string (parallel-job-count)))))
966 (apply invoke "rake" -j))))
969 (invoke "rake" "tests/unit")))
972 (invoke "rake" "install")))
973 (add-after 'install 'post-install
974 (lambda* (#:key outputs #:allow-other-keys)
975 ;; Move the Qt interface to "gui".
976 (let* ((out (assoc-ref outputs "out"))
977 (gui (assoc-ref outputs "gui"))
978 (strip-store-dir (lambda (path)
979 (substring path (string-prefix-length out path)))))
982 (mkdir-p (string-append gui (dirname file)))
983 (rename-file (string-append out file)
984 (string-append gui file)))
985 (append '("/bin/mkvtoolnix-gui"
986 "/share/applications/org.bunkus.mkvtoolnix-gui.desktop"
987 "/share/metainfo/org.bunkus.mkvtoolnix-gui.appdata.xml"
988 "/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml")
989 (map strip-store-dir (find-files out "\\.ogg$"))
990 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.png$"))
991 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.1"))))
994 (delete-file-recursively (string-append out file)))
995 '("/share/applications"
998 "/share/mkvtoolnix")))
1000 (home-page "https://mkvtoolnix.download")
1001 (synopsis "Tools to create, alter and inspect Matroska files")
1003 "MKVToolNix provides tools for getting information about Matroska files
1004 (@command{mkvinfo}), extracting tracks/data from Matroska files
1005 (@command{mkvextract}), and creating Matroska files from other media files
1006 (@command{mkvmerge}).")
1007 (license license:gpl2)))
1009 (define-public straw-viewer
1011 (name "straw-viewer")
1017 (url "https://github.com/trizen/straw-viewer")
1019 (file-name (git-file-name name version))
1021 (base32 "1s6w8m9377ajy21x7lf6mbgp5yk5i70nhzmqscibjnarr3xfg9zs"))))
1022 (build-system perl-build-system)
1024 `(("perl-module-build" ,perl-module-build)
1025 ("perl-test-pod" ,perl-test-pod)))
1027 `(("perl-data-dump" ,perl-data-dump)
1028 ("perl-json" ,perl-json)
1029 ("perl-libwww" ,perl-libwww)
1030 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1031 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
1032 ("perl-mozilla-ca" ,perl-mozilla-ca)
1033 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
1034 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
1035 ("xdg-utils" ,xdg-utils)))
1036 ;; Required only when building the graphical interface (--gtk).
1037 ;;("perl-file-sharedir" ,perl-file-sharedir)
1039 ;; Some videos play without youtube-dl, but others silently fail to.
1041 `(("youtube-dl" ,youtube-dl)))
1043 `(#:modules ((guix build perl-build-system)
1047 (modify-phases %standard-phases
1048 (add-after 'unpack 'refer-to-inputs
1049 (lambda* (#:key inputs #:allow-other-keys)
1050 (substitute* "lib/WWW/StrawViewer.pm"
1052 (format #f "'~a/bin/youtube-dl'"
1053 (assoc-ref inputs "youtube-dl"))))
1054 (substitute* "bin/gtk-straw-viewer"
1056 (format #f "'~a/bin/xdg-open'"
1057 (assoc-ref inputs "xdg-utils"))))
1059 ;; (add-after 'install 'install-desktop
1060 ;; (lambda* (#:key outputs #:allow-other-keys)
1061 ;; (let* ((out (assoc-ref outputs "out"))
1062 ;; (sharedir (string-append out "/share")))
1063 ;; (install-file "share/gtk-straw-viewer.desktop"
1064 ;; (string-append sharedir "/applications"))
1065 ;; (install-file "share/icons/gtk-straw-viewer.png"
1066 ;; (string-append sharedir "/pixmaps"))
1068 (add-after 'install 'wrap-program
1069 (lambda* (#:key outputs #:allow-other-keys)
1070 (let* ((out (assoc-ref outputs "out"))
1071 (bin-dir (string-append out "/bin/"))
1072 (site-dir (string-append out "/lib/perl5/site_perl/"))
1073 (lib-path (getenv "PERL5LIB")))
1074 (for-each (cut wrap-program <>
1075 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1076 (find-files bin-dir))
1079 "Light-weight application for searching and streaming videos from YouTube")
1081 "Straw-viewer searches for YouTube videos using @uref{https://invidio.us/,
1082 invidio.us} and plays them locally in a native media player like @command{vlc}
1085 You can search for videos, playlists, and/or channels. The videos are streamed
1086 directly to the player at the best chosen resolution and with closed captions if
1088 ;; XXX Add #:module-build-flags '("--gtk") dependencies and this sentence.
1089 ;; Both a command-line and a graphical interface are available.
1090 (home-page "https://github.com/trizen/youtube-viewer")
1091 (license license:perl-license)))
1097 (outputs '("out" "static"))
1101 (uri (list (string-append "https://bitbucket.org/multicoreware/x265"
1102 "/downloads/x265_" version ".tar.gz")
1103 (string-append "https://download.videolan.org/videolan/x265/"
1104 "x265_" version ".tar.gz")))
1106 (base32 "0wl62hfsdqpf3r3z3s6l9bz7pdb1rcik5ll00b3yaadplqipy162"))
1107 (patches (search-patches "x265-arm-flags.patch"))
1108 (modules '((guix build utils)))
1110 (delete-file-recursively "source/compat/getopt")
1112 (build-system cmake-build-system)
1114 ;; XXX: ASM optimization fails on i686-linux, see <https://bugs.gnu.org/41768>.
1115 (if (string-prefix? "i686" (%current-system))
1119 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
1121 ;; Ensure position independent code for everyone.
1122 (list "-DENABLE_PIC=TRUE"
1124 '("-DENABLE_ASSEMBLY=OFF")
1126 (string-append "-DCMAKE_INSTALL_PREFIX="
1127 (assoc-ref %outputs "out")))
1129 (modify-phases %standard-phases
1130 (add-after 'unpack 'prepare-build
1132 (delete-file-recursively "build")
1135 (add-before 'configure 'build-12-bit
1136 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1137 (mkdir "../build-12bit")
1138 (with-directory-excursion "../build-12bit"
1141 "-DHIGH_BIT_DEPTH=ON"
1142 "-DEXPORT_C_API=OFF"
1146 (substitute* (cons "cmake_install.cmake"
1148 (find-files "CMakeFiles/x265-shared.dir" ".")
1149 (find-files "CMakeFiles/x265-static.dir" ".")))
1150 (("libx265") "libx265_main12"))
1152 (add-before 'configure 'build-10-bit
1153 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1154 (mkdir "../build-10bit")
1155 (with-directory-excursion "../build-10bit"
1158 "-DHIGH_BIT_DEPTH=ON"
1159 "-DEXPORT_C_API=OFF"
1162 (substitute* (cons "cmake_install.cmake"
1164 (find-files "CMakeFiles/x265-shared.dir" ".")
1165 (find-files "CMakeFiles/x265-static.dir" ".")))
1166 (("libx265") "libx265_main10"))
1168 (add-after 'install 'install-more-libs
1170 (with-directory-excursion "../build-12bit"
1171 (invoke "make" "install"))
1172 (with-directory-excursion "../build-10bit"
1173 (invoke "make" "install"))))
1174 (add-before 'strip 'move-static-libs
1175 (lambda* (#:key outputs #:allow-other-keys)
1176 (let ((out (assoc-ref outputs "out"))
1177 (static (assoc-ref outputs "static")))
1178 (mkdir-p (string-append static "/lib"))
1179 (with-directory-excursion
1180 (string-append out "/lib")
1184 (string-append static "/lib/" file)))
1185 (find-files "." "\\.a$"))))
1187 (home-page "http://x265.org/")
1188 (synopsis "Library for encoding h.265/HEVC video streams")
1189 (description "x265 is a H.265 / HEVC video encoder application library,
1190 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
1191 (license license:gpl2+)))
1193 (define-public libass
1200 "https://github.com/libass/libass/releases/download/"
1201 version "/libass-" version ".tar.xz"))
1204 "0cz8v6kh3f2j5rdjrra2z0h715fa16vjm7kambvqx9hak86262cz"))))
1205 (build-system gnu-build-system)
1207 '(#:configure-flags '("--disable-static")))
1209 `(("pkg-config" ,pkg-config)
1212 `(("freetype" ,freetype)
1213 ("fribidi" ,fribidi)
1214 ("fontconfig" ,fontconfig)
1215 ("harfbuzz" ,harfbuzz)))
1216 (home-page "https://github.com/libass/libass")
1217 (synopsis "Subtitle rendering library for the ASS/SSA format")
1218 (description "libass is a subtitle rendering library for the
1219 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
1220 (license license:isc)))
1222 (define-public libcaca
1225 (version "0.99.beta19")
1228 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
1232 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
1233 (build-system gnu-build-system)
1235 '(#:configure-flags '("--disable-static")))
1236 (native-inputs `(("pkg-config" ,pkg-config)))
1238 `(("freeglut" ,freeglut)
1243 ("ncurses" ,ncurses)
1245 (home-page "http://caca.zoy.org/wiki/libcaca")
1246 (synopsis "Colour ASCII-art library")
1247 (description "libcaca is a graphics library that outputs text instead of
1248 pixels, so that it can work on older video cards or text terminals. It
1249 supports Unicode, 2048 colors, dithering of color images, and advanced text
1250 canvas operations.")
1251 (license license:wtfpl2)))
1253 (define-public libdca
1260 "https://download.videolan.org/pub/videolan/libdca/"
1261 version "/libdca-" version ".tar.bz2"))
1264 "0sjz0s0nrv7jcpvh1i432x3jza0y5yycmzw84cfncb2qby0i62rs"))))
1265 (build-system gnu-build-system)
1267 `(("autoconf" ,autoconf)
1268 ("automake" ,automake)
1269 ("libtool" ,libtool)))
1270 (home-page "https://www.videolan.org/developers/libdca.html")
1271 (synopsis "DTS Coherent Acoustics decoder")
1272 (description "libdca is a library for decoding DTS Coherent Acoustics
1274 (license license:gpl2+)))
1276 (define-public libdv
1283 "mirror://sourceforge/libdv/libdv/"
1284 version "/libdv-" version ".tar.gz"))
1287 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
1288 (build-system gnu-build-system)
1289 (native-inputs `(("pkg-config" ,pkg-config)))
1290 (inputs `(("libxv" ,libxv)))
1291 (home-page "http://libdv.sourceforge.net/")
1292 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
1293 (description "The Quasar DV codec (libdv) is a software codec for DV
1294 video, the encoding format used by most digital camcorders, typically those
1295 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
1296 developed according to the official standards for DV video: IEC 61834 and
1298 (license license:lgpl2.1+)))
1300 (define-public libmatroska
1302 (name "libmatroska")
1307 (uri (string-append "https://dl.matroska.org/downloads/"
1308 "libmatroska/libmatroska-" version ".tar.xz"))
1310 (base32 "140r3q6n4a0n11zaf76lvyxd9gp435dgm8gn7mj0gar2hjm7ji5w"))))
1311 (build-system cmake-build-system)
1313 `(("libebml" ,libebml)))
1316 (list "-DBUILD_SHARED_LIBS=YES")
1317 #:tests? #f)) ; no test suite
1318 (home-page "https://www.matroska.org")
1319 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
1321 "Matroska aims to become the standard of multimedia container formats.
1322 It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
1323 of XML. EBML enables the Matroska Development Team to gain significant
1324 advantages in terms of future format extensibility, without breaking file
1325 support in old parsers.
1326 libebml is a C++ library to read and write EBML files.")
1327 (license license:lgpl2.1)))
1329 (define-public libva
1337 ;; Newer releases are only available on GitHub.
1338 (string-append "https://github.com/01org/libva/releases/download/"
1339 version "/libva-" version ".tar.bz2")
1340 ;; Keep the old URL around for compatibility.
1341 (string-append "https://www.freedesktop.org/software/vaapi/releases/"
1342 "libva/libva-" version "/libva-" version ".tar.bz2")))
1344 (base32 "0jsq6ia3fzyzvq7lxsrn4a8kn2kx4z3v777xkxn6k4ny5lww2i73"))))
1345 (build-system gnu-build-system)
1347 `(("pkg-config" ,pkg-config)))
1349 `(("libdrm" ,libdrm)
1351 ("libxext" ,libxext)
1352 ("libxfixes" ,libxfixes)
1354 ("wayland" ,wayland)))
1357 (modify-phases %standard-phases
1359 'build 'fix-dlopen-paths
1360 (lambda* (#:key outputs #:allow-other-keys)
1361 (let ((out (assoc-ref outputs "out")))
1362 (substitute* "va/drm/va_drm_auth_x11.c"
1363 (("\"libva-x11\\.so\\.%d\"")
1364 (string-append "\"" out "/lib/libva-x11.so.%d\"")))
1366 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
1367 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
1369 (list (string-append "--with-drivers-path="
1370 (assoc-ref %build-inputs "mesa") "/lib/dri"))
1371 ;; However, we can't write to mesa's store directory, so override the
1372 ;; following make variable to install the dummy driver to libva's
1373 ;; $prefix/lib/dri directory.
1375 (list (string-append "dummy_drv_video_ladir="
1376 (assoc-ref %outputs "out") "/lib/dri"))))
1377 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
1378 (synopsis "Video acceleration library")
1379 (description "The main motivation for VA-API (Video Acceleration API) is
1380 to enable hardware accelerated video decode/encode at various
1381 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
1382 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
1383 (license license:expat)))
1385 (define-public libva-utils
1387 (name "libva-utils")
1392 (uri (string-append "https://github.com/intel/libva-utils/releases/download/"
1393 version "/libva-utils-" version ".tar.bz2"))
1395 (base32 "05rasyqnsg522zqxak1q8rrm1hys7wwbi41kd0szjq0d27awjf4j"))))
1396 (build-system gnu-build-system)
1399 (list "--enable-wayland"
1402 `(("pkg-config" ,pkg-config)))
1404 `(("libdrm" ,libdrm)
1408 ("wayland" ,wayland)))
1409 (home-page "https://01.org/linuxmedia/vaapi")
1410 (synopsis "Collection of testing utilities for VA-API")
1412 "This is a collection of utilities to query and test the @acronym{VA-API,
1413 Video Acceleration API} implemented by the libva library.
1415 These tools require a supported graphics chip, driver, and VA-API back end to
1417 (license license:expat)))
1419 (define-public ffmpeg
1425 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1429 "1yrg9nri54iav86vxy5i8pj51dhikksa04x20d77nc3fsi09405d"))))
1430 (build-system gnu-build-system)
1433 ("fontconfig" ,fontconfig)
1434 ("freetype" ,freetype)
1435 ("frei0r-plugins" ,frei0r-plugins)
1442 ("libbluray" ,libbluray)
1443 ("libcaca" ,libcaca)
1444 ("libcdio-paranoia" ,libcdio-paranoia)
1446 ("libtheora" ,libtheora)
1448 ("libvdpau" ,libvdpau)
1449 ("libvorbis" ,libvorbis)
1452 ("libx264" ,libx264)
1455 ("pulseaudio" ,pulseaudio)
1456 ;; XXX: rav1e depends on rust, which currently only works on x86_64.
1457 ;; See also the related configure flag when changing this.
1458 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1465 ;; FFmpeg is not yet compatible with SRT > 1.4.1.
1467 ("twolame" ,twolame)
1468 ("vidstab" ,vidstab)
1475 ("pkg-config" ,pkg-config)
1476 ("texinfo" ,texinfo)
1480 `(#:test-target "fate"
1482 ;; possible additional inputs:
1483 ;; --enable-avisynth enable reading of AviSynth script
1485 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
1486 ;; --enable-libcelt enable CELT decoding via libcelt [no]
1487 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
1488 ;; and libraw1394 [no]
1489 ;; --enable-libfaac enable AAC encoding via libfaac [no]
1490 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
1491 ;; --enable-libflite enable flite (voice synthesis) support via
1493 ;; --enable-libgme enable Game Music Emu via libgme [no]
1494 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
1495 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
1496 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
1497 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
1498 ;; --enable-libnut enable NUT (de)muxing via libnut,
1499 ;; native (de)muxer exists [no]
1500 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
1501 ;; libopencore-amrnb [no]
1502 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
1503 ;; libopencore-amrwb [no]
1504 ;; --enable-libopencv enable video filtering via libopencv [no]
1505 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
1507 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
1508 ;; --enable-libschroedinger enable Dirac de/encoding via
1509 ;; libschroedinger [no]
1510 ;; --enable-libshine enable fixed-point MP3 encoding via
1512 ;; --enable-libssh enable SFTP protocol via libssh [no]
1513 ;; (libssh2 does not work)
1514 ;; --enable-libstagefright-h264 enable H.264 decoding via
1515 ;; libstagefright [no]
1516 ;; --enable-libutvideo enable Ut Video encoding and decoding via
1518 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
1519 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
1520 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
1521 ;; libvo-amrwbenc [no]
1522 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
1523 ;; --enable-libxavs enable AVS encoding via xavs [no]
1524 ;; --enable-libzmq enable message passing via libzmq [no]
1525 ;; --enable-libzvbi enable teletext support via libzvbi [no]
1526 ;; --enable-opencl enable OpenCL code
1527 '("--enable-avresample"
1528 "--enable-gpl" ; enable optional gpl licensed parts
1531 "--enable-fontconfig"
1536 "--enable-libbluray"
1540 "--enable-libfreetype"
1541 "--enable-libmp3lame"
1544 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1546 '("--enable-librav1e")
1551 "--enable-libtheora"
1552 "--enable-libtwolame"
1553 "--enable-libvidstab"
1554 "--enable-libvorbis"
1563 "--enable-runtime-cpudetect"
1565 ;; The HTML pages take 7.2 MiB
1566 "--disable-htmlpages"
1568 ;; The static libraries are 23 MiB
1571 ;; Runtime cpu detection is not implemented on
1572 ;; MIPS, so we disable some features.
1573 "--disable-mips32r2"
1575 "--disable-mipsdspr2"
1576 "--disable-mipsfpu")
1578 (modify-phases %standard-phases
1581 ;; configure does not work followed by "SHELL=..." and
1582 ;; "CONFIG_SHELL=..."; set environment variables instead
1583 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1584 (let ((out (assoc-ref outputs "out")))
1585 (substitute* "configure"
1586 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1587 (setenv "SHELL" (which "bash"))
1588 (setenv "CONFIG_SHELL" (which "bash"))
1591 (string-append "--prefix=" out)
1592 ;; Add $libdir to the RUNPATH of all the binaries.
1593 (string-append "--extra-ldflags=-Wl,-rpath="
1597 'check 'set-ld-library-path
1599 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1601 (let* ((dso (find-files "." "\\.so$"))
1602 (path (string-join (map dirname dso) ":")))
1603 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1604 (setenv "LD_LIBRARY_PATH" path)
1606 (home-page "https://www.ffmpeg.org/")
1607 (synopsis "Audio and video framework")
1608 (description "FFmpeg is a complete, cross-platform solution to record,
1609 convert and stream audio and video. It includes the libavcodec
1610 audio/video codec library.")
1611 (license license:gpl2+)))
1613 ;; ungoogled-chromium crashes with ffmpeg 4.3, so stick with this version for
1614 ;; now. See <https://issues.guix.gnu.org/41987>.
1615 (define-public ffmpeg-4.2
1621 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1625 "0cddkb5sma9dzy8i59sfls19rhjlq40zn9mh3x666dqkxl5ckxlx"))))
1627 (substitute-keyword-arguments (package-arguments ffmpeg)
1628 ((#:configure-flags flags)
1629 `(delete "--enable-librav1e" ,flags))))
1630 (inputs (fold alist-delete
1631 (package-inputs ffmpeg)
1634 (define-public ffmpeg-3.4
1640 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1644 "1j7mdk9szrljgv4sdx69bm1pnbb3cldbdxbkr42jbdi9zn11gl7g"))))
1646 (substitute-keyword-arguments (package-arguments ffmpeg)
1647 ((#:modules modules %gnu-build-system-modules)
1650 ((#:configure-flags flags)
1653 '("--enable-libdav1d"
1656 "--enable-libsrt")))))
1657 (inputs (fold alist-delete
1658 (package-inputs ffmpeg)
1659 '("dav1d" "libaom" "rav1e" "srt")))))
1661 (define-public ffmpeg-2.8
1667 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1671 "14n0xg22yz1r4apif2idm91s3avcmkz4sl8gyj5763gcy415k2bb"))))
1673 `(#:tests? #f ; XXX: Enable them later, if required
1678 "--extra-cflags=-DFF_API_OLD_ENCODE_VIDEO -DFF_API_OLD_ENCODE_AUDIO")
1680 (modify-phases %standard-phases
1682 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1683 (let ((out (assoc-ref outputs "out")))
1684 (substitute* "configure"
1685 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1686 ;; configure does not work followed by "SHELL=..." and
1687 ;; "CONFIG_SHELL=..."; set environment variables instead.
1688 (setenv "SHELL" (which "bash"))
1689 (setenv "CONFIG_SHELL" (which "bash"))
1692 (string-append "--prefix=" out)
1693 ;; Add $libdir to the RUNPATH of all the binaries.
1694 (string-append "--extra-ldflags=-Wl,-rpath="
1698 'check 'set-ld-library-path
1700 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1702 (let* ((dso (find-files "." "\\.so$"))
1703 (path (string-join (map dirname dso) ":")))
1704 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1705 (setenv "LD_LIBRARY_PATH" path)
1707 (inputs (fold alist-delete
1708 (package-inputs ffmpeg)
1709 '("dav1d" "libaom" "rav1e" "srt")))))
1711 (define-public ffmpeg-for-stepmania
1720 (url "https://github.com/stepmania/ffmpeg")
1721 (commit "eda6effcabcf9c238e4635eb058d72371336e09b")))
1723 (base32 "1by8rmbva8mfrivdbbkr2gx4kga89zqygkd4cfjl76nr8mdcdamb"))
1724 (file-name (git-file-name "ffmpeg" version))))
1726 (substitute-keyword-arguments (package-arguments ffmpeg)
1727 ((#:configure-flags flags)
1728 '(list "--disable-programs"
1731 "--disable-avdevice"
1732 "--disable-swresample"
1733 "--disable-postproc"
1734 "--disable-avfilter"
1736 "--enable-static"))))
1739 (define-public ffmpegthumbnailer
1741 (name "ffmpegthumbnailer")
1746 (url "https://github.com/dirkvdb/ffmpegthumbnailer")
1748 (file-name (git-file-name name version))
1751 "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich"))))
1752 (build-system cmake-build-system)
1754 `(("pkg-config" ,pkg-config)))
1756 `(("ffmpeg" ,ffmpeg)
1757 ("libjpeg-turbo" ,libjpeg-turbo)
1761 `(#:configure-flags (list "-DENABLE_GIO=ON" "-DENABLE_THUMBNAILER=ON")))
1762 (home-page "https://github.com/dirkvdb/ffmpegthumbnailer")
1763 (synopsis "Create thumbnails from video files")
1764 (description "FFmpegthumbnailer is a lightweight video thumbnailer that
1765 can be used by file managers to create thumbnails for your video files. The
1766 thumbnailer uses ffmpeg to decode frames from the video files, so supported
1767 videoformats depend on the configuration flags of ffmpeg.")
1768 (license license:gpl2+)))
1773 (version "3.0.11.1")
1777 "https://download.videolan.org/pub/videolan/vlc/"
1778 (car (string-split version #\-))
1779 "/vlc-" version ".tar.xz"))
1782 "1f46h0hv7fk35zg4iczlp7ib7h2jmh8m4r5klw3g2558ib9134qq"))))
1783 (build-system gnu-build-system)
1787 ("gettext" ,gettext-minimal)
1788 ("pkg-config" ,pkg-config)))
1789 ;; FIXME: Add optional inputs once available.
1791 `(("alsa-lib" ,alsa-lib)
1797 ("fontconfig" ,fontconfig)
1798 ("freetype" ,freetype)
1799 ("fribidi" ,fribidi)
1802 ("libarchive" ,libarchive)
1804 ("libavc1394" ,libavc1394)
1805 ("libbluray" ,libbluray)
1806 ("libcaca" ,libcaca)
1807 ("libcddb" ,libcddb)
1809 ("libdvbpsi" ,libdvbpsi)
1810 ("libdvdnav" ,libdvdnav)
1811 ("libdvdread" ,libdvdread)
1812 ("libebml" ,libebml)
1813 ("libgcrypt" ,libgcrypt)
1815 ("libkate" ,libkate)
1817 ("libmatroska" ,libmatroska)
1818 ("libmicrodns" ,libmicrodns)
1819 ("libmodplug" ,libmodplug)
1820 ("libmpeg2" ,libmpeg2)
1823 ("libraw1394" ,libraw1394)
1824 ("librsvg" ,librsvg)
1825 ("libsamplerate" ,libsamplerate)
1826 ("libsecret" ,libsecret)
1827 ("libssh2" ,libssh2)
1828 ("libupnp" ,libupnp)
1830 ("libvdpau" ,libvdpau)
1831 ("libvorbis" ,libvorbis)
1833 ("libtheora" ,libtheora)
1834 ("libx264" ,libx264)
1835 ("libxext" ,libxext)
1837 ("libxinerama" ,libxinerama)
1838 ("libxml2" ,libxml2)
1840 ("livemedia-utils" ,livemedia-utils)
1845 ("pulseaudio" ,pulseaudio)
1846 ("protobuf" ,protobuf)
1847 ("python" ,python-wrapper)
1850 ("qtx11extras" ,qtx11extras)
1853 ("sdl-image" ,sdl-image)
1855 ("speexdsp" ,speexdsp)
1856 ;; VLC is not yet compatible with SRT > 1.4.1.
1859 ("twolame" ,twolame)
1861 ("wayland" ,wayland)
1862 ("wayland-protocols" ,wayland-protocols)
1864 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1868 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
1869 (assoc-ref %build-inputs "ffmpeg")
1870 "/lib")) ;needed for the tests
1873 (modify-phases %standard-phases
1874 (add-after 'unpack 'patch-source
1875 (lambda* (#:key inputs #:allow-other-keys)
1876 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
1877 (substitute* "configure"
1878 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
1879 (string-append "LIVE555_PREFIX=" livemedia-utils)))
1880 ;; Some of the tests require using the display to test out VLC,
1881 ;; which fails in our sandboxed build system
1882 (substitute* "test/run_vlc.sh"
1883 (("./vlc --ignore-config") "echo"))
1885 (add-after 'strip 'regenerate-plugin-cache
1886 (lambda* (#:key outputs #:allow-other-keys)
1887 ;; The 'install-exec-hook' rule in the top-level Makefile.am
1888 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
1889 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
1890 ;; it references. Thus, we first reset the timestamps of all
1891 ;; these files, and then regenerate the cache such that the
1892 ;; mtimes it includes are always zero instead of being dependent
1893 ;; on the build time.
1894 (let* ((out (assoc-ref outputs "out"))
1895 (pkglibdir (string-append out "/lib/vlc"))
1896 (plugindir (string-append pkglibdir "/plugins"))
1897 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
1898 ;; TODO: Factorize 'reset-timestamps'.
1899 (for-each (lambda (file)
1900 (let ((s (lstat file)))
1901 (unless (eq? (stat:type s) 'symlink)
1903 (find-files plugindir))
1904 (invoke cachegen plugindir))))
1905 (add-after 'install 'wrap-executable
1906 (lambda* (#:key outputs #:allow-other-keys)
1907 (let ((out (assoc-ref outputs "out"))
1908 (plugin-path (getenv "QT_PLUGIN_PATH")))
1909 (wrap-program (string-append out "/bin/vlc")
1910 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
1912 (home-page "https://www.videolan.org/")
1913 (synopsis "Audio and video framework")
1914 (description "VLC is a cross-platform multimedia player and framework
1915 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
1916 streaming protocols.")
1917 (license license:gpl2+)))
1919 (define-public mplayer
1926 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
1930 "0j5mflr0wnklxsvnpmxvk704hscyn2785hvvihj2i3a7b3anwnc2"))))
1931 (build-system gnu-build-system)
1932 ;; FIXME: Add additional inputs once available.
1934 `(("pkg-config" ,pkg-config)
1937 `(("alsa-lib" ,alsa-lib)
1938 ("cdparanoia" ,cdparanoia)
1940 ("fontconfig" ,fontconfig)
1941 ("freetype" ,freetype)
1945 ("libdvdcss" ,libdvdcss)
1946 ("libdvdnav" ,libdvdnav) ; ignored without libdvdread
1947 ("libdvdread" ,libdvdread) ; ignored without libdvdnav
1948 ("libjpeg" ,libjpeg-turbo)
1949 ("libmpeg2" ,libmpeg2)
1950 ("libmpg123" ,mpg123) ; audio codec for MP3
1952 ("libtheora" ,libtheora)
1953 ("libvdpau" ,libvdpau)
1954 ("libvorbis" ,libvorbis)
1956 ("libx264" ,libx264)
1957 ("libxinerama" ,libxinerama)
1959 ("libxxf86dga" ,libxxf86dga)
1963 ("pulseaudio" ,pulseaudio)
1964 ("python" ,python-wrapper)
1969 `(#:tests? #f ; no test target
1971 (modify-phases %standard-phases
1973 ;; configure does not work followed by "SHELL=..." and
1974 ;; "CONFIG_SHELL=..."; set environment variables instead
1975 (lambda* (#:key inputs outputs #:allow-other-keys)
1976 (let ((out (assoc-ref outputs "out"))
1977 (libx11 (assoc-ref inputs "libx11")))
1978 (substitute* "configure"
1979 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1980 (setenv "SHELL" (which "bash"))
1981 (setenv "CONFIG_SHELL" (which "bash"))
1982 (invoke "./configure"
1983 (string-append "--extra-cflags=-I"
1984 libx11 "/include") ; to detect libx11
1985 "--disable-ffmpeg_a" ; disables bundled ffmpeg
1986 (string-append "--prefix=" out)
1987 ;; Enable runtime cpu detection where supported,
1988 ;; and choose a suitable target.
1989 ,@(match (or (%current-target-system)
1992 '("--enable-runtime-cpudetection"
1993 "--target=x86_64-linux"))
1995 '("--enable-runtime-cpudetection"
1996 "--target=i686-linux"))
1998 '("--target=mips3-linux"))
1999 (_ (list (string-append
2001 (or (%current-target-system)
2002 (nix-system->gnu-triplet
2003 (%current-system)))))))
2004 "--disable-iwmmxt")))))))
2005 (home-page "https://www.mplayerhq.hu")
2006 (synopsis "Audio and video player")
2007 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
2008 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
2009 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
2010 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
2011 (license license:gpl2)))
2020 (url "https://github.com/mpv-player/mpv")
2021 (commit (string-append "v" version))))
2022 (file-name (git-file-name name version))
2025 "06cmycd2gb826kf2zv470w6nhzyk9sdhjydsdiinbgb902lzcpfy"))))
2026 (build-system waf-build-system)
2028 `(("perl" ,perl) ; for zsh completion file
2029 ("pkg-config" ,pkg-config)
2030 ("python-docutils" ,python-docutils)))
2031 ;; Missing features: libguess, V4L2
2033 `(("alsa-lib" ,alsa-lib)
2040 ("libbluray" ,libbluray)
2041 ("libcaca" ,libcaca)
2042 ("libbs2b" ,libbs2b)
2043 ("libcdio-paranoia" ,libcdio-paranoia)
2044 ("libdvdread" ,libdvdread)
2045 ("libdvdnav" ,libdvdnav)
2046 ("libjpeg" ,libjpeg-turbo)
2048 ("libvdpau" ,libvdpau)
2050 ("libxext" ,libxext)
2051 ("libxinerama" ,libxinerama)
2052 ("libxrandr" ,libxrandr)
2053 ("libxscrnsaver" ,libxscrnsaver)
2055 ;; XXX: lua > 5.2 is not currently supported; see
2056 ;; waftools/checks/custom.py
2060 ("pulseaudio" ,pulseaudio)
2062 ("shaderc" ,shaderc)
2063 ("vulkan-headers" ,vulkan-headers)
2064 ("vulkan-loader" ,vulkan-loader)
2066 ("wayland" ,wayland)
2067 ("wayland-protocols" ,wayland-protocols)
2068 ("libxkbcommon" ,libxkbcommon)
2069 ("youtube-dl" ,youtube-dl)
2073 (modify-phases %standard-phases
2075 'unpack 'patch-paths
2076 (lambda* (#:key inputs #:allow-other-keys)
2077 (let ((ytdl (assoc-ref inputs "youtube-dl")))
2078 (substitute* "player/lua/ytdl_hook.lua"
2079 (("\"youtube-dl\",")
2080 (string-append "\"" ytdl "/bin/youtube-dl\",")))
2082 (add-before 'configure 'build-reproducibly
2084 ;; Somewhere in the build system library dependencies are enumerated
2085 ;; and passed as linker flags, but the order in which they are added
2086 ;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
2087 ;; Set PYTHONHASHSEED as a workaround for deterministic results.
2088 (setenv "PYTHONHASHSEED" "1")
2091 'configure 'setup-waf
2092 (lambda* (#:key inputs #:allow-other-keys)
2093 (let ((waf (assoc-ref inputs "waf")))
2094 (copy-file (string-append waf "/bin/waf") "waf"))
2097 #:configure-flags (list "--enable-libmpv-shared"
2100 "--disable-build-date")
2101 ;; No check function defined.
2103 (home-page "https://mpv.io/")
2104 (synopsis "Audio and video player")
2105 (description "mpv is a general-purpose audio and video player. It is a
2106 fork of mplayer2 and MPlayer. It shares some features with the former
2107 projects while introducing many more.")
2108 (license license:gpl2+)))
2110 (define-public gnome-mpv
2111 (deprecated-package "gnome-mpv" celluloid))
2113 (define-public mpv-mpris
2121 (url "https://github.com/hoyon/mpv-mpris")
2123 (file-name (git-file-name name version))
2126 "07p6li5z38pkfd40029ag2jqx917vyl3ng5p2i4v5a0af14slcnk"))))
2127 (build-system copy-build-system)
2130 '(("mpris.so" "lib/"))
2132 (modify-phases %standard-phases
2133 (add-before 'install 'build
2135 (setenv "CC" (which "gcc"))
2136 (invoke "make"))))))
2138 `(("pkg-config" ,pkg-config)))
2142 (home-page "https://github.com/hoyon/mpv-mpris")
2143 (synopsis "MPRIS plugin for mpv")
2144 (description "This package provides an @dfn{MPRIS} (Media Player Remote
2145 Interfacing Specification) plugin for the @code{mpv} media player. It implements
2146 @code{org.mpris.MediaPlayer2} and @code{org.mpris.MediaPlayer2.Player} D-Bus
2149 To load this plugin, specify the following option when starting mpv:
2150 @code{--script $GUIX_PROFILE/lib/mpris.so} or link it into
2151 @file{$HOME/.config/mpv/scripts}.")
2152 (license license:expat)))
2154 (define-public libvpx
2161 (url "https://chromium.googlesource.com/webm/libvpx")
2162 (commit (string-append "v" version))))
2163 (file-name (git-file-name name version))
2166 "16xv6ambc82g14h1y0q1vyy57wp6j9fbp0nk0wd5csnrw407rhry"))
2167 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
2168 (build-system gnu-build-system)
2170 `(#:configure-flags (list "--enable-shared"
2173 ;; Limit size to avoid CVE-2015-1258
2174 "--size-limit=16384x16384"
2175 (string-append "--prefix=" (assoc-ref %outputs "out")))
2176 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2177 (assoc-ref %outputs "out") "/lib"))
2178 #:phases (modify-phases %standard-phases
2180 (lambda* (#:key configure-flags #:allow-other-keys)
2181 ;; The configure script does not understand some of the GNU
2182 ;; options, so we only add the flags specified above.
2183 (apply invoke "./configure" configure-flags))))
2185 ;; XXX: The test suite wants to download 871 files from a cloud storage
2186 ;; service (see test/test-data.sha1). It is possible to specify a
2187 ;; custom directory, but there seems to be no tarball with all files.
2192 (synopsis "VP8/VP9 video codec")
2193 (description "libvpx is a codec for the VP8/VP9 video compression format.")
2194 (license license:bsd-3)
2195 (home-page "https://www.webmproject.org/")))
2197 (define-public youtube-dl
2200 (version "2020.12.14")
2203 (uri (string-append "https://youtube-dl.org/downloads/latest/"
2204 "youtube-dl-" version ".tar.gz"))
2207 "0ws2nsvn0qlnnyxz9g95ffygscfmg5npzmwbq8iyyi6b2njsb0cn"))
2210 ;; Delete the pre-generated files, except for the man page
2211 ;; which requires 'pandoc' to build.
2212 (for-each delete-file '("youtube-dl"
2213 ;;pandoc is needed to generate
2215 "youtube-dl.bash-completion"
2219 (build-system python-build-system)
2221 ;; The problem here is that the directory for the man page and completion
2222 ;; files is relative, and for some reason, setup.py uses the
2223 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
2224 ;; So, we need pass the prefix directly. In addition, make sure the Bash
2225 ;; completion file is called 'youtube-dl' rather than
2226 ;; 'youtube-dl.bash-completion'.
2227 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
2228 #:phases (modify-phases %standard-phases
2229 (add-after 'unpack 'default-to-the-ffmpeg-input
2231 ;; See <https://issues.guix.gnu.org/43418#5>.
2232 ;; ffmpeg is big but required to request free formats
2233 ;; from, e.g., YouTube so pull it in unconditionally.
2234 ;; Continue respecting the --ffmpeg-location argument.
2235 (substitute* "youtube_dl/postprocessor/ffmpeg.py"
2236 (("\\.get\\('ffmpeg_location'\\)" match)
2237 (format #f "~a or '~a'" match (which "ffmpeg"))))
2239 (add-before 'build 'build-generated-files
2241 ;; Avoid the make targets that require pandoc.
2245 ;;"youtube-dl.1" ; needs pandoc
2246 "youtube-dl.bash-completion"
2248 "youtube-dl.fish")))
2249 (add-before 'install 'fix-the-data-directories
2250 (lambda* (#:key outputs #:allow-other-keys)
2251 (let ((prefix (assoc-ref outputs "out")))
2252 (mkdir "bash-completion")
2253 (rename-file "youtube-dl.bash-completion"
2254 "bash-completion/youtube-dl")
2255 (substitute* "setup.py"
2256 (("youtube-dl\\.bash-completion")
2257 "bash-completion/youtube-dl")
2259 (string-append "'" prefix "/etc/"))
2261 (string-append "'" prefix "/share/")))
2263 (add-after 'install 'install-completion
2264 (lambda* (#:key outputs #:allow-other-keys)
2265 (let* ((out (assoc-ref outputs "out"))
2266 (zsh (string-append out
2267 "/share/zsh/site-functions")))
2269 (copy-file "youtube-dl.zsh"
2270 (string-append zsh "/_youtube-dl"))
2275 `(("ffmpeg" ,ffmpeg)))
2276 (synopsis "Download videos from YouTube.com and other sites")
2278 "Youtube-dl is a small command-line program to download videos from
2279 YouTube.com and many more sites.")
2280 (home-page "https://yt-dl.org")
2281 (license license:public-domain)))
2283 (define-public youtube-dl-gui
2285 (name "youtube-dl-gui")
2290 (uri (pypi-uri "Youtube-DLG" version))
2293 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
2294 (build-system python-build-system)
2296 ;; In Guix, wxpython has not yet been packaged for Python 3.
2297 `(#:python ,python-2
2298 ;; This package has no tests.
2301 (modify-phases %standard-phases
2302 (add-before 'build 'patch-source
2303 (lambda* (#:key inputs #:allow-other-keys)
2304 ;; The youtube-dl-gui program lets you configure options. Some of
2305 ;; them are problematic, so we change their defaults.
2306 (substitute* "youtube_dl_gui/optionsmanager.py"
2307 ;; When this is true, the builder process will try (and fail) to
2308 ;; write logs to the builder user's home directory.
2309 (("'enable_log': True") "'enable_log': False")
2310 ;; This determines which youtube-dl program youtube-dl-gui will
2311 ;; run. If we don't set this, then youtube-dl-gui might download
2312 ;; an arbitrary copy from the Internet into the user's home
2313 ;; directory and run it, so let's make sure youtube-dl-gui uses
2314 ;; the youtube-dl from the inputs by default.
2315 (("'youtubedl_path': self.config_path")
2316 (string-append "'youtubedl_path': '"
2317 (assoc-ref inputs "youtube-dl")
2319 ;; When this is True, when youtube-dl-gui is finished downloading
2320 ;; a file, it will try (and possibly fail) to open the directory
2321 ;; containing the downloaded file. This can fail because it
2322 ;; assumes that xdg-open is in PATH. Unfortunately, simply
2323 ;; adding xdg-utils to the propagated inputs is not enough to
2324 ;; make this work, so for now we set the default to False.
2325 (("'open_dl_dir': True") "'open_dl_dir': False"))
2326 ;; The youtube-dl program from the inputs is actually a wrapper
2327 ;; script written in bash, so attempting to invoke it as a python
2328 ;; script will fail.
2329 (substitute* "youtube_dl_gui/downloaders.py"
2330 (("cmd = \\['python', self\\.youtubedl_path\\]")
2331 "cmd = [self.youtubedl_path]"))
2332 ;; Use relative paths for installing data files so youtube-dl-gui
2333 ;; installs the files relative to its prefix in the store, rather
2334 ;; than relative to /. Also, instead of installing data files into
2335 ;; $prefix/usr/share, install them into $prefix/share for
2336 ;; consistency (see: (standards) Directory Variables).
2337 (substitute* "setup.py"
2338 (("= '/usr/share") "= 'share"))
2339 ;; Update get_locale_file() so it finds the installed localization
2341 (substitute* "youtube_dl_gui/utils.py"
2342 (("os\\.path\\.join\\('/usr', 'share'")
2343 (string-append "os.path.join('"
2344 (assoc-ref %outputs "out")
2347 (add-after 'install 'create-desktop-file
2348 (lambda* (#:key outputs #:allow-other-keys)
2349 (let* ((out (assoc-ref outputs "out"))
2350 (applications (string-append out "/share/applications")))
2351 (mkdir-p applications)
2352 (call-with-output-file
2353 (string-append applications "/youtube-dl-gui.desktop")
2358 Name=Youtube-dl GUI~@
2359 Comment=Graphical interface to download video with youtube-dl~@
2360 Exec=youtube-dl-gui~@
2361 TryExec=youtube-dl-gui~@
2363 Icon=youtube-dl-gui~@
2365 Categories=AudioVideo;Audio;Video;Network~%")))
2368 `(("python2-wxpython" ,python2-wxpython)
2369 ("youtube-dl" ,youtube-dl)))
2370 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
2372 "GUI (Graphical User Interface) for @command{youtube-dl}")
2374 "Youtube-dlG is a GUI (Graphical User Interface) for
2375 @command{youtube-dl}. You can use it to download videos from YouTube and any
2376 other site that youtube-dl supports.")
2377 (license license:unlicense)))
2379 (define-public you-get
2382 (version "0.4.1488")
2386 (url "https://github.com/soimort/you-get")
2387 (commit (string-append "v" version))))
2388 (file-name (git-file-name name version))
2391 "10dx1gka92m42f8ah1mzylbd71apzrphfa48r5ci7g1j8ysdcs7q"))))
2392 (build-system python-build-system)
2394 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
2397 (modify-phases %standard-phases
2398 (add-after 'unpack 'qualify-input-references
2399 ;; Explicitly invoke the input ffmpeg, instead of whichever one
2400 ;; happens to be in the user's $PATH at run time.
2401 (lambda* (#:key inputs #:allow-other-keys)
2402 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
2404 (substitute* "src/you_get/processor/ffmpeg.py"
2405 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
2406 ;; same string is also used when sniffing ffmpeg's output.
2407 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
2408 (string-append prefix "'" ffmpeg "'")))
2410 #:tests? #f)) ; XXX some tests need Internet access
2411 (synopsis "Download videos, audio, or images from Web sites")
2413 "You-Get is a command-line utility to download media contents (videos,
2414 audio, images) from the Web. It can use either mpv or vlc for playback.")
2415 (home-page "https://you-get.org/")
2416 (license license:expat)))
2418 (define-public youtube-viewer
2420 (name "youtube-viewer")
2425 (url "https://github.com/trizen/youtube-viewer")
2427 (file-name (git-file-name name version))
2430 "16gskhzkvgzhfb89zqfmvz7kmhjsyc38f2dl86ksal4p69kn8j3g"))))
2431 (build-system perl-build-system)
2433 `(("perl-module-build" ,perl-module-build)))
2435 `(("perl-data-dump" ,perl-data-dump)
2436 ("perl-file-sharedir" ,perl-file-sharedir)
2437 ("perl-gtk2" ,perl-gtk2)
2438 ("perl-json" ,perl-json)
2439 ("perl-json-xs" ,perl-json-xs)
2440 ("perl-libwww" ,perl-libwww)
2441 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2442 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
2443 ("perl-memoize" ,perl-memoize)
2444 ("perl-mozilla-ca" ,perl-mozilla-ca)
2445 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
2446 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
2447 ("xdg-utils" ,xdg-utils)
2449 ;; Some videos play without youtube-dl, but others silently fail to.
2450 ("youtube-dl" ,youtube-dl)))
2452 `(#:modules ((guix build perl-build-system)
2455 ;; gtk-2/3 variants are both installed by default but the gtk3 variant
2456 ;; is broken without perl-gtk3.
2457 #:module-build-flags '("--gtk2")
2459 (modify-phases %standard-phases
2460 (add-after 'unpack 'refer-to-inputs
2461 (lambda* (#:key inputs #:allow-other-keys)
2462 (substitute* "lib/WWW/YoutubeViewer.pm"
2464 (format #f "'~a/bin/youtube-dl'"
2465 (assoc-ref inputs "youtube-dl"))))
2466 (substitute* '("bin/gtk2-youtube-viewer"
2467 "bin/gtk3-youtube-viewer")
2469 (format #f "'~a/bin/xdg-open'"
2470 (assoc-ref inputs "xdg-utils"))))
2472 (add-after 'install 'install-desktop
2473 (lambda* (#:key outputs #:allow-other-keys)
2474 (let* ((out (assoc-ref outputs "out"))
2475 (sharedir (string-append out "/share")))
2476 (install-file "share/gtk-youtube-viewer.desktop"
2477 (string-append sharedir "/applications"))
2478 (install-file "share/icons/gtk-youtube-viewer.png"
2479 (string-append sharedir "/pixmaps"))
2481 (add-after 'install 'wrap-program
2482 (lambda* (#:key outputs #:allow-other-keys)
2483 (let* ((out (assoc-ref outputs "out"))
2484 (bin-dir (string-append out "/bin/"))
2485 (site-dir (string-append out "/lib/perl5/site_perl/"))
2486 (lib-path (getenv "PERL5LIB")))
2487 (for-each (cut wrap-program <>
2488 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
2489 (find-files bin-dir))
2492 "Lightweight application for searching and streaming videos from YouTube")
2494 "Youtube-viewer searches and plays YouTube videos in a native player.
2495 It comes with various search options; it can search for videos, playlists
2496 and/or channels. The videos are streamed directly in a selected video player
2497 at the best resolution (customizable) and with closed-captions (if available).
2498 Both command-line and GTK2 interface are available.")
2499 (home-page "https://github.com/trizen/youtube-viewer")
2500 (license license:perl-license)))
2502 (define-public libbluray
2508 (uri (string-append "https://download.videolan.org/videolan/"
2509 name "/" version "/"
2510 name "-" version ".tar.bz2"))
2513 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
2514 (build-system gnu-build-system)
2516 `(#:configure-flags '("--disable-bdjava-jar"
2519 (modify-phases %standard-phases
2520 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
2521 ;; Avoid the need to propagate libxml2 by referring to it
2522 ;; directly, as is already done for fontconfig & freetype.
2523 (lambda* (#:key inputs #:allow-other-keys)
2524 (let ((libxml2 (assoc-ref inputs "libxml2")))
2525 (substitute* "configure"
2526 ((" libxml-2.0") ""))
2527 (substitute* "src/libbluray.pc.in"
2528 (("^Libs.private:" field)
2529 (string-append field " -L" libxml2 "/lib -lxml2")))
2531 (add-before 'build 'fix-dlopen-paths
2532 (lambda* (#:key inputs #:allow-other-keys)
2533 (let ((libaacs (assoc-ref inputs "libaacs"))
2534 (libbdplus (assoc-ref inputs "libbdplus")))
2535 (substitute* "src/libbluray/disc/aacs.c"
2537 (string-append "\"" libaacs "/lib/libaacs\"")))
2538 (substitute* "src/libbluray/disc/bdplus.c"
2540 (string-append "\"" libbdplus "/lib/libbdplus\"")))
2542 (native-inputs `(("pkg-config" ,pkg-config)))
2544 `(("fontconfig" ,fontconfig)
2545 ("freetype" ,freetype)
2546 ("libaacs" ,libaacs)
2547 ("libbdplus" ,libbdplus)
2548 ("libxml2" ,libxml2)))
2549 (home-page "https://www.videolan.org/developers/libbluray.html")
2550 (synopsis "Blu-Ray Disc playback library")
2552 "libbluray is a library designed for Blu-Ray Disc playback for media
2553 players, like VLC or MPlayer.")
2554 (license license:lgpl2.1+)))
2556 (define-public libdvdread
2562 (uri (string-append "https://download.videolan.org/videolan/"
2563 "libdvdread/" version "/"
2564 "libdvdread-" version ".tar.bz2"))
2567 "1c7yqqn67m3y3n7nfrgrnzz034zjaw5caijbwbfrq89v46ph257r"))))
2568 (build-system gnu-build-system)
2570 `(#:configure-flags '("--with-libdvdcss=yes")))
2572 `(("pkg-config" ,pkg-config)))
2574 `(("libdvdcss" ,libdvdcss)))
2575 (home-page "http://dvdnav.mplayerhq.hu/")
2576 (synopsis "Library for reading video DVDs")
2578 "Libdvdread provides a simple foundation for reading DVD video
2579 disks. It provides the functionality that is required to access many
2580 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
2581 authentication and descrambling (if an external libdvdcss library is
2583 (license license:gpl2+)))
2585 (define-public dvdauthor
2592 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
2596 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
2597 (build-system gnu-build-system)
2599 `(("libdvdread" ,libdvdread)
2601 ("imagemagick" ,imagemagick)
2602 ("libxml2" ,libxml2)
2603 ("freetype" ,freetype)))
2605 `(("pkg-config" ,pkg-config)))
2606 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
2607 (description "@command{dvdauthor} will generate a DVD-Video movie from a
2608 MPEG-2 stream containing VOB packets.")
2609 (home-page "http://dvdauthor.sourceforge.net")
2610 (license license:gpl3+)))
2612 (define-public libdvdnav
2618 (uri (string-append "https://download.videolan.org/videolan/"
2619 "libdvdnav/" version "/"
2620 "libdvdnav-" version ".tar.bz2"))
2623 "0cv7j8irsv1n2dadlnhr6i1b8pann2ah6xpxic41f04my6ba6rp5"))))
2624 (build-system gnu-build-system)
2626 `(("pkg-config" ,pkg-config)))
2628 `(("libdvdread" ,libdvdread)))
2629 (home-page "http://dvdnav.mplayerhq.hu/")
2630 (synopsis "Library for video DVD navigation features")
2632 "Libdvdnav is a library for developers of multimedia
2633 applications. It allows easy use of sophisticated DVD navigation features
2634 such as DVD menus, multiangle playback and even interactive DVD games. All
2635 this functionality is provided through a simple API which provides the DVD
2636 playback as a single logical stream of blocks, intermitted by special
2637 dvdnav events to report certain conditions. The main usage of libdvdnav is
2638 a loop regularly calling a function to get the next block, surrounded by
2639 additional calls to tell the library of user interaction. The whole
2640 DVD virtual machine and internal playback states are completely
2642 (license license:gpl2+)))
2644 (define-public libdvdcss
2650 (uri (string-append "https://download.videolan.org/pub/"
2651 name "/" version "/"
2652 name "-" version ".tar.bz2"))
2655 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
2656 (build-system gnu-build-system)
2657 (home-page "https://www.videolan.org/developers/libdvdcss.html")
2658 (synopsis "Library for accessing DVDs as block devices")
2660 "libdvdcss is a simple library designed for accessing DVDs like a block
2661 device without having to bother about the decryption.")
2662 (license license:gpl2+)))
2664 (define-public srt2vtt
2671 "https://files.dthompson.us/srt2vtt/srt2vtt-"
2675 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
2676 (build-system gnu-build-system)
2678 `(("guile" ,guile-2.0)))
2679 (synopsis "SubRip to WebVTT subtitle converter")
2680 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
2681 for use with HTML5 video.")
2682 (home-page "https://dthompson.us/projects/srt2vtt.html")
2683 (license license:gpl3+)))
2685 (define-public avidemux
2692 "mirror://sourceforge/avidemux/avidemux/" version "/"
2693 "avidemux_" version ".tar.gz"))
2696 "1kwkn976ppahrcr74bnv6sqx75pzl9y21m1mvr5ksi1m6lgp924s"))
2697 (patches (search-patches "avidemux-install-to-lib.patch"))))
2698 (build-system cmake-build-system)
2701 ("pkg-config" ,pkg-config)
2702 ("python" ,python-wrapper)
2703 ("qttools" ,qttools)
2705 ;; FIXME: Once packaged, add libraries not found during the build.
2707 `(("alsa-lib" ,alsa-lib)
2708 ("fontconfig" ,fontconfig)
2709 ("freetype" ,freetype)
2710 ("fribidi" ,fribidi)
2716 ("libvdpau" ,libvdpau)
2717 ("libvorbis" ,libvorbis)
2720 ("pulseaudio" ,pulseaudio)
2725 `(#:tests? #f ; no check target
2727 ;; Make sure files inside the included ffmpeg tarball are
2729 (let ((ffmpeg "ffmpeg-4.2.3"))
2730 (modify-phases %standard-phases
2731 (add-before 'patch-source-shebangs 'unpack-ffmpeg
2733 (with-directory-excursion "avidemux_core/ffmpeg_package"
2734 (invoke "tar" "xf" (string-append ffmpeg ".tar.bz2"))
2735 (delete-file (string-append ffmpeg ".tar.bz2")))
2737 (add-after 'patch-source-shebangs 'repack-ffmpeg
2739 (with-directory-excursion "avidemux_core/ffmpeg_package"
2740 (substitute* (string-append ffmpeg "/configure")
2741 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2742 (invoke "tar" "cjf" (string-append ffmpeg ".tar.bz2") ffmpeg
2743 ;; avoid non-determinism in the archive
2744 "--sort=name" "--mtime=@0"
2745 "--owner=root:0" "--group=root:0")
2746 (delete-file-recursively ffmpeg))
2750 ;; Copy-paste settings from the cmake build system.
2751 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2752 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2755 (lambda* (#:key inputs outputs #:allow-other-keys)
2756 (let* ((out (assoc-ref outputs "out"))
2757 (lib (string-append out "/lib"))
2760 (lambda* (component srcdir #:optional (args '()))
2761 (let ((builddir (string-append "build_" component)))
2763 (with-directory-excursion builddir
2764 (apply invoke "cmake"
2765 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
2766 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
2767 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
2768 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
2769 "\"-Wl,-rpath=" lib "\"")
2770 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
2771 (string-append "../" srcdir)
2775 (number->string (parallel-job-count)))
2776 (invoke "make" "install"))))))
2778 (build_component "core" "avidemux_core")
2779 (build_component "cli" "avidemux/cli")
2780 (build_component "qt4" "avidemux/qt4")
2781 (build_component "plugins_common" "avidemux_plugins"
2782 '("-DPLUGIN_UI=COMMON"))
2783 (build_component "plugins_cli" "avidemux_plugins"
2784 '("-DPLUGIN_UI=CLI"))
2785 (build_component "plugins_qt4" "avidemux_plugins"
2786 '("-DPLUGIN_UI=QT4"))
2787 (build_component "plugins_settings" "avidemux_plugins"
2788 '("-DPLUGIN_UI=SETTINGS"))
2789 ;; Remove .exe and .dll file.
2790 (delete-file-recursively
2791 (string-append out "/share/ADM6_addons"))
2793 (delete 'install)))))
2794 (home-page "http://fixounet.free.fr/avidemux/")
2795 (synopsis "Video editor")
2796 (description "Avidemux is a video editor designed for simple cutting,
2797 filtering and encoding tasks. It supports many file types, including AVI,
2798 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
2799 can be automated using projects, job queue and powerful scripting
2801 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
2802 ;; Software with various licenses is included, see License.txt.
2803 (license license:gpl2+)))
2805 (define-public vapoursynth
2807 (name "vapoursynth")
2812 (url "https://github.com/vapoursynth/vapoursynth")
2813 (commit (string-append "R" version))))
2814 (file-name (git-file-name name version))
2817 "1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
2818 (build-system gnu-build-system)
2820 `(("autoconf" ,autoconf)
2821 ("automake" ,automake)
2822 ("cython" ,python-cython)
2823 ("libtool" ,libtool)
2824 ("pkg-config" ,pkg-config)
2828 `(("ffmpeg" ,ffmpeg)
2830 ("tesseract-ocr" ,tesseract-ocr)
2832 (home-page "http://www.vapoursynth.com/")
2833 (synopsis "Video processing framework")
2834 (description "VapourSynth is a C++ library and Python module for video
2835 manipulation. It aims to be a modern rewrite of Avisynth, supporting
2836 multithreading, generalized colorspaces, per frame properties, and videos with
2838 ;; src/core/cpufeatures only allows x86, ARM or PPC
2839 (supported-systems (fold delete %supported-systems
2840 '("mips64el-linux" "aarch64-linux")))
2841 ;; As seen from the source files.
2842 (license license:lgpl2.1+)))
2851 "http://downloads.xvid.com/downloads/xvidcore-"
2852 version ".tar.bz2"))
2855 "1xyg3amgg27zf7188kss7y248s0xhh1vv8rrk0j9bcsd5nasxsmf"))))
2856 (build-system gnu-build-system)
2857 (native-inputs `(("yasm" ,yasm)))
2860 (modify-phases %standard-phases
2861 (add-before 'configure 'pre-configure
2863 (chdir "build/generic")
2864 (substitute* "configure"
2865 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2867 #:tests? #f)) ; no test suite
2868 (home-page "https://www.xvid.com/")
2869 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
2870 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
2871 codec library. It uses ASP features such as b-frames, global and quarter
2872 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
2873 and custom quantization matrices.")
2874 (license license:gpl2+)))
2876 (define-public streamlink
2883 (uri (pypi-uri "streamlink" version))
2886 "0ymqxzpwk7mr77w0dnnv7dj63d46q7cl1l4vj9llgn8jfaj64ypq"))))
2887 (build-system python-build-system)
2888 (home-page "https://github.com/streamlink/streamlink")
2890 `(("python-freezegun" ,python-freezegun)
2891 ("python-pytest" ,python-pytest)
2892 ("python-mock" ,python-mock)
2893 ("python-requests-mock" ,python-requests-mock)))
2895 `(("python-pysocks" ,python-pysocks)
2896 ("python-websocket-client" ,python-websocket-client)
2897 ("python-iso3166" ,python-iso3166)
2898 ("python-iso639" ,python-iso639)
2899 ("python-isodate" ,python-isodate)
2900 ("python-pycryptodome" ,python-pycryptodome)
2901 ("python-requests" ,python-requests)
2902 ("python-urllib3" ,python-urllib3)))
2903 (synopsis "Extract streams from various services")
2904 (description "Streamlink is command-line utility that extracts streams
2905 from sites like Twitch.tv and pipes them into a video player of choice.")
2906 (license license:bsd-2)))
2908 (define-public twitchy
2909 (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag
2912 (version (git-version "3.4" "1" commit))
2917 (url "https://github.com/BasioMeusPuga/twitchy")
2919 (file-name (git-file-name name version))
2922 "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7"))))
2923 (build-system python-build-system)
2926 (modify-phases %standard-phases
2927 (add-after 'unpack 'patch-paths
2928 (lambda* (#:key inputs #:allow-other-keys)
2929 (substitute* "twitchy/twitchy_play.py"
2931 (string-append "\"" (assoc-ref inputs "streamlink")
2932 "/bin/streamlink ")))
2934 (add-before 'check 'check-setup
2936 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
2938 (add-after 'install 'install-rofi-plugin
2939 (lambda* (#:key outputs #:allow-other-keys)
2940 (install-file "plugins/rofi-twitchy"
2941 (string-append (assoc-ref outputs "out")
2945 `(("python-requests" ,python-requests)
2946 ("streamlink" ,streamlink)))
2947 (home-page "https://github.com/BasioMeusPuga/twitchy")
2948 (synopsis "Command-line interface for Twitch.tv")
2950 "This package provides a command-line interface for Twitch.tv")
2951 (license license:gpl3+))))
2960 (url "https://github.com/mltframework/mlt")
2961 (commit (string-append "v" version))))
2962 (file-name (git-file-name name version))
2965 "0jxv848ykw0csbnayrd710ylw46m0picfv7rpzsxz1vh4jzs395k"))))
2966 (build-system gnu-build-system)
2968 `(#:tests? #f ; no tests
2969 #:make-flags '("CC=gcc" "CXX=g++")
2971 (list "--enable-gpl3"
2974 (modify-phases %standard-phases
2976 'configure 'override-LDFLAGS
2977 (lambda* (#:key outputs #:allow-other-keys)
2978 (substitute* "config.mak"
2980 (string-append "LDFLAGS+=-Wl,-rpath="
2981 (assoc-ref outputs "out")
2985 `(("alsa-lib" ,alsa-lib)
2988 ("frei0r-plugins" ,frei0r-plugins)
2989 ("gdk-pixbuf" ,gdk-pixbuf)
2991 ("libxml2" ,libxml2)
2994 ("libexif" ,libexif)
2995 ("libvorbis" ,libvorbis)
2996 ("rubberband" ,rubberband)
2997 ("libsamplerate" ,libsamplerate)
2998 ("pulseaudio" ,pulseaudio)
3004 `(("pkg-config" ,pkg-config)))
3005 (home-page "https://www.mltframework.org/")
3006 (synopsis "Author, manage, and run multitrack audio/video compositions")
3008 "MLT is a multimedia framework, designed and developed for television
3009 broadcasting. It provides a toolkit for broadcasters, video editors, media
3010 players, transcoders, web streamers and many more types of applications. The
3011 functionality of the system is provided via an assortment of ready to use
3012 tools, XML authoring components, and an extensible plug-in based API.")
3013 (license license:gpl3)))
3015 (define-public v4l-utils
3021 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
3022 "/v4l-utils-" version ".tar.bz2"))
3025 "1xr66y6w422hil6s7n8d61a2vhwh4im8l267amf41jvw7xqihqcm"))))
3026 (build-system gnu-build-system)
3027 ;; Separate graphical tools in order to save almost 1 GiB on the closure
3028 ;; for the common case.
3029 (outputs '("out" "gui"))
3032 (list "--disable-static"
3033 (string-append "--with-udevdir="
3034 (assoc-ref %outputs "out")
3037 (modify-phases %standard-phases
3038 (add-after 'install 'split
3039 (lambda* (#:key outputs #:allow-other-keys)
3040 (let ((out (assoc-ref outputs "out"))
3041 (gui (assoc-ref outputs "gui")))
3042 (mkdir-p (string-append gui "/bin"))
3043 (mkdir-p (string-append gui "/share/man/man1"))
3044 (mkdir-p (string-append gui "/share/applications"))
3049 (rename-file (string-append out file)
3050 (string-append gui file)))
3052 (string-append "/bin/" prog)
3053 (string-append "/share/man/man1/" prog ".1")
3054 (string-append "/share/applications/" prog ".desktop"))))
3055 '("qv4l2" "qvidcap"))
3056 (copy-recursively (string-append out "/share/icons")
3057 (string-append gui "/share/icons"))
3058 (delete-file-recursively (string-append out "/share/icons"))
3059 (rmdir (string-append out "/share/applications"))
3063 ("pkg-config" ,pkg-config)))
3065 `(("alsa-lib" ,alsa-lib)
3067 ("libjpeg" ,libjpeg-turbo)
3071 (synopsis "Realtime video capture utilities for Linux")
3072 (description "The v4l-utils provide a series of libraries and utilities to
3073 be used for realtime video capture via Linux-specific APIs.")
3074 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
3075 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
3076 (license (list license:lgpl2.1+ license:gpl2))))
3085 (url "https://github.com/obsproject/obs-studio")
3087 (file-name (git-file-name name version))
3090 "0p8wdzm9imn3s17arr206sz92g4pkacfcpfbwvhvgkrrs4w000bx"))))
3091 (build-system cmake-build-system)
3094 (list (string-append "-DOBS_VERSION_OVERRIDE=" ,version)
3095 "-DENABLE_UNIT_TESTS=TRUE")
3097 (modify-phases %standard-phases
3098 (add-after 'install 'wrap-executable
3099 (lambda* (#:key outputs #:allow-other-keys)
3100 (let ((out (assoc-ref outputs "out"))
3101 (plugin-path (getenv "QT_PLUGIN_PATH")))
3102 (wrap-program (string-append out "/bin/obs")
3103 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
3106 `(("cmocka" ,cmocka)
3107 ("pkg-config" ,pkg-config)))
3109 `(("alsa-lib" ,alsa-lib)
3113 ("fontconfig" ,fontconfig)
3114 ("freetype" ,freetype)
3116 ("jansson" ,jansson)
3117 ("libx264" ,libx264)
3118 ("libxcomposite" ,libxcomposite)
3119 ("mbedtls" ,mbedtls-apache)
3121 ("pulseaudio" ,pulseaudio)
3124 ("qtx11extras" ,qtx11extras)
3125 ("speexdsp" ,speexdsp)
3126 ("v4l-utils" ,v4l-utils)
3128 (synopsis "Live streaming software")
3129 (description "Open Broadcaster Software provides a graphical interface for
3130 video recording and live streaming. OBS supports capturing audio and video
3131 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
3133 (home-page "https://obsproject.com")
3134 (license license:gpl2+)))
3136 (define-public libvdpau
3144 (url "https://gitlab.freedesktop.org/vdpau/libvdpau.git")
3146 (file-name (git-file-name name version))
3149 "1hc4mcrbr1yhfiy4zfd8wc2iiqbp90z6jswap0jia20vmyk5lqld"))))
3150 (build-system meson-build-system)
3152 `(("pkg-config" ,pkg-config)))
3154 `(("libx11" ,libx11 "out")
3155 ("libxext" ,libxext)
3156 ("xorgproto" ,xorgproto)))
3157 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3158 (synopsis "Video Decode and Presentation API")
3159 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
3160 provides an interface to video decode acceleration and presentation hardware
3161 present in modern GPUs.")
3162 (license (license:x11-style "file://COPYING"))))
3164 (define-public vdpauinfo
3172 (url "https://gitlab.freedesktop.org/vdpau/vdpauinfo")
3174 (file-name (git-file-name name version))
3176 (base32 "0s84bavxr39w0r7zfaac7kpbfsg88hgymqyzcr0yvbj1yry3liz2"))))
3177 (build-system gnu-build-system)
3180 (modify-phases %standard-phases
3182 ;; ./autogen.sh runs ./configure too soon.
3184 (invoke "autoreconf" "-fiv"))))))
3186 `(("autoconf" ,autoconf)
3187 ("automake" ,automake)
3189 ("pkg-config" ,pkg-config)))
3191 `(("libvdpau" ,libvdpau)))
3192 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3193 (synopsis "Tool to query the capabilities of a VDPAU implementation")
3194 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
3196 (license (license:x11-style "file://COPYING"))))
3198 (define-public libvdpau-va-gl
3200 (name "libvdpau-va-gl")
3205 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
3206 "releases/download/v" version "/libvdpau-va-gl-"
3210 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
3211 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
3212 (modules '((guix build utils)))
3213 (snippet '(begin (delete-file-recursively "3rdparty")
3215 (build-system cmake-build-system)
3217 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
3219 `(("libvdpau" ,libvdpau)
3220 ("pkg-config" ,pkg-config)))
3224 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
3225 (synopsis "VDPAU driver with VA-API/OpenGL backend")
3227 "Many applications can use VDPAU to accelerate portions of the video
3228 decoding process and video post-processing to the GPU video hardware. Since
3229 there is no VDPAU available on Intel chips, they fall back to different drawing
3230 techniques. This driver uses OpenGL under the hood to accelerate drawing and
3231 scaling and VA-API (if available) to accelerate video decoding.")
3232 (license license:expat)))
3234 (define-public recordmydesktop
3236 (name "recordmydesktop")
3240 (uri (string-append "mirror://sourceforge/" name "/" name "/"
3241 version "/recordmydesktop-" version ".tar.gz"))
3244 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
3245 (build-system gnu-build-system)
3246 (inputs `(("popt" ,popt)
3251 ("libxfixes" ,libxfixes)
3252 ("libxdamage" ,libxdamage)
3253 ("libxext" ,libxext)
3254 ("alsa-lib" ,alsa-lib)
3255 ("libvorbis" ,libvorbis)
3256 ("libtheora" ,libtheora)))
3257 (home-page "http://recordmydesktop.sourceforge.net/")
3258 (synopsis "Desktop session video recorder")
3260 "recordMyDesktop is a command-line tool that captures the activity in
3261 your graphical desktop and encodes it as a video. This is a useful tool for
3262 making @dfn{screencasts}.")
3263 (license license:gpl2+)))
3265 (define-public simplescreenrecorder
3267 (name "simplescreenrecorder")
3273 (url "https://github.com/MaartenBaert/ssr")
3275 (file-name (git-file-name name version))
3278 "1dzp5yzqlha65crzklx2qlan6ssw1diwzfpc4svd7gnr858q2292"))))
3279 (build-system cmake-build-system)
3280 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
3281 ;; README.md, the program builds and functions properly without them.
3282 ;; As a result, they are omitted. Please add them back if problems appear.
3284 `(("alsa-lib" ,alsa-lib)
3289 ("libxinerama" ,libxinerama)
3290 ("pulseaudio" ,pulseaudio)
3292 ("qtx11extras" ,qtx11extras)))
3293 (native-inputs `(("pkg-config" ,pkg-config)))
3296 (list "-DWITH_QT5=TRUE")
3297 #:tests? #f)) ; no test suite
3298 ;; Using HTTPS causes part of the page to be displayed improperly.
3299 (home-page "https://www.maartenbaert.be/simplescreenrecorder/")
3300 (synopsis "Screen recorder")
3301 (description "SimpleScreenRecorder is an easy to use screen recorder with
3302 a graphical user interface. It supports recording the entire screen, or a
3303 part of it, and allows encoding in many different codecs and file formats.
3304 Other features include a live preview and live streaming.")
3305 (license (list license:gpl3+ ; most files
3306 license:zlib ; glinject/elfhacks.*
3307 license:isc ; glinject/*
3308 license:x11)))) ; build-aux/install-sh
3310 (define-public libsmpeg
3313 (version "0.4.5-401")
3317 (url "svn://svn.icculus.org/smpeg/trunk/")
3318 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
3319 (file-name (string-append name "-" version "-checkout"))
3322 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
3323 (build-system gnu-build-system)
3325 ;; libsmpeg fails to build with -std=c++11, which is the default with
3326 ;; GCC 7. Also, 'configure' does CXXFLAGS=$CFLAGS, hence this hack.
3327 '(#:configure-flags '("CFLAGS=-O2 -g -std=c++03")))
3329 `(("autoconf" ,autoconf)
3330 ("automake" ,automake)))
3333 (home-page "https://icculus.org/smpeg/")
3334 (synopsis "SDL MPEG decoding library")
3336 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
3337 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
3338 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
3339 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
3340 and MPEG system streams.")
3341 (license (list license:expat
3347 (define-public libsmpeg-with-sdl1
3348 (package (inherit libsmpeg)
3350 (version "0.4.5-399")
3354 (url "svn://svn.icculus.org/smpeg/trunk/")
3355 (revision 399))) ; tagged release 0.4.5
3356 (file-name (string-append name "-" version "-checkout"))
3359 "0jfi085rf3fa5xsn0vd3nqf32my8ph9c6a9445y7a8lrlz4dms64"))))
3363 (define-public libbdplus
3370 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
3371 version "/" name "-" version ".tar.bz2"))
3373 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
3375 `(("libgcrypt" ,libgcrypt)))
3376 (build-system gnu-build-system)
3377 (home-page "https://www.videolan.org/developers/libbdplus.html")
3378 (synopsis "Library for decrypting certain Blu-Ray discs")
3379 (description "libbdplus is a library which implements the BD+ System
3381 (license license:lgpl2.1+)))
3383 (define-public libaacs
3390 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
3391 version "/libaacs-" version ".tar.bz2"))
3393 (base32 "11skjqjlldmbjkyxdcz4fmcn6y4p95r1xagbcnjy4ndnzf0l723d"))))
3395 `(("libgcrypt" ,libgcrypt)))
3399 (build-system gnu-build-system)
3400 (home-page "https://www.videolan.org/developers/libaacs.html")
3401 (synopsis "Library for decrypting certain Blu-Ray discs")
3402 (description "libaacs is a library which implements the Advanced Access
3403 Content System specification.")
3404 (license license:lgpl2.1+)))
3406 (define-public mps-youtube
3408 (name "mps-youtube")
3414 (url "https://github.com/mps-youtube/mps-youtube")
3415 (commit (string-append "v" version))))
3416 (file-name (git-file-name name version))
3419 "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y"))))
3420 (build-system python-build-system)
3422 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
3423 ;; test suite results differ depending on the country and also introduce
3424 ;; non-determinism in the tests.
3425 ;; https://github.com/mps-youtube/mps-youtube/issues/556
3428 `(("python-pafy" ,python-pafy)
3429 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
3430 (home-page "https://github.com/mps-youtube/mps-youtube")
3431 (synopsis "Terminal based YouTube player and downloader")
3433 "@code{mps-youtube} is based on mps, a terminal based program to
3434 search, stream and download music. This implementation uses YouTube as
3435 a source of content and can play and download video as well as audio.
3436 It can use either mpv or mplayer for playback, and for conversion of
3437 formats ffmpeg or libav is used. Users should install one of the
3438 supported players in addition to this package.")
3439 (license license:gpl3+)))
3441 (define-public handbrake
3447 (uri (string-append "https://github.com/HandBrake/HandBrake/"
3448 "releases/download/" version "/"
3449 "HandBrake-" version "-source.tar.bz2"))
3452 "11bzhyp052bmng5119x74xvdj5632smx6qsk537ygda8bzckg2i1"))
3453 (modules '((guix build utils)))
3455 ;; Remove "contrib" and source not necessary for
3456 ;; building/running under a GNU environment.
3458 (for-each delete-file-recursively
3459 '("contrib" "macosx" "win")) ; 540KiB, 11MiB, 5.9MiB resp.
3460 (substitute* "make/include/main.defs"
3461 ;; Disable unconditional inclusion of "contrib" libraries
3462 ;; (ffmpeg, libvpx, libdvdread, libdvdnav, and libbluray),
3463 ;; which would lead to fetching and building of these
3464 ;; libraries. Use our own instead.
3465 (("MODULES \\+= contrib") "# MODULES += contrib"))
3467 (build-system glib-or-gtk-build-system)
3469 `(("automake" ,automake) ; GUI subpackage must be bootstrapped
3470 ("autoconf" ,autoconf)
3471 ("intltool" ,intltool)
3472 ("libtool" ,libtool)
3473 ("pkg-config" ,pkg-config)
3474 ("python" ,python-2))) ; For configuration
3477 ("dbus-glib" ,dbus-glib)
3479 ("fontconfig" ,fontconfig)
3480 ("freetype" ,freetype)
3482 ("gstreamer" ,gstreamer)
3483 ("gst-plugins-base" ,gst-plugins-base)
3485 ("jansson" ,jansson)
3488 ("libbluray" ,libbluray)
3490 ("libdvdnav" ,libdvdnav)
3491 ("libdvdread" ,libdvdread)
3492 ("libgudev" ,libgudev)
3493 ("libmpeg2" ,libmpeg2)
3494 ("libnotify" ,libnotify)
3495 ("libnuma" ,numactl)
3498 ("libsamplerate" ,libsamplerate)
3499 ("libtheora" ,libtheora)
3500 ("libvorbis" ,libvorbis)
3502 ("libxml2" ,libxml2)
3503 ("libx264" ,libx264)
3508 `(#:tests? #f ;tests require Ruby and claim to be unsupported
3510 (list "--disable-gtk-update-checks"
3512 (string-append "CPPFLAGS=-I"
3513 (assoc-ref %build-inputs "libxml2")
3517 (modify-phases %standard-phases
3519 ;; Run bootstrap ahead of time so that shebangs get patched.
3521 (setenv "CONFIG_SHELL" (which "sh"))
3522 ;; Patch the Makefile so that it doesn't bootstrap again.
3523 (substitute* "gtk/module.rules"
3524 ((".*autoreconf.*") ""))
3525 (with-directory-excursion "gtk"
3526 (invoke "autoreconf" "-fiv"))))
3527 (add-before 'configure 'patch-SHELL
3529 (substitute* "gtk/po/Makefile.in.in"
3530 (("SHELL = /bin/sh") "SHELL = @SHELL@"))
3532 (add-before 'configure 'relax-reqs
3534 (substitute* "make/configure.py"
3535 ;; cmake is checked for so that it can be used to build
3536 ;; contrib/harfbuzz and contrib/x265, but we get these as
3537 ;; inputs, so don't abort if it's not found. Similarly, meson
3538 ;; and ninja are only needed for contrib/libdav1d, and nasm
3540 (("((cmake|meson|ninja|nasm) *=.*abort=)True" _ &)
3541 (string-append & "False")))
3544 (lambda* (#:key outputs configure-flags #:allow-other-keys)
3545 ;; 'configure' is not an autoconf-generated script, and
3546 ;; errors on unrecognized arguments,
3547 ;; e.g. --enable-fast-install
3548 (let ((out (assoc-ref outputs "out")))
3549 (apply invoke "./configure"
3550 (string-append "--prefix=" out)
3551 (or configure-flags '())))))
3552 (add-after 'configure 'chdir-build
3553 (lambda _ (chdir "./build") #t)))))
3554 (home-page "https://handbrake.fr")
3555 (synopsis "Video transcoder")
3557 "HandBrake is a tool for converting video from any format to a selection
3558 of modern, widely supported codecs.")
3559 ;; Some under GPLv2+, some under LGPLv2.1+, and portions under BSD3.
3560 ;; Combination under GPLv2. See LICENSE.
3561 (license license:gpl2)))
3563 (define-public intel-vaapi-driver
3565 (name "intel-vaapi-driver")
3571 (url "https://github.com/intel/intel-vaapi-driver")
3574 (base32 "1cidki3av9wnkgwi7fklxbg3bh6kysf8w3fk2qadjr05a92mx3zp"))
3575 (file-name (git-file-name name version))))
3576 (build-system gnu-build-system)
3578 `(("autoconf" ,autoconf)
3579 ("automake" ,automake)
3580 ("libtool" ,libtool)
3581 ("pkg-config" ,pkg-config)))
3583 `(("libdrm" ,libdrm)
3585 ("libx11" ,libx11)))
3588 (modify-phases %standard-phases
3589 (add-before 'configure 'set-target-directory
3590 (lambda* (#:key outputs #:allow-other-keys)
3591 (let ((out (assoc-ref outputs "out")))
3592 (setenv "LIBVA_DRIVERS_PATH" (string-append out "/lib/dri"))
3594 ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add
3595 ;; this to all VA-API back ends instead of once to libva.
3596 (native-search-paths
3597 (list (search-path-specification
3598 (variable "LIBVA_DRIVERS_PATH")
3599 (files '("lib/dri")))))
3600 (supported-systems '("i686-linux" "x86_64-linux"))
3601 (home-page "https://01.org/linuxmedia/vaapi")
3602 (synopsis "VA-API video acceleration driver for Intel GEN Graphics devices")
3604 "This is the @acronym{VA-API, Video Acceleration API} back end required for
3605 hardware-accelerated video processing on Intel GEN Graphics devices supported by
3606 the i915 driver, such as integrated Intel HD Graphics. It provides access to
3607 both hardware and shader functionality for faster encoding, decoding, and
3608 post-processing of video formats like MPEG2, H.264/AVC, and VC-1.")
3609 (license (list license:bsd-2 ; src/gen9_vp9_const_def.c
3610 license:expat)))) ; the rest, excluding the test suite
3612 (define-public openh264
3619 (url "https://github.com/cisco/openh264")
3620 (commit (string-append "v" version))))
3621 (file-name (git-file-name name version))
3624 "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s"))))
3625 (build-system gnu-build-system)
3628 ("python" ,python)))
3630 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3632 #:test-target "test"
3633 #:phases (modify-phases %standard-phases
3634 ;; no configure script
3635 (delete 'configure))))
3636 (home-page "https://www.openh264.org/")
3637 (synopsis "H264 decoder library")
3639 "Openh264 is a library which can decode H264 video streams.")
3640 (license license:bsd-2)))
3642 (define-public libmp4v2
3649 ;; XXX: The new location of upstream is uncertain and will become relevant the
3650 ;; moment when the googlecode archive shuts down. It is past the date it
3651 ;; should've been turned off. I tried to communicate with upstream, but this
3652 ;; wasn't very responsive and not very helpful. The short summary is, it is
3653 ;; chaos when it comes to the amount of forks and only time will tell where
3654 ;; the new upstream location is.
3655 (uri (string-append "https://storage.googleapis.com/google-"
3656 "code-archive-downloads/v2/"
3657 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
3658 (file-name (string-append name "-" version ".tar.bz2"))
3659 (patches (search-patches "libmp4v2-c++11.patch"))
3662 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
3663 (build-system gnu-build-system)
3665 "static")) ; 3.7MiB .a file
3668 (modify-phases %standard-phases
3669 (add-after 'unpack 'remove-dates
3671 ;; Make the build reproducible.
3672 (substitute* "configure"
3673 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
3674 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
3676 (add-after 'install 'move-static-libraries
3677 (lambda* (#:key outputs #:allow-other-keys)
3678 ;; Move static libraries to the "static" output.
3679 (let* ((out (assoc-ref outputs "out"))
3680 (lib (string-append out "/lib"))
3681 (static (assoc-ref outputs "static"))
3682 (slib (string-append static "/lib")))
3684 (for-each (lambda (file)
3685 (install-file file slib)
3687 (find-files lib "\\.a$"))
3690 `(("help2man" ,help2man)
3691 ("dejagnu" ,dejagnu)))
3692 (home-page "https://code.google.com/archive/p/mp4v2/")
3693 (synopsis "API to create and modify mp4 files")
3695 "The MP4v2 library provides an API to create and modify mp4 files as defined by
3696 ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
3697 file format that has been used as a multimedia file format in a variety of platforms and
3698 applications. It is a very powerful and extensible format that can accommodate
3699 practically any type of media.")
3700 (license license:mpl1.1)))
3702 (define-public libmediainfo
3704 (name "libmediainfo")
3708 (uri (string-append "https://mediaarea.net/download/source/"
3709 name "/" version "/"
3710 name "_" version ".tar.xz"))
3713 "15ni9pnch6688m72swwax109a7mg4a08yx75qknrx7qa6dbyhz6h"))))
3714 ;; TODO add a Big Buck Bunny webm for tests.
3716 `(("autoconf" ,autoconf)
3717 ("automake" ,automake)
3718 ("libtool" ,libtool)
3719 ("pkg-config" ,pkg-config)
3721 ("tinyxml2" ,tinyxml2)
3723 ("libzen" ,libzen)))
3724 (build-system gnu-build-system)
3726 '(#:tests? #f ; see above TODO
3728 ;; build scripts not in root of archive
3729 (modify-phases %standard-phases
3730 (add-after 'unpack 'change-to-build-dir
3732 (chdir "Project/GNU/Library")
3734 (home-page "https://mediaarea.net/en/MediaInfo")
3735 (synopsis "Library for retrieving media metadata")
3736 (description "MediaInfo is a library used for retrieving technical
3737 information and other metadata about audio or video files. A non-exhaustive
3738 list of the information MediaInfo can retrieve from media files include:
3741 @item General: title, author, director, album, track number, date, duration...
3742 @item Video: codec, aspect, fps, bitrate...
3743 @item Audio: codec, sample rate, channels, language, bitrate...
3744 @item Text: language of subtitle
3745 @item Chapters: number of chapters, list of chapters
3748 MediaInfo supports the following formats:
3751 @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
3752 MPEG-2, MPEG-4, DVD (VOB)...
3753 @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
3754 @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
3755 @item Subtitles: SRT, SSA, ASS, SAMI...
3757 (license license:bsd-2)))
3759 ;; TODO also have a GUI version available
3760 (define-public mediainfo
3766 ;; Warning: This source has proved unreliable 1 time at least.
3767 ;; Consider an alternate source or report upstream if this
3769 (uri (string-append "https://mediaarea.net/download/source/"
3770 name "/" version "/"
3771 name "_" version ".tar.xz"))
3774 "0rqg9z7s5bk7vlvjrs4gackzg7ib05a0dffi2ihsjf5a7kw7wcir"))))
3776 `(("autoconf" ,autoconf)
3777 ("automake" ,automake)
3778 ("libtool" ,libtool)
3779 ("pkg-config" ,pkg-config)
3781 ("libmediainfo" ,libmediainfo)
3782 ("libzen" ,libzen)))
3783 (build-system gnu-build-system)
3785 '(#:tests? #f ; lacks tests
3787 ;; build scripts not in root of archive
3788 (modify-phases %standard-phases
3789 (add-after 'unpack 'change-to-build-dir
3791 (chdir "Project/GNU/CLI")
3793 (home-page "https://mediaarea.net/en/MediaInfo")
3794 (synopsis "Utility for reading media metadata")
3795 (description "MediaInfo is a utility used for retrieving technical
3796 information and other metadata about audio or video files. It supports the
3797 many codecs and formats supported by libmediainfo.")
3798 (license license:bsd-2)))
3800 (define-public atomicparsley
3802 (name "atomicparsley")
3803 (version "20200701.154658.b0d6223")
3807 (url "https://github.com/wez/atomicparsley")
3809 (file-name (git-file-name name version))
3812 "1kym2l5y34nmbrrlkfmxsf1cwrvch64kb34jp0hpa0b89idbhwqh"))))
3813 (build-system cmake-build-system)
3815 `(#:tests? #f ;; no tests included
3817 (modify-phases %standard-phases
3818 (add-before 'configure 'set-cmake-version
3820 (substitute* "CMakeLists.txt"
3821 ;; At the time of writing, Guix has CMake at 3.16, but
3822 ;; AtomicParsley uses 3.17. This brings the required CMake
3823 ;; version down to what Guix can afford.
3824 (("VERSION 3.17") "VERSION 3.16"))
3827 (lambda* (#:key outputs #:allow-other-keys)
3828 (let* ((out (assoc-ref outputs "out"))
3829 (bin (string-append out "/bin")))
3830 (install-file "AtomicParsley" bin))
3834 (synopsis "Metadata editor for MPEG-4 files")
3835 (description "AtomicParsley is a lightweight command line program for
3836 reading, parsing and setting metadata into MPEG-4 files, in particular,
3837 iTunes-style metadata.")
3838 (home-page "https://github.com/wez/atomicparsley")
3839 (license license:gpl2+)))
3841 (define-public livemedia-utils
3843 (name "livemedia-utils")
3844 (version "2020.11.19")
3848 "https://download.videolan.org/contrib/live555/live."
3852 "16w6yxdbmjdhvffnrb752dn4llf3l0wb00dgdkyia0vqsv2qqyn7"))))
3853 (build-system gnu-build-system)
3855 `(#:tests? #f ; no tests
3856 #:make-flags (list (string-append "CC=" ,(cc-for-target))
3857 (string-append "CXX=" ,(cxx-for-target))
3858 (string-append "LDFLAGS=-Wl,-rpath="
3859 (assoc-ref %outputs "out") "/lib")
3860 (string-append "PREFIX="
3861 (assoc-ref %outputs "out")))
3862 #:phases (modify-phases %standard-phases
3863 (add-before 'configure 'fix-makefiles-generation
3865 (substitute* "genMakefiles"
3870 (invoke "./genMakefiles"
3871 "linux-with-shared-libraries"))))))
3873 `(("openssl" ,openssl)))
3874 (home-page "http://www.live555.com/liveMedia/")
3875 (synopsis "Set of C++ libraries for multimedia streaming")
3876 (description "This code forms a set of C++ libraries for multimedia
3877 streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
3878 can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
3879 JPEG video, and several audio codecs. They can easily be extended to support
3880 additional (audio and/or video) codecs, and can also be used to build basic
3881 RTSP or SIP clients and servers.")
3882 (license license:lgpl3+)))
3884 (define-public libdvbpsi
3891 "https://download.videolan.org/pub/libdvbpsi/"
3892 version "/libdvbpsi-" version ".tar.bz2"))
3895 "04h1l3vrkrdsrvkgzcr51adk10g6hxcxvgjphyyxz718ry5rkd82"))))
3896 (build-system gnu-build-system)
3897 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
3898 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
3900 (description "libdvbpsi is a simple library designed for decoding and
3901 generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
3902 and ITU-T H.222.0.")
3903 (license license:lgpl2.1)))
3905 (define-public ffms2
3909 (home-page "https://github.com/FFMS/ffms2")
3913 (url "https://github.com/FFMS/ffms2")
3915 (file-name (git-file-name name version))
3918 "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5"))))
3919 (build-system gnu-build-system)
3922 (list "--enable-avresample")))
3926 `(("ffmpeg" ,ffmpeg)))
3928 `(("pkg-config" ,pkg-config)))
3929 (synopsis "Cross-platform wrapper around ffmpeg/libav")
3931 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
3932 programmers to access a standard API to open and decompress media files.")
3933 ;; sources are distributed under a different license that the binary.
3934 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
3935 (license license:gpl2+))); inherits from ffmpeg
3937 (define-public aegisub
3944 "http://ftp.aegisub.org/pub/archives/releases/source/"
3945 name "-" version ".tar.xz"))
3948 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))
3949 (patches (search-patches "aegisub-icu59-include-unistr.patch"
3950 "aegisub-make43.patch"
3951 "aegisub-boost68.patch"))))
3952 (build-system gnu-build-system)
3955 (list "--disable-update-checker"
3956 "--without-portaudio"
3959 "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1")
3960 ;; tests require busted, a lua package we don't have yet
3963 (modify-phases %standard-phases
3964 (add-before 'configure 'fix-ldflags
3966 (setenv "LDFLAGS" "-pthread")
3968 (add-after 'unpack 'fix-boost-headers
3971 '("src/subtitles_provider_libass.cpp"
3972 "src/colour_button.cpp"
3973 "src/video_provider_dummy.cpp"
3974 "./src/video_frame.cpp")
3975 (("#include <boost/gil/gil_all.hpp>")
3976 "#include <boost/gil.hpp>"))
3982 ("hunspell" ,hunspell)
3985 ("alsa-lib" ,alsa-lib)
3986 ("pulseaudio" ,pulseaudio)
3988 ("freetype" ,freetype)
3989 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
3991 `(("intltool" ,intltool)
3992 ("desktop-file-utils" ,desktop-file-utils)
3993 ("pkg-config" ,pkg-config)))
3994 (home-page "http://www.aegisub.org/")
3995 (synopsis "Subtitle engine")
3997 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
3998 it quick and easy to time subtitles to audio, and features many powerful
3999 tools for styling them, including a built-in real-time video preview.")
4000 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
4001 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
4002 license:expat)))) ; and src/gl that is under a license similar
4003 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
4004 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
4005 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
4007 (define-public pitivi
4008 ;; Pitivi switched to a non-semantic versioning scheme close before 1.0
4009 (let ((latest-semver "0.999.0")
4010 (%version "2020.09.2"))
4013 (version (string-append latest-semver "-" %version))
4016 (uri (string-append "mirror://gnome/sources/" name "/"
4017 (version-major+minor %version) "/"
4018 name "-" %version ".tar.xz"))
4021 "0hzvv4wia4rk0kvq16y27imq2qd4q5lg3vx99hdcjdb1x3zqqfg0"))))
4022 (build-system meson-build-system)
4025 ("gst-editing-services" ,gst-editing-services)
4026 ("gstreamer" ,gstreamer)
4027 ("gst-plugins-base" ,gst-plugins-base)
4028 ("gst-plugins-good" ,gst-plugins-good)
4030 ,(gst-plugins/selection gst-plugins-bad
4031 #:plugins '("debugutils" "transcoder")
4032 #:configure-flags '("-Dintrospection=enabled")))
4033 ("gst-libav" ,gst-libav)
4036 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
4037 ("libpeas" ,libpeas)
4038 ("libnotify" ,libnotify)
4040 ("python-gst" ,python-gst)
4041 ("python-numpy" ,python-numpy)
4042 ("python-matplotlib" ,python-matplotlib)
4043 ("python-pycairo" ,python-pycairo)
4044 ("python-pygobject" ,python-pygobject)))
4046 `(("gettext" ,gettext-minimal)
4047 ("glib:bin" ,glib "bin")
4048 ("itstool" ,itstool)
4049 ("pkg-config" ,pkg-config)))
4053 (modify-phases %standard-phases
4054 (add-after 'glib-or-gtk-wrap 'wrap-other-dependencies
4055 (lambda* (#:key outputs #:allow-other-keys)
4056 (let ((prog (string-append (assoc-ref outputs "out")
4059 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
4060 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
4061 ;; We've only added inputs for what Pitivi deems either
4062 ;; necessary or optional. Let the user's packages take
4063 ;; precedence in case they have e.g. the full gst-plugins-bad.
4064 `("GST_PLUGIN_SYSTEM_PATH" suffix
4065 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))))
4067 (home-page "http://www.pitivi.org")
4068 (synopsis "Video editor based on GStreamer Editing Services")
4069 (description "Pitivi is a video editor built upon the GStreamer Editing
4070 Services. It aims to be an intuitive and flexible application that can appeal
4071 to newbies and professionals alike.")
4072 (license license:lgpl2.1+))))
4081 (uri (string-append "mirror://sourceforge/gmerlin/"
4082 name "/" version "/"
4083 name "-" version ".tar.gz"))
4084 (file-name (string-append name "-" version ".tar.gz"))
4087 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
4088 (build-system gnu-build-system)
4090 '(#:configure-flags '("LIBS=-lm")))
4092 `(("pkg-config" ,pkg-config)
4093 ("doxygen" ,doxygen)))
4094 (home-page "http://gmerlin.sourceforge.net")
4095 (synopsis "Low level library for multimedia API building")
4097 "Gavl is short for Gmerlin Audio Video Library. It is a low level
4098 library, upon which multimedia APIs can be built. Gavl handles all the
4099 details of audio and video formats like colorspaces, sample rates,
4100 multichannel configurations, etc. It provides standardized definitions for
4101 those formats as well as container structures for carrying audio samples or
4102 video images inside an application.
4104 In addition, it handles the sometimes ugly task of converting between all
4105 these formats and provides some elementary operations (copying, scaling,
4106 alpha blending etc).")
4107 (license license:gpl3)))
4109 (define-public frei0r-plugins
4111 (name "frei0r-plugins")
4116 (uri (string-append "https://files.dyne.org/frei0r/"
4117 "frei0r-plugins-" version ".tar.gz"))
4120 "0fjji3060r4fwr7vn91lwfzl80lg3my9lkp94kbyw8xwz7qgh7qv"))))
4121 (build-system gnu-build-system)
4124 (modify-phases %standard-phases
4125 (add-after 'unpack 'patch-Makefile
4127 ;; XXX: The 1.7.0 Makefile looks for files that have slightly different
4128 ;; names in the tarball. Try removing this for future versions.
4129 (substitute* "Makefile.in"
4130 (("README\\.md ChangeLog TODO AUTHORS")
4131 "README.txt ChangeLog.txt TODO.txt AUTHORS.txt"))
4133 ;; TODO: opencv for additional face detection filters.
4138 `(("pkg-config" ,pkg-config)))
4139 (home-page "https://www.dyne.org/software/frei0r/")
4140 (synopsis "Minimalistic plugin API for video effects")
4142 "Frei0r is a minimalistic plugin API for video effects.
4143 The main emphasis is on simplicity for an API that will round up
4144 the most common video effects into simple filters, sources and
4145 mixers that can be controlled by parameters. Frei0r wants to
4146 provide a way to share these simple effects between many
4147 applications, avoiding their reimplementation by different projects.
4148 It counts more than 100 plugins.")
4149 (license (list license:gpl2+
4150 ;; The following files are licensed as LGPL2.1+:
4151 ;; src/generator/ising0r/ising0r.c
4152 ;; src/generator/onecol0r/onecol0r.cpp
4153 ;; src/generator/nois0r/nois0r.cpp
4154 ;; src/generator/lissajous0r/lissajous0r.cpp
4155 ;; src/filter/ndvi/gradientlut.hpp
4156 ;; src/filter/ndvi/ndvi.cpp
4157 ;; src/filter/facedetect/facedetect.cpp
4158 license:lgpl2.1+))))
4160 (define-public motion
4164 (home-page "https://motion-project.github.io/")
4168 (url "https://github.com/Motion-Project/motion")
4169 (commit (string-append "release-" version))))
4172 "05c1gx75xy2hw49x6vkydvwxbr80kipsc3nr906k3hq8735svx6f"))
4173 (file-name (git-file-name name version))))
4174 (build-system gnu-build-system)
4176 `(("autoconf" ,autoconf-wrapper)
4177 ("automake" ,automake)
4178 ("gettext" ,gettext-minimal)
4179 ("pkg-config" ,pkg-config)))
4181 `(("libjpeg" ,libjpeg-turbo)
4183 ("libmicrohttpd" ,libmicrohttpd)
4184 ("sqlite" ,sqlite)))
4186 '(#:phases (modify-phases %standard-phases
4189 (patch-shebang "version.sh")
4190 (invoke "autoreconf" "-vfi"))))
4191 #:configure-flags '("--sysconfdir=/etc")
4192 #:make-flags (list (string-append "sysconfdir="
4193 (assoc-ref %outputs "out")
4196 #:tests? #f)) ; no 'check' target
4197 (synopsis "Detect motion from video signals")
4199 "Motion is a program that monitors the video signal from one or more
4200 cameras and is able to detect if a significant part of the picture has
4201 changed. Or in other words, it can detect motion.")
4203 ;; Some files say "version 2" and others "version 2 or later".
4204 (license license:gpl2)))
4206 (define-public subdl
4207 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
4211 (version (git-version "1.0.3" revision commit))
4215 (url "https://github.com/alexanderwink/subdl")
4217 (file-name (git-file-name name version))
4220 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
4221 (build-system trivial-build-system)
4223 `(#:modules ((guix build utils))
4225 (use-modules (guix build utils))
4226 (let* ((out (assoc-ref %outputs "out"))
4227 (bin (string-append out "/bin"))
4228 (source (assoc-ref %build-inputs "source"))
4229 (python (assoc-ref %build-inputs "python")))
4230 (install-file (string-append source "/subdl") bin)
4231 (patch-shebang (string-append bin "/subdl")
4232 (list (string-append python "/bin")))))))
4233 (inputs `(("python" ,python)))
4234 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
4235 (description "Subdl is a command-line tool for downloading subtitles from
4236 opensubtitles.org. By default, it will search for English subtitles, display
4237 the results, download the highest-rated result in the requested language and
4238 save it to the appropriate filename.")
4239 (license license:gpl3+)
4240 (home-page "https://github.com/alexanderwink/subdl"))))
4242 (define-public l-smash
4249 (url "https://github.com/l-smash/l-smash")
4250 (commit (string-append "v" version))))
4251 (file-name (git-file-name name version))
4254 "0rcq9727im6kd8da8b7kzzbzxdldvmh5nsljj9pvr4m3lj484b02"))))
4255 (build-system gnu-build-system)
4257 `(#:tests? #f ;no tests
4259 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
4260 (assoc-ref %outputs "out") "/lib"))
4262 (modify-phases %standard-phases
4263 ;; configure fails if it is followed by CONFIG_SHELL
4265 (lambda* (#:key outputs #:allow-other-keys)
4266 (let ((out (assoc-ref outputs "out")))
4267 (invoke "./configure" (string-append "--prefix=" out)
4268 "--disable-static")))))))
4270 `(("which" ,which)))
4271 (home-page "https://l-smash.github.io/l-smash/")
4272 (synopsis "MP4 multiplexer and demultiplexer library")
4274 "L-SMASH is a cross-platform library that handles the ISO base media file
4275 format and some of its derived file formats, including MP4. It operates as a
4276 multiplexer and demultiplexer, and can mux video and audio in several formats
4277 using standalone executable files.")
4278 (license license:isc)))
4280 (define-public qtfaststart
4282 (name "qtfaststart")
4286 (uri (pypi-uri "qtfaststart" version))
4289 "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h"))))
4290 (build-system python-build-system)
4292 '(#:tests? #f)) ; no test suite
4293 (synopsis "Move QuickTime and MP4 metadata to the beginning of the file")
4294 (description "qtfaststart enables streaming and pseudo-streaming of
4295 QuickTime and MP4 files by moving metadata and offset information to the
4296 beginning of the file. It can also print some useful information about the
4297 structure of the file. This program is based on qt-faststart.c from the FFmpeg
4298 project, which is released into the public domain, as well as ISO 14496-12:2005
4299 (the official spec for MP4), which can be obtained from the ISO or found
4301 (home-page "https://github.com/danielgtaylor/qtfaststart")
4302 (license license:expat)))
4304 (define-public vidstab
4305 (let ((commit "aeabc8daa7904f9edf7441a11f293965a5ef53b8")
4309 (version (git-version "1.1.0" revision commit))
4313 (url "https://github.com/georgmartius/vid.stab")
4315 (file-name (git-file-name name version))
4318 "042iy0f3khwzr68djzvqgn301sy21ljvkf52rnc2c73q7ircnzzn"))))
4319 (build-system cmake-build-system)
4321 '(#:tests? #f)) ; tests are not run as part of standard build process
4322 (home-page "http://public.hronopik.de/vid.stab/")
4323 (synopsis "Video stabilization library")
4324 (description "Vidstab is a video stabilization library which can be used
4325 with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a
4326 vehicle typically suffers from undesirable shakes and jitters. Activities such
4327 as surfing, skiing, riding and walking while shooting videos are especially
4328 prone to erratic camera shakes. Vidstab targets these video contents to help
4329 create smoother and stable videos.")
4330 (license license:gpl2+))))
4332 (define-public libopenshot
4334 (name "libopenshot")
4339 (url "https://github.com/OpenShot/libopenshot")
4340 (commit (string-append "v" version))))
4341 (file-name (git-file-name name version))
4344 "1mxjkgjmjzgf628y3rscc6rqf55hxgjpmvwxlncfk1216i5xskwp"))
4345 (modules '((guix build utils)))
4347 ;; Allow overriding of the python installation dir
4348 (substitute* "src/bindings/python/CMakeLists.txt"
4349 (("(SET\\(PYTHON_MODULE_PATH.*)\\)" _ set)
4350 (string-append set " CACHE PATH "
4351 "\"Python bindings directory\")")))
4352 (delete-file-recursively "thirdparty")
4354 (build-system cmake-build-system)
4356 `(("pkg-config" ,pkg-config)
4359 ("unittest++" ,unittest-cpp)))
4360 (propagated-inputs ;all referenced in installed headers
4361 `(("cppzmq" ,cppzmq)
4363 ("imagemagick" ,imagemagick)
4364 ("jsoncpp" ,jsoncpp)
4365 ("libopenshot-audio" ,libopenshot-audio)
4367 ("qtmultimedia" ,qtmultimedia)
4368 ("zeromq" ,zeromq)))
4371 (list (string-append "-DPYTHON_MODULE_PATH:PATH=" %output "/lib/python"
4372 ,(version-major+minor (package-version python))
4374 "-DUSE_SYSTEM_JSONCPP:BOOL=ON")
4376 (modify-phases %standard-phases
4377 (add-before 'configure 'set-vars
4378 (lambda* (#:key inputs #:allow-other-keys)
4379 (setenv "LIBOPENSHOT_AUDIO_DIR"
4380 (assoc-ref inputs "libopenshot-audio"))
4382 (assoc-ref inputs "zeromq"))
4383 (setenv "UNITTEST_DIR"
4384 (string-append (assoc-ref inputs "unittest++")
4385 "/include/UnitTest++"))
4387 (home-page "https://openshot.org")
4388 (synopsis "Video-editing, animation, and playback library")
4389 (description "OpenShot Library (libopenshot) is a powerful C++ video
4390 editing library with a multi-threaded and feature rich video editing
4391 API. It includes bindings for Python, Ruby, and other languages.")
4392 (license license:lgpl3+)))
4394 (define-public openshot
4401 (url "https://github.com/OpenShot/openshot-qt")
4402 (commit (string-append "v" version))))
4403 (file-name (git-file-name name version))
4406 "0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq"))
4407 (modules '((guix build utils)))
4410 ;; TODO: Unbundle jquery and others from src/timeline/media
4411 (delete-file-recursively "src/images/fonts") #t))))
4412 (build-system python-build-system)
4414 `(("ffmpeg" ,ffmpeg)
4415 ("font-ubuntu" ,font-ubuntu)
4416 ("libopenshot" ,libopenshot)
4418 ("python-pyqt" ,python-pyqt)
4419 ("python-pyzmq" ,python-pyzmq)
4420 ("python-requests" ,python-requests)
4423 `(#:modules ((guix build python-build-system)
4424 (guix build qt-utils)
4426 #:imported-modules (,@%python-build-system-modules
4427 (guix build qt-utils))
4428 #:phases (modify-phases %standard-phases
4429 (delete 'build) ;install phase does all the work
4432 (setenv "QT_QPA_PLATFORM" "offscreen")
4433 (invoke "python" "src/tests/query_tests.py")))
4434 (add-after 'unpack 'patch-font-location
4435 (lambda* (#:key inputs #:allow-other-keys)
4436 (let ((font (assoc-ref inputs "font-ubuntu")))
4437 (substitute* "src/classes/app.py"
4438 (("info.IMAGES_PATH") (string-append "\"" font "\""))
4439 (("fonts") "share/fonts/truetype")))
4441 (add-before 'install 'set-tmp-home
4443 ;; src/classes/info.py "needs" to create several
4444 ;; directories in $HOME when loaded during build
4445 (setenv "HOME" "/tmp")
4447 (add-after 'install 'wrap-program
4448 (lambda* (#:key outputs #:allow-other-keys)
4449 (let ((out (assoc-ref outputs "out")))
4450 (wrap-qt-program out "openshot-qt"))
4452 (home-page "https://www.openshot.org/")
4453 (synopsis "Video editor")
4454 (description "OpenShot takes your videos, photos, and music files and
4455 helps you create the film you have always dreamed of. Easily add sub-titles,
4456 transitions, and effects and then export your film to many common formats.")
4457 (license license:gpl3+)))
4459 (define-public dav1d
4467 (url "https://code.videolan.org/videolan/dav1d.git")
4469 (file-name (git-file-name name version))
4472 "0mjn87xjdqv0q1gj4s4f6fdmsj504mhk4qmqiyrhq2rs7yqj4csv"))))
4473 (build-system meson-build-system)
4474 (native-inputs `(("nasm" ,nasm)))
4475 (home-page "https://code.videolan.org/videolan/dav1d")
4476 (synopsis "AV1 decoder")
4477 (description "dav1d is a new AV1 cross-platform decoder, and focused on
4478 speed and correctness.")
4479 (license license:bsd-2)))
4481 (define-public wlstream
4482 (let ((commit "182076a94562b128c3a97ecc53cc68905ea86838")
4486 (version (git-version "0.0" revision commit))
4491 (url "https://github.com/atomnuker/wlstream")
4493 (file-name (git-file-name name version))
4496 "01qbcgfl3g9kfwn1jf1z9pdj3bvf5lmg71d1vwkcllc2az24bjqp"))))
4497 (build-system meson-build-system)
4498 (native-inputs `(("libdrm" ,libdrm)
4499 ("pkg-config" ,pkg-config)))
4500 (inputs `(("ffmpeg" ,ffmpeg)
4501 ("pulseaudio" ,pulseaudio)
4502 ("wayland" ,wayland)
4503 ("wayland-protocols" ,wayland-protocols)))
4504 (home-page "https://github.com/atomnuker/wlstream")
4505 (synopsis "Screen capture tool for Wayland sessions")
4506 (description "Wlstream is a screen capture tool for recording audio and
4507 video from a Wayland session.")
4508 (license license:lgpl2.1+))))
4510 (define-public gaupol
4517 (url "https://github.com/otsaloma/gaupol/")
4519 (file-name (git-file-name name version))
4522 "00wxdyja0m6l3yrynjgapa010lkwxpkv1xnnjbmrwi4ayhh5l3gg"))))
4523 (build-system python-build-system)
4525 `(("gettext" ,gettext-minimal)
4526 ("pkg-config" ,pkg-config)))
4528 `(("python-pygobject" ,python-pygobject)
4530 ("python-pycairo" ,python-pycairo) ; Required or else clicking on a subtitle line fails.
4531 ("python-chardet" ,python-chardet) ; Optional: Character encoding detection.
4532 ("gtkspell3" ,gtkspell3) ; Optional: Inline spell-checking.
4533 ("iso-codes" ,iso-codes) ; Optional: Translations.
4534 ("gstreamer" ,gstreamer)
4535 ("gst-libav" ,gst-libav)
4536 ("gst-plugins-base" ,gst-plugins-base)
4537 ("gst-plugins-good" ,gst-plugins-good)
4538 ("gst-plugins-bad" ,gst-plugins-bad)
4539 ("gst-plugins-ugly" ,gst-plugins-ugly)))
4541 `(#:tests? #f ; Tests seem to require networking.
4543 (modify-phases %standard-phases
4544 ;; gaupol's setup.py script does not support one of the Python build
4545 ;; system's default flags, "--single-version-externally-managed".
4547 (lambda* (#:key outputs #:allow-other-keys)
4548 (invoke "python" "setup.py" "install"
4549 (string-append "--prefix=" (assoc-ref outputs "out"))
4551 (add-after 'install 'wrap-gaupol
4552 (lambda* (#:key outputs #:allow-other-keys)
4553 (let ((out (assoc-ref outputs "out"))
4554 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4555 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4556 (wrap-program (string-append out "/bin/gaupol")
4557 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
4558 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4560 (add-after 'unpack 'patch-data-dir
4561 ;; Fix some path variables that setup.py seems to garble.
4562 (lambda* (#:key outputs #:allow-other-keys)
4563 (let ((out (assoc-ref outputs "out")))
4564 (substitute* "setup.py"
4565 (("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
4566 (string-append "DATA_DIR = '" out "/share/gaupol'\""))
4567 (("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
4568 (string-append "LOCALE_DIR = '" out "/share/locale'\"")))
4570 (synopsis "Editor for text-based subtitles")
4572 "Gaupol supports multiple subtitle file formats and provides means of
4573 creating subtitles, editing texts and timing subtitles to match video. The
4574 user interface features a builtin video player and is designed with attention
4575 to convenience of translating and batch processing of multiple documents.")
4576 (home-page "https://otsaloma.io/gaupol/")
4577 (license license:gpl3+)))
4579 (define-public theorafile
4580 (let ((commit "404b14d7602b5918d117eaa64e8aa6601ede8593"))
4583 (version (git-version "0.0.0" "1" commit))
4588 (url "https://github.com/FNA-XNA/Theorafile")
4590 (file-name (git-file-name name version))
4592 (base32 "128c3pjzqbgrj020glm5jd6ss18vl19471lj615w2brjwb7c1f0z"))))
4593 (build-system gnu-build-system)
4595 '(#:make-flags '("CC=gcc")
4597 (modify-phases %standard-phases
4602 (invoke "make" "test")))
4604 (lambda* (#:key outputs #:allow-other-keys)
4605 (let ((out (assoc-ref outputs "out")))
4606 (install-file "libtheorafile.so" (string-append out "/lib"))
4607 (install-file "theorafile.h" (string-append out "/include")))
4612 (home-page "https://github.com/FNA-XNA/Theorafile")
4613 (synopsis "Ogg Theora Video Decoder Library")
4614 (description "Theorafile is a library for quickly and easily decoding Ogg
4615 Theora videos. Theorafile was written to be used for FNA's VideoPlayer.")
4616 (license license:zlib))))
4618 (define-public dvdbackup
4625 (uri (string-append "mirror://sourceforge/dvdbackup/dvdbackup/"
4626 "dvdbackup-" version "/"
4627 "dvdbackup-" version ".tar.xz"))
4629 (base32 "1rl3h7waqja8blmbpmwy01q9fgr5r0c32b8dy3pbf59bp3xmd37g"))))
4630 (build-system gnu-build-system)
4632 `(("libdvdcss" ,libdvdcss)
4633 ("libdvdread" ,libdvdread)))
4634 (home-page "http://dvdbackup.sourceforge.net")
4635 (synopsis "DVD video ripper")
4637 "A simple command line tool to backup video from a DVD. Decrypts the
4638 DVD using @command{libdvdcss}, but does @strong{not} demux, remux,
4639 transcode or reformat the videos in any way, producing perfect backups.")
4640 (license license:gpl3+)))
4642 (define-public svt-av1
4650 (url "https://github.com/OpenVisualCloud/SVT-AV1")
4651 (commit (string-append "v" version))))
4652 (file-name (git-file-name name version))
4654 (base32 "1wzamg89azi1f93wxvdy7silsgklckc754ca066k33drvyacicyw"))))
4655 (build-system cmake-build-system)
4656 ;; SVT-AV1 only supports Intel-compatible CPUs.
4657 (supported-systems '("x86_64-linux" "i686-linux"))
4659 ;; The test suite tries to download test data and git clone a 3rd-party
4660 ;; fork of libaom. Skip it.
4663 (modify-phases %standard-phases
4664 (add-after 'install 'install-documentation
4665 (lambda* (#:key outputs #:allow-other-keys)
4666 (let* ((out (assoc-ref %outputs "out"))
4667 (doc (string-append out "/share/doc/svt-av1-" ,version)))
4668 (copy-recursively "../source/Docs" doc)
4672 (synopsis "AV1 video codec")
4673 (description "SVT-AV1 is an AV1 codec implementation. The encoder is a
4674 work-in-progress, aiming to support video-on-demand and live streaming
4675 applications. It only supports Intel-compatible CPUs (x86).")
4676 (home-page "https://github.com/OpenVisualCloud/SVT-AV1")
4677 (license license:bsd-2)))
4679 (define-public svt-vp9
4686 (url "https://github.com/OpenVisualCloud/SVT-VP9")
4687 (commit (string-append "v" version))))
4688 (file-name (git-file-name name version))
4691 "1ypdiw4cq22llvm8jyszxdq6r1aydkj80dsxjarjn5b7c1f2q3ar"))))
4692 ;; SVT-AV1 only supports 64-bit Intel-compatible CPUs.
4693 (supported-systems '("x86_64-linux"))
4694 (build-system cmake-build-system)
4696 `(#:tests? #f ; No test suite
4698 (modify-phases %standard-phases
4699 (add-after 'install 'install-documentation
4700 (lambda* (#:key outputs #:allow-other-keys)
4701 (let* ((out (assoc-ref %outputs "out"))
4702 (doc (string-append out "/share/doc/" ,name "-" ,version)))
4703 (copy-recursively "../source/Docs" doc)
4707 (home-page "https://github.com/OpenVisualCloud/SVT-VP9")
4708 (synopsis "VP9 video encoder")
4709 (description "SVT-VP9 is a VP9 video encoder implementation. It is focused
4710 on supporting video-on-demand and live encoding on Intel Xeon processors.")
4711 (license license:bsd-2)))
4713 (define-public w-scan
4716 (version "20170107")
4720 (uri (string-append "https://www.gen2vdr.de/wirbel/w_scan/w_scan-"
4721 version ".tar.bz2"))
4723 (base32 "1zkgnj2sfvckix360wwk1v5s43g69snm45m0drnzyv7hgf5g7q1q"))))
4724 (build-system gnu-build-system)
4725 (synopsis "Scan ATSC/DVB-C/DVB-S/DVB-T channels")
4727 "This is a small command line utility used to perform frequency scans for
4728 DVB and ATSC transmissions without initial tuning data. It can print the
4729 result in several formats:
4731 @item VDR channels.conf,
4732 @item czap/tzap/xine/mplayer channels.conf,
4733 @item Gstreamer dvbsrc plugin,
4734 @item VLC xspf playlist,
4736 @item initial tuning data for scan or dvbv5-scan.
4738 (home-page "https://www.gen2vdr.de/wirbel/w_scan/index2.html")
4739 (license license:gpl2+)))
4741 (define-public rav1e
4748 (uri (crate-uri "rav1e" version))
4750 (string-append name "-" version ".tar.gz"))
4753 "1mx6jlx2rdhmyh68h9h34kn9ssa7lv0y97j8fd9qm7qhs2q1n0cj"))))
4754 (build-system cargo-build-system)
4757 (("rust-aom-sys" ,rust-aom-sys-0.2)
4758 ("rust-arbitrary" ,rust-arbitrary-0.2)
4759 ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3)
4760 ("rust-arrayvec" ,rust-arrayvec-0.5)
4761 ("rust-backtrace" ,rust-backtrace-0.3)
4762 ("rust-bitstream-io" ,rust-bitstream-io-0.8)
4763 ("rust-byteorder" ,rust-byteorder-1)
4764 ("rust-cc" ,rust-cc-1)
4765 ("rust-cfg-if" ,rust-cfg-if-0.1)
4766 ("rust-clap" ,rust-clap-2)
4767 ("rust-console" ,rust-console-0.11)
4768 ("rust-dav1d-sys" ,rust-dav1d-sys-0.3)
4769 ("rust-fern" ,rust-fern-0.6)
4770 ("rust-image" ,rust-image-0.23)
4771 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4772 ("rust-itertools" ,rust-itertools-0.9)
4773 ("rust-ivf" ,rust-ivf-0.1)
4774 ("rust-libc" ,rust-libc-0.2)
4775 ("rust-log" ,rust-log-0.4)
4776 ("rust-nasm-rs" ,rust-nasm-rs-0.2)
4777 ("rust-noop-proc-macro" ,rust-noop-proc-macro-0.2)
4778 ("rust-num-derive" ,rust-num-derive-0.3)
4779 ("rust-num-traits" ,rust-num-traits-0.2)
4780 ("rust-paste" ,rust-paste-0.1)
4781 ("rust-rand" ,rust-rand-0.7)
4782 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4783 ("rust-rayon" ,rust-rayon-1)
4784 ("rust-rust-hawktracer" ,rust-rust-hawktracer-0.7)
4785 ("rust-rustc-version" ,rust-rustc-version-0.2)
4786 ("rust-scan-fmt" ,rust-scan-fmt-0.2)
4787 ("rust-serde" ,rust-serde-1)
4788 ("rust-signal-hook" ,rust-signal-hook-0.1)
4789 ("rust-simd-helpers" ,rust-simd-helpers-0.1)
4790 ("rust-thiserror" ,rust-thiserror-1)
4791 ("rust-toml" ,rust-toml-0.5)
4792 ("rust-vergen" ,rust-vergen-3.1)
4793 ("rust-y4m" ,rust-y4m-0.5))
4794 #:cargo-development-inputs
4795 (("rust-assert-cmd" ,rust-assert-cmd-1)
4796 ("rust-criterion" ,rust-criterion-0.3)
4797 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4798 ("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
4799 ("rust-rand" ,rust-rand-0.7)
4800 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4801 ("rust-semver" ,rust-semver-0.9))
4803 (modify-phases %standard-phases
4805 (lambda* (#:key outputs #:allow-other-keys)
4806 (let ((out (assoc-ref outputs "out")))
4807 (invoke "cargo" "cinstall" "--release"
4808 (string-append "--prefix=" out))))))))
4810 `(("cargo-c" ,rust-cargo-c)))
4813 (home-page "https://github.com/xiph/rav1e/")
4814 (synopsis "The fastest and safest AV1 encoder")
4816 "The fastest and safest AV1 encoder.")
4817 (license license:bsd-2)))
4827 (url "https://github.com/phw/peek")
4829 (file-name (git-file-name name version))
4831 (base32 "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x"))))
4832 (build-system meson-build-system)
4833 (arguments '(#:glib-or-gtk? #t))
4837 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4838 ("gettext" ,gettext-minimal)
4839 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4840 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
4841 ("pkg-config" ,pkg-config)
4843 (home-page "https://github.com/phw/peek")
4844 (synopsis "Simple animated GIF screen recorder")
4846 "Peek makes it easy to create short screencasts of a screen area. It was
4847 built for the specific use case of recording screen areas, e.g. for easily
4848 showing UI features of your own apps or for showing a bug in bug reports.
4849 With Peek, you simply place the Peek window over the area you want to record
4850 and press \"Record\". Peek is optimized for generating animated GIFs, but you
4851 can also directly record to WebM or MP4 if you prefer.")
4852 (license license:gpl3+)))
4854 (define-public wf-recorder
4856 (name "wf-recorder")
4861 (url "https://github.com/ammen99/wf-recorder")
4862 (commit (string-append "v" version))))
4863 (file-name (git-file-name name version))
4866 "1cw6kpcbl33wh95pvy32xrsrm6kkk1awccr3phyh885xjs3b3iim"))))
4867 (build-system meson-build-system)
4869 `(("pkg-config" ,pkg-config)))
4871 `(("ffmpeg" ,ffmpeg)
4872 ("pulseaudio" ,pulseaudio)
4873 ("wayland" ,wayland)
4874 ("wayland-protocols" ,wayland-protocols)
4875 ("libx264" ,libx264)))
4876 (home-page "https://github.com/ammen99/wf-recorder")
4877 (synopsis "Screen recorder for wlroots-based compositors")
4879 "@code{wf-recorder} is a utility program for screen recording of
4880 wlroots-based compositors. More specifically, those that support
4881 @code{wlr-screencopy-v1} and @code{xdg-output}.")
4882 (license license:expat)))
4884 (define-public guvcview
4890 (uri (string-append "mirror://sourceforge/guvcview/source/guvcview-"
4891 "src-" version ".tar.gz"))
4894 "11byyfpkcik7wvf2qic77zjamfr2rhji97dpj1gy2fg1bvpiqf4m"))))
4895 (build-system gnu-build-system)
4897 ;; There are no tests and "make check" would fail on an intltool error.
4900 `(("pkg-config" ,pkg-config)
4901 ("intltool" ,intltool)))
4906 ("v4l-utils" ,v4l-utils) ;libv4l2
4907 ("ffmpeg" ,ffmpeg) ;libavcodec, libavutil
4910 ("portaudio" ,portaudio)
4911 ("alsa-lib" ,alsa-lib)))
4912 (home-page "http://guvcview.sourceforge.net/")
4913 (synopsis "Control your webcam and capture videos and images")
4915 "GTK+ UVC Viewer (guvcview) is a graphical application to control a
4916 webcam accessible with Video4Linux (V4L2) and to capture videos and images.
4917 It provides control over precise settings of the webcam such as exposure,
4918 brightness, contrast, and frame rate.")
4920 ;; 'COPYING' is GPLv3 but source headers say GPLv2+.
4921 (license license:gpl2+)))
4923 (define-public get-iplayer
4925 (name "get-iplayer")
4931 (url "https://github.com/get-iplayer/get_iplayer")
4932 (commit (string-append "v" version))))
4933 (file-name (git-file-name name version))
4936 "0lsz5hz1ia5j612540rb0f31y7j2k5gf7x5i43l8k06b90wi73d6"))))
4937 (build-system perl-build-system)
4939 `(#:tests? #f ; no tests
4941 (modify-phases %standard-phases
4945 (lambda* (#:key outputs #:allow-other-keys)
4946 (let* ((out (assoc-ref outputs "out"))
4947 (bin (string-append out "/bin"))
4948 (man (string-append out "/share/man/man1")))
4949 (install-file "get_iplayer" bin)
4950 (install-file "get_iplayer.cgi" bin)
4951 (install-file "get_iplayer.1" man))
4953 (add-after 'install 'wrap-program
4954 (lambda* (#:key inputs outputs #:allow-other-keys)
4955 (let* ((out (assoc-ref outputs "out"))
4956 (perllib (string-append out "/lib/perl5/site_perl/"
4957 ,(package-version perl))))
4958 (wrap-program (string-append out "/bin/get_iplayer")
4960 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
4961 (wrap-program (string-append out "/bin/get_iplayer.cgi")
4963 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
4966 `(("perl-mojolicious" ,perl-mojolicious)
4967 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4968 ("perl-xml-libxml" ,perl-xml-libxml)))
4969 (home-page "https://github.com/get-iplayer/get_iplayer")
4970 (synopsis "Download or stream available BBC iPlayer TV and radio programmes")
4971 (description "@code{get_iplayer} lists, searches and records BBC iPlayer
4972 TV/Radio, BBC Podcast programmes. Other third-party plugins may be available.
4973 @code{get_iplayer} has three modes: recording a complete programme for later
4974 playback, streaming a programme directly to a playback application, such as
4975 mplayer; and as a @dfn{Personal Video Recorder} (PVR), subscribing to search
4976 terms and recording programmes automatically. It can also stream or record live
4977 BBC iPlayer output.")
4978 (license license:gpl3+)))
4980 (define-public ogmtools
4986 (uri (string-append "https://www.bunkus.org/videotools/ogmtools/ogmtools-"
4991 "1spx81p5wf59ksl3r3gvf78d77sh7gj8a6lw773iv67bphfivmn8"))))
4992 (build-system gnu-build-system)
4994 `(("libvorbis" ,libvorbis)
4995 ("libdvdread" ,libdvdread)))
4996 (synopsis "Information, extraction or creation for OGG media streams")
4998 "These tools allow information about (@code{ogminfo}) or extraction from
4999 \(@code{ogmdemux}) or creation of (@code{ogmmerge}) OGG media streams. It
5000 includes @code{dvdxchap} tool for extracting chapter information from DVD.")
5001 (license license:gpl2)
5002 (home-page "https://www.bunkus.org/videotools/ogmtools/")))
5004 (define-public libcaption
5011 (url "https://github.com/szatmary/libcaption")
5013 (file-name (git-file-name name version))
5016 "16mhw8wpl7wdjj4n7rd1c294p1r8r322plj7z91crla5aah726rq"))))
5017 (build-system cmake-build-system)
5019 `(#:tests? #f ; Cannot figure out how to run the unit tests
5020 #:configure-flags '("-DENABLE_RE2C=ON")))
5023 (synopsis "CEA608 / CEA708 closed-caption codec")
5024 (description "Libcaption creates and parses closed-caption data,
5025 providing an encoder / decoder for the EIA608 and CEA708 closed-caption
5028 608 support is currently limited to encoding and decoding the necessary control
5029 and preamble codes as well as support for the Basic North American, Special
5030 North American and Extended Western European character sets.
5032 708 support is limited to encoding the 608 data in NTSC field 1 user data type
5035 In addition, utility functions to create h.264 SEI (Supplementary enhancement
5036 information) NALUs (Network Abstraction Layer Unit) for inclusion into an h.264
5037 elementary stream are provided.")
5038 (home-page "https://github.com/szatmary/libcaption")
5039 (license license:expat)))