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 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca>
8 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2015, 2016, 2017, 2018 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 Nils Gillmann <ng0@n0.is>
15 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
16 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
17 ;;; Copyright © 2017 Feng Shu <tumashu@163.com>
18 ;;; Copyright © 2017, 2018 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 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
26 ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages video)
45 #:use-module (ice-9 match)
46 #:use-module (srfi srfi-1)
47 #:use-module (srfi srfi-26)
48 #:use-module ((guix licenses) #:prefix license:)
49 #:use-module (guix utils)
50 #:use-module (guix packages)
51 #:use-module (guix download)
52 #:use-module (guix git-download)
53 #:use-module (guix svn-download)
54 #:use-module (guix build-system cmake)
55 #:use-module (guix build-system gnu)
56 #:use-module (guix build-system glib-or-gtk)
57 #:use-module (guix build-system meson)
58 #:use-module (guix build-system perl)
59 #:use-module (guix build-system python)
60 #:use-module (guix build-system waf)
61 #:use-module (guix build-system trivial)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages algebra)
64 #:use-module (gnu packages audio)
65 #:use-module (gnu packages autotools)
66 #:use-module (gnu packages avahi)
67 #:use-module (gnu packages backup)
68 #:use-module (gnu packages base)
69 #:use-module (gnu packages bison)
70 #:use-module (gnu packages boost)
71 #:use-module (gnu packages cdrom)
72 #:use-module (gnu packages check)
73 #:use-module (gnu packages cmake)
74 #:use-module (gnu packages compression)
75 #:use-module (gnu packages cpp)
76 #:use-module (gnu packages curl)
77 #:use-module (gnu packages databases)
78 #:use-module (gnu packages dejagnu)
79 #:use-module (gnu packages docbook)
80 #:use-module (gnu packages documentation)
81 #:use-module (gnu packages elf)
82 #:use-module (gnu packages file)
83 #:use-module (gnu packages flex)
84 #:use-module (gnu packages fontutils)
85 #:use-module (gnu packages freedesktop)
86 #:use-module (gnu packages fribidi)
87 #:use-module (gnu packages gettext)
88 #:use-module (gnu packages ghostscript)
89 #:use-module (gnu packages gl)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages guile)
92 #:use-module (gnu packages gnome)
93 #:use-module (gnu packages gnupg)
94 #:use-module (gnu packages gstreamer)
95 #:use-module (gnu packages gtk)
96 #:use-module (gnu packages image)
97 #:use-module (gnu packages imagemagick)
98 #:use-module (gnu packages iso-codes)
99 #:use-module (gnu packages libidn)
100 #:use-module (gnu packages libreoffice)
101 #:use-module (gnu packages linux)
102 #:use-module (gnu packages lua)
103 #:use-module (gnu packages m4)
104 #:use-module (gnu packages man)
105 #:use-module (gnu packages mp3)
106 #:use-module (gnu packages ncurses)
107 #:use-module (gnu packages ocr)
108 #:use-module (gnu packages perl)
109 #:use-module (gnu packages pkg-config)
110 #:use-module (gnu packages popt)
111 #:use-module (gnu packages pulseaudio)
112 #:use-module (gnu packages python)
113 #:use-module (gnu packages python-crypto)
114 #:use-module (gnu packages python-web)
115 #:use-module (gnu packages qt)
116 #:use-module (gnu packages rdesktop)
117 #:use-module (gnu packages ruby)
118 #:use-module (gnu packages samba)
119 #:use-module (gnu packages sdl)
120 #:use-module (gnu packages serialization)
121 #:use-module (gnu packages shells)
122 #:use-module (gnu packages ssh)
123 #:use-module (gnu packages texinfo)
124 #:use-module (gnu packages textutils)
125 #:use-module (gnu packages tls)
126 #:use-module (gnu packages upnp)
127 #:use-module (gnu packages version-control)
128 #:use-module (gnu packages vulkan)
129 #:use-module (gnu packages web)
130 #:use-module (gnu packages webkit)
131 #:use-module (gnu packages wxwidgets)
132 #:use-module (gnu packages xdisorg)
133 #:use-module (gnu packages xiph)
134 #:use-module (gnu packages xml)
135 #:use-module (gnu packages xorg)
136 #:use-module (gnu packages assembly))
144 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
145 version "/" name "-" version ".tar.gz"))
148 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
149 (build-system gnu-build-system)
151 `(("makeinfo" ,texinfo)))
153 `(("ncurses" ,ncurses)))
156 (modify-phases %standard-phases
158 (lambda* (#:key build inputs outputs #:allow-other-keys)
159 ;; This old `configure' script doesn't support
160 ;; variables passed as arguments.
161 (let ((out (assoc-ref outputs "out"))
162 (ncurses (assoc-ref inputs "ncurses")))
163 (setenv "CONFIG_SHELL" (which "bash"))
164 (invoke "./configure"
165 (string-append "--prefix=" out)
166 (string-append "--build=" build)
167 ;; The ancient config.guess is unable to
168 ;; guess the host triplet on mips64el.
169 ,@(if (string=? "mips64el-linux"
171 '("--host=mips64el-unknown-linux-gnu")
173 ;; The same is also true with aarch64.
174 ,@(if (string=? "aarch64-linux"
176 '("--host=aarch64-unknown-linux-gnu")
178 (string-append "--with-ncurses="
180 (home-page "http://aa-project.sourceforge.net/aalib/")
181 (synopsis "ASCII-art library")
183 "AA-lib is a low level gfx library which does not require graphics device.
184 In fact, there is no graphical output possible. AA-lib replaces those
185 old-fashioned output methods with powerful ascii-art renderer.")
186 (license license:lgpl2.0+)))
188 (define-public liba52
195 ;; A mirror://sourceforge URI doesn't work, presumably
196 ;; because the SourceForge project is misconfigured.
197 "http://liba52.sourceforge.net/files/a52dec-" version
201 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
202 (patches (search-patches "liba52-enable-pic.patch"
203 "liba52-set-soname.patch"
204 "liba52-use-mtune-not-mcpu.patch"
205 "liba52-link-with-libm.patch"))))
206 (build-system gnu-build-system)
207 ;; XXX We need to run ./bootstrap because of the build system fixes above.
209 `(("autoconf" ,autoconf)
210 ("automake" ,automake)
211 ("libtool" ,libtool)))
212 (arguments `(#:configure-flags '("--enable-shared")
214 (modify-phases %standard-phases
215 ;; XXX We need to run ./bootstrap because of the build
216 ;; system fixes above.
218 (lambda _ (invoke "sh" "bootstrap"))))))
219 (home-page "http://liba52.sourceforge.net/")
220 (synopsis "ATSC A/52 stream decoder")
221 (description "liba52 is a library for decoding ATSC A/52 streams. The
222 A/52 standard is used in a variety of applications, including digital
223 television and DVD. It is also known as AC-3.")
224 (license license:gpl2+)))
226 (define-public libmpeg2
232 ;; A mirror://sourceforge URI doesn't work, presumably
233 ;; because the SourceForge project is misconfigured.
234 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
235 name "-" version ".tar.gz"))
238 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
246 (build-system gnu-build-system)
247 (home-page "http://libmpeg2.sourceforge.net/")
248 (synopsis "MPEG1 and MPEG2 video decoder library")
250 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
251 (license license:gpl2+)))
253 (define-public libx264
256 (version "20180219-2245")
259 (uri (string-append "https://download.videolan.org/pub/x264/snapshots/"
260 "x264-snapshot-" version "-stable.tar.bz2"))
263 "1x0cg8l30wp84mr7q0ddp06jclm0kjrszazrx87d4k7js3qxjy8m"))))
264 (build-system gnu-build-system)
266 `(("pkg-config" ,pkg-config)
268 ;; TODO: Add gpac input
270 `(#:tests? #f ;no check target
271 #:configure-flags '("--enable-shared"
272 ;; Don't build the command-line program. If we
273 ;; want it later, we should do so in a different
274 ;; package to avoid a circular dependency (the x264
275 ;; program depends on ffmpeg and ffmpeg depends on
279 ;; On MIPS, we must pass "--disable-asm" or else
280 ;; configure fails after printing: "You specified a
281 ;; pre-MSA CPU in your CFLAGS. If you really want
282 ;; to run on such a CPU, configure with
284 ,@(if (string-prefix? "mips"
285 (or (%current-target-system)
289 (home-page "https://www.videolan.org/developers/x264.html")
290 (synopsis "H.264 video coding library")
291 (description "libx264 is an advanced encoding library for creating
292 H.264 (MPEG-4 AVC) video streams.")
293 (license (list license:gpl2+ ;most files
294 license:isc ;common/x86/x86inc.asm
295 license:lgpl2.1+ ;extras/getopt.c
296 license:bsd-3 ;extras/inttypes.h
297 (license:non-copyleft ;extras/cl*.h
299 "See extras/cl.h in the distribution.")))))
301 (define-public mkvtoolnix
308 (uri (string-append "https://mkvtoolnix.download/sources/"
309 name "-" version ".tar.xz"))
312 "0hknnnnx9661igm1r73dc7aqxnnrl5a8yvyvr1nhd9ymn2klwpl5"))
313 (modules '((guix build utils)))
315 ;; Delete bundled libraries.
316 (for-each delete-file-recursively
323 (build-system gnu-build-system)
330 ("libmatroska" ,libmatroska)
332 ("libvorbis" ,libvorbis)
339 `(("docbook-xsl" ,docbook-xsl)
340 ("gettext" ,gettext-minimal)
341 ("googletest" ,googletest)
343 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
345 ("pkg-config" ,pkg-config)
350 (list (string-append "--with-boost="
351 (assoc-ref %build-inputs "boost"))
352 (string-append "--with-docbook-xsl-root="
353 (assoc-ref %build-inputs "docbook-xsl")
354 "/xml/xsl/docbook-xsl-"
355 ,(package-version docbook-xsl))
356 (string-append "--with-extra-includes="
357 (assoc-ref %build-inputs "nlohmann-json-cpp")
358 "/include/nlohmann"))
360 (modify-phases %standard-phases
361 (add-before 'configure 'add-googletest
364 (string-append (assoc-ref %build-inputs "googletest")
365 "/include/gtest") "lib/gtest")
369 (let ((-j (list "-j" (number->string (parallel-job-count)))))
370 (apply invoke "rake" -j))))
373 (invoke "rake" "tests/unit")))
376 (invoke "rake" "install"))))))
377 (home-page "https://mkvtoolnix.download")
378 (synopsis "Tools to create, alter and inspect Matroska files")
380 "MKVToolNix provides tools for getting information about Matroska files
381 (@code{mkvinfo}), extracting tracks/data from Matroska files (@code{mkvextract})
382 and creating Matroska files from other media files (@code{mkvmerge}).")
383 (license license:gpl2)))
392 (uri (string-append "https://download.videolan.org/videolan/x265/"
393 "x265_" version ".tar.gz"))
396 "0qx8mavwdzdpkkby7n29i9av7zsnklavacwfz537mf62q2pzjnbf"))
397 (patches (search-patches "x265-fix-ppc64le-build.patch"))
398 (modules '((guix build utils)))
400 (delete-file-recursively "source/compat/getopt")
402 (build-system cmake-build-system)
404 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
405 ;; Currently the source code doesn't check for aarch64.
406 ,@(if (any (cute string-prefix? <> (or (%current-system)
407 (%current-target-system)))
408 '("armhf" "aarch64"))
409 '(#:configure-flags '("-DENABLE_PIC=TRUE"))
412 (modify-phases %standard-phases
413 (add-before 'configure 'prepare-build
415 (delete-file-recursively "build")
418 (home-page "http://x265.org/")
419 (synopsis "Library for encoding h.265/HEVC video streams")
420 (description "x265 is a H.265 / HEVC video encoder application library,
421 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
422 (license license:gpl2+)))
424 (define-public libass
431 "https://github.com/libass/libass/releases/download/"
432 version "/libass-" version ".tar.xz"))
435 "18iqznl4mabhj9ywfsz4kwvbsplcv1jjxq50nxssvbj8my1267w8"))))
436 (build-system gnu-build-system)
438 `(("pkg-config" ,pkg-config)
441 `(("freetype" ,freetype)
443 ("fontconfig" ,fontconfig)
444 ("harfbuzz" ,harfbuzz)
446 (home-page "https://github.com/libass/libass")
447 (synopsis "Subtitle rendering library for the ASS/SSA format")
448 (description "libass is a subtitle rendering library for the
449 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
450 (license license:isc)))
452 (define-public libcaca
455 (version "0.99.beta19")
458 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
462 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
463 (build-system gnu-build-system)
464 (native-inputs `(("pkg-config" ,pkg-config)))
466 `(("freeglut" ,freeglut)
473 (home-page "http://caca.zoy.org/wiki/libcaca")
474 (synopsis "Colour ASCII-art library")
475 (description "libcaca is a graphics library that outputs text instead of
476 pixels, so that it can work on older video cards or text terminals. It
477 supports Unicode, 2048 colors, dithering of color images, and advanced text
479 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
481 (define-public libdca
488 "https://download.videolan.org/pub/videolan/libdca/"
489 version "/libdca-" version ".tar.bz2"))
492 "0h0zvcn97i9kyljdpifzi8in9xnw31fx3b3ggj96p8h0l2d8mycq"))))
493 (build-system gnu-build-system)
494 (home-page "https://www.videolan.org/developers/libdca.html")
495 (synopsis "DTS Coherent Acoustics decoder")
496 (description "libdca is a library for decoding DTS Coherent Acoustics
498 (license license:gpl2+)))
507 "mirror://sourceforge/" name "/" name "/"
508 version "/" name "-" version ".tar.gz"))
511 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
512 (build-system gnu-build-system)
513 (native-inputs `(("pkg-config" ,pkg-config)))
514 (inputs `(("libxv" ,libxv)))
515 (home-page "http://libdv.sourceforge.net/")
516 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
517 (description "The Quasar DV codec (libdv) is a software codec for DV
518 video, the encoding format used by most digital camcorders, typically those
519 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
520 developed according to the official standards for DV video: IEC 61834 and
522 (license license:lgpl2.1+)))
524 (define-public libmatroska
531 (uri (string-append "https://dl.matroska.org/downloads/"
532 name "/" name "-" version ".tar.xz"))
535 "1j4mjzx6mjzfjf9hz8g4w84krf5jccmr5cyynll0j1vwv3aiv9iq"))))
536 (build-system cmake-build-system)
538 `(("libebml" ,libebml)))
541 (list "-DBUILD_SHARED_LIBS=YES")
542 #:tests? #f)) ; no test suite
543 (home-page "https://www.matroska.org")
544 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
546 "Matroska aims to become the standard of multimedia container formats.
547 It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
548 of XML. EBML enables the Matroska Development Team to gain significant
549 advantages in terms of future format extensibility, without breaking file
550 support in old parsers.
551 libebml is a C++ library to read and write EBML files.")
552 (license license:lgpl2.1)))
562 ;; Newer releases are only available on GitHub.
563 (string-append "https://github.com/01org/libva/releases/download/"
564 version "/libva-" version ".tar.bz2")
565 ;; Keep the old URL around for compatibility.
566 (string-append "https://www.freedesktop.org/software/vaapi/releases/"
567 "libva/libva-" version "/libva-" version ".tar.bz2")))
569 (base32 "03sb1b3fxw8myf9kz6rxw5f3v1p0vfmk34779qx0q8fk24x9bypk"))))
570 (build-system gnu-build-system)
572 `(("pkg-config" ,pkg-config)))
577 ("libxfixes" ,libxfixes)
579 ("wayland" ,wayland)))
582 (modify-phases %standard-phases
584 'build 'fix-dlopen-paths
585 (lambda* (#:key outputs #:allow-other-keys)
586 (let ((out (assoc-ref outputs "out")))
587 (substitute* "va/drm/va_drm_auth_x11.c"
588 (("\"libva-x11\\.so\\.%d\"")
589 (string-append "\"" out "/lib/libva-x11.so.%d\"")))
591 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
592 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
594 (list (string-append "--with-drivers-path="
595 (assoc-ref %build-inputs "mesa") "/lib/dri"))
596 ;; However, we can't write to mesa's store directory, so override the
597 ;; following make variable to install the dummy driver to libva's
598 ;; $prefix/lib/dri directory.
600 (list (string-append "dummy_drv_video_ladir="
601 (assoc-ref %outputs "out") "/lib/dri"))))
602 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
603 (synopsis "Video acceleration library")
604 (description "The main motivation for VA-API (Video Acceleration API) is
605 to enable hardware accelerated video decode/encode at various
606 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
607 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
608 (license license:expat)))
610 (define-public ffmpeg
616 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
620 "1vn04n0n46zdxq14cma3w8ml2ckh5jxwlybsc4xmvcqdqq0mqpv0"))))
621 (build-system gnu-build-system)
623 `(("fontconfig" ,fontconfig)
624 ("freetype" ,freetype)
625 ("frei0r-plugins" ,frei0r-plugins)
631 ("libbluray" ,libbluray)
633 ("libcdio-paranoia" ,libcdio-paranoia)
634 ("libtheora" ,libtheora)
636 ("libvdpau" ,libvdpau)
637 ("libvorbis" ,libvorbis)
643 ("pulseaudio" ,pulseaudio)
654 ("pkg-config" ,pkg-config)
656 ("python" ,python-2) ; scripts use interpreter python2
660 `(#:test-target "fate"
662 ;; possible additional inputs:
663 ;; --enable-avisynth enable reading of AviSynth script
665 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
666 ;; --enable-libcelt enable CELT decoding via libcelt [no]
667 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
668 ;; and libraw1394 [no]
669 ;; --enable-libfaac enable AAC encoding via libfaac [no]
670 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
671 ;; --enable-libflite enable flite (voice synthesis) support via
673 ;; --enable-libgme enable Game Music Emu via libgme [no]
674 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
675 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
676 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
677 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
678 ;; --enable-libnut enable NUT (de)muxing via libnut,
679 ;; native (de)muxer exists [no]
680 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
681 ;; libopencore-amrnb [no]
682 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
683 ;; libopencore-amrwb [no]
684 ;; --enable-libopencv enable video filtering via libopencv [no]
685 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
687 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
688 ;; --enable-libschroedinger enable Dirac de/encoding via
689 ;; libschroedinger [no]
690 ;; --enable-libshine enable fixed-point MP3 encoding via
692 ;; --enable-libssh enable SFTP protocol via libssh [no]
693 ;; (libssh2 does not work)
694 ;; --enable-libstagefright-h264 enable H.264 decoding via
695 ;; libstagefright [no]
696 ;; --enable-libutvideo enable Ut Video encoding and decoding via
698 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
699 ;; --enable-libvidstab enable video stabilization using
701 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
702 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
703 ;; libvo-amrwbenc [no]
704 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
705 ;; --enable-libxavs enable AVS encoding via xavs [no]
706 ;; --enable-libzmq enable message passing via libzmq [no]
707 ;; --enable-libzvbi enable teletext support via libzvbi [no]
708 ;; --enable-opencl enable OpenCL code
709 '("--enable-avresample"
710 "--enable-gpl" ; enable optional gpl licensed parts
713 "--enable-fontconfig"
720 "--enable-libfreetype"
721 "--enable-libmp3lame"
727 "--enable-libtwolame"
736 "--enable-runtime-cpudetect"
738 ;; The HTML pages take 7.2 MiB
739 "--disable-htmlpages"
741 ;; The static libraries are 23 MiB
744 ;; Runtime cpu detection is not implemented on
745 ;; MIPS, so we disable some features.
748 "--disable-mipsdspr2"
751 (modify-phases %standard-phases
754 ;; configure does not work followed by "SHELL=..." and
755 ;; "CONFIG_SHELL=..."; set environment variables instead
756 (lambda* (#:key outputs configure-flags #:allow-other-keys)
757 (let ((out (assoc-ref outputs "out")))
758 (substitute* "configure"
759 (("#! /bin/sh") (string-append "#!" (which "sh"))))
760 (setenv "SHELL" (which "bash"))
761 (setenv "CONFIG_SHELL" (which "bash"))
764 (string-append "--prefix=" out)
765 ;; Add $libdir to the RUNPATH of all the binaries.
766 (string-append "--extra-ldflags=-Wl,-rpath="
770 'check 'set-ld-library-path
772 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
774 (let* ((dso (find-files "." "\\.so$"))
775 (path (string-join (map dirname dso) ":")))
776 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
777 (setenv "LD_LIBRARY_PATH" path)
779 (home-page "https://www.ffmpeg.org/")
780 (synopsis "Audio and video framework")
781 (description "FFmpeg is a complete, cross-platform solution to record,
782 convert and stream audio and video. It includes the libavcodec
783 audio/video codec library.")
784 (license license:gpl2+)))
786 (define-public ffmpeg-3.4
792 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
796 "0h6prjn1ijkzzhkyj8mazp0wpx7m0n9ycadjxagf9czqirbyk4ib"))))))
798 (define-public ffmpeg-2.8
804 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
808 "05m1272r5qa2r0ym5vq4figdfnpvcys1fgb1026n5s6xdjd1s1pg"))))
810 (substitute-keyword-arguments (package-arguments ffmpeg)
811 ((#:configure-flags flags)
813 (if (string=? flag "--disable-mipsdsp")
814 "--disable-mipsdspr1"
825 "https://download.videolan.org/pub/videolan/vlc/"
826 version "/vlc-" version ".tar.xz"))
829 "0lavzly8l0ll1d9iris9cnirgcs77g48lxj14058dxqkvd5v1a4v"))))
830 (build-system gnu-build-system)
834 ("gettext" ,gettext-minimal)
835 ("git" ,git) ; needed for a test
836 ("pkg-config" ,pkg-config)))
837 ;; FIXME: Add optional inputs once available.
839 `(("alsa-lib" ,alsa-lib)
845 ("fontconfig" ,fontconfig)
846 ("freetype" ,freetype)
850 ("libarchive" ,libarchive)
852 ("libavc1394" ,libavc1394)
853 ("libbluray" ,libbluray)
857 ("libdvbpsi" ,libdvbpsi)
858 ("libdvdnav" ,libdvdnav)
859 ("libdvdread" ,libdvdread)
861 ("libgcrypt" ,libgcrypt)
865 ("libmatroska" ,libmatroska)
866 ("libmodplug" ,libmodplug)
867 ("libmpeg2" ,libmpeg2)
870 ("libraw1394" ,libraw1394)
872 ("libsamplerate" ,libsamplerate)
873 ("libsecret" ,libsecret)
877 ("libvdpau" ,libvdpau)
878 ("libvorbis" ,libvorbis)
880 ("libtheora" ,libtheora)
884 ("libxinerama" ,libxinerama)
887 ("livemedia-utils" ,livemedia-utils)
892 ("pulseaudio" ,pulseaudio)
893 ("python" ,python-wrapper)
896 ("qtx11extras" ,qtx11extras)
899 ("sdl-image" ,sdl-image)
901 ("speexdsp" ,speexdsp)
906 ("wayland-protocols" ,wayland-protocols)
908 ("xcb-util-keysyms" ,xcb-util-keysyms)))
911 `("CXXFLAGS=-std=gnu++11"
913 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
914 (assoc-ref %build-inputs "ffmpeg")
915 "/lib")) ;needed for the tests
918 (modify-phases %standard-phases
919 (add-after 'unpack 'patch-source
920 (lambda* (#:key inputs #:allow-other-keys)
921 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
922 (substitute* "configure"
923 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
924 (string-append "LIVE555_PREFIX=" livemedia-utils)))
925 ;; Some of the tests require using the display to test out VLC,
926 ;; which fails in our sandboxed build system
927 (substitute* "test/run_vlc.sh"
928 (("./vlc --ignore-config") "echo"))
930 ;; modules/text_renderer/freetype/text_layout.c uses a
931 ;; now-deprecated interface 'fribidi_get_par_embedding_levels'
932 ;; from fribidi.h, so for now we enable the use of deprecated
933 ;; fribidi interfaces from this file.
934 ;; FIXME: Try removing this for vlc >= 3.0.3.
935 (substitute* "modules/text_renderer/freetype/text_layout.c"
936 (("# define FRIBIDI_NO_DEPRECATED 1") ""))
938 ;; Fix build against Qt 5.11.
939 (substitute* "modules/gui/qt/actions_manager.cpp"
940 (("#include <vlc_keys.h>") "#include <vlc_keys.h>
941 #include <QAction>"))
942 (substitute* "modules/gui/qt/components/simple_preferences.cpp"
943 (("#include <QFont>") "#include <QFont>
944 #include <QButtonGroup>"))
946 (add-after 'strip 'regenerate-plugin-cache
947 (lambda* (#:key outputs #:allow-other-keys)
948 ;; The 'install-exec-hook' rule in the top-level Makefile.am
949 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
950 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
951 ;; it references. Thus, we first reset the timestamps of all
952 ;; these files, and then regenerate the cache such that the
953 ;; mtimes it includes are always zero instead of being dependent
954 ;; on the build time.
955 (let* ((out (assoc-ref outputs "out"))
956 (pkglibdir (string-append out "/lib/vlc"))
957 (plugindir (string-append pkglibdir "/plugins"))
958 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
959 ;; TODO: Factorize 'reset-timestamps'.
960 (for-each (lambda (file)
961 (let ((s (lstat file)))
962 (unless (eq? (stat:type s) 'symlink)
964 (find-files plugindir))
965 (invoke cachegen plugindir))))
966 (add-after 'install 'wrap-executable
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let ((out (assoc-ref outputs "out"))
969 (plugin-path (getenv "QT_PLUGIN_PATH")))
970 (wrap-program (string-append out "/bin/vlc")
971 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
973 (home-page "https://www.videolan.org/")
974 (synopsis "Audio and video framework")
975 (description "VLC is a cross-platform multimedia player and framework
976 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
977 treaming protocols.")
978 (license license:gpl2+)))
980 (define-public mplayer
987 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
991 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
992 (build-system gnu-build-system)
993 ;; FIXME: Add additional inputs once available.
995 `(("pkg-config" ,pkg-config)))
997 `(("alsa-lib" ,alsa-lib)
998 ("cdparanoia" ,cdparanoia)
1000 ("fontconfig" ,fontconfig)
1001 ("freetype" ,freetype)
1002 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
1005 ("libdvdcss" ,libdvdcss)
1006 ("libdvdnav" ,libdvdnav)
1007 ("libjpeg" ,libjpeg)
1008 ("libmpeg2" ,libmpeg2)
1009 ("libmpg123" ,mpg123) ; audio codec for MP3
1011 ("libtheora" ,libtheora)
1012 ("libvdpau" ,libvdpau)
1013 ("libvorbis" ,libvorbis)
1015 ("libx264" ,libx264)
1016 ("libxinerama" ,libxinerama)
1018 ("libxxf86dga" ,libxxf86dga)
1022 ("pulseaudio" ,pulseaudio)
1023 ("python" ,python-wrapper)
1029 `(#:tests? #f ; no test target
1031 (modify-phases %standard-phases
1033 ;; configure does not work followed by "SHELL=..." and
1034 ;; "CONFIG_SHELL=..."; set environment variables instead
1035 (lambda* (#:key inputs outputs #:allow-other-keys)
1036 (let ((out (assoc-ref outputs "out"))
1037 (libx11 (assoc-ref inputs "libx11")))
1038 (substitute* "configure"
1039 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1040 (setenv "SHELL" (which "bash"))
1041 (setenv "CONFIG_SHELL" (which "bash"))
1044 (string-append "--extra-cflags=-I"
1045 libx11 "/include") ; to detect libx11
1046 "--disable-ffmpeg_a" ; disables bundled ffmpeg
1047 (string-append "--prefix=" out)
1048 ;; Enable runtime cpu detection where supported,
1049 ;; and choose a suitable target.
1050 ,@(match (or (%current-target-system)
1053 '("--enable-runtime-cpudetection"
1054 "--target=x86_64-linux"))
1056 '("--enable-runtime-cpudetection"
1057 "--target=i686-linux"))
1059 '("--target=mips3-linux"))
1060 (_ (list (string-append
1062 (or (%current-target-system)
1063 (nix-system->gnu-triplet
1064 (%current-system)))))))
1065 "--disable-iwmmxt"))))))))
1066 (home-page "https://www.mplayerhq.hu/design7/news.html")
1067 (synopsis "Audio and video player")
1068 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
1069 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
1070 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
1071 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
1072 (license license:gpl2)))
1081 "https://github.com/mpv-player/mpv/archive/v" version
1085 "15fp4sa5glqhgidd54vs6knf9dp809wszzsqiqz5nyri4ph19nma"))
1086 (file-name (string-append name "-" version ".tar.gz"))))
1087 (build-system waf-build-system)
1089 `(("perl" ,perl) ; for zsh completion file
1090 ("pkg-config" ,pkg-config)
1091 ("python-docutils" ,python-docutils)))
1092 ;; Missing features: libguess, V4L2
1094 `(("alsa-lib" ,alsa-lib)
1101 ("libbluray" ,libbluray)
1102 ("libcaca" ,libcaca)
1103 ("libbs2b" ,libbs2b)
1104 ("libcdio-paranoia" ,libcdio-paranoia)
1105 ("libdvdread" ,libdvdread)
1106 ("libdvdnav" ,libdvdnav)
1107 ("libjpeg" ,libjpeg)
1109 ("libvdpau" ,libvdpau)
1111 ("libxext" ,libxext)
1112 ("libxinerama" ,libxinerama)
1113 ("libxrandr" ,libxrandr)
1114 ("libxscrnsaver" ,libxscrnsaver)
1116 ;; XXX: lua > 5.2 is not currently supported; see
1117 ;; waftools/checks/custom.py
1121 ("pulseaudio" ,pulseaudio)
1123 ("shaderc" ,shaderc)
1124 ("vulkan-loader" ,vulkan-loader)
1126 ("wayland" ,wayland)
1127 ("wayland-protocols" ,wayland-protocols)
1128 ("libxkbcommon" ,libxkbcommon)
1129 ("youtube-dl" ,youtube-dl)
1133 (modify-phases %standard-phases
1135 'configure 'setup-waf
1136 (lambda* (#:key inputs #:allow-other-keys)
1137 (copy-file (assoc-ref inputs "waf") "waf")
1140 #:configure-flags (list "--enable-libmpv-shared"
1145 "--disable-build-date")
1146 ;; No check function defined.
1148 (home-page "https://mpv.io/")
1149 (synopsis "Audio and video player")
1150 (description "mpv is a general-purpose audio and video player. It is a
1151 fork of mplayer2 and MPlayer. It shares some features with the former
1152 projects while introducing many more.")
1153 (license license:gpl2+)))
1155 (define-public gnome-mpv
1162 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
1163 "/download/v" version "/gnome-mpv-" version
1167 "03kjwd5jq0i5ajnvhjwf5019bjjaa16xkdrhdkiz1k58ipjvvj93"))))
1169 `(("intltool" ,intltool)
1170 ("pkg-config" ,pkg-config)))
1173 ("libepoxy" ,libepoxy)
1175 (build-system glib-or-gtk-build-system)
1176 (home-page "https://github.com/gnome-mpv/gnome-mpv")
1177 (synopsis "GTK+ frontend for the mpv media player")
1178 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
1179 GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
1180 access to mpv's powerful playback capabilities.")
1181 (license license:gpl3+)))
1183 (define-public libvpx
1188 ;; XXX: Upstream does not provide tarballs for > 1.6.1.
1191 (url "https://chromium.googlesource.com/webm/libvpx")
1192 (commit (string-append "v" version))))
1193 (file-name (git-file-name name version))
1196 "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6"))
1197 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
1198 (build-system gnu-build-system)
1200 `(#:configure-flags (list "--enable-shared"
1202 ;; Limit size to avoid CVE-2015-1258
1203 "--size-limit=16384x16384"
1204 (string-append "--prefix=" (assoc-ref %outputs "out")))
1205 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
1206 (assoc-ref %outputs "out") "/lib"))
1207 #:phases (modify-phases %standard-phases
1209 (lambda* (#:key configure-flags #:allow-other-keys)
1210 ;; The configure script does not understand some of the GNU
1211 ;; options, so we only add the flags specified above.
1212 (apply invoke "./configure" configure-flags))))
1213 #:tests? #f)) ; no check target
1217 (synopsis "VP8/VP9 video codec")
1218 (description "libvpx is a codec for the VP8/VP9 video compression format.")
1219 (license license:bsd-3)
1220 (home-page "https://www.webmproject.org/")))
1222 (define-public youtube-dl
1225 (version "2018.06.19")
1228 (uri (string-append "https://yt-dl.org/downloads/"
1229 version "/youtube-dl-"
1233 "0ys2mc84r7mjpn7rykb57sn3ii1kp3divjdn2ivwqknj8jrzg3z6"))))
1234 (build-system python-build-system)
1236 ;; The problem here is that the directory for the man page and completion
1237 ;; files is relative, and for some reason, setup.py uses the
1238 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
1239 ;; So, we need pass the prefix directly. In addition, make sure the Bash
1240 ;; completion file is called 'youtube-dl' rather than
1241 ;; 'youtube-dl.bash-completion'.
1242 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
1243 #:phases (modify-phases %standard-phases
1244 (add-before 'install 'fix-the-data-directories
1245 (lambda* (#:key outputs #:allow-other-keys)
1246 (let ((prefix (assoc-ref outputs "out")))
1247 (mkdir "bash-completion")
1248 (rename-file "youtube-dl.bash-completion"
1249 "bash-completion/youtube-dl")
1250 (substitute* "setup.py"
1251 (("youtube-dl\\.bash-completion")
1252 "bash-completion/youtube-dl")
1254 (string-append "'" prefix "/etc/"))
1256 (string-append "'" prefix "/share/")))
1258 (synopsis "Download videos from YouTube.com and other sites")
1260 "Youtube-dl is a small command-line program to download videos from
1261 YouTube.com and many more sites.")
1262 (home-page "https://yt-dl.org")
1263 (license license:public-domain)))
1265 (define-public youtube-dl-gui
1267 (name "youtube-dl-gui")
1272 (uri (pypi-uri "Youtube-DLG" version))
1275 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
1276 (build-system python-build-system)
1278 ;; In Guix, wxpython has not yet been packaged for Python 3.
1279 `(#:python ,python-2
1280 ;; This package has no tests.
1283 (modify-phases %standard-phases
1284 (add-before 'build 'patch-source
1285 (lambda* (#:key inputs #:allow-other-keys)
1286 ;; The youtube-dl-gui program lets you configure options. Some of
1287 ;; them are problematic, so we change their defaults.
1288 (substitute* "youtube_dl_gui/optionsmanager.py"
1289 ;; When this is true, the builder process will try (and fail) to
1290 ;; write logs to the builder user's home directory.
1291 (("'enable_log': True") "'enable_log': False")
1292 ;; This determines which youtube-dl program youtube-dl-gui will
1293 ;; run. If we don't set this, then youtube-dl-gui might download
1294 ;; an arbitrary copy from the Internet into the user's home
1295 ;; directory and run it, so let's make sure youtube-dl-gui uses
1296 ;; the youtube-dl from the inputs by default.
1297 (("'youtubedl_path': self.config_path")
1298 (string-append "'youtubedl_path': '"
1299 (assoc-ref inputs "youtube-dl")
1301 ;; When this is True, when youtube-dl-gui is finished downloading
1302 ;; a file, it will try (and possibly fail) to open the directory
1303 ;; containing the downloaded file. This can fail because it
1304 ;; assumes that xdg-open is in PATH. Unfortunately, simply
1305 ;; adding xdg-utils to the propagated inputs is not enough to
1306 ;; make this work, so for now we set the default to False.
1307 (("'open_dl_dir': True") "'open_dl_dir': False"))
1308 ;; The youtube-dl program from the inputs is actually a wrapper
1309 ;; script written in bash, so attempting to invoke it as a python
1310 ;; script will fail.
1311 (substitute* "youtube_dl_gui/downloaders.py"
1312 (("cmd = \\['python', self\\.youtubedl_path\\]")
1313 "cmd = [self.youtubedl_path]"))
1314 ;; Use relative paths for installing data files so youtube-dl-gui
1315 ;; installs the files relative to its prefix in the store, rather
1316 ;; than relative to /. Also, instead of installing data files into
1317 ;; $prefix/usr/share, install them into $prefix/share for
1318 ;; consistency (see: (standards) Directory Variables).
1319 (substitute* "setup.py"
1320 (("= '/usr/share") "= 'share"))
1321 ;; Update get_locale_file() so it finds the installed localization
1323 (substitute* "youtube_dl_gui/utils.py"
1324 (("os\\.path\\.join\\('/usr', 'share'")
1325 (string-append "os.path.join('"
1326 (assoc-ref %outputs "out")
1327 "', 'share'"))))))))
1329 `(("python2-wxpython" ,python2-wxpython)
1330 ("youtube-dl" ,youtube-dl)))
1331 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
1333 "GUI (Graphical User Interface) for @command{youtube-dl}")
1335 "Youtube-dlG is a GUI (Graphical User Interface) for
1336 @command{youtube-dl}. You can use it to download videos from YouTube and any
1337 other site that youtube-dl supports.")
1338 (license license:unlicense)))
1340 (define-public you-get
1343 (version "0.4.1077")
1347 "https://github.com/soimort/you-get/archive/v"
1349 (file-name (string-append name "-" version ".tar.gz"))
1352 "04vxc91k627qgsqs8dhqajrb6vpj4pw21jlwbha28qakfiz2x11k"))))
1353 (build-system python-build-system)
1355 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
1358 (modify-phases %standard-phases
1359 (add-after 'unpack 'qualify-input-references
1360 ;; Explicitly invoke the input ffmpeg, instead of whichever one
1361 ;; happens to be in the user's $PATH at run time.
1362 (lambda* (#:key inputs #:allow-other-keys)
1363 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
1365 (substitute* "src/you_get/processor/ffmpeg.py"
1366 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
1367 ;; same string is also used when sniffing ffmpeg's output.
1368 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
1369 (string-append prefix "'" ffmpeg "'")))
1371 #:tests? #f)) ; XXX some tests need Internet access
1372 (synopsis "Download videos, audio, or images from Web sites")
1374 "You-Get is a command-line utility to download media contents (videos,
1375 audio, images) from the Web. It can use either mpv or vlc for playback.")
1376 (home-page "https://you-get.org/")
1377 (license license:expat)))
1379 (define-public youtube-viewer
1381 (name "youtube-viewer")
1386 "https://github.com/trizen/youtube-viewer/archive/"
1388 (file-name (string-append name "-" version ".tar.gz"))
1391 "1dqaxkz5svv0lmxds6lppcpzhkq6gar2raw9gx6imrd7yz02fpgn"))))
1392 (build-system perl-build-system)
1394 `(("perl-module-build" ,perl-module-build)))
1395 ;; FIXME: Add optional dependencies once available:
1396 ;; perl-lwp-useragent-cached and perl-term-readline-gnu
1398 `(("perl-data-dump" ,perl-data-dump)
1399 ("perl-file-sharedir" ,perl-file-sharedir)
1400 ("perl-gtk2" ,perl-gtk2)
1401 ("perl-json" ,perl-json)
1402 ("perl-libwww" ,perl-libwww)
1403 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1404 ("perl-mozilla-ca" ,perl-mozilla-ca)
1405 ("perl-unicode-linebreak" ,perl-unicode-linebreak)))
1407 `(#:modules ((guix build perl-build-system)
1410 #:module-build-flags '("--gtk")
1412 (modify-phases %standard-phases
1413 (add-after 'install 'wrap-program
1414 (lambda* (#:key outputs #:allow-other-keys)
1415 (let* ((out (assoc-ref outputs "out"))
1416 (bin-dir (string-append out "/bin/"))
1417 (site-dir (string-append out "/lib/perl5/site_perl/"))
1418 (lib-path (getenv "PERL5LIB")))
1419 (for-each (cut wrap-program <>
1420 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1421 (find-files bin-dir))
1424 "Lightweight application for searching and streaming videos from YouTube")
1426 "Youtube-viewer searches and plays YouTube videos in a native player.
1427 It comes with various search options; it can search for videos, playlists
1428 and/or channels. The videos are streamed directly in a selected video player
1429 at the best resolution (customizable) and with closed-captions (if available).
1430 Both command-line and GTK2 interface are available.")
1431 (home-page "https://github.com/trizen/youtube-viewer")
1432 (license license:perl-license)))
1434 (define-public libbluray
1440 (uri (string-append "https://download.videolan.org/videolan/"
1441 name "/" version "/"
1442 name "-" version ".tar.bz2"))
1445 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
1446 (build-system gnu-build-system)
1448 `(#:configure-flags '("--disable-bdjava-jar")
1450 (modify-phases %standard-phases
1451 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
1452 ;; Avoid the need to propagate libxml2 by referring to it
1453 ;; directly, as is already done for fontconfig & freetype.
1454 (lambda* (#:key inputs #:allow-other-keys)
1455 (let ((libxml2 (assoc-ref inputs "libxml2")))
1456 (substitute* "configure"
1457 ((" libxml-2.0") ""))
1458 (substitute* "src/libbluray.pc.in"
1459 (("^Libs.private:" field)
1460 (string-append field " -L" libxml2 "/lib -lxml2")))
1462 (add-before 'build 'fix-dlopen-paths
1463 (lambda* (#:key inputs #:allow-other-keys)
1464 (let ((libaacs (assoc-ref inputs "libaacs"))
1465 (libbdplus (assoc-ref inputs "libbdplus")))
1466 (substitute* "src/libbluray/disc/aacs.c"
1468 (string-append "\"" libaacs "/lib/libaacs\"")))
1469 (substitute* "src/libbluray/disc/bdplus.c"
1471 (string-append "\"" libbdplus "/lib/libbdplus\"")))
1473 (native-inputs `(("pkg-config" ,pkg-config)))
1475 `(("fontconfig" ,fontconfig)
1476 ("freetype" ,freetype)
1477 ("libaacs" ,libaacs)
1478 ("libbdplus" ,libbdplus)
1479 ("libxml2" ,libxml2)))
1480 (home-page "https://www.videolan.org/developers/libbluray.html")
1481 (synopsis "Blu-Ray Disc playback library")
1483 "libbluray is a library designed for Blu-Ray Disc playback for media
1484 players, like VLC or MPlayer.")
1485 (license license:lgpl2.1+)))
1487 (define-public libdvdread
1493 (uri (string-append "https://download.videolan.org/videolan/"
1494 name "/" version "/"
1495 name "-" version ".tar.bz2"))
1498 "0dgr23fzcjhb7ck54xkr9zmf4jcq3ph0dz3fbyvla1c6ni9ijfxk"))))
1499 (build-system gnu-build-system)
1501 `(#:configure-flags '("--with-libdvdcss=yes")))
1503 `(("pkg-config" ,pkg-config)))
1505 `(("libdvdcss" ,libdvdcss)))
1506 (home-page "http://dvdnav.mplayerhq.hu/")
1507 (synopsis "Library for reading video DVDs")
1509 "Libdvdread provides a simple foundation for reading DVD video
1510 disks. It provides the functionality that is required to access many
1511 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
1512 authentication and descrambling (if an external libdvdcss library is
1514 (license license:gpl2+)))
1516 (define-public dvdauthor
1523 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
1527 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
1528 (build-system gnu-build-system)
1530 `(("libdvdread" ,libdvdread)
1532 ("imagemagick" ,imagemagick)
1533 ("libxml2" ,libxml2)
1534 ("freetype" ,freetype)))
1536 `(("pkg-config" ,pkg-config)))
1537 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
1538 (description "@command{dvdauthor} will generate a DVD-Video movie from a
1539 MPEG-2 stream containing VOB packets.")
1540 (home-page "http://dvdauthor.sourceforge.net")
1541 (license license:gpl3+)))
1543 (define-public libdvdnav
1549 (uri (string-append "https://download.videolan.org/videolan/"
1550 name "/" version "/"
1551 name "-" version ".tar.bz2"))
1554 "062njcksmpgw9yv3737qkf93r2pzhaxi9szqjabpa8d010dp38ph"))))
1555 (build-system gnu-build-system)
1557 `(("pkg-config" ,pkg-config)))
1559 `(("libdvdread" ,libdvdread)))
1560 (home-page "http://dvdnav.mplayerhq.hu/")
1561 (synopsis "Library for video DVD navigation features")
1563 "Libdvdnav is a library for developers of multimedia
1564 applications. It allows easy use of sophisticated DVD navigation features
1565 such as DVD menus, multiangle playback and even interactive DVD games. All
1566 this functionality is provided through a simple API which provides the DVD
1567 playback as a single logical stream of blocks, intermitted by special
1568 dvdnav events to report certain conditions. The main usage of libdvdnav is
1569 a loop regularly calling a function to get the next block, surrounded by
1570 additional calls to tell the library of user interaction. The whole
1571 DVD virtual machine and internal playback states are completely
1573 (license license:gpl2+)))
1575 (define-public libdvdcss
1581 (uri (string-append "https://download.videolan.org/pub/"
1582 name "/" version "/"
1583 name "-" version ".tar.bz2"))
1586 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
1587 (build-system gnu-build-system)
1588 (home-page "https://www.videolan.org/developers/libdvdcss.html")
1589 (synopsis "Library for accessing DVDs as block devices")
1591 "libdvdcss is a simple library designed for accessing DVDs like a block
1592 device without having to bother about the decryption.")
1593 (license license:gpl2+)))
1595 (define-public srt2vtt
1602 "https://files.dthompson.us/srt2vtt/srt2vtt-"
1606 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1607 (build-system gnu-build-system)
1609 `(("guile" ,guile-2.0)))
1610 (synopsis "SubRip to WebVTT subtitle converter")
1611 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1612 for use with HTML5 video.")
1613 (home-page "http://dthompson.us/pages/software/srt2vtt")
1614 (license license:gpl3+)))
1616 (define-public avidemux
1623 "mirror://sourceforge/" name "/" name "/" version "/"
1624 name "_" version ".tar.gz"))
1627 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
1628 (patches (search-patches "avidemux-install-to-lib.patch"))))
1629 (build-system cmake-build-system)
1631 `(("pkg-config" ,pkg-config)))
1632 ;; FIXME: Once packaged, add libraries not found during the build.
1634 `(("alsa-lib" ,alsa-lib)
1635 ("fontconfig" ,fontconfig)
1636 ("freetype" ,freetype)
1637 ("fribidi" ,fribidi)
1642 ("libvdpau" ,libvdpau)
1643 ("libvorbis" ,libvorbis)
1647 ("pulseaudio" ,pulseaudio)
1648 ("python" ,python-wrapper)
1649 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
1650 ;("qtbase" ,qtbase) with -std=gnu++11.
1651 ;("qttools" ,qttools)
1657 `(#:tests? #f ; no check target
1659 ;; Make sure files inside the included ffmpeg tarball are
1661 (modify-phases %standard-phases
1662 (add-before 'patch-source-shebangs 'unpack-ffmpeg
1664 (with-directory-excursion "avidemux_core/ffmpeg_package"
1665 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1666 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1667 (add-after 'patch-source-shebangs 'repack-ffmpeg
1669 (with-directory-excursion "avidemux_core/ffmpeg_package"
1670 (substitute* "ffmpeg-2.7.6/configure"
1671 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1672 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
1673 ;; avoid non-determinism in the archive
1674 "--sort=name" "--mtime=@0"
1675 "--owner=root:0" "--group=root:0")
1676 (delete-file-recursively "ffmpeg-2.7.6"))))
1679 ;; Copy-paste settings from the cmake build system.
1680 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1681 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1683 (lambda* (#:key inputs outputs #:allow-other-keys)
1685 ((out (assoc-ref outputs "out"))
1686 (lib (string-append out "/lib"))
1688 (sdl (assoc-ref inputs "sdl"))
1690 (lambda* (component srcdir #:optional (args '()))
1691 (let ((builddir (string-append "build_" component)))
1693 (with-directory-excursion builddir
1696 (apply system* "cmake"
1697 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1698 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1699 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1700 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1701 "\"-Wl,-rpath=" lib "\"")
1702 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1703 (string-append "-DSDL_INCLUDE_DIR="
1705 (string-append "../" srcdir)
1708 (system* "make" "-j"
1709 (number->string (parallel-job-count)))
1710 (system* "make" "install"))))))))
1712 (and (build_component "core" "avidemux_core")
1713 (build_component "cli" "avidemux/cli")
1714 (build_component "qt4" "avidemux/qt4")
1715 (build_component "plugins_common" "avidemux_plugins"
1716 '("-DPLUGIN_UI=COMMON"))
1717 (build_component "plugins_cli" "avidemux_plugins"
1718 '("-DPLUGIN_UI=CLI"))
1719 (build_component "plugins_qt4" "avidemux_plugins"
1720 '("-DPLUGIN_UI=QT4"))
1721 (build_component "plugins_settings" "avidemux_plugins"
1722 '("-DPLUGIN_UI=SETTINGS")))
1723 ;; Remove .exe and .dll file.
1724 (delete-file-recursively
1725 (string-append out "/share/ADM6_addons")))))
1726 (delete 'install))))
1727 (home-page "http://fixounet.free.fr/avidemux/")
1728 (synopsis "Video editor")
1729 (description "Avidemux is a video editor designed for simple cutting,
1730 filtering and encoding tasks. It supports many file types, including AVI,
1731 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1732 can be automated using projects, job queue and powerful scripting
1734 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
1735 ;; Software with various licenses is included, see License.txt.
1736 (license license:gpl2+)))
1738 (define-public vapoursynth
1740 (name "vapoursynth")
1745 "https://github.com/vapoursynth/vapoursynth/archive/R"
1747 (file-name (string-append name "-" version ".tar.gz"))
1750 "1g3hc079jw4mz1cmkv2y28pdb556wqc8ql7iravgh1rg8j3f1zi5"))))
1751 (build-system gnu-build-system)
1753 `(("autoconf" ,autoconf)
1754 ("automake" ,automake)
1755 ("cython" ,python-cython)
1756 ("libtool" ,libtool)
1757 ("pkg-config" ,pkg-config)
1761 `(("ffmpeg" ,ffmpeg)
1763 ("tesseract-ocr" ,tesseract-ocr)
1767 (modify-phases %standard-phases
1771 (zero? (system* "sh" "autogen.sh")))))))
1772 (home-page "http://www.vapoursynth.com/")
1773 (synopsis "Video processing framework")
1774 (description "VapourSynth is a C++ library and Python module for video
1775 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1776 multithreading, generalized colorspaces, per frame properties, and videos with
1778 ;; src/core/cpufeatures only allows x86, ARM or PPC
1779 (supported-systems (fold delete %supported-systems
1780 '("mips64el-linux" "aarch64-linux")))
1781 ;; As seen from the source files.
1782 (license license:lgpl2.1+)))
1791 "http://downloads.xvid.org/downloads/xvidcore-"
1792 version ".tar.bz2"))
1795 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
1796 (build-system gnu-build-system)
1797 (native-inputs `(("yasm" ,yasm)))
1800 (modify-phases %standard-phases
1802 'configure 'pre-configure
1804 (chdir "build/generic")
1805 (substitute* "configure"
1806 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
1807 ;; No 'check' target.
1809 (home-page "https://www.xvid.com/")
1810 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1811 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1812 codec library. It uses ASP features such as b-frames, global and quarter
1813 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1814 and custom quantization matrices.")
1815 (license license:gpl2+)))
1817 (define-public streamlink
1824 (uri (pypi-uri "streamlink" version))
1827 "02h8b3k8l5zz4vjm0nhxvl1pm924jms8y7sjl40fbybrzvsa4mg2"))))
1828 (build-system python-build-system)
1829 (home-page "https://github.com/streamlink/streamlink")
1831 `(("python-pytest" ,python-pytest)
1832 ("python-mock" ,python-mock)
1833 ("python-requests-mock" ,python-requests-mock)))
1835 `(("python-pysocks" ,python-pysocks)
1836 ("python-websocket-client" ,python-websocket-client)
1837 ("python-iso3166" ,python-iso3166)
1838 ("python-iso639" ,python-iso639)
1839 ("python-pycryptodome" ,python-pycryptodome)
1840 ("python-requests" ,python-requests)
1841 ("python-urllib3" ,python-urllib3)))
1842 (synopsis "Extract streams from various services")
1843 (description "Streamlink is command-line utility that extracts streams
1844 from sites like Twitch.tv and pipes them into a video player of choice.")
1845 (license license:bsd-2)))
1847 (define-public livestreamer
1848 (deprecated-package "livestreamer" streamlink))
1850 (define-public twitchy
1851 (let ((commit "0c0f925b9c7ff2aed4a3b0046561cb794143c398")) ;Fixes tests.
1854 (version (git-version "3.2" "1" commit))
1859 (url "https://github.com/BasioMeusPuga/twitchy.git")
1861 (file-name (git-file-name name version))
1864 "02aizvsr744sh8bdqvwwsmp2qpczlzn8fy76h5dyd3517n9nlcz9"))))
1865 (build-system python-build-system)
1868 (modify-phases %standard-phases
1869 (add-before 'check 'check-setup
1871 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
1873 (add-after 'install 'install-rofi-plugin
1874 (lambda* (#:key outputs #:allow-other-keys)
1875 (install-file "plugins/rofi-twitchy"
1876 (string-append (assoc-ref outputs "out")
1879 `(("python-requests" ,python-requests)
1880 ("streamlink" ,streamlink)))
1881 (home-page "https://github.com/BasioMeusPuga/twitchy")
1882 (synopsis "Command-line interface for Twitch.tv")
1884 "This package provides a command-line interface for Twitch.tv")
1885 (license license:gpl3+))))
1893 (uri (string-append "https://github.com/mltframework/mlt/"
1894 "archive/v" version ".tar.gz"))
1895 (file-name (string-append name "-" version ".tar.gz"))
1898 "10m3ry0b2pvqx3bk34qh5dq337nn8pkc2gzfyhsj4nv9abskln47"))
1899 (modules '((guix build utils)))
1901 ;; As of glibc 2.26, <xlocale.h> no longer is.
1902 (substitute* "src/framework/mlt_property.h"
1903 (("xlocale\\.h") "locale.h"))
1905 (build-system gnu-build-system)
1907 `(#:tests? #f ; no tests
1908 #:make-flags '("CC=gcc")
1910 (list "--enable-gpl3"
1913 (modify-phases %standard-phases
1915 'configure 'override-LDFLAGS
1916 (lambda* (#:key outputs #:allow-other-keys)
1917 (substitute* "config.mak"
1919 (string-append "LDFLAGS+=-Wl,-rpath="
1920 (assoc-ref outputs "out")
1924 `(("alsa-lib" ,alsa-lib)
1925 ("ffmpeg" ,ffmpeg-3.4)
1927 ("libxml2" ,libxml2)
1930 ("libsamplerate" ,libsamplerate)
1931 ("pulseaudio" ,pulseaudio)
1935 `(("pkg-config" ,pkg-config)))
1936 (home-page "https://www.mltframework.org/")
1937 (synopsis "Author, manage, and run multitrack audio/video compositions")
1939 "MLT is a multimedia framework, designed and developed for television
1940 broadcasting. It provides a toolkit for broadcasters, video editors, media
1941 players, transcoders, web streamers and many more types of applications. The
1942 functionality of the system is provided via an assortment of ready to use
1943 tools, XML authoring components, and an extensible plug-in based API.")
1944 (license license:gpl3)))
1946 (define-public v4l-utils
1952 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
1953 "/v4l-utils-" version ".tar.bz2"))
1956 "03g2b4rivrilimcp57mwrlsa3qvrxmk4sza08mygwmqbvcnic606"))))
1957 (build-system gnu-build-system)
1960 (list (string-append "--with-udevdir="
1961 (assoc-ref %outputs "out")
1963 "CXXFLAGS=-std=gnu++11")))
1966 ("pkg-config" ,pkg-config)))
1968 `(("alsa-lib" ,alsa-lib)
1970 ("libjpeg" ,libjpeg)
1974 (synopsis "Realtime video capture utilities for Linux")
1975 (description "The v4l-utils provide a series of libraries and utilities to
1976 be used for realtime video capture via Linux-specific APIs.")
1977 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
1978 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
1979 (license (list license:lgpl2.1+ license:gpl2))))
1987 (uri (string-append "https://github.com/jp9000/obs-studio"
1988 "/archive/" version ".tar.gz"))
1989 (file-name (string-append name "-" version ".tar.gz"))
1992 "1g5z6z050v25whc7n3xvg6l238wmg5crp7ihvk73qngvzxr8bg28"))))
1993 (build-system cmake-build-system)
1995 `(#:tests? #f)) ; no tests
1997 `(("pkg-config" ,pkg-config)))
1999 `(("alsa-lib" ,alsa-lib)
2003 ("fontconfig" ,fontconfig)
2004 ("freetype" ,freetype)
2006 ("jansson" ,jansson)
2007 ("libx264" ,libx264)
2008 ("libxcomposite" ,libxcomposite)
2010 ("pulseaudio" ,pulseaudio)
2012 ("qtx11extras" ,qtx11extras)
2014 ("v4l-utils" ,v4l-utils)
2016 (synopsis "Live streaming software")
2017 (description "Open Broadcaster Software provides a graphical interface for
2018 video recording and live streaming. OBS supports capturing audio and video
2019 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
2021 (home-page "https://obsproject.com")
2022 (supported-systems '("x86_64-linux" "i686-linux"))
2023 (license license:gpl2+)))
2025 (define-public libvdpau
2032 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2033 name "-" version ".tar.bz2"))
2036 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
2037 (build-system gnu-build-system)
2039 `(("pkg-config" ,pkg-config)))
2041 `(("libx11" ,libx11 "out")
2042 ("libxext" ,libxext)
2043 ("xorgproto" ,xorgproto)))
2044 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2045 (synopsis "Video Decode and Presentation API")
2046 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
2047 provides an interface to video decode acceleration and presentation hardware
2048 present in modern GPUs.")
2049 (license (license:x11-style "file://COPYING"))))
2051 (define-public vdpauinfo
2058 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2059 name "-" version ".tar.gz"))
2062 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
2063 (build-system gnu-build-system)
2065 `(("pkg-config" ,pkg-config)
2066 ("libx11" ,libx11)))
2068 `(("libvdpau" ,libvdpau)))
2069 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2070 (synopsis "Tool to query the capabilities of a VDPAU implementation")
2071 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
2073 (license (license:x11-style "file://COPYING"))))
2075 (define-public libvdpau-va-gl
2077 (name "libvdpau-va-gl")
2082 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
2083 "releases/download/v" version "/libvdpau-va-gl-"
2087 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
2088 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
2089 (modules '((guix build utils)))
2090 (snippet '(begin (delete-file-recursively "3rdparty")
2092 (build-system cmake-build-system)
2094 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
2096 `(("libvdpau" ,libvdpau)
2097 ("pkg-config" ,pkg-config)))
2101 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
2102 (synopsis "VDPAU driver with VA-API/OpenGL backend")
2104 "Many applications can use VDPAU to accelerate portions of the video
2105 decoding process and video post-processing to the GPU video hardware. Since
2106 there is no VDPAU available on Intel chips, they fall back to different drawing
2107 techniques. This driver uses OpenGL under the hood to accelerate drawing and
2108 scaling and VA-API (if available) to accelerate video decoding.")
2109 (license license:expat)))
2111 (define-public recordmydesktop
2113 (name "recordmydesktop")
2117 (uri (string-append "mirror://sourceforge/" name "/" name "/"
2118 version "/recordmydesktop-" version ".tar.gz"))
2121 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
2122 (build-system gnu-build-system)
2123 (inputs `(("popt" ,popt)
2128 ("libxfixes" ,libxfixes)
2129 ("libxdamage" ,libxdamage)
2130 ("libxext" ,libxext)
2131 ("alsa-lib" ,alsa-lib)
2132 ("libvorbis" ,libvorbis)
2133 ("libtheora" ,libtheora)))
2134 (home-page "http://recordmydesktop.sourceforge.net/")
2135 (synopsis "Desktop session video recorder")
2137 "recordMyDesktop is a command-line tool that captures the activity in
2138 your graphical desktop and encodes it as a video. This is a useful tool for
2139 making @dfn{screencasts}.")
2140 (license license:gpl2+)))
2142 (define-public simplescreenrecorder
2144 (name "simplescreenrecorder")
2149 (uri (string-append "https://github.com/MaartenBaert/ssr/archive/"
2151 (file-name (string-append name "-" version ".tar.gz"))
2154 "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal"))))
2155 (build-system cmake-build-system)
2156 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
2157 ;; README.md, the program builds and functions properly without them.
2158 ;; As a result, they are omitted. Please add them back if problems appear.
2160 `(("alsa-lib" ,alsa-lib)
2165 ("pulseaudio" ,pulseaudio)
2167 (native-inputs `(("pkg-config" ,pkg-config)))
2170 (list "-DWITH_QT5=TRUE")
2171 #:tests? #f)) ; no test suite
2172 ;; Using HTTPS causes part of the page to be displayed improperly.
2173 (home-page "http://www.maartenbaert.be/simplescreenrecorder/")
2174 (synopsis "Screen recorder")
2175 (description "SimpleScreenRecorder is an easy to use screen recorder with
2176 a graphical user interface. It supports recording the entire screen, or a
2177 part of it, and allows encoding in many different codecs and file formats.
2178 Other features include a live preview and live streaming.")
2179 (license (list license:gpl3+ ; most files
2180 license:zlib ; glinject/elfhacks.*
2181 license:isc ; glinject/*
2182 license:x11)))) ; build-aux/install-sh
2184 (define-public libsmpeg
2191 (url "svn://svn.icculus.org/smpeg/trunk/")
2192 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
2193 (file-name (string-append name "-" version "-checkout"))
2196 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
2197 (build-system gnu-build-system)
2199 `(#:phases (modify-phases %standard-phases
2200 (add-after 'unpack 'autogen.sh
2202 (zero? (system* "sh" "autogen.sh")))))))
2204 `(("autoconf" ,autoconf)
2205 ("automake" ,automake)))
2208 (home-page "http://icculus.org/smpeg/")
2209 (synopsis "SDL MPEG decoding library")
2211 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
2212 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
2213 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
2214 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
2215 and MPEG system streams.")
2216 (license (list license:expat
2221 (define-public libbdplus
2228 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
2229 version "/" name "-" version ".tar.bz2"))
2231 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
2233 `(("libgcrypt" ,libgcrypt)))
2234 (build-system gnu-build-system)
2235 (home-page "https://www.videolan.org/developers/libbdplus.html")
2236 (synopsis "Library for decrypting certain Blu-Ray discs")
2237 (description "libbdplus is a library which implements the BD+ System
2239 (license license:lgpl2.1+)))
2241 (define-public libaacs
2248 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
2249 version "/" name "-" version ".tar.bz2"))
2251 (base32 "1kms92i0c7i1yl659kqjf19lm8172pnpik5lsxp19xphr74vvq27"))))
2253 `(("libgcrypt" ,libgcrypt)))
2257 (build-system gnu-build-system)
2258 (home-page "https://www.videolan.org/developers/libaacs.html")
2259 (synopsis "Library for decrypting certain Blu-Ray discs")
2260 (description "libaacs is a library which implements the Advanced Access
2261 Content System specification.")
2262 (license license:lgpl2.1+)))
2264 (define-public mps-youtube
2266 (name "mps-youtube")
2271 (uri (string-append "https://github.com/mps-youtube/mps-youtube/"
2272 "archive/v" version ".tar.gz"))
2273 (file-name (string-append name "-" version ".tar.gz"))
2276 "0x7cmfh199q9j396v7bz81nnvanfllhsg86489i5dw2p3yyc9wnm"))))
2277 (build-system python-build-system)
2279 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
2280 ;; test suite results differ depending on the country and also introduce
2281 ;; non-determinism in the tests.
2282 ;; https://github.com/mps-youtube/mps-youtube/issues/556
2285 `(("python-pafy" ,python-pafy)
2286 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
2287 (home-page "https://github.com/mps-youtube/mps-youtube")
2288 (synopsis "Terminal based YouTube player and downloader")
2290 "@code{mps-youtube} is based on mps, a terminal based program to
2291 search, stream and download music. This implementation uses YouTube as
2292 a source of content and can play and download video as well as audio.
2293 It can use either mpv or mplayer for playback, and for conversion of
2294 formats ffmpeg or libav is used. Users should install one of the
2295 supported players in addition to this package.")
2296 (license license:gpl3+)))
2298 (define-public handbrake
2304 (uri (string-append "https://handbrake.fr/rotation.php?file="
2305 "HandBrake-" version ".tar.bz2"))
2306 (file-name (string-append "handbrake-" version ".tar.bz2"))
2309 "1w720y3bplkz187wgvy4a4xm0vpppg45mlni55l6yi8v2bfk14pv"))
2310 (patches (search-patches "handbrake-pkg-config-path.patch"))
2311 (modules '((guix build utils)))
2313 ;; Remove bundled libraries and source not necessary for
2314 ;; running under a GNU environment.
2316 (for-each delete-file-recursively '("contrib" "macosx" "win"))
2318 (build-system glib-or-gtk-build-system)
2320 `(("automake" ,automake) ;gui subpackage must be bootstrapped
2321 ("autoconf" ,autoconf)
2322 ("curl" ,curl) ;not actually used, but tested for
2323 ("intltool" ,intltool)
2324 ("libtool" ,libtool)
2325 ("pkg-config" ,pkg-config)
2326 ("python" ,python-2))) ;for configuration
2329 ("dbus-glib" ,dbus-glib)
2331 ("fontconfig" ,fontconfig)
2332 ("freetype" ,freetype)
2334 ("gstreamer" ,gstreamer)
2335 ("gst-plugins-base" ,gst-plugins-base)
2339 ("libbluray" ,libbluray)
2340 ("libdvdnav" ,libdvdnav)
2341 ("libdvdread" ,libdvdread)
2342 ("libgudev" ,libgudev)
2343 ("libmpeg2" ,libmpeg2)
2344 ("libnotify" ,libnotify)
2346 ("libsamplerate" ,libsamplerate)
2347 ("libtheora" ,libtheora)
2348 ("libvorbis" ,libvorbis)
2350 ("libxml2" ,libxml2)
2351 ("libx264" ,libx264)
2355 `(#:tests? #f ;tests require Ruby and claim to be unsupported
2357 (modify-phases %standard-phases
2359 ;; Run bootstrap ahead of time so that shebangs get patched.
2361 (setenv "CONFIG_SHELL" (which "sh"))
2362 (setenv "NOCONFIGURE" "1")
2363 ;; Patch the Makefile so that it doesn't bootstrap again.
2364 (substitute* "gtk/module.rules"
2365 ((".*autogen\\.sh.*") ""))
2366 (zero? (system* "sh" "./gtk/autogen.sh"))))
2367 (add-before 'configure 'disable-contrib
2369 (substitute* "make/include/main.defs"
2370 ;; Disable unconditional inclusion of some "contrib"
2371 ;; libraries (ffmpeg, libvpx, libdvdread, libdvdnav,
2372 ;; and libbluray), which would lead to fetching and
2373 ;; building of these libraries. Use our own instead.
2374 (("MODULES \\+= contrib") "# MODULES += contrib"))
2376 (add-before 'configure 'fix-x265-linking
2378 (substitute* "test/module.defs"
2379 ;; Fix missing library during linking error
2380 (("TEST.GCC.l =") "TEST.GCC.l = x265"))
2383 (lambda* (#:key outputs configure-flags #:allow-other-keys)
2384 ;; 'configure' is not an autoconf-generated script, and
2385 ;; errors on unrecognized arguments,
2386 ;; e.g. --enable-fast-install
2387 (let ((out (assoc-ref outputs "out")))
2388 (zero? (apply system* "./configure"
2389 (string-append "--prefix=" out)
2390 (or configure-flags '()))))))
2391 (add-after 'configure 'chdir-build
2392 (lambda _ (chdir "./build") #t)))))
2393 (home-page "https://handbrake.fr")
2394 (synopsis "Video transcoder")
2396 "HandBrake is a tool for converting video from any format to a selection
2397 of modern, widely supported codecs.")
2398 ;; Most under GPL version 2 or later, and portions under BSD 3 Clause
2399 (license (list license:gpl2+ license:bsd-3))))
2401 (define-public openh264
2407 (uri (string-append "https://github.com/cisco/"
2408 name "/archive/v" version ".tar.gz"))
2409 (file-name (string-append name "-" version ".tar.gz"))
2412 "0gv571bqkxk7ic64dmavs1q8nr7p59mcf4ibqp4lc070gn6w61ww"))))
2413 (build-system gnu-build-system)
2416 ("python" ,python)))
2418 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2420 #:test-target "test"
2421 #:phases (modify-phases %standard-phases
2422 ;; no configure script
2423 (delete 'configure))))
2424 (home-page "http://www.openh264.org/")
2425 (synopsis "H264 decoder library")
2427 "Openh264 is a library which can decode H264 video streams.")
2428 (license license:bsd-2)))
2430 (define-public libmp4v2
2437 ;; XXX: The new location of upstream is uncertain and will become relevant the
2438 ;; moment when the googlecode archive shuts down. It is past the date it
2439 ;; should've been turned off. I tried to communicate with upstream, but this
2440 ;; wasn't very responsive and not very helpful. The short summary is, it is
2441 ;; chaos when it comes to the amount of forks and only time will tell where
2442 ;; the new upstream location is.
2443 (uri (string-append "https://storage.googleapis.com/google-"
2444 "code-archive-downloads/v2/"
2445 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
2446 (file-name (string-append name "-" version ".tar.bz2"))
2449 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
2450 (build-system gnu-build-system)
2452 "static")) ; 3.7MiB .a file
2455 (modify-phases %standard-phases
2456 (add-after 'unpack 'remove-dates
2458 ;; Make the build reproducible.
2459 (substitute* "configure"
2460 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
2461 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
2463 (add-after 'install 'move-static-libraries
2464 (lambda* (#:key outputs #:allow-other-keys)
2465 ;; Move static libraries to the "static" output.
2466 (let* ((out (assoc-ref outputs "out"))
2467 (lib (string-append out "/lib"))
2468 (static (assoc-ref outputs "static"))
2469 (slib (string-append static "/lib")))
2471 (for-each (lambda (file)
2472 (install-file file slib)
2474 (find-files lib "\\.a$"))
2477 `(("help2man" ,help2man)
2478 ("dejagnu" ,dejagnu)))
2479 (home-page "https://code.google.com/archive/p/mp4v2/")
2480 (synopsis "API to create and modify mp4 files")
2482 "The MP4v2 library provides an API to create and modify mp4 files as defined by
2483 ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
2484 file format that has been used as a multimedia file format in a variety of platforms and
2485 applications. It is a very powerful and extensible format that can accommodate
2486 practically any type of media.")
2487 (license license:mpl1.1)))
2489 (define-public libmediainfo
2491 (name "libmediainfo")
2495 (uri (string-append "https://mediaarea.net/download/source/"
2497 name "_" version ".tar.bz2"))
2500 "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b"))))
2501 ;; TODO add a Big Buck Bunny webm for tests.
2503 `(("autoconf" ,autoconf)
2504 ("automake" ,automake)
2505 ("libtool" ,libtool)
2506 ("pkg-config" ,pkg-config)
2508 ("tinyxml2" ,tinyxml2)
2510 ("libzen" ,libzen)))
2511 (build-system gnu-build-system)
2513 '(#:tests? #f ; see above TODO
2515 ;; build scripts not in root of archive
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'change-to-build-dir
2519 (chdir "Project/GNU/Library")
2521 (add-after 'change-to-build-dir 'autogen
2523 (zero? (system* "sh" "autogen.sh")))))))
2524 (home-page "https://mediaarea.net/en/MediaInfo")
2525 (synopsis "Library for retrieving media metadata")
2526 (description "MediaInfo is a library used for retrieving technical
2527 information and other metadata about audio or video files. A non-exhaustive
2528 list of the information MediaInfo can retrieve from media files include:
2531 @item General: title, author, director, album, track number, date, duration...
2532 @item Video: codec, aspect, fps, bitrate...
2533 @item Audio: codec, sample rate, channels, language, bitrate...
2534 @item Text: language of subtitle
2535 @item Chapters: number of chapters, list of chapters
2538 MediaInfo supports the following formats:
2541 @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
2542 MPEG-2, MPEG-4, DVD (VOB)...
2543 @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
2544 @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
2545 @item Subtitles: SRT, SSA, ASS, SAMI...
2547 (license license:bsd-2)))
2549 ;; TODO also have a GUI version available
2550 (define-public mediainfo
2556 (uri (string-append "https://mediaarea.net/download/source/"
2557 name "/" version "/"
2558 name "_" version ".tar.bz2"))
2561 "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv"))))
2563 `(("autoconf" ,autoconf)
2564 ("automake" ,automake)
2565 ("libtool" ,libtool)
2566 ("pkg-config" ,pkg-config)
2568 ("libmediainfo" ,libmediainfo)
2569 ("libzen" ,libzen)))
2570 (build-system gnu-build-system)
2572 '(#:tests? #f ; lacks tests
2574 ;; build scripts not in root of archive
2575 (modify-phases %standard-phases
2576 (add-after 'unpack 'change-to-build-dir
2578 (chdir "Project/GNU/CLI")
2580 (add-after 'change-to-build-dir 'autogen
2582 (zero? (system* "sh" "autogen.sh")))))))
2583 (home-page "https://mediaarea.net/en/MediaInfo")
2584 (synopsis "Utility for reading media metadata")
2585 (description "MediaInfo is a utility used for retrieving technical
2586 information and other metadata about audio or video files. It supports the
2587 many codecs and formats supported by libmediainfo.")
2588 (license license:bsd-2)))
2590 (define-public livemedia-utils
2592 (name "livemedia-utils")
2593 (version "2017.10.28")
2597 "https://download.videolan.org/contrib/live555/live."
2601 "0f5kxpayqn3yhabqrd2cqlc74i6x2xr01jfkank1lcilxnfyrsnq"))
2602 (modules '((guix build utils)))
2604 ;; As of glibc 2.26, <xlocale.h> no longer is.
2605 (substitute* "liveMedia/include/Locale.hh"
2606 (("xlocale\\.h") "locale.h"))
2608 (build-system gnu-build-system)
2610 '(#:tests? #f ; no tests
2611 #:make-flags (list "CC=gcc"
2612 (string-append "LDFLAGS=-Wl,-rpath="
2613 (assoc-ref %outputs "out") "/lib")
2614 (string-append "PREFIX="
2615 (assoc-ref %outputs "out")))
2616 #:phases (modify-phases %standard-phases
2617 (add-before 'configure 'fix-makefiles-generation
2619 (substitute* "genMakefiles"
2624 (zero? (system* "./genMakefiles"
2625 "linux-with-shared-libraries")))))))
2626 (home-page "http://www.live555.com/liveMedia/")
2627 (synopsis "Set of C++ libraries for multimedia streaming")
2628 (description "This code forms a set of C++ libraries for multimedia
2629 streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
2630 can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
2631 JPEG video, and several audio codecs. They can easily be extended to support
2632 additional (audio and/or video) codecs, and can also be used to build basic
2633 RTSP or SIP clients and servers.")
2634 (license license:lgpl3+)))
2636 (define-public libdvbpsi
2643 "https://download.videolan.org/pub/libdvbpsi/"
2644 version "/libdvbpsi-" version ".tar.bz2"))
2647 "1zn5hfv4qbahmydbwh59a3b480s3m5ss27r6ml35gqdip7r3jkmc"))))
2648 (build-system gnu-build-system)
2649 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
2650 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
2652 (description "libdvbpsi is a simple library designed for decoding and
2653 generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
2654 and ITU-T H.222.0.")
2655 (license license:lgpl2.1)))
2657 (define-public ffms2
2661 (home-page "https://github.com/FFMS/ffms2")
2664 (uri (string-append home-page "/archive/" version ".tar.gz"))
2665 (file-name (string-append name "-" version ".tar.gz"))
2668 "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh"))))
2669 (build-system gnu-build-system)
2672 (list "--enable-avresample")))
2676 `(("ffmpeg" ,ffmpeg)))
2678 `(("pkg-config" ,pkg-config)))
2679 (synopsis "Cross-platform wrapper around ffmpeg/libav")
2681 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
2682 programmers to access a standard API to open and decompress media files.")
2683 ;; sources are distributed under a different license that the binary.
2684 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
2685 (license license:gpl2+))); inherits from ffmpeg
2687 (define-public aegisub
2694 "http://ftp.aegisub.org/pub/archives/releases/source/"
2695 name "-" version ".tar.xz"))
2698 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))))
2699 (build-system gnu-build-system)
2702 (list "--disable-update-checker"
2703 "--without-portaudio"
2706 ;; tests require busted, a lua package we don't have yet
2709 (modify-phases %standard-phases
2710 (add-before 'configure 'fix-ldflags
2712 (setenv "LDFLAGS" "-pthread"))))))
2715 ("desktop-file-utils" ,desktop-file-utils)
2718 ("hunspell" ,hunspell)
2721 ("alsa-lib" ,alsa-lib)
2722 ("pulseaudio" ,pulseaudio)
2724 ("freetype" ,freetype)
2725 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2727 `(("intltool" ,intltool)
2728 ("pkg-config" ,pkg-config)))
2729 (home-page "http://www.aegisub.org/")
2730 (synopsis "Subtitle engine")
2732 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
2733 it quick and easy to time subtitles to audio, and features many powerful
2734 tools for styling them, including a built-in real-time video preview.")
2735 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
2736 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
2737 license:expat)))) ; and src/gl that is under a license similar
2738 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
2739 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
2740 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
2742 (define-public gst-transcoder
2744 (name "gst-transcoder")
2749 (uri (string-append "https://github.com/pitivi/gst-transcoder/"
2750 "archive/" version ".tar.gz"))
2751 (file-name (string-append name "-" version ".tar.gz"))
2754 "0cnwmrsd321s02ff91m3j27ydj7f8wks0jvmp5admlhka6z7zxm9"))))
2755 (build-system meson-build-system)
2757 `(("gobject-introspection" ,gobject-introspection)
2759 ("gstreamer" ,gstreamer)
2760 ("gst-plugins-base" ,gst-plugins-base)))
2762 `(("python" ,python)
2763 ("pkg-config" ,pkg-config)))
2764 (home-page "https://github.com/pitivi/gst-transcoder/")
2765 (synopsis "GStreamer Transcoding API")
2766 (description "GStreamer Transcoding API")
2767 (license license:lgpl2.1)))
2776 (uri (string-append "mirror://sourceforge/gmerlin/"
2777 name "/" version "/"
2778 name "-" version ".tar.gz"))
2779 (file-name (string-append name "-" version ".tar.gz"))
2782 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
2783 (build-system gnu-build-system)
2785 '(#:configure-flags '("LIBS=-lm")))
2787 `(("pkg-config" ,pkg-config)
2788 ("doxygen" ,doxygen)))
2789 (home-page "http://gmerlin.sourceforge.net")
2790 (synopsis "Low level library for multimedia API building")
2792 "Gavl is short for Gmerlin Audio Video Library. It is a low level
2793 library, upon which multimedia APIs can be built. Gavl handles all the
2794 details of audio and video formats like colorspaces, sample rates,
2795 multichannel configurations, etc. It provides standardized definitions for
2796 those formats as well as container structures for carrying audio samples or
2797 video images inside an application.
2799 In addition, it handles the sometimes ugly task of converting between all
2800 these formats and provides some elementary operations (copying, scaling,
2801 alpha blending etc).")
2802 (license license:gpl3)))
2804 (define-public frei0r-plugins
2806 (name "frei0r-plugins")
2811 (uri (string-append "https://files.dyne.org/frei0r/"
2812 "frei0r-plugins-" version ".tar.gz"))
2815 "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0"))))
2816 (build-system gnu-build-system)
2819 (modify-phases %standard-phases
2820 (add-after 'unpack 'autotools
2822 (invoke "sh" "autogen.sh"))))))
2823 ;; TODO: opencv for additional face detection filters.
2828 `(("pkg-config" ,pkg-config)
2829 ("libtool" ,libtool)
2830 ("automake" ,automake)
2831 ("autoconf" ,autoconf)))
2832 (home-page "https://www.dyne.org/software/frei0r/")
2833 (synopsis "Minimalistic plugin API for video effects")
2835 "Frei0r is a minimalistic plugin API for video effects.
2836 The main emphasis is on simplicity for an API that will round up
2837 the most common video effects into simple filters, sources and
2838 mixers that can be controlled by parameters. Frei0r wants to
2839 provide a way to share these simple effects between many
2840 applications, avoiding their reimplementation by different projects.
2841 It counts more than 100 plugins.")
2842 (license (list license:gpl2+
2843 ;; The following files are licensed as LGPL2.1+:
2844 ;; src/generator/ising0r/ising0r.c
2845 ;; src/generator/onecol0r/onecol0r.cpp
2846 ;; src/generator/nois0r/nois0r.cpp
2847 ;; src/generator/lissajous0r/lissajous0r.cpp
2848 ;; src/filter/ndvi/gradientlut.hpp
2849 ;; src/filter/ndvi/ndvi.cpp
2850 ;; src/filter/facedetect/facedetect.cpp
2851 license:lgpl2.1+))))
2853 (define-public motion
2857 (home-page "https://motion-project.github.io/")
2861 "https://github.com/Motion-Project/motion/archive/"
2862 "release-" version ".tar.gz"))
2865 "1qm4i8zrqafl60sv2frhixvkd0wh0r5jfcrj5i6gha7yplsvjx10"))
2866 (file-name (string-append name "-" version ".tar.gz"))))
2867 (build-system gnu-build-system)
2869 `(("autoconf" ,autoconf-wrapper)
2870 ("automake" ,automake)
2871 ("pkg-config" ,pkg-config)))
2873 `(("libjpeg" ,libjpeg)
2874 ("ffmpeg" ,ffmpeg-3.4)
2875 ("sqlite" ,sqlite)))
2877 '(#:phases (modify-phases %standard-phases
2880 (patch-shebang "version.sh")
2881 (invoke "autoreconf" "-vfi"))))
2882 #:configure-flags '("--sysconfdir=/etc")
2883 #:make-flags (list (string-append "sysconfdir="
2884 (assoc-ref %outputs "out")
2887 #:tests? #f)) ;no 'check' target
2888 (synopsis "Detect motion from video signals")
2890 "Motion is a program that monitors the video signal from one or more
2891 cameras and is able to detect if a significant part of the picture has
2892 changed. Or in other words, it can detect motion.")
2894 ;; Some files say "version 2" and others "version 2 or later".
2895 (license license:gpl2)))
2897 (define-public subdl
2898 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
2902 (version (git-version "1.0.3" revision commit))
2906 (url "https://github.com/alexanderwink/subdl.git")
2908 (file-name (git-file-name name version))
2911 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
2912 (build-system trivial-build-system)
2914 `(#:modules ((guix build utils))
2916 (use-modules (guix build utils))
2917 (let* ((out (assoc-ref %outputs "out"))
2918 (bin (string-append out "/bin"))
2919 (source (assoc-ref %build-inputs "source"))
2920 (python (assoc-ref %build-inputs "python")))
2921 (install-file (string-append source "/subdl") bin)
2922 (patch-shebang (string-append bin "/subdl")
2923 (list (string-append python "/bin")))))))
2924 (inputs `(("python" ,python)))
2925 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
2926 (description "Subdl is a command-line tool for downloading subtitles from
2927 opensubtitles.org. By default, it will search for English subtitles, display
2928 the results, download the highest-rated result in the requested language and
2929 save it to the appropriate filename.")
2930 (license license:gpl3+)
2931 (home-page "https://github.com/alexanderwink/subdl"))))
2933 (define-public l-smash
2940 "https://github.com/" name "/" name "/archive/v"
2942 (file-name (string-append name "-" version ".tar.gz"))
2945 "0dary0h65kq6sv93iabv25djlvzr5ckdcp3ywagbix44wqfw7xz6"))))
2946 (build-system gnu-build-system)
2948 `(#:tests? #f ;no tests
2950 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
2951 (assoc-ref %outputs "out") "/lib"))
2953 (modify-phases %standard-phases
2954 ;; configure fails if it is followed by CONFIG_SHELL
2956 (lambda* (#:key outputs #:allow-other-keys)
2957 (let ((out (assoc-ref outputs "out")))
2958 (invoke "./configure" (string-append "--prefix=" out)
2959 "--disable-static")))))))
2961 `(("which" ,which)))
2962 (home-page "https://l-smash.github.io/l-smash/")
2963 (synopsis "MP4 multiplexer and demultiplexer library")
2965 "L-SMASH is a cross-platform library that handles the ISO base media file
2966 format and some of its derived file formats, including MP4. It operates as a
2967 multiplexer and demultiplexer, and can mux video and audio in several formats
2968 using standalone executable files.")
2969 (license license:isc)))