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 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 ((guix licenses) #:prefix license:)
48 #:use-module (guix utils)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix svn-download)
53 #:use-module (guix build-system cmake)
54 #:use-module (guix build-system gnu)
55 #:use-module (guix build-system glib-or-gtk)
56 #:use-module (guix build-system meson)
57 #:use-module (guix build-system perl)
58 #:use-module (guix build-system python)
59 #:use-module (guix build-system waf)
60 #:use-module (guix build-system trivial)
61 #:use-module (gnu packages)
62 #:use-module (gnu packages algebra)
63 #:use-module (gnu packages audio)
64 #:use-module (gnu packages autotools)
65 #:use-module (gnu packages avahi)
66 #:use-module (gnu packages base)
67 #:use-module (gnu packages bison)
68 #:use-module (gnu packages boost)
69 #:use-module (gnu packages cdrom)
70 #:use-module (gnu packages check)
71 #:use-module (gnu packages cmake)
72 #:use-module (gnu packages compression)
73 #:use-module (gnu packages cpp)
74 #:use-module (gnu packages curl)
75 #:use-module (gnu packages databases)
76 #:use-module (gnu packages dejagnu)
77 #:use-module (gnu packages docbook)
78 #:use-module (gnu packages documentation)
79 #:use-module (gnu packages elf)
80 #:use-module (gnu packages file)
81 #:use-module (gnu packages flex)
82 #:use-module (gnu packages fontutils)
83 #:use-module (gnu packages freedesktop)
84 #:use-module (gnu packages fribidi)
85 #:use-module (gnu packages gettext)
86 #:use-module (gnu packages ghostscript)
87 #:use-module (gnu packages gl)
88 #:use-module (gnu packages glib)
89 #:use-module (gnu packages guile)
90 #:use-module (gnu packages gnome)
91 #:use-module (gnu packages gnupg)
92 #:use-module (gnu packages gstreamer)
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages imagemagick)
96 #:use-module (gnu packages iso-codes)
97 #:use-module (gnu packages libreoffice)
98 #:use-module (gnu packages linux)
99 #:use-module (gnu packages lua)
100 #:use-module (gnu packages m4)
101 #:use-module (gnu packages man)
102 #:use-module (gnu packages mp3)
103 #:use-module (gnu packages ncurses)
104 #:use-module (gnu packages ocr)
105 #:use-module (gnu packages perl)
106 #:use-module (gnu packages pkg-config)
107 #:use-module (gnu packages popt)
108 #:use-module (gnu packages pulseaudio)
109 #:use-module (gnu packages python)
110 #:use-module (gnu packages python-crypto)
111 #:use-module (gnu packages python-web)
112 #:use-module (gnu packages qt)
113 #:use-module (gnu packages ruby)
114 #:use-module (gnu packages sdl)
115 #:use-module (gnu packages serialization)
116 #:use-module (gnu packages shells)
117 #:use-module (gnu packages ssh)
118 #:use-module (gnu packages texinfo)
119 #:use-module (gnu packages textutils)
120 #:use-module (gnu packages tls)
121 #:use-module (gnu packages version-control)
122 #:use-module (gnu packages vulkan)
123 #:use-module (gnu packages web)
124 #:use-module (gnu packages webkit)
125 #:use-module (gnu packages wxwidgets)
126 #:use-module (gnu packages xdisorg)
127 #:use-module (gnu packages xiph)
128 #:use-module (gnu packages xml)
129 #:use-module (gnu packages xorg)
130 #:use-module (gnu packages assembly))
138 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
139 version "/" name "-" version ".tar.gz"))
142 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
143 (build-system gnu-build-system)
145 `(("makeinfo" ,texinfo)))
147 `(("ncurses" ,ncurses)))
150 (modify-phases %standard-phases
152 (lambda* (#:key build inputs outputs #:allow-other-keys)
153 ;; This old `configure' script doesn't support
154 ;; variables passed as arguments.
155 (let ((out (assoc-ref outputs "out"))
156 (ncurses (assoc-ref inputs "ncurses")))
157 (setenv "CONFIG_SHELL" (which "bash"))
158 (zero? (system* "./configure"
159 (string-append "--prefix=" out)
160 (string-append "--build=" build)
161 ;; The ancient config.guess is unable to
162 ;; guess the host triplet on mips64el.
163 ,@(if (string=? "mips64el-linux"
165 '("--host=mips64el-unknown-linux-gnu")
167 ;; The same is also true with aarch64.
168 ,@(if (string=? "aarch64-linux"
170 '("--host=aarch64-unknown-linux-gnu")
172 (string-append "--with-ncurses="
174 (home-page "http://aa-project.sourceforge.net/aalib/")
175 (synopsis "ASCII-art library")
177 "AA-lib is a low level gfx library which does not require graphics device.
178 In fact, there is no graphical output possible. AA-lib replaces those
179 old-fashioned output methods with powerful ascii-art renderer.")
180 (license license:lgpl2.0+)))
182 (define-public liba52
189 ;; A mirror://sourceforge URI doesn't work, presumably
190 ;; because the SourceForge project is misconfigured.
191 "http://liba52.sourceforge.net/files/a52dec-" version
195 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
196 (patches (search-patches "liba52-enable-pic.patch"
197 "liba52-set-soname.patch"
198 "liba52-use-mtune-not-mcpu.patch"
199 "liba52-link-with-libm.patch"))))
200 (build-system gnu-build-system)
201 ;; XXX We need to run ./bootstrap because of the build system fixes above.
203 `(("autoconf" ,autoconf)
204 ("automake" ,automake)
205 ("libtool" ,libtool)))
206 (arguments `(#:configure-flags '("--enable-shared")
208 (modify-phases %standard-phases
209 ;; XXX We need to run ./bootstrap because of the build
210 ;; system fixes above.
213 (lambda _ (zero? (system* "sh" "bootstrap")))))))
214 (home-page "http://liba52.sourceforge.net/")
215 (synopsis "ATSC A/52 stream decoder")
216 (description "liba52 is a library for decoding ATSC A/52 streams. The
217 A/52 standard is used in a variety of applications, including digital
218 television and DVD. It is also known as AC-3.")
219 (license license:gpl2+)))
221 (define-public libmpeg2
227 ;; A mirror://sourceforge URI doesn't work, presumably
228 ;; because the SourceForge project is misconfigured.
229 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
230 name "-" version ".tar.gz"))
233 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
241 (build-system gnu-build-system)
242 (home-page "http://libmpeg2.sourceforge.net/")
243 (synopsis "MPEG1 and MPEG2 video decoder library")
245 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
246 (license license:gpl2+)))
248 (define-public libx264
251 (version "20180219-2245")
254 (uri (string-append "https://download.videolan.org/pub/x264/snapshots/"
255 "x264-snapshot-" version "-stable.tar.bz2"))
258 "1x0cg8l30wp84mr7q0ddp06jclm0kjrszazrx87d4k7js3qxjy8m"))))
259 (build-system gnu-build-system)
261 `(("pkg-config" ,pkg-config)
263 ;; TODO: Add gpac input
265 `(#:tests? #f ;no check target
266 #:configure-flags '("--enable-shared"
267 ;; Don't build the command-line program. If we
268 ;; want it later, we should do so in a different
269 ;; package to avoid a circular dependency (the x264
270 ;; program depends on ffmpeg and ffmpeg depends on
274 ;; On MIPS, we must pass "--disable-asm" or else
275 ;; configure fails after printing: "You specified a
276 ;; pre-MSA CPU in your CFLAGS. If you really want
277 ;; to run on such a CPU, configure with
279 ,@(if (string-prefix? "mips"
280 (or (%current-target-system)
284 (home-page "https://www.videolan.org/developers/x264.html")
285 (synopsis "H.264 video coding library")
286 (description "libx264 is an advanced encoding library for creating
287 H.264 (MPEG-4 AVC) video streams.")
288 (license (list license:gpl2+ ;most files
289 license:isc ;common/x86/x86inc.asm
290 license:lgpl2.1+ ;extras/getopt.c
291 license:bsd-3 ;extras/inttypes.h
292 (license:non-copyleft ;extras/cl*.h
294 "See extras/cl.h in the distribution.")))))
296 (define-public mkvtoolnix
303 (uri (string-append "https://mkvtoolnix.download/sources/"
304 name "-" version ".tar.xz"))
307 "0hknnnnx9661igm1r73dc7aqxnnrl5a8yvyvr1nhd9ymn2klwpl5"))
308 (modules '((guix build utils)))
311 ;; Delete bundled libraries.
312 (for-each delete-file-recursively
318 (build-system gnu-build-system)
325 ("libmatroska" ,libmatroska)
327 ("libvorbis" ,libvorbis)
334 `(("docbook-xsl" ,docbook-xsl)
335 ("gettext" ,gettext-minimal)
336 ("googletest" ,googletest)
338 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
340 ("pkg-config" ,pkg-config)
345 (list (string-append "--with-boost="
346 (assoc-ref %build-inputs "boost"))
347 (string-append "--with-docbook-xsl-root="
348 (assoc-ref %build-inputs "docbook-xsl")
349 "/xml/xsl/docbook-xsl-"
350 ,(package-version docbook-xsl))
351 (string-append "--with-extra-includes="
352 (assoc-ref %build-inputs "nlohmann-json-cpp")
353 "/include/nlohmann"))
355 (modify-phases %standard-phases
356 (add-before 'configure 'add-googletest
359 (string-append (assoc-ref %build-inputs "googletest")
360 "/include/gtest") "lib/gtest")
364 (let ((-j (list "-j" (number->string (parallel-job-count)))))
365 (zero? (apply system* "rake" -j)))))
368 (zero? (system* "rake" "tests/unit"))))
371 (zero? (system* "rake" "install")))))))
372 (home-page "https://mkvtoolnix.download")
373 (synopsis "Tools to create, alter and inspect Matroska files")
375 "MKVToolNix provides tools for getting information about Matroska files
376 (@code{mkvinfo}), extracting tracks/data from Matroska files (@code{mkvextract})
377 and creating Matroska files from other media files (@code{mkvmerge}).")
378 (license license:gpl2)))
387 (uri (string-append "https://download.videolan.org/videolan/x265/"
388 "x265_" version ".tar.gz"))
391 "1gyd94jkwdii9308m07nymsbxrmrcl81c0j8i10zhslr2mj07w0v"))
392 (modules '((guix build utils)))
394 '(delete-file-recursively "source/compat/getopt"))))
395 (build-system cmake-build-system)
397 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
398 ;; Currently the source code doesn't check for aarch64
399 ,@(if (string-prefix? "aarch64" (or (%current-target-system) (%current-system)))
400 '(#:configure-flags '("-DENABLE_PIC=TRUE"))
403 (modify-phases %standard-phases
404 (add-before 'configure 'prepare-build
406 (delete-file-recursively "build")
409 (home-page "http://x265.org/")
410 (synopsis "Library for encoding h.265/HEVC video streams")
411 (description "x265 is a H.265 / HEVC video encoder application library,
412 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
413 (license license:gpl2+)))
415 (define-public libass
422 "https://github.com/libass/libass/releases/download/"
423 version "/libass-" version ".tar.xz"))
426 "18iqznl4mabhj9ywfsz4kwvbsplcv1jjxq50nxssvbj8my1267w8"))))
427 (build-system gnu-build-system)
429 `(("pkg-config" ,pkg-config)
432 `(("freetype" ,freetype)
434 ("fontconfig" ,fontconfig)
435 ("harfbuzz" ,harfbuzz)
437 (home-page "https://github.com/libass/libass")
438 (synopsis "Subtitle rendering library for the ASS/SSA format")
439 (description "libass is a subtitle rendering library for the
440 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
441 (license license:isc)))
443 (define-public libcaca
446 (version "0.99.beta19")
449 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
453 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
454 (build-system gnu-build-system)
455 (native-inputs `(("pkg-config" ,pkg-config)))
457 `(("freeglut" ,freeglut)
464 (home-page "http://caca.zoy.org/wiki/libcaca")
465 (synopsis "Colour ASCII-art library")
466 (description "libcaca is a graphics library that outputs text instead of
467 pixels, so that it can work on older video cards or text terminals. It
468 supports Unicode, 2048 colors, dithering of color images, and advanced text
470 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
472 (define-public libdca
479 "https://download.videolan.org/pub/videolan/libdca/"
480 version "/libdca-" version ".tar.bz2"))
483 "0hh6a7l8vvccsd5i1fkv9av2gzv9fy8m0b8jpsn5p6hh4bh2586v"))))
484 (build-system gnu-build-system)
485 (home-page "https://www.videolan.org/developers/libdca.html")
486 (synopsis "DTS Coherent Acoustics decoder")
487 (description "libdca is a library for decoding DTS Coherent Acoustics
489 (license license:gpl2+)))
498 "mirror://sourceforge/" name "/" name "/"
499 version "/" name "-" version ".tar.gz"))
502 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
503 (build-system gnu-build-system)
504 (native-inputs `(("pkg-config" ,pkg-config)))
505 (inputs `(("libxv" ,libxv)))
506 (home-page "http://libdv.sourceforge.net/")
507 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
508 (description "The Quasar DV codec (libdv) is a software codec for DV
509 video, the encoding format used by most digital camcorders, typically those
510 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
511 developed according to the official standards for DV video: IEC 61834 and
513 (license license:lgpl2.1+)))
515 (define-public libmatroska
522 (uri (string-append "https://dl.matroska.org/downloads/"
523 name "/" name "-" version ".tar.xz"))
526 "14n9sw974prr3yp4yjb7aadi6x2yz5a0hjw8fs3qigy5shh2piyq"))))
527 (build-system gnu-build-system)
529 `(("pkg-config" ,pkg-config)))
531 `(("libebml" ,libebml)))
532 (home-page "https://www.matroska.org")
533 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
535 "Matroska aims to become the standard of multimedia container formats.
536 It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
537 of XML. EBML enables the Matroska Development Team to gain significant
538 advantages in terms of future format extensibility, without breaking file
539 support in old parsers.
540 libebml is a C++ library to read and write EBML files.")
541 (license license:lgpl2.1)))
551 ;; Newer releases are only available on GitHub.
552 (string-append "https://github.com/01org/libva/releases/download/"
553 version "/libva-" version ".tar.bz2")
554 ;; Keep the old URL around for compatibility.
555 (string-append "https://www.freedesktop.org/software/vaapi/releases/"
556 "libva/libva-" version "/libva-" version ".tar.bz2")))
558 (base32 "03sb1b3fxw8myf9kz6rxw5f3v1p0vfmk34779qx0q8fk24x9bypk"))))
559 (build-system gnu-build-system)
561 `(("pkg-config" ,pkg-config)))
566 ("libxfixes" ,libxfixes)
568 ("wayland" ,wayland)))
571 (modify-phases %standard-phases
573 'build 'fix-dlopen-paths
574 (lambda* (#:key outputs #:allow-other-keys)
575 (let ((out (assoc-ref outputs "out")))
576 (substitute* "va/drm/va_drm_auth_x11.c"
577 (("\"libva-x11\\.so\\.%d\"")
578 (string-append "\"" out "/lib/libva-x11.so.%d\"")))))))
579 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
580 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
582 (list (string-append "--with-drivers-path="
583 (assoc-ref %build-inputs "mesa") "/lib/dri"))
584 ;; However, we can't write to mesa's store directory, so override the
585 ;; following make variable to install the dummy driver to libva's
586 ;; $prefix/lib/dri directory.
588 (list (string-append "dummy_drv_video_ladir="
589 (assoc-ref %outputs "out") "/lib/dri"))))
590 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
591 (synopsis "Video acceleration library")
592 (description "The main motivation for VA-API (Video Acceleration API) is
593 to enable hardware accelerated video decode/encode at various
594 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
595 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
596 (license license:expat)))
598 (define-public ffmpeg
604 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
608 "0gx4ngnhi5glmxh38603qy5n6vq8bl1cr4sqd1xff95i82pmv57d"))))
609 (build-system gnu-build-system)
611 `(("fontconfig" ,fontconfig)
612 ("freetype" ,freetype)
613 ("frei0r-plugins" ,frei0r-plugins)
619 ("libbluray" ,libbluray)
621 ("libcdio-paranoia" ,libcdio-paranoia)
622 ("libtheora" ,libtheora)
624 ("libvdpau" ,libvdpau)
625 ("libvorbis" ,libvorbis)
631 ("pulseaudio" ,pulseaudio)
642 ("pkg-config" ,pkg-config)
644 ("python" ,python-2) ; scripts use interpreter python2
648 `(#:test-target "fate"
650 ;; possible additional inputs:
651 ;; --enable-avisynth enable reading of AviSynth script
653 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
654 ;; --enable-libcelt enable CELT decoding via libcelt [no]
655 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
656 ;; and libraw1394 [no]
657 ;; --enable-libfaac enable AAC encoding via libfaac [no]
658 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
659 ;; --enable-libflite enable flite (voice synthesis) support via
661 ;; --enable-libgme enable Game Music Emu via libgme [no]
662 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
663 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
664 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
665 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
666 ;; --enable-libnut enable NUT (de)muxing via libnut,
667 ;; native (de)muxer exists [no]
668 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
669 ;; libopencore-amrnb [no]
670 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
671 ;; libopencore-amrwb [no]
672 ;; --enable-libopencv enable video filtering via libopencv [no]
673 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
675 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
676 ;; --enable-libschroedinger enable Dirac de/encoding via
677 ;; libschroedinger [no]
678 ;; --enable-libshine enable fixed-point MP3 encoding via
680 ;; --enable-libssh enable SFTP protocol via libssh [no]
681 ;; (libssh2 does not work)
682 ;; --enable-libstagefright-h264 enable H.264 decoding via
683 ;; libstagefright [no]
684 ;; --enable-libutvideo enable Ut Video encoding and decoding via
686 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
687 ;; --enable-libvidstab enable video stabilization using
689 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
690 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
691 ;; libvo-amrwbenc [no]
692 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
693 ;; --enable-libxavs enable AVS encoding via xavs [no]
694 ;; --enable-libzmq enable message passing via libzmq [no]
695 ;; --enable-libzvbi enable teletext support via libzvbi [no]
696 ;; --enable-opencl enable OpenCL code
697 '("--enable-avresample"
698 "--enable-gpl" ; enable optional gpl licensed parts
701 "--enable-fontconfig"
708 "--enable-libfreetype"
709 "--enable-libmp3lame"
715 "--enable-libtwolame"
724 "--enable-runtime-cpudetect"
726 ;; The HTML pages take 7.2 MiB
727 "--disable-htmlpages"
729 ;; The static libraries are 23 MiB
732 ;; Runtime cpu detection is not implemented on
733 ;; MIPS, so we disable some features.
736 "--disable-mipsdspr2"
739 (modify-phases %standard-phases
742 ;; configure does not work followed by "SHELL=..." and
743 ;; "CONFIG_SHELL=..."; set environment variables instead
744 (lambda* (#:key outputs configure-flags #:allow-other-keys)
745 (let ((out (assoc-ref outputs "out")))
746 (substitute* "configure"
747 (("#! /bin/sh") (string-append "#!" (which "sh"))))
748 (setenv "SHELL" (which "bash"))
749 (setenv "CONFIG_SHELL" (which "bash"))
750 (zero? (apply system*
752 (string-append "--prefix=" out)
753 ;; Add $libdir to the RUNPATH of all the binaries.
754 (string-append "--extra-ldflags=-Wl,-rpath="
758 'check 'set-ld-library-path
760 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
762 (let* ((dso (find-files "." "\\.so$"))
763 (path (string-join (map dirname dso) ":")))
764 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
765 (setenv "LD_LIBRARY_PATH" path)
767 (home-page "https://www.ffmpeg.org/")
768 (synopsis "Audio and video framework")
769 (description "FFmpeg is a complete, cross-platform solution to record,
770 convert and stream audio and video. It includes the libavcodec
771 audio/video codec library.")
772 (license license:gpl2+)))
774 (define-public ffmpeg-3.4
780 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
784 "0h6prjn1ijkzzhkyj8mazp0wpx7m0n9ycadjxagf9czqirbyk4ib"))))))
786 (define-public ffmpeg-2.8
792 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
796 "05m1272r5qa2r0ym5vq4figdfnpvcys1fgb1026n5s6xdjd1s1pg"))))
798 (substitute-keyword-arguments (package-arguments ffmpeg)
799 ((#:configure-flags flags)
801 (if (string=? flag "--disable-mipsdsp")
802 "--disable-mipsdspr1"
813 "https://download.videolan.org/pub/videolan/vlc/"
814 version "/vlc-" version ".tar.xz"))
817 "1v32snw46rkgbdqdy3dssl2y13i8p2cr1cw1i18r6vdmiy24dw4v"))))
818 (build-system gnu-build-system)
820 `(("git" ,git) ; needed for a test
821 ("pkg-config" ,pkg-config)))
822 ;; FIXME: Add optional inputs once available.
824 `(("alsa-lib" ,alsa-lib)
828 ("ffmpeg" ,ffmpeg-2.8) ;fails to build against ffmpeg 3.0
829 ("fontconfig" ,fontconfig)
830 ("freetype" ,freetype)
834 ("libdvbpsi" ,libdvbpsi)
835 ("libgcrypt" ,libgcrypt)
840 ("libsamplerate" ,libsamplerate)
842 ("libvorbis" ,libvorbis)
843 ("libtheora" ,libtheora)
846 ("libxinerama" ,libxinerama)
849 ("livemedia-utils" ,livemedia-utils)
854 ("pulseaudio" ,pulseaudio)
855 ("python" ,python-wrapper)
857 ("qtx11extras" ,qtx11extras)
859 ("sdl-image" ,sdl-image)
862 ("xcb-util-keysyms" ,xcb-util-keysyms)))
865 `("CXXFLAGS=-std=gnu++11"
866 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
867 (assoc-ref %build-inputs "ffmpeg")
868 "/lib")) ;needed for the tests
871 (modify-phases %standard-phases
872 (add-after 'unpack 'patch-source
873 (lambda* (#:key inputs #:allow-other-keys)
874 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
875 (substitute* "configure"
876 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
877 (string-append "LIVE555_PREFIX=" livemedia-utils)))
878 ;; Some of the tests require using the display to test out VLC,
879 ;; which fails in our sandboxed build system
880 (substitute* "test/run_vlc.sh"
881 (("./vlc --ignore-config") "echo"))
882 ;; XXX Likely not needed for >2.2.6.
883 (substitute* "modules/gui/qt4/components/interface_widgets.cpp"
884 (("<qx11info_x11.h>") "<QtX11Extras/qx11info_x11.h>"))
886 (add-after 'install 'regenerate-plugin-cache
887 (lambda* (#:key outputs #:allow-other-keys)
888 ;; The 'install-exec-hook' rule in the top-level Makefile.am
889 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
890 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
891 ;; it references. Thus, we first reset the timestamps of all
892 ;; these files, and then regenerate the cache such that the
893 ;; mtimes it includes are always zero instead of being dependent
894 ;; on the build time.
895 (let* ((out (assoc-ref outputs "out"))
896 (pkglibdir (string-append out "/lib/vlc"))
897 (plugindir (string-append pkglibdir "/plugins"))
898 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
899 ;; TODO: Factorize 'reset-timestamps'.
900 (for-each (lambda (file)
901 (let ((s (lstat file)))
902 (unless (eq? (stat:type s) 'symlink)
903 (utime file 0 0 0 0))))
904 (find-files plugindir))
905 (zero? (system* cachegen plugindir))))))))
906 (home-page "https://www.videolan.org/")
907 (synopsis "Audio and video framework")
908 (description "VLC is a cross-platform multimedia player and framework
909 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
910 treaming protocols.")
911 (license license:gpl2+)))
913 (define-public mplayer
920 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
924 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
925 (build-system gnu-build-system)
926 ;; FIXME: Add additional inputs once available.
928 `(("pkg-config" ,pkg-config)))
930 `(("alsa-lib" ,alsa-lib)
931 ("cdparanoia" ,cdparanoia)
933 ("fontconfig" ,fontconfig)
934 ("freetype" ,freetype)
935 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
938 ("libdvdcss" ,libdvdcss)
939 ("libdvdnav" ,libdvdnav)
941 ("libmpeg2" ,libmpeg2)
942 ("libmpg123" ,mpg123) ; audio codec for MP3
944 ("libtheora" ,libtheora)
945 ("libvdpau" ,libvdpau)
946 ("libvorbis" ,libvorbis)
949 ("libxinerama" ,libxinerama)
951 ("libxxf86dga" ,libxxf86dga)
955 ("pulseaudio" ,pulseaudio)
956 ("python" ,python-wrapper)
962 `(#:tests? #f ; no test target
964 (modify-phases %standard-phases
966 ;; configure does not work followed by "SHELL=..." and
967 ;; "CONFIG_SHELL=..."; set environment variables instead
968 (lambda* (#:key inputs outputs #:allow-other-keys)
969 (let ((out (assoc-ref outputs "out"))
970 (libx11 (assoc-ref inputs "libx11")))
971 (substitute* "configure"
972 (("#! /bin/sh") (string-append "#!" (which "sh"))))
973 (setenv "SHELL" (which "bash"))
974 (setenv "CONFIG_SHELL" (which "bash"))
977 (string-append "--extra-cflags=-I"
978 libx11 "/include") ; to detect libx11
979 "--disable-ffmpeg_a" ; disables bundled ffmpeg
980 (string-append "--prefix=" out)
981 ;; Enable runtime cpu detection where supported,
982 ;; and choose a suitable target.
983 ,@(match (or (%current-target-system)
986 '("--enable-runtime-cpudetection"
987 "--target=x86_64-linux"))
989 '("--enable-runtime-cpudetection"
990 "--target=i686-linux"))
992 '("--target=mips3-linux"))
993 (_ (list (string-append
995 (or (%current-target-system)
996 (nix-system->gnu-triplet
997 (%current-system)))))))
998 "--disable-iwmmxt"))))))))
999 (home-page "https://www.mplayerhq.hu/design7/news.html")
1000 (synopsis "Audio and video player")
1001 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
1002 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
1003 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
1004 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
1005 (license license:gpl2)))
1014 "https://github.com/mpv-player/mpv/archive/v" version
1018 "15fp4sa5glqhgidd54vs6knf9dp809wszzsqiqz5nyri4ph19nma"))
1019 (file-name (string-append name "-" version ".tar.gz"))))
1020 (build-system waf-build-system)
1022 `(("perl" ,perl) ; for zsh completion file
1023 ("pkg-config" ,pkg-config)
1024 ("python-docutils" ,python-docutils)))
1025 ;; Missing features: libguess, V4L2
1027 `(("alsa-lib" ,alsa-lib)
1034 ("libbluray" ,libbluray)
1035 ("libcaca" ,libcaca)
1036 ("libbs2b" ,libbs2b)
1037 ("libcdio-paranoia" ,libcdio-paranoia)
1038 ("libdvdread" ,libdvdread)
1039 ("libdvdnav" ,libdvdnav)
1040 ("libjpeg" ,libjpeg)
1042 ("libvdpau" ,libvdpau)
1044 ("libxext" ,libxext)
1045 ("libxinerama" ,libxinerama)
1046 ("libxrandr" ,libxrandr)
1047 ("libxscrnsaver" ,libxscrnsaver)
1049 ;; XXX: lua > 5.2 is not currently supported; see
1050 ;; waftools/checks/custom.py
1054 ("pulseaudio" ,pulseaudio)
1056 ("shaderc" ,shaderc)
1057 ("vulkan-icd-loader" ,vulkan-icd-loader)
1059 ("wayland" ,wayland)
1060 ("wayland-protocols" ,wayland-protocols)
1061 ("libxkbcommon" ,libxkbcommon)
1062 ("youtube-dl" ,youtube-dl)
1066 (modify-phases %standard-phases
1068 'configure 'setup-waf
1069 (lambda* (#:key inputs #:allow-other-keys)
1070 (copy-file (assoc-ref inputs "waf") "waf")
1071 (setenv "CC" "gcc"))))
1072 #:configure-flags (list "--enable-libmpv-shared"
1077 "--disable-build-date")
1078 ;; No check function defined.
1080 (home-page "https://mpv.io/")
1081 (synopsis "Audio and video player")
1082 (description "mpv is a general-purpose audio and video player. It is a
1083 fork of mplayer2 and MPlayer. It shares some features with the former
1084 projects while introducing many more.")
1085 (license license:gpl2+)))
1087 (define-public gnome-mpv
1094 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
1095 "/download/v" version "/gnome-mpv-" version
1099 "03kjwd5jq0i5ajnvhjwf5019bjjaa16xkdrhdkiz1k58ipjvvj93"))))
1101 `(("intltool" ,intltool)
1102 ("pkg-config" ,pkg-config)))
1105 ("libepoxy" ,libepoxy)
1107 (build-system glib-or-gtk-build-system)
1108 (home-page "https://github.com/gnome-mpv/gnome-mpv")
1109 (synopsis "GTK+ frontend for the mpv media player")
1110 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
1111 GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
1112 access to mpv's powerful playback capabilities.")
1113 (license license:gpl3+)))
1115 (define-public libvpx
1120 ;; XXX: Upstream does not provide tarballs for > 1.6.1.
1123 (url "https://chromium.googlesource.com/webm/libvpx")
1124 (commit (string-append "v" version))))
1125 (file-name (git-file-name name version))
1128 "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6"))
1129 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
1130 (build-system gnu-build-system)
1132 `(#:configure-flags (list "--enable-shared"
1134 ;; Limit size to avoid CVE-2015-1258
1135 "--size-limit=16384x16384"
1136 (string-append "--prefix=" (assoc-ref %outputs "out")))
1137 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
1138 (assoc-ref %outputs "out") "/lib"))
1139 #:phases (modify-phases %standard-phases
1141 (lambda* (#:key configure-flags #:allow-other-keys)
1142 ;; The configure script does not understand some of the GNU
1143 ;; options, so we only add the flags specified above.
1144 (apply invoke "./configure" configure-flags))))
1145 #:tests? #f)) ; no check target
1149 (synopsis "VP8/VP9 video codec")
1150 (description "libvpx is a codec for the VP8/VP9 video compression format.")
1151 (license license:bsd-3)
1152 (home-page "https://www.webmproject.org/")))
1154 (define-public youtube-dl
1157 (version "2018.05.09")
1160 (uri (string-append "https://yt-dl.org/downloads/"
1161 version "/youtube-dl-"
1165 "0sl4bi2jls3417rd62awbqdq1b6wskkjbfwpnyw4a61qarfxid1d"))))
1166 (build-system python-build-system)
1168 ;; The problem here is that the directory for the man page and completion
1169 ;; files is relative, and for some reason, setup.py uses the
1170 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
1171 ;; So, we need pass the prefix directly. In addition, make sure the Bash
1172 ;; completion file is called 'youtube-dl' rather than
1173 ;; 'youtube-dl.bash-completion'.
1174 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
1175 #:phases (modify-phases %standard-phases
1176 (add-before 'install 'fix-the-data-directories
1177 (lambda* (#:key outputs #:allow-other-keys)
1178 (let ((prefix (assoc-ref outputs "out")))
1179 (mkdir "bash-completion")
1180 (rename-file "youtube-dl.bash-completion"
1181 "bash-completion/youtube-dl")
1182 (substitute* "setup.py"
1183 (("youtube-dl\\.bash-completion")
1184 "bash-completion/youtube-dl")
1186 (string-append "'" prefix "/etc/"))
1188 (string-append "'" prefix "/share/")))
1190 (synopsis "Download videos from YouTube.com and other sites")
1192 "Youtube-dl is a small command-line program to download videos from
1193 YouTube.com and many more sites.")
1194 (home-page "https://yt-dl.org")
1195 (license license:public-domain)))
1197 (define-public youtube-dl-gui
1199 (name "youtube-dl-gui")
1204 (uri (pypi-uri "Youtube-DLG" version))
1207 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
1208 (build-system python-build-system)
1210 ;; In Guix, wxpython has not yet been packaged for Python 3.
1211 `(#:python ,python-2
1212 ;; This package has no tests.
1215 (modify-phases %standard-phases
1216 (add-before 'build 'patch-source
1217 (lambda* (#:key inputs #:allow-other-keys)
1218 ;; The youtube-dl-gui program lets you configure options. Some of
1219 ;; them are problematic, so we change their defaults.
1220 (substitute* "youtube_dl_gui/optionsmanager.py"
1221 ;; When this is true, the builder process will try (and fail) to
1222 ;; write logs to the builder user's home directory.
1223 (("'enable_log': True") "'enable_log': False")
1224 ;; This determines which youtube-dl program youtube-dl-gui will
1225 ;; run. If we don't set this, then youtube-dl-gui might download
1226 ;; an arbitrary copy from the Internet into the user's home
1227 ;; directory and run it, so let's make sure youtube-dl-gui uses
1228 ;; the youtube-dl from the inputs by default.
1229 (("'youtubedl_path': self.config_path")
1230 (string-append "'youtubedl_path': '"
1231 (assoc-ref inputs "youtube-dl")
1233 ;; When this is True, when youtube-dl-gui is finished downloading
1234 ;; a file, it will try (and possibly fail) to open the directory
1235 ;; containing the downloaded file. This can fail because it
1236 ;; assumes that xdg-open is in PATH. Unfortunately, simply
1237 ;; adding xdg-utils to the propagated inputs is not enough to
1238 ;; make this work, so for now we set the default to False.
1239 (("'open_dl_dir': True") "'open_dl_dir': False"))
1240 ;; The youtube-dl program from the inputs is actually a wrapper
1241 ;; script written in bash, so attempting to invoke it as a python
1242 ;; script will fail.
1243 (substitute* "youtube_dl_gui/downloaders.py"
1244 (("cmd = \\['python', self\\.youtubedl_path\\]")
1245 "cmd = [self.youtubedl_path]"))
1246 ;; Use relative paths for installing data files so youtube-dl-gui
1247 ;; installs the files relative to its prefix in the store, rather
1248 ;; than relative to /. Also, instead of installing data files into
1249 ;; $prefix/usr/share, install them into $prefix/share for
1250 ;; consistency (see: (standards) Directory Variables).
1251 (substitute* "setup.py"
1252 (("= '/usr/share") "= 'share"))
1253 ;; Update get_locale_file() so it finds the installed localization
1255 (substitute* "youtube_dl_gui/utils.py"
1256 (("os\\.path\\.join\\('/usr', 'share'")
1257 (string-append "os.path.join('"
1258 (assoc-ref %outputs "out")
1259 "', 'share'"))))))))
1261 `(("python2-wxpython" ,python2-wxpython)
1262 ("youtube-dl" ,youtube-dl)))
1263 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
1265 "GUI (Graphical User Interface) for @command{youtube-dl}")
1267 "Youtube-dlG is a GUI (Graphical User Interface) for
1268 @command{youtube-dl}. You can use it to download videos from YouTube and any
1269 other site that youtube-dl supports.")
1270 (license license:unlicense)))
1272 (define-public you-get
1275 (version "0.4.1060")
1279 "https://github.com/soimort/you-get/archive/v"
1281 (file-name (string-append name "-" version ".tar.gz"))
1284 "1pq7c2ay42aan7ykpmddzh6ylq0qsq8a27pk68m5imaxi6abbwsz"))))
1285 (build-system python-build-system)
1287 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
1290 (modify-phases %standard-phases
1291 (add-after 'unpack 'qualify-input-references
1292 ;; Explicitly invoke the input ffmpeg, instead of whichever one
1293 ;; happens to be in the user's $PATH at run time.
1294 (lambda* (#:key inputs #:allow-other-keys)
1295 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
1297 (substitute* "src/you_get/processor/ffmpeg.py"
1298 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
1299 ;; same string is also used when sniffing ffmpeg's output.
1300 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
1301 (string-append prefix "'" ffmpeg "'")))
1303 #:tests? #f)) ; XXX some tests need Internet access
1304 (synopsis "Download videos, audio, or images from Web sites")
1306 "You-Get is a command-line utility to download media contents (videos,
1307 audio, images) from the Web. It can use either mpv or vlc for playback.")
1308 (home-page "https://you-get.org/")
1309 (license license:expat)))
1311 (define-public youtube-viewer
1313 (name "youtube-viewer")
1318 "https://github.com/trizen/youtube-viewer/archive/"
1320 (file-name (string-append name "-" version ".tar.gz"))
1323 "1dqaxkz5svv0lmxds6lppcpzhkq6gar2raw9gx6imrd7yz02fpgn"))))
1324 (build-system perl-build-system)
1326 `(("perl-module-build" ,perl-module-build)))
1327 ;; FIXME: Add optional dependencies once available:
1328 ;; perl-lwp-useragent-cached and perl-term-readline-gnu
1330 `(("perl-data-dump" ,perl-data-dump)
1331 ("perl-file-sharedir" ,perl-file-sharedir)
1332 ("perl-gtk2" ,perl-gtk2)
1333 ("perl-json" ,perl-json)
1334 ("perl-libwww" ,perl-libwww)
1335 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1336 ("perl-mozilla-ca" ,perl-mozilla-ca)
1337 ("perl-unicode-linebreak" ,perl-unicode-linebreak)))
1339 `(#:modules ((guix build perl-build-system)
1342 #:module-build-flags '("--gtk")
1344 (modify-phases %standard-phases
1345 (add-after 'install 'wrap-program
1346 (lambda* (#:key outputs #:allow-other-keys)
1347 (let* ((out (assoc-ref outputs "out"))
1348 (bin-dir (string-append out "/bin/"))
1349 (site-dir (string-append out "/lib/perl5/site_perl/"))
1350 (lib-path (getenv "PERL5LIB")))
1351 (for-each (cut wrap-program <>
1352 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1353 (find-files bin-dir))
1356 "Lightweight application for searching and streaming videos from YouTube")
1358 "Youtube-viewer searches and plays YouTube videos in a native player.
1359 It comes with various search options; it can search for videos, playlists
1360 and/or channels. The videos are streamed directly in a selected video player
1361 at the best resolution (customizable) and with closed-captions (if available).
1362 Both command-line and GTK2 interface are available.")
1363 (home-page "https://github.com/trizen/youtube-viewer")
1364 (license license:perl-license)))
1366 (define-public libbluray
1372 (uri (string-append "https://download.videolan.org/videolan/"
1373 name "/" version "/"
1374 name "-" version ".tar.bz2"))
1377 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
1378 (build-system gnu-build-system)
1380 `(#:configure-flags '("--disable-bdjava-jar")
1382 (modify-phases %standard-phases
1383 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
1384 ;; Avoid the need to propagate libxml2 by referring to it
1385 ;; directly, as is already done for fontconfig & freetype.
1386 (lambda* (#:key inputs #:allow-other-keys)
1387 (let ((libxml2 (assoc-ref inputs "libxml2")))
1388 (substitute* "configure"
1389 ((" libxml-2.0") ""))
1390 (substitute* "src/libbluray.pc.in"
1391 (("^Libs.private:" field)
1392 (string-append field " -L" libxml2 "/lib -lxml2")))
1394 (add-before 'build 'fix-dlopen-paths
1395 (lambda* (#:key inputs #:allow-other-keys)
1396 (let ((libaacs (assoc-ref inputs "libaacs"))
1397 (libbdplus (assoc-ref inputs "libbdplus")))
1398 (substitute* "src/libbluray/disc/aacs.c"
1400 (string-append "\"" libaacs "/lib/libaacs\"")))
1401 (substitute* "src/libbluray/disc/bdplus.c"
1403 (string-append "\"" libbdplus "/lib/libbdplus\"")))
1405 (native-inputs `(("pkg-config" ,pkg-config)))
1407 `(("fontconfig" ,fontconfig)
1408 ("freetype" ,freetype)
1409 ("libaacs" ,libaacs)
1410 ("libbdplus" ,libbdplus)
1411 ("libxml2" ,libxml2)))
1412 (home-page "https://www.videolan.org/developers/libbluray.html")
1413 (synopsis "Blu-Ray Disc playback library")
1415 "libbluray is a library designed for Blu-Ray Disc playback for media
1416 players, like VLC or MPlayer.")
1417 (license license:lgpl2.1+)))
1419 (define-public libdvdread
1425 (uri (string-append "https://download.videolan.org/videolan/"
1426 name "/" version "/"
1427 name "-" version ".tar.bz2"))
1430 "0dgr23fzcjhb7ck54xkr9zmf4jcq3ph0dz3fbyvla1c6ni9ijfxk"))))
1431 (build-system gnu-build-system)
1433 `(#:configure-flags '("--with-libdvdcss=yes")))
1435 `(("pkg-config" ,pkg-config)))
1437 `(("libdvdcss" ,libdvdcss)))
1438 (home-page "http://dvdnav.mplayerhq.hu/")
1439 (synopsis "Library for reading video DVDs")
1441 "Libdvdread provides a simple foundation for reading DVD video
1442 disks. It provides the functionality that is required to access many
1443 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
1444 authentication and descrambling (if an external libdvdcss library is
1446 (license license:gpl2+)))
1448 (define-public dvdauthor
1455 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
1459 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
1460 (build-system gnu-build-system)
1462 `(("libdvdread" ,libdvdread)
1464 ("imagemagick" ,imagemagick)
1465 ("libxml2" ,libxml2)
1466 ("freetype" ,freetype)))
1468 `(("pkg-config" ,pkg-config)))
1469 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
1470 (description "@command{dvdauthor} will generate a DVD-Video movie from a
1471 MPEG-2 stream containing VOB packets.")
1472 (home-page "http://dvdauthor.sourceforge.net")
1473 (license license:gpl3+)))
1475 (define-public libdvdnav
1481 (uri (string-append "https://download.videolan.org/videolan/"
1482 name "/" version "/"
1483 name "-" version ".tar.bz2"))
1486 "062njcksmpgw9yv3737qkf93r2pzhaxi9szqjabpa8d010dp38ph"))))
1487 (build-system gnu-build-system)
1489 `(("pkg-config" ,pkg-config)))
1491 `(("libdvdread" ,libdvdread)))
1492 (home-page "http://dvdnav.mplayerhq.hu/")
1493 (synopsis "Library for video DVD navigation features")
1495 "Libdvdnav is a library for developers of multimedia
1496 applications. It allows easy use of sophisticated DVD navigation features
1497 such as DVD menus, multiangle playback and even interactive DVD games. All
1498 this functionality is provided through a simple API which provides the DVD
1499 playback as a single logical stream of blocks, intermitted by special
1500 dvdnav events to report certain conditions. The main usage of libdvdnav is
1501 a loop regularly calling a function to get the next block, surrounded by
1502 additional calls to tell the library of user interaction. The whole
1503 DVD virtual machine and internal playback states are completely
1505 (license license:gpl2+)))
1507 (define-public libdvdcss
1513 (uri (string-append "https://download.videolan.org/pub/"
1514 name "/" version "/"
1515 name "-" version ".tar.bz2"))
1518 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
1519 (build-system gnu-build-system)
1520 (home-page "https://www.videolan.org/developers/libdvdcss.html")
1521 (synopsis "Library for accessing DVDs as block devices")
1523 "libdvdcss is a simple library designed for accessing DVDs like a block
1524 device without having to bother about the decryption.")
1525 (license license:gpl2+)))
1527 (define-public srt2vtt
1534 "https://files.dthompson.us/srt2vtt/srt2vtt-"
1538 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1539 (build-system gnu-build-system)
1541 `(("guile" ,guile-2.0)))
1542 (synopsis "SubRip to WebVTT subtitle converter")
1543 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1544 for use with HTML5 video.")
1545 (home-page "http://dthompson.us/pages/software/srt2vtt")
1546 (license license:gpl3+)))
1548 (define-public avidemux
1555 "mirror://sourceforge/" name "/" name "/" version "/"
1556 name "_" version ".tar.gz"))
1559 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
1560 (patches (search-patches "avidemux-install-to-lib.patch"))))
1561 (build-system cmake-build-system)
1563 `(("pkg-config" ,pkg-config)))
1564 ;; FIXME: Once packaged, add libraries not found during the build.
1566 `(("alsa-lib" ,alsa-lib)
1567 ("fontconfig" ,fontconfig)
1568 ("freetype" ,freetype)
1569 ("fribidi" ,fribidi)
1574 ("libvdpau" ,libvdpau)
1575 ("libvorbis" ,libvorbis)
1579 ("pulseaudio" ,pulseaudio)
1580 ("python" ,python-wrapper)
1581 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
1582 ;("qtbase" ,qtbase) with -std=gnu++11.
1583 ;("qttools" ,qttools)
1589 `(#:tests? #f ; no check target
1591 ;; Make sure files inside the included ffmpeg tarball are
1593 (modify-phases %standard-phases
1594 (add-before 'patch-source-shebangs 'unpack-ffmpeg
1596 (with-directory-excursion "avidemux_core/ffmpeg_package"
1597 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1598 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1599 (add-after 'patch-source-shebangs 'repack-ffmpeg
1601 (with-directory-excursion "avidemux_core/ffmpeg_package"
1602 (substitute* "ffmpeg-2.7.6/configure"
1603 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1604 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
1605 ;; avoid non-determinism in the archive
1606 "--sort=name" "--mtime=@0"
1607 "--owner=root:0" "--group=root:0")
1608 (delete-file-recursively "ffmpeg-2.7.6"))))
1611 ;; Copy-paste settings from the cmake build system.
1612 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1613 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1615 (lambda* (#:key inputs outputs #:allow-other-keys)
1617 ((out (assoc-ref outputs "out"))
1618 (lib (string-append out "/lib"))
1620 (sdl (assoc-ref inputs "sdl"))
1622 (lambda* (component srcdir #:optional (args '()))
1623 (let ((builddir (string-append "build_" component)))
1625 (with-directory-excursion builddir
1628 (apply system* "cmake"
1629 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1630 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1631 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1632 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1633 "\"-Wl,-rpath=" lib "\"")
1634 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1635 (string-append "-DSDL_INCLUDE_DIR="
1637 (string-append "../" srcdir)
1640 (system* "make" "-j"
1641 (number->string (parallel-job-count)))
1642 (system* "make" "install"))))))))
1644 (and (build_component "core" "avidemux_core")
1645 (build_component "cli" "avidemux/cli")
1646 (build_component "qt4" "avidemux/qt4")
1647 (build_component "plugins_common" "avidemux_plugins"
1648 '("-DPLUGIN_UI=COMMON"))
1649 (build_component "plugins_cli" "avidemux_plugins"
1650 '("-DPLUGIN_UI=CLI"))
1651 (build_component "plugins_qt4" "avidemux_plugins"
1652 '("-DPLUGIN_UI=QT4"))
1653 (build_component "plugins_settings" "avidemux_plugins"
1654 '("-DPLUGIN_UI=SETTINGS")))
1655 ;; Remove .exe and .dll file.
1656 (delete-file-recursively
1657 (string-append out "/share/ADM6_addons")))))
1658 (delete 'install))))
1659 (home-page "http://fixounet.free.fr/avidemux/")
1660 (synopsis "Video editor")
1661 (description "Avidemux is a video editor designed for simple cutting,
1662 filtering and encoding tasks. It supports many file types, including AVI,
1663 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1664 can be automated using projects, job queue and powerful scripting
1666 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
1667 ;; Software with various licenses is included, see License.txt.
1668 (license license:gpl2+)))
1670 (define-public vapoursynth
1672 (name "vapoursynth")
1677 "https://github.com/vapoursynth/vapoursynth/archive/R"
1679 (file-name (string-append name "-" version ".tar.gz"))
1682 "1g3hc079jw4mz1cmkv2y28pdb556wqc8ql7iravgh1rg8j3f1zi5"))))
1683 (build-system gnu-build-system)
1685 `(("autoconf" ,autoconf)
1686 ("automake" ,automake)
1687 ("cython" ,python-cython)
1688 ("libtool" ,libtool)
1689 ("pkg-config" ,pkg-config)
1693 `(("ffmpeg" ,ffmpeg)
1695 ("tesseract-ocr" ,tesseract-ocr)
1699 (modify-phases %standard-phases
1703 (zero? (system* "sh" "autogen.sh")))))))
1704 (home-page "http://www.vapoursynth.com/")
1705 (synopsis "Video processing framework")
1706 (description "VapourSynth is a C++ library and Python module for video
1707 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1708 multithreading, generalized colorspaces, per frame properties, and videos with
1710 ;; src/core/cpufeatures only allows x86, ARM or PPC
1711 (supported-systems (fold delete %supported-systems
1712 '("mips64el-linux" "aarch64-linux")))
1713 ;; As seen from the source files.
1714 (license license:lgpl2.1+)))
1723 "http://downloads.xvid.org/downloads/xvidcore-"
1724 version ".tar.bz2"))
1727 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
1728 (build-system gnu-build-system)
1729 (native-inputs `(("yasm" ,yasm)))
1732 (modify-phases %standard-phases
1734 'configure 'pre-configure
1736 (chdir "build/generic")
1737 (substitute* "configure"
1738 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
1739 ;; No 'check' target.
1741 (home-page "https://www.xvid.com/")
1742 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1743 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1744 codec library. It uses ASP features such as b-frames, global and quarter
1745 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1746 and custom quantization matrices.")
1747 (license license:gpl2+)))
1749 (define-public streamlink
1756 (uri (pypi-uri "streamlink" version))
1759 "02h8b3k8l5zz4vjm0nhxvl1pm924jms8y7sjl40fbybrzvsa4mg2"))))
1760 (build-system python-build-system)
1761 (home-page "https://github.com/streamlink/streamlink")
1763 `(("python-pytest" ,python-pytest)
1764 ("python-mock" ,python-mock)
1765 ("python-requests-mock" ,python-requests-mock)))
1767 `(("python-pysocks" ,python-pysocks)
1768 ("python-websocket-client" ,python-websocket-client)
1769 ("python-iso3166" ,python-iso3166)
1770 ("python-iso639" ,python-iso639)
1771 ("python-pycryptodome" ,python-pycryptodome)
1772 ("python-requests" ,python-requests)
1773 ("python-urllib3" ,python-urllib3)))
1774 (synopsis "Extract streams from various services")
1775 (description "Streamlink is command-line utility that extracts streams
1776 from sites like Twitch.tv and pipes them into a video player of choice.")
1777 (license license:bsd-2)))
1779 (define-public livestreamer
1780 (deprecated-package "livestreamer" streamlink))
1782 (define-public twitchy
1783 (let ((commit "0c0f925b9c7ff2aed4a3b0046561cb794143c398")) ;Fixes tests.
1786 (version (git-version "3.2" "1" commit))
1791 (url "https://github.com/BasioMeusPuga/twitchy.git")
1793 (file-name (git-file-name name version))
1796 "02aizvsr744sh8bdqvwwsmp2qpczlzn8fy76h5dyd3517n9nlcz9"))))
1797 (build-system python-build-system)
1800 (modify-phases %standard-phases
1801 (add-before 'check 'check-setup
1803 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
1806 `(("python-requests" ,python-requests)
1807 ("streamlink" ,streamlink)))
1808 (home-page "https://github.com/BasioMeusPuga/twitchy")
1809 (synopsis "Command-line interface for Twitch.tv")
1811 "This package provides a command-line interface for Twitch.tv")
1812 (license license:gpl3+))))
1820 (uri (string-append "https://github.com/mltframework/mlt/"
1821 "archive/v" version ".tar.gz"))
1822 (file-name (string-append name "-" version ".tar.gz"))
1825 "10m3ry0b2pvqx3bk34qh5dq337nn8pkc2gzfyhsj4nv9abskln47"))
1826 (modules '((guix build utils)))
1828 ;; As of glibc 2.26, <xlocale.h> no longer is.
1829 '(substitute* "src/framework/mlt_property.h"
1830 (("xlocale\\.h") "locale.h")))))
1831 (build-system gnu-build-system)
1833 `(#:tests? #f ; no tests
1834 #:make-flags '("CC=gcc")
1836 (list "--enable-gpl3"
1839 (modify-phases %standard-phases
1841 'configure 'override-LDFLAGS
1842 (lambda* (#:key outputs #:allow-other-keys)
1843 (substitute* "config.mak"
1845 (string-append "LDFLAGS+=-Wl,-rpath="
1846 (assoc-ref outputs "out")
1850 `(("alsa-lib" ,alsa-lib)
1851 ("ffmpeg" ,ffmpeg-3.4)
1853 ("libxml2" ,libxml2)
1856 ("libsamplerate" ,libsamplerate)
1857 ("pulseaudio" ,pulseaudio)
1861 `(("pkg-config" ,pkg-config)))
1862 (home-page "https://www.mltframework.org/")
1863 (synopsis "Author, manage, and run multitrack audio/video compositions")
1865 "MLT is a multimedia framework, designed and developed for television
1866 broadcasting. It provides a toolkit for broadcasters, video editors, media
1867 players, transcoders, web streamers and many more types of applications. The
1868 functionality of the system is provided via an assortment of ready to use
1869 tools, XML authoring components, and an extensible plug-in based API.")
1870 (license license:gpl3)))
1872 (define-public v4l-utils
1878 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
1879 "/v4l-utils-" version ".tar.bz2"))
1882 "03g2b4rivrilimcp57mwrlsa3qvrxmk4sza08mygwmqbvcnic606"))))
1883 (build-system gnu-build-system)
1886 (list (string-append "--with-udevdir="
1887 (assoc-ref %outputs "out")
1889 "CXXFLAGS=-std=gnu++11")))
1892 ("pkg-config" ,pkg-config)))
1894 `(("alsa-lib" ,alsa-lib)
1896 ("libjpeg" ,libjpeg)
1900 (synopsis "Realtime video capture utilities for Linux")
1901 (description "The v4l-utils provide a series of libraries and utilities to
1902 be used for realtime video capture via Linux-specific APIs.")
1903 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
1904 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
1905 (license (list license:lgpl2.1+ license:gpl2))))
1913 (uri (string-append "https://github.com/jp9000/obs-studio"
1914 "/archive/" version ".tar.gz"))
1915 (file-name (string-append name "-" version ".tar.gz"))
1918 "1g5z6z050v25whc7n3xvg6l238wmg5crp7ihvk73qngvzxr8bg28"))))
1919 (build-system cmake-build-system)
1921 `(#:tests? #f)) ; no tests
1923 `(("pkg-config" ,pkg-config)))
1925 `(("alsa-lib" ,alsa-lib)
1929 ("fontconfig" ,fontconfig)
1930 ("freetype" ,freetype)
1932 ("jansson" ,jansson)
1933 ("libx264" ,libx264)
1934 ("libxcomposite" ,libxcomposite)
1936 ("pulseaudio" ,pulseaudio)
1938 ("qtx11extras" ,qtx11extras)
1940 ("v4l-utils" ,v4l-utils)
1942 (synopsis "Live streaming software")
1943 (description "Open Broadcaster Software provides a graphical interface for
1944 video recording and live streaming. OBS supports capturing audio and video
1945 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
1947 (home-page "https://obsproject.com")
1948 (supported-systems '("x86_64-linux" "i686-linux"))
1949 (license license:gpl2+)))
1951 (define-public libvdpau
1958 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1959 name "-" version ".tar.bz2"))
1962 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
1963 (build-system gnu-build-system)
1965 `(("pkg-config" ,pkg-config)))
1967 `(("dri2proto" ,dri2proto)
1968 ("libx11" ,libx11 "out")
1969 ("libxext" ,libxext)))
1970 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1971 (synopsis "Video Decode and Presentation API")
1972 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
1973 provides an interface to video decode acceleration and presentation hardware
1974 present in modern GPUs.")
1975 (license (license:x11-style "file://COPYING"))))
1977 (define-public vdpauinfo
1984 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1985 name "-" version ".tar.gz"))
1988 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
1989 (build-system gnu-build-system)
1991 `(("pkg-config" ,pkg-config)
1992 ("libx11" ,libx11)))
1994 `(("libvdpau" ,libvdpau)))
1995 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1996 (synopsis "Tool to query the capabilities of a VDPAU implementation")
1997 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
1999 (license (license:x11-style "file://COPYING"))))
2001 (define-public libvdpau-va-gl
2003 (name "libvdpau-va-gl")
2008 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
2009 "releases/download/v" version "/libvdpau-va-gl-"
2013 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
2014 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
2015 (modules '((guix build utils)))
2016 (snippet '(delete-file-recursively "3rdparty"))))
2017 (build-system cmake-build-system)
2019 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
2021 `(("libvdpau" ,libvdpau)
2022 ("pkg-config" ,pkg-config)))
2026 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
2027 (synopsis "VDPAU driver with VA-API/OpenGL backend")
2029 "Many applications can use VDPAU to accelerate portions of the video
2030 decoding process and video post-processing to the GPU video hardware. Since
2031 there is no VDPAU available on Intel chips, they fall back to different drawing
2032 techniques. This driver uses OpenGL under the hood to accelerate drawing and
2033 scaling and VA-API (if available) to accelerate video decoding.")
2034 (license license:expat)))
2036 (define-public recordmydesktop
2038 (name "recordmydesktop")
2042 (uri (string-append "mirror://sourceforge/" name "/" name "/"
2043 version "/recordmydesktop-" version ".tar.gz"))
2046 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
2047 (build-system gnu-build-system)
2048 (inputs `(("popt" ,popt)
2053 ("libxfixes" ,libxfixes)
2054 ("libxdamage" ,libxdamage)
2055 ("libxext" ,libxext)
2056 ("alsa-lib" ,alsa-lib)
2057 ("libvorbis" ,libvorbis)
2058 ("libtheora" ,libtheora)))
2059 (home-page "http://recordmydesktop.sourceforge.net/")
2060 (synopsis "Desktop session video recorder")
2062 "recordMyDesktop is a command-line tool that captures the activity in
2063 your graphical desktop and encodes it as a video. This is a useful tool for
2064 making @dfn{screencasts}.")
2065 (license license:gpl2+)))
2067 (define-public simplescreenrecorder
2069 (name "simplescreenrecorder")
2074 (uri (string-append "https://github.com/MaartenBaert/ssr/archive/"
2076 (file-name (string-append name "-" version ".tar.gz"))
2079 "02rl9yyx3hlz9fqvgzv7ipmvx2qahj7ws5wx2m7zs3lssq3qag3g"))))
2080 (build-system cmake-build-system)
2081 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
2082 ;; README.md, the program builds and functions properly without them.
2083 ;; As a result, they are omitted. Please add them back if problems appear.
2085 `(("alsa-lib" ,alsa-lib)
2086 ("ffmpeg" ,ffmpeg-3.4)
2090 ("pulseaudio" ,pulseaudio)
2092 (native-inputs `(("pkg-config" ,pkg-config)))
2095 (list "-DWITH_QT5=TRUE")
2096 #:tests? #f)) ; no test suite
2097 ;; Using HTTPS causes part of the page to be displayed improperly.
2098 (home-page "http://www.maartenbaert.be/simplescreenrecorder/")
2099 (synopsis "Screen recorder")
2100 (description "SimpleScreenRecorder is an easy to use screen recorder with
2101 a graphical user interface. It supports recording the entire screen, or a
2102 part of it, and allows encoding in many different codecs and file formats.
2103 Other features include a live preview and live streaming.")
2104 (license (list license:gpl3+ ; most files
2105 license:zlib ; glinject/elfhacks.*
2106 license:isc ; glinject/*
2107 license:x11)))) ; build-aux/install-sh
2109 (define-public libsmpeg
2116 (url "svn://svn.icculus.org/smpeg/trunk/")
2117 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
2118 (file-name (string-append name "-" version "-checkout"))
2121 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
2122 (build-system gnu-build-system)
2124 `(#:phases (modify-phases %standard-phases
2125 (add-after 'unpack 'autogen.sh
2127 (zero? (system* "sh" "autogen.sh")))))))
2129 `(("autoconf" ,autoconf)
2130 ("automake" ,automake)))
2133 (home-page "http://icculus.org/smpeg/")
2134 (synopsis "SDL MPEG decoding library")
2136 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
2137 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
2138 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
2139 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
2140 and MPEG system streams.")
2141 (license (list license:expat
2146 (define-public libbdplus
2153 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
2154 version "/" name "-" version ".tar.bz2"))
2156 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
2158 `(("libgcrypt" ,libgcrypt)))
2159 (build-system gnu-build-system)
2160 (home-page "https://www.videolan.org/developers/libbdplus.html")
2161 (synopsis "Library for decrypting certain Blu-Ray discs")
2162 (description "libbdplus is a library which implements the BD+ System
2164 (license license:lgpl2.1+)))
2166 (define-public libaacs
2173 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
2174 version "/" name "-" version ".tar.bz2"))
2176 (base32 "1kms92i0c7i1yl659kqjf19lm8172pnpik5lsxp19xphr74vvq27"))))
2178 `(("libgcrypt" ,libgcrypt)))
2182 (build-system gnu-build-system)
2183 (home-page "https://www.videolan.org/developers/libaacs.html")
2184 (synopsis "Library for decrypting certain Blu-Ray discs")
2185 (description "libaacs is a library which implements the Advanced Access
2186 Content System specification.")
2187 (license license:lgpl2.1+)))
2189 (define-public mps-youtube
2191 (name "mps-youtube")
2196 (uri (string-append "https://github.com/mps-youtube/mps-youtube/"
2197 "archive/v" version ".tar.gz"))
2198 (file-name (string-append name "-" version ".tar.gz"))
2201 "1s7h35yx6f0szf8mm8612ic913w3v05m2kwphjfcxnpq0ammhyci"))))
2202 (build-system python-build-system)
2204 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
2205 ;; test suite results differ depending on the country and also introduce
2206 ;; non-determinism in the tests.
2207 ;; https://github.com/mps-youtube/mps-youtube/issues/556
2210 `(("python-pafy" ,python-pafy)
2211 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
2212 (home-page "https://github.com/mps-youtube/mps-youtube")
2213 (synopsis "Terminal based YouTube player and downloader")
2215 "@code{mps-youtube} is based on mps, a terminal based program to
2216 search, stream and download music. This implementation uses YouTube as
2217 a source of content and can play and download video as well as audio.
2218 It can use either mpv or mplayer for playback, and for conversion of
2219 formats ffmpeg or libav is used. Users should install one of the
2220 supported players in addition to this package.")
2221 (license license:gpl3+)))
2223 (define-public handbrake
2229 (uri (string-append "https://handbrake.fr/rotation.php?file="
2230 "HandBrake-" version ".tar.bz2"))
2231 (file-name (string-append "handbrake-" version ".tar.bz2"))
2234 "1w720y3bplkz187wgvy4a4xm0vpppg45mlni55l6yi8v2bfk14pv"))
2235 (patches (search-patches "handbrake-pkg-config-path.patch"))
2236 (modules '((guix build utils)))
2238 ;; Remove bundled libraries and source not necessary for
2239 ;; running under a GNU environment.
2241 (for-each delete-file-recursively '("contrib" "macosx" "win"))
2243 (build-system glib-or-gtk-build-system)
2245 `(("automake" ,automake) ;gui subpackage must be bootstrapped
2246 ("autoconf" ,autoconf)
2247 ("curl" ,curl) ;not actually used, but tested for
2248 ("intltool" ,intltool)
2249 ("libtool" ,libtool)
2250 ("pkg-config" ,pkg-config)
2251 ("python" ,python-2))) ;for configuration
2254 ("dbus-glib" ,dbus-glib)
2256 ("fontconfig" ,fontconfig)
2257 ("freetype" ,freetype)
2259 ("gstreamer" ,gstreamer)
2260 ("gst-plugins-base" ,gst-plugins-base)
2264 ("libbluray" ,libbluray)
2265 ("libdvdnav" ,libdvdnav)
2266 ("libdvdread" ,libdvdread)
2267 ("libgudev" ,libgudev)
2268 ("libmpeg2" ,libmpeg2)
2269 ("libnotify" ,libnotify)
2271 ("libsamplerate" ,libsamplerate)
2272 ("libtheora" ,libtheora)
2273 ("libvorbis" ,libvorbis)
2275 ("libxml2" ,libxml2)
2276 ("libx264" ,libx264)
2280 `(#:tests? #f ;tests require Ruby and claim to be unsupported
2282 (modify-phases %standard-phases
2283 (add-before 'patch-source-shebangs 'bootstrap-gtk
2284 ;; Run bootstrap ahead of time so that shebangs get patched.
2286 (setenv "CONFIG_SHELL" (which "sh"))
2287 (setenv "NOCONFIGURE" "1")
2288 ;; Patch the Makefile so that it doesn't bootstrap again.
2289 (substitute* "gtk/module.rules"
2290 ((".*autogen\\.sh.*") ""))
2291 (zero? (system* "sh" "./gtk/autogen.sh"))))
2292 (add-before 'configure 'disable-contrib
2294 (substitute* "make/include/main.defs"
2295 ;; Disable unconditional inclusion of some "contrib"
2296 ;; libraries (ffmpeg, libvpx, libdvdread, libdvdnav,
2297 ;; and libbluray), which would lead to fetching and
2298 ;; building of these libraries. Use our own instead.
2299 (("MODULES \\+= contrib") "# MODULES += contrib"))
2301 (add-before 'configure 'fix-x265-linking
2303 (substitute* "test/module.defs"
2304 ;; Fix missing library during linking error
2305 (("TEST.GCC.l =") "TEST.GCC.l = x265"))
2308 (lambda* (#:key outputs configure-flags #:allow-other-keys)
2309 ;; 'configure' is not an autoconf-generated script, and
2310 ;; errors on unrecognized arguments,
2311 ;; e.g. --enable-fast-install
2312 (let ((out (assoc-ref outputs "out")))
2313 (zero? (apply system* "./configure"
2314 (string-append "--prefix=" out)
2315 (or configure-flags '()))))))
2316 (add-after 'configure 'chdir-build
2317 (lambda _ (chdir "./build") #t)))))
2318 (home-page "https://handbrake.fr")
2319 (synopsis "Video transcoder")
2321 "HandBrake is a tool for converting video from any format to a selection
2322 of modern, widely supported codecs.")
2323 ;; Most under GPL version 2 or later, and portions under BSD 3 Clause
2324 (license (list license:gpl2+ license:bsd-3))))
2326 (define-public openh264
2332 (uri (string-append "https://github.com/cisco/"
2333 name "/archive/v" version ".tar.gz"))
2334 (file-name (string-append name "-" version ".tar.gz"))
2337 "0gv571bqkxk7ic64dmavs1q8nr7p59mcf4ibqp4lc070gn6w61ww"))))
2338 (build-system gnu-build-system)
2341 ("python" ,python)))
2343 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2345 #:test-target "test"
2346 #:phases (modify-phases %standard-phases
2347 ;; no configure script
2348 (delete 'configure))))
2349 (home-page "http://www.openh264.org/")
2350 (synopsis "H264 decoder library")
2352 "Openh264 is a library which can decode H264 video streams.")
2353 (license license:bsd-2)))
2355 (define-public libmp4v2
2362 ;; XXX: The new location of upstream is uncertain and will become relevant the
2363 ;; moment when the googlecode archive shuts down. It is past the date it
2364 ;; should've been turned off. I tried to communicate with upstream, but this
2365 ;; wasn't very responsive and not very helpful. The short summary is, it is
2366 ;; chaos when it comes to the amount of forks and only time will tell where
2367 ;; the new upstream location is.
2368 (uri (string-append "https://storage.googleapis.com/google-"
2369 "code-archive-downloads/v2/"
2370 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
2371 (file-name (string-append name "-" version ".tar.bz2"))
2374 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
2375 (build-system gnu-build-system)
2377 "static")) ; 3.7MiB .a file
2380 (modify-phases %standard-phases
2381 (add-after 'unpack 'remove-dates
2383 ;; Make the build reproducible.
2384 (substitute* "configure"
2385 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
2386 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
2388 (add-after 'install 'move-static-libraries
2389 (lambda* (#:key outputs #:allow-other-keys)
2390 ;; Move static libraries to the "static" output.
2391 (let* ((out (assoc-ref outputs "out"))
2392 (lib (string-append out "/lib"))
2393 (static (assoc-ref outputs "static"))
2394 (slib (string-append static "/lib")))
2396 (for-each (lambda (file)
2397 (install-file file slib)
2399 (find-files lib "\\.a$"))
2402 `(("help2man" ,help2man)
2403 ("dejagnu" ,dejagnu)))
2404 (home-page "https://code.google.com/archive/p/mp4v2/")
2405 (synopsis "API to create and modify mp4 files")
2407 "The MP4v2 library provides an API to create and modify mp4 files as defined by
2408 ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
2409 file format that has been used as a multimedia file format in a variety of platforms and
2410 applications. It is a very powerful and extensible format that can accommodate
2411 practically any type of media.")
2412 (license license:mpl1.1)))
2414 (define-public libmediainfo
2416 (name "libmediainfo")
2420 (uri (string-append "https://mediaarea.net/download/source/"
2422 name "_" version ".tar.bz2"))
2425 "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b"))))
2426 ;; TODO add a Big Buck Bunny webm for tests.
2428 `(("autoconf" ,autoconf)
2429 ("automake" ,automake)
2430 ("libtool" ,libtool)
2431 ("pkg-config" ,pkg-config)
2433 ("tinyxml2" ,tinyxml2)
2435 ("libzen" ,libzen)))
2436 (build-system gnu-build-system)
2438 '(#:tests? #f ; see above TODO
2440 ;; build scripts not in root of archive
2441 (modify-phases %standard-phases
2442 (add-after 'unpack 'change-to-build-dir
2444 (chdir "Project/GNU/Library")
2446 (add-after 'change-to-build-dir 'autogen
2448 (zero? (system* "sh" "autogen.sh")))))))
2449 (home-page "https://mediaarea.net/en/MediaInfo")
2450 (synopsis "Library for retrieving media metadata")
2451 (description "MediaInfo is a library used for retrieving technical
2452 information and other metadata about audio or video files. A non-exhaustive
2453 list of the information MediaInfo can retrieve from media files include:
2456 @item General: title, author, director, album, track number, date, duration...
2457 @item Video: codec, aspect, fps, bitrate...
2458 @item Audio: codec, sample rate, channels, language, bitrate...
2459 @item Text: language of subtitle
2460 @item Chapters: number of chapters, list of chapters
2463 MediaInfo supports the following formats:
2466 @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
2467 MPEG-2, MPEG-4, DVD (VOB)...
2468 @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
2469 @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
2470 @item Subtitles: SRT, SSA, ASS, SAMI...
2472 (license license:bsd-2)))
2474 ;; TODO also have a GUI version available
2475 (define-public mediainfo
2481 (uri (string-append "https://mediaarea.net/download/source/"
2482 name "/" version "/"
2483 name "_" version ".tar.bz2"))
2486 "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv"))))
2488 `(("autoconf" ,autoconf)
2489 ("automake" ,automake)
2490 ("libtool" ,libtool)
2491 ("pkg-config" ,pkg-config)
2493 ("libmediainfo" ,libmediainfo)
2494 ("libzen" ,libzen)))
2495 (build-system gnu-build-system)
2497 '(#:tests? #f ; lacks tests
2499 ;; build scripts not in root of archive
2500 (modify-phases %standard-phases
2501 (add-after 'unpack 'change-to-build-dir
2503 (chdir "Project/GNU/CLI")
2505 (add-after 'change-to-build-dir 'autogen
2507 (zero? (system* "sh" "autogen.sh")))))))
2508 (home-page "https://mediaarea.net/en/MediaInfo")
2509 (synopsis "Utility for reading media metadata")
2510 (description "MediaInfo is a utility used for retrieving technical
2511 information and other metadata about audio or video files. It supports the
2512 many codecs and formats supported by libmediainfo.")
2513 (license license:bsd-2)))
2515 (define-public livemedia-utils
2517 (name "livemedia-utils")
2518 (version "2017.10.28")
2522 "https://download.videolan.org/contrib/live555/live."
2526 "0f5kxpayqn3yhabqrd2cqlc74i6x2xr01jfkank1lcilxnfyrsnq"))
2527 (modules '((guix build utils)))
2529 ;; As of glibc 2.26, <xlocale.h> no longer is.
2530 '(substitute* "liveMedia/include/Locale.hh"
2531 (("xlocale\\.h") "locale.h")))))
2532 (build-system gnu-build-system)
2534 '(#:tests? #f ; no tests
2535 #:make-flags (list "CC=gcc"
2536 (string-append "LDFLAGS=-Wl,-rpath="
2537 (assoc-ref %outputs "out") "/lib")
2538 (string-append "PREFIX="
2539 (assoc-ref %outputs "out")))
2540 #:phases (modify-phases %standard-phases
2541 (add-before 'configure 'fix-makefiles-generation
2543 (substitute* "genMakefiles"
2548 (zero? (system* "./genMakefiles"
2549 "linux-with-shared-libraries")))))))
2550 (home-page "http://www.live555.com/liveMedia/")
2551 (synopsis "Set of C++ libraries for multimedia streaming")
2552 (description "This code forms a set of C++ libraries for multimedia
2553 streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
2554 can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
2555 JPEG video, and several audio codecs. They can easily be extended to support
2556 additional (audio and/or video) codecs, and can also be used to build basic
2557 RTSP or SIP clients and servers.")
2558 (license license:lgpl3+)))
2560 (define-public libdvbpsi
2567 "https://download.videolan.org/pub/libdvbpsi/"
2568 version "/libdvbpsi-" version ".tar.bz2"))
2571 "1zn5hfv4qbahmydbwh59a3b480s3m5ss27r6ml35gqdip7r3jkmc"))))
2572 (build-system gnu-build-system)
2573 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
2574 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
2576 (description "libdvbpsi is a simple library designed for decoding and
2577 generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
2578 and ITU-T H.222.0.")
2579 (license license:lgpl2.1)))
2581 (define-public ffms2
2585 (home-page "https://github.com/FFMS/ffms2")
2588 (uri (string-append home-page "/archive/" version ".tar.gz"))
2589 (file-name (string-append name "-" version ".tar.gz"))
2592 "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh"))))
2593 (build-system gnu-build-system)
2596 (list "--enable-avresample")))
2600 `(("ffmpeg" ,ffmpeg)))
2602 `(("pkg-config" ,pkg-config)))
2603 (synopsis "Cross-platform wrapper around ffmpeg/libav")
2605 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
2606 programmers to access a standard API to open and decompress media files.")
2607 ;; sources are distributed under a different license that the binary.
2608 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
2609 (license license:gpl2+))); inherits from ffmpeg
2611 (define-public aegisub
2618 "http://ftp.aegisub.org/pub/archives/releases/source/"
2619 name "-" version ".tar.xz"))
2622 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))))
2623 (build-system gnu-build-system)
2626 (list "--disable-update-checker"
2627 "--without-portaudio"
2630 ;; tests require busted, a lua package we don't have yet
2633 (modify-phases %standard-phases
2634 (add-before 'configure 'fix-ldflags
2636 (setenv "LDFLAGS" "-pthread"))))))
2639 ("desktop-file-utils" ,desktop-file-utils)
2642 ("hunspell" ,hunspell)
2645 ("alsa-lib" ,alsa-lib)
2646 ("pulseaudio" ,pulseaudio)
2648 ("freetype" ,freetype)
2649 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2651 `(("intltool" ,intltool)
2652 ("pkg-config" ,pkg-config)))
2653 (home-page "http://www.aegisub.org/")
2654 (synopsis "Subtitle engine")
2656 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
2657 it quick and easy to time subtitles to audio, and features many powerful
2658 tools for styling them, including a built-in real-time video preview.")
2659 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
2660 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
2661 license:expat)))) ; and src/gl that is under a license similar
2662 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
2663 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
2664 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
2666 (define-public gst-transcoder
2668 (name "gst-transcoder")
2673 (uri (string-append "https://github.com/pitivi/gst-transcoder/"
2674 "archive/" version ".tar.gz"))
2675 (file-name (string-append name "-" version ".tar.gz"))
2678 "0cnwmrsd321s02ff91m3j27ydj7f8wks0jvmp5admlhka6z7zxm9"))))
2679 (build-system meson-build-system)
2681 `(("gobject-introspection" ,gobject-introspection)
2683 ("gstreamer" ,gstreamer)
2684 ("gst-plugins-base" ,gst-plugins-base)))
2686 `(("python" ,python)
2687 ("pkg-config" ,pkg-config)))
2688 (home-page "https://github.com/pitivi/gst-transcoder/")
2689 (synopsis "GStreamer Transcoding API")
2690 (description "GStreamer Transcoding API")
2691 (license license:lgpl2.1)))
2700 (uri (string-append "mirror://sourceforge/gmerlin/"
2701 name "/" version "/"
2702 name "-" version ".tar.gz"))
2703 (file-name (string-append name "-" version ".tar.gz"))
2706 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
2707 (build-system gnu-build-system)
2709 '(#:configure-flags '("LIBS=-lm")))
2711 `(("pkg-config" ,pkg-config)
2712 ("doxygen" ,doxygen)))
2713 (home-page "http://gmerlin.sourceforge.net")
2714 (synopsis "Low level library for multimedia API building")
2716 "Gavl is short for Gmerlin Audio Video Library. It is a low level
2717 library, upon which multimedia APIs can be built. Gavl handles all the
2718 details of audio and video formats like colorspaces, sample rates,
2719 multichannel configurations, etc. It provides standardized definitions for
2720 those formats as well as container structures for carrying audio samples or
2721 video images inside an application.
2723 In addition, it handles the sometimes ugly task of converting between all
2724 these formats and provides some elementary operations (copying, scaling,
2725 alpha blending etc).")
2726 (license license:gpl3)))
2728 (define-public frei0r-plugins
2730 (name "frei0r-plugins")
2735 (uri (string-append "https://files.dyne.org/frei0r/"
2736 "frei0r-plugins-" version ".tar.gz"))
2739 "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0"))))
2740 (build-system gnu-build-system)
2743 (modify-phases %standard-phases
2744 (add-after 'unpack 'autotools
2746 (zero? (system* "sh" "autogen.sh")))))))
2747 ;; TODO: opencv for additional face detection filters
2752 `(("pkg-config" ,pkg-config)
2753 ("libtool" ,libtool)
2754 ("automake" ,automake)
2755 ("autoconf" ,autoconf)))
2756 (home-page "https://www.dyne.org/software/frei0r/")
2757 (synopsis "Minimalistic plugin API for video effects")
2759 "Frei0r is a minimalistic plugin API for video effects.
2760 The main emphasis is on simplicity for an API that will round up
2761 the most common video effects into simple filters, sources and
2762 mixers that can be controlled by parameters. Frei0r wants to
2763 provide a way to share these simple effects between many
2764 applications, avoiding their reimplementation by different projects.
2765 It counts more than 100 plugins.")
2766 (license (list license:gpl2+
2767 ;; The following files are licensed as LGPL2.1+:
2768 ;; src/generator/ising0r/ising0r.c
2769 ;; src/generator/onecol0r/onecol0r.cpp
2770 ;; src/generator/nois0r/nois0r.cpp
2771 ;; src/generator/lissajous0r/lissajous0r.cpp
2772 ;; src/filter/ndvi/gradientlut.hpp
2773 ;; src/filter/ndvi/ndvi.cpp
2774 ;; src/filter/facedetect/facedetect.cpp
2775 license:lgpl2.1+))))
2777 (define-public motion
2781 (home-page "https://motion-project.github.io/")
2785 "https://github.com/Motion-Project/motion/archive/"
2786 "release-" version ".tar.gz"))
2789 "1qm4i8zrqafl60sv2frhixvkd0wh0r5jfcrj5i6gha7yplsvjx10"))
2790 (file-name (string-append name "-" version ".tar.gz"))))
2791 (build-system gnu-build-system)
2793 `(("autoconf" ,autoconf-wrapper)
2794 ("automake" ,automake)
2795 ("pkg-config" ,pkg-config)))
2797 `(("libjpeg" ,libjpeg)
2798 ("ffmpeg" ,ffmpeg-3.4)
2799 ("sqlite" ,sqlite)))
2801 '(#:phases (modify-phases %standard-phases
2802 (add-after 'unpack 'bootstrap
2804 (patch-shebang "version.sh")
2805 (invoke "autoreconf" "-vfi"))))
2806 #:configure-flags '("--sysconfdir=/etc")
2807 #:make-flags (list (string-append "sysconfdir="
2808 (assoc-ref %outputs "out")
2811 #:tests? #f)) ;no 'check' target
2812 (synopsis "Detect motion from video signals")
2814 "Motion is a program that monitors the video signal from one or more
2815 cameras and is able to detect if a significant part of the picture has
2816 changed. Or in other words, it can detect motion.")
2818 ;; Some files say "version 2" and others "version 2 or later".
2819 (license license:gpl2)))
2821 (define-public subdl
2822 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
2826 (version (git-version "1.0.3" revision commit))
2830 (url "https://github.com/alexanderwink/subdl.git")
2832 (file-name (git-file-name name version))
2835 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
2836 (build-system trivial-build-system)
2838 `(#:modules ((guix build utils))
2840 (use-modules (guix build utils))
2841 (let* ((out (assoc-ref %outputs "out"))
2842 (bin (string-append out "/bin"))
2843 (source (assoc-ref %build-inputs "source"))
2844 (python (assoc-ref %build-inputs "python")))
2845 (install-file (string-append source "/subdl") bin)
2846 (patch-shebang (string-append bin "/subdl")
2847 (list (string-append python "/bin")))))))
2848 (inputs `(("python" ,python)))
2849 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
2850 (description "Subdl is a command-line tool for downloading subtitles from
2851 opensubtitles.org. By default, it will search for English subtitles, display
2852 the results, download the highest-rated result in the requested language and
2853 save it to the appropriate filename.")
2854 (license license:gpl3+)
2855 (home-page "https://github.com/alexanderwink/subdl"))))
2857 (define-public l-smash
2864 "https://github.com/" name "/" name "/archive/v"
2866 (file-name (string-append name "-" version ".tar.gz"))
2869 "0dary0h65kq6sv93iabv25djlvzr5ckdcp3ywagbix44wqfw7xz6"))))
2870 (build-system gnu-build-system)
2872 `(#:tests? #f ;no tests
2874 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
2875 (assoc-ref %outputs "out") "/lib"))
2877 (modify-phases %standard-phases
2878 ;; configure fails if it is followed by CONFIG_SHELL
2880 (lambda* (#:key outputs #:allow-other-keys)
2881 (let ((out (assoc-ref outputs "out")))
2882 (invoke "./configure" (string-append "--prefix=" out)
2883 "--disable-static")))))))
2885 `(("which" ,which)))
2886 (home-page "https://l-smash.github.io/l-smash/")
2887 (synopsis "MP4 multiplexer and demultiplexer library")
2889 "L-SMASH is a cross-platform library that handles the ISO base media file
2890 format and some of its derived file formats, including MP4. It operates as a
2891 multiplexer and demultiplexer, and can mux video and audio in several formats
2892 using standalone executable files.")
2893 (license license:isc)))