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 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 Alex Vong <alexvong1995@gmail.com>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
12 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
13 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages video)
31 #:use-module (ice-9 match)
32 #:use-module (srfi srfi-1)
33 #:use-module (srfi srfi-26)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix utils)
36 #:use-module (guix packages)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix svn-download)
40 #:use-module (guix build-system cmake)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system glib-or-gtk)
43 #:use-module (guix build-system python)
44 #:use-module (guix build-system waf)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages algebra)
47 #:use-module (gnu packages audio)
48 #:use-module (gnu packages autotools)
49 #:use-module (gnu packages avahi)
50 #:use-module (gnu packages base)
51 #:use-module (gnu packages bison)
52 #:use-module (gnu packages cdrom)
53 #:use-module (gnu packages compression)
54 #:use-module (gnu packages curl)
55 #:use-module (gnu packages databases)
56 #:use-module (gnu packages elf)
57 #:use-module (gnu packages flex)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages freedesktop)
60 #:use-module (gnu packages fribidi)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages ghostscript)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages guile)
66 #:use-module (gnu packages gnupg)
67 #:use-module (gnu packages gtk)
68 #:use-module (gnu packages image)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages lua)
71 #:use-module (gnu packages mp3)
72 #:use-module (gnu packages ncurses)
73 #:use-module (gnu packages ocr)
74 #:use-module (gnu packages perl)
75 #:use-module (gnu packages pkg-config)
76 #:use-module (gnu packages popt)
77 #:use-module (gnu packages pulseaudio)
78 #:use-module (gnu packages python)
79 #:use-module (gnu packages qt)
80 #:use-module (gnu packages sdl)
81 #:use-module (gnu packages ssh)
82 #:use-module (gnu packages texinfo)
83 #:use-module (gnu packages textutils)
84 #:use-module (gnu packages tls)
85 #:use-module (gnu packages version-control)
86 #:use-module (gnu packages web)
87 #:use-module (gnu packages xdisorg)
88 #:use-module (gnu packages xiph)
89 #:use-module (gnu packages xml)
90 #:use-module (gnu packages xorg)
91 #:use-module (gnu packages assembly)
92 #:use-module (gnu packages zip))
100 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
101 version "/" name "-" version ".tar.gz"))
104 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
105 (build-system gnu-build-system)
107 `(("makeinfo" ,texinfo)))
109 `(("ncurses" ,ncurses)))
112 (modify-phases %standard-phases
114 (lambda* (#:key build inputs outputs #:allow-other-keys)
115 ;; This old `configure' script doesn't support
116 ;; variables passed as arguments.
117 (let ((out (assoc-ref outputs "out"))
118 (ncurses (assoc-ref inputs "ncurses")))
119 (setenv "CONFIG_SHELL" (which "bash"))
120 (zero? (system* "./configure"
121 (string-append "--prefix=" out)
122 (string-append "--build=" build)
123 ;; The ancient config.guess is unable to
124 ;; guess the host triplet on mips64el.
125 ,@(if (string=? "mips64el-linux"
127 '("--host=mips64el-unknown-linux-gnu")
129 (string-append "--with-ncurses="
131 (home-page "http://aa-project.sourceforge.net/aalib/")
132 (synopsis "ASCII-art library")
134 "AA-lib is a low level gfx library which does not require graphics device.
135 In fact, there is no graphical output possible. AA-lib replaces those
136 old-fashioned output methods with powerful ascii-art renderer.")
137 (license license:lgpl2.0+)))
139 (define-public liba52
146 ;; A mirror://sourceforge URI doesn't work, presumably
147 ;; because the SourceForge project is misconfigured.
148 "http://liba52.sourceforge.net/files/a52dec-" version
152 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
153 (patches (search-patches "liba52-enable-pic.patch"
154 "liba52-set-soname.patch"
155 "liba52-use-mtune-not-mcpu.patch"
156 "liba52-link-with-libm.patch"))))
157 (build-system gnu-build-system)
158 ;; XXX We need to run ./bootstrap because of the build system fixes above.
160 `(("autoconf" ,autoconf)
161 ("automake" ,automake)
162 ("libtool" ,libtool)))
163 (arguments `(#:configure-flags '("--enable-shared")
165 (modify-phases %standard-phases
166 ;; XXX We need to run ./bootstrap because of the build
167 ;; system fixes above.
170 (lambda _ (zero? (system* "sh" "bootstrap")))))))
171 (home-page "http://liba52.sourceforge.net/")
172 (synopsis "ATSC A/52 stream decoder")
173 (description "liba52 is a library for decoding ATSC A/52 streams. The
174 A/52 standard is used in a variety of applications, including digital
175 television and DVD. It is also known as AC-3.")
176 (license license:gpl2+)))
178 (define-public libmpeg2
184 ;; A mirror://sourceforge URI doesn't work, presumably
185 ;; because the SourceForge project is misconfigured.
186 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
187 name "-" version ".tar.gz"))
190 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
198 (build-system gnu-build-system)
199 (home-page "http://libmpeg2.sourceforge.net/")
200 (synopsis "MPEG1 and MPEG2 video decoder library")
202 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
203 (license license:gpl2+)))
205 (define-public libx264
208 (version "20160220-2245")
211 (uri (string-append "http://download.videolan.org/pub/x264/snapshots/"
212 "x264-snapshot-" version ".tar.bz2"))
215 "12zyzbiihfhamf7yi4qqaj6k0nisnrydvfr36kxadvmsm7dg4sj3"))))
216 (build-system gnu-build-system)
218 `(("pkg-config" ,pkg-config)
220 ;; TODO: Add gpac input
222 `(#:tests? #f ;no check target
223 #:configure-flags '("--enable-shared"
224 ;; Don't build the command-line program. If we
225 ;; want it later, we should do so in a different
226 ;; package to avoid a circular dependency (the x264
227 ;; program depends on ffmpeg and ffmpeg depends on
231 ;; On MIPS, we must pass "--disable-asm" or else
232 ;; configure fails after printing: "You specified a
233 ;; pre-MSA CPU in your CFLAGS. If you really want
234 ;; to run on such a CPU, configure with
236 ,@(if (string-prefix? "mips"
237 (or (%current-target-system)
241 (home-page "http://www.videolan.org/developers/x264.html")
242 (synopsis "H.264 video coding library")
243 (description "libx264 is an advanced encoding library for creating
244 H.264 (MPEG-4 AVC) video streams.")
245 (license (list license:gpl2+ ;most files
246 license:isc ;common/x86/x86inc.asm
247 license:lgpl2.1+ ;extras/getopt.c
248 license:bsd-3 ;extras/inttypes.h
249 (license:non-copyleft ;extras/cl*.h
251 "See extras/cl.h in the distribution.")))))
260 (uri (string-append "https://download.videolan.org/videolan/x265/"
261 "x265_" version ".tar.gz"))
264 "0hx6sr9l7586gs4qds2sj0i1m5brxkaqq3cwmibhfb559fpvkz48"))
265 (modules '((guix build utils)))
267 '(delete-file-recursively "source/compat/getopt"))))
268 (build-system cmake-build-system)
270 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
272 (modify-phases %standard-phases
273 (add-before 'configure 'prepare-build
275 (delete-file-recursively "build")
278 (home-page "http://x265.org/")
279 (synopsis "Library for encoding h.265/HEVC video streams")
280 (description "x265 is a H.265 / HEVC video encoder application library,
281 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
282 (license license:gpl2+)))
284 (define-public libass
291 "https://github.com/libass/libass/releases/download/"
292 version "/libass-" version ".tar.xz"))
295 "1dlzkjybnpl2fkvyjq0qblb7qw12cs893bs7zj3rvf8ij342yjnq"))))
296 (build-system gnu-build-system)
298 `(("pkg-config" ,pkg-config)
301 `(("freetype" ,freetype)
303 ("fontconfig" ,fontconfig)
304 ("harfbuzz" ,harfbuzz)
306 (home-page "https://github.com/libass/libass")
307 (synopsis "Subtitle rendering library for the ASS/SSA format")
308 (description "libass is a subtitle rendering library for the
309 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
310 (license license:isc)))
312 (define-public libcaca
315 (version "0.99.beta19")
318 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
322 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
323 (build-system gnu-build-system)
324 (native-inputs `(("pkg-config" ,pkg-config)))
326 `(("freeglut" ,freeglut)
333 (home-page "http://caca.zoy.org/wiki/libcaca")
334 (synopsis "Colour ASCII-art library")
335 (description "libcaca is a graphics library that outputs text instead of
336 pixels, so that it can work on older video cards or text terminals. It
337 supports Unicode, 2048 colors, dithering of color images, and advanced text
339 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
341 (define-public libdca
348 "http://download.videolan.org/pub/videolan/libdca/"
349 version "/libdca-" version ".tar.bz2"))
352 "0hh6a7l8vvccsd5i1fkv9av2gzv9fy8m0b8jpsn5p6hh4bh2586v"))))
353 (build-system gnu-build-system)
354 (home-page "http://www.videolan.org/developers/libdca.html")
355 (synopsis "DTS Coherent Acoustics decoder")
356 (description "libdca is a library for decoding DTS Coherent Acoustics
358 (license license:gpl2+)))
367 "mirror://sourceforge/" name "/" name "/"
368 version "/" name "-" version ".tar.gz"))
371 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
372 (build-system gnu-build-system)
373 (native-inputs `(("pkg-config" ,pkg-config)))
374 (inputs `(("libxv" ,libxv)))
375 (home-page "http://libdv.sourceforge.net/")
376 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
377 (description "The Quasar DV codec (libdv) is a software codec for DV
378 video, the encoding format used by most digital camcorders, typically those
379 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
380 developed according to the official standards for DV video: IEC 61834 and
382 (license license:lgpl2.1+)))
392 "https://www.freedesktop.org/software/vaapi/releases/libva/libva-"
395 (base32 "0py9igf4kicj7ji22bjawkpd6my013qpg0s4ir2np9l1rk5vr2d6"))))
396 (build-system gnu-build-system)
398 `(("pkg-config" ,pkg-config)))
403 ("libxfixes" ,libxfixes)
407 (modify-phases %standard-phases
409 'build 'fix-dlopen-paths
410 (lambda* (#:key outputs #:allow-other-keys)
411 (let ((out (assoc-ref outputs "out")))
412 (substitute* "va/drm/va_drm_auth_x11.c"
413 (("\"libva-x11\\.so\\.%d\"")
414 (string-append "\"" out "/lib/libva-x11.so.%d\"")))))))
415 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
416 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
418 (list (string-append "--with-drivers-path="
419 (assoc-ref %build-inputs "mesa") "/lib/dri"))
420 ;; However, we can't write to mesa's store directory, so override the
421 ;; following make variable to install the dummy driver to libva's
422 ;; $prefix/lib/dri directory.
424 (list (string-append "dummy_drv_video_ladir="
425 (assoc-ref %outputs "out") "/lib/dri"))))
426 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
427 (synopsis "Video acceleration library")
428 (description "The main motivation for VA-API (Video Acceleration API) is
429 to enable hardware accelerated video decode/encode at various
430 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
431 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
432 (license license:expat)))
434 (define-public ffmpeg
440 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
444 "1nnmd3h9pr2zic08isjcm1cmvcyd0aimpayb9r4qy45bihdhrxw8"))))
445 (build-system gnu-build-system)
447 `(("fontconfig" ,fontconfig)
448 ("freetype" ,freetype)
454 ("libbluray" ,libbluray)
456 ("libcdio-paranoia" ,libcdio-paranoia)
457 ("libtheora" ,libtheora)
458 ("libvdpau" ,libvdpau)
459 ("libvorbis" ,libvorbis)
465 ("pulseaudio" ,pulseaudio)
475 ("pkg-config" ,pkg-config)
477 ("python" ,python-2) ; scripts use interpreter python2
481 `(#:test-target "fate"
483 ;; possible additional inputs:
484 ;; --enable-avisynth enable reading of AviSynth script
486 ;; --enable-frei0r enable frei0r video filtering
487 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
488 ;; --enable-libcelt enable CELT decoding via libcelt [no]
489 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
490 ;; and libraw1394 [no]
491 ;; --enable-libfaac enable AAC encoding via libfaac [no]
492 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
493 ;; --enable-libflite enable flite (voice synthesis) support via
495 ;; --enable-libgme enable Game Music Emu via libgme [no]
496 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
497 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
498 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
499 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
500 ;; --enable-libnut enable NUT (de)muxing via libnut,
501 ;; native (de)muxer exists [no]
502 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
503 ;; libopencore-amrnb [no]
504 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
505 ;; libopencore-amrwb [no]
506 ;; --enable-libopencv enable video filtering via libopencv [no]
507 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
509 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
510 ;; --enable-libschroedinger enable Dirac de/encoding via
511 ;; libschroedinger [no]
512 ;; --enable-libshine enable fixed-point MP3 encoding via
514 ;; --enable-libssh enable SFTP protocol via libssh [no]
515 ;; (libssh2 does not work)
516 ;; --enable-libstagefright-h264 enable H.264 decoding via
517 ;; libstagefright [no]
518 ;; --enable-libutvideo enable Ut Video encoding and decoding via
520 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
521 ;; --enable-libvidstab enable video stabilization using
523 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
524 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
525 ;; libvo-amrwbenc [no]
526 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
527 ;; --enable-libxavs enable AVS encoding via xavs [no]
528 ;; --enable-libzmq enable message passing via libzmq [no]
529 ;; --enable-libzvbi enable teletext support via libzvbi [no]
530 ;; --enable-opencl enable OpenCL code
531 '("--enable-avresample"
532 "--enable-gpl" ; enable optional gpl licensed parts
534 "--enable-fontconfig"
541 "--enable-libfreetype"
542 "--enable-libmp3lame"
548 "--enable-libtwolame"
558 "--enable-runtime-cpudetect"
560 ;; Runtime cpu detection is not implemented on
561 ;; MIPS, so we disable some features.
564 "--disable-mipsdspr2"
567 (modify-phases %standard-phases
570 ;; configure does not work followed by "SHELL=..." and
571 ;; "CONFIG_SHELL=..."; set environment variables instead
572 (lambda* (#:key outputs configure-flags #:allow-other-keys)
573 (let ((out (assoc-ref outputs "out")))
574 (substitute* "configure"
575 (("#! /bin/sh") (string-append "#!" (which "bash"))))
576 (setenv "SHELL" (which "bash"))
577 (setenv "CONFIG_SHELL" (which "bash"))
578 (zero? (apply system*
580 (string-append "--prefix=" out)
581 ;; Add $libdir to the RUNPATH of all the binaries.
582 (string-append "--extra-ldflags=-Wl,-rpath="
586 'check 'set-ld-library-path
588 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
590 (let* ((dso (find-files "." "\\.so$"))
591 (path (string-join (map dirname dso) ":")))
592 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
593 (setenv "LD_LIBRARY_PATH" path)
595 (home-page "https://www.ffmpeg.org/")
596 (synopsis "Audio and video framework")
597 (description "FFmpeg is a complete, cross-platform solution to record,
598 convert and stream audio and video. It includes the libavcodec
599 audio/video codec library.")
600 (license license:gpl2+)))
602 (define-public ffmpeg-2.8
608 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
612 "1691bmq8j56rcys09xwvzjq16z25m8vczj5a50gdn7ydm9qjykpr"))))
614 (substitute-keyword-arguments (package-arguments ffmpeg)
615 ((#:configure-flags flags)
617 (if (string=? flag "--disable-mipsdsp")
618 "--disable-mipsdspr1"
629 "https://download.videolan.org/pub/videolan/vlc/"
630 version "/vlc-" version ".tar.xz"))
633 "1gjkrwlg8ab3skzl67cxb9qzg4187ifckd1z9kpy11q058fyjchn"))
634 (modules '((guix build utils)))
636 ;; There are two occurrences where __DATE__ and __TIME__ are
637 ;; used to capture the build time and show it to the user.
638 '(substitute* (find-files "." "help\\.c(pp)?$")
639 (("__DATE__") "\"2016\"")
640 (("__TIME__") "\"00:00\"")))))
641 (build-system gnu-build-system)
643 `(("git" ,git) ; needed for a test
644 ("pkg-config" ,pkg-config)))
645 ;; FIXME: Add optional inputs once available.
647 `(("alsa-lib" ,alsa-lib)
651 ("ffmpeg" ,ffmpeg-2.8) ;fails to build against ffmpeg 3.0
652 ("fontconfig" ,fontconfig)
653 ("freetype" ,freetype)
657 ("libgcrypt" ,libgcrypt)
662 ("libsamplerate" ,libsamplerate)
664 ("libvorbis" ,libvorbis)
665 ("libtheora" ,libtheora)
668 ("libxinerama" ,libxinerama)
675 ("pulseaudio" ,pulseaudio)
676 ("python" ,python-wrapper)
677 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
678 ;("qtbase" ,qtbase) with -std=gnu++11.
679 ;("qtx11extras" ,qtx11extras)
681 ("sdl-image" ,sdl-image)
684 ("xcb-util-keysyms" ,xcb-util-keysyms)))
687 `(;; Gross workaround for <https://trac.videolan.org/vlc/ticket/16907>.
688 ;; In our case, this led to a test failure:
689 ;; test_libvlc_equalizer: libvlc/equalizer.c:122: test_equalizer: Assertion `isnan(libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands))' failed.
690 "ac_cv_c_fast_math=no"
692 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
693 (assoc-ref %build-inputs "ffmpeg")
694 "/lib")) ;needed for the tests
697 (modify-phases %standard-phases
698 (add-before 'configure 'remove-visual-tests
699 ;; Some of the tests require using the display to test out VLC,
700 ;; which fails in our sandboxed build system
702 (substitute* "test/run_vlc.sh"
703 (("./vlc --ignore-config") "echo"))
705 (add-after 'install 'regenerate-plugin-cache
706 (lambda* (#:key outputs #:allow-other-keys)
707 ;; The 'install-exec-hook' rule in the top-level Makefile.am
708 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
709 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
710 ;; it references. Thus, we first reset the timestamps of all
711 ;; these files, and then regenerate the cache such that the
712 ;; mtimes it includes are always zero instead of being dependent
713 ;; on the build time.
714 (let* ((out (assoc-ref outputs "out"))
715 (pkglibdir (string-append out "/lib/vlc"))
716 (plugindir (string-append pkglibdir "/plugins"))
717 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
718 ;; TODO: Factorize 'reset-timestamps'.
719 (for-each (lambda (file)
720 (let ((s (lstat file)))
721 (unless (eq? (stat:type s) 'symlink)
722 (utime file 0 0 0 0))))
723 (find-files plugindir))
724 (zero? (system* cachegen plugindir))))))))
725 (home-page "https://www.videolan.org/")
726 (synopsis "Audio and video framework")
727 (description "VLC is a cross-platform multimedia player and framework
728 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
729 treaming protocols.")
730 (license license:gpl2+)))
732 (define-public mplayer
739 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
743 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
744 (build-system gnu-build-system)
745 ;; FIXME: Add additional inputs once available.
747 `(("pkg-config" ,pkg-config)))
749 `(("alsa-lib" ,alsa-lib)
750 ("cdparanoia" ,cdparanoia)
752 ("fontconfig" ,fontconfig)
753 ("freetype" ,freetype)
754 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
757 ("libdvdcss" ,libdvdcss)
758 ("libdvdnav" ,libdvdnav)
760 ("libmpeg2" ,libmpeg2)
761 ("libmpg123" ,mpg123) ; audio codec for MP3
763 ("libtheora" ,libtheora)
764 ("libvdpau" ,libvdpau)
765 ("libvorbis" ,libvorbis)
768 ("libxinerama" ,libxinerama)
770 ("libxxf86dga" ,libxxf86dga)
774 ("pulseaudio" ,pulseaudio)
775 ("python" ,python-wrapper)
781 `(#:tests? #f ; no test target
783 (modify-phases %standard-phases
785 ;; configure does not work followed by "SHELL=..." and
786 ;; "CONFIG_SHELL=..."; set environment variables instead
787 (lambda* (#:key inputs outputs #:allow-other-keys)
788 (let ((out (assoc-ref outputs "out"))
789 (libx11 (assoc-ref inputs "libx11")))
790 (substitute* "configure"
791 (("#! /bin/sh") (string-append "#!" (which "bash"))))
792 (setenv "SHELL" (which "bash"))
793 (setenv "CONFIG_SHELL" (which "bash"))
796 (string-append "--extra-cflags=-I"
797 libx11 "/include") ; to detect libx11
798 "--disable-ffmpeg_a" ; disables bundled ffmpeg
799 (string-append "--prefix=" out)
800 ;; Enable runtime cpu detection where supported,
801 ;; and choose a suitable target.
802 ,@(match (or (%current-target-system)
805 '("--enable-runtime-cpudetection"
806 "--target=x86_64-linux"))
808 '("--enable-runtime-cpudetection"
809 "--target=i686-linux"))
811 '("--target=mips3-linux"))
812 (_ (list (string-append
814 (or (%current-target-system)
815 (nix-system->gnu-triplet
816 (%current-system)))))))
817 "--disable-iwmmxt"))))))))
818 (home-page "https://www.mplayerhq.hu/design7/news.html")
819 (synopsis "Audio and video player")
820 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
821 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
822 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
823 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
824 (license license:gpl2)))
833 "https://github.com/mpv-player/mpv/archive/v" version
837 "1lwvvhldqrkp44zdm3wbi7qrsln13s8ympwwckqhwl4whp78wpyh"))
838 (file-name (string-append name "-" version ".tar.gz"))))
839 (build-system waf-build-system)
842 ("pkg-config" ,pkg-config)
843 ("python-docutils" ,python-docutils)))
844 ;; Missing features: libguess, Wayland, V4L2
846 `(("alsa-lib" ,alsa-lib)
853 ("libbluray" ,libbluray)
856 ("libcdio-paranoia" ,libcdio-paranoia)
857 ("libdvdread" ,libdvdread)
858 ("libdvdnav" ,libdvdnav)
861 ("libvdpau" ,libvdpau)
864 ("libxinerama" ,libxinerama)
865 ("libxrandr" ,libxrandr)
866 ("libxscrnsaver" ,libxscrnsaver)
871 ("pulseaudio" ,pulseaudio)
874 ("youtube-dl" ,youtube-dl)
878 (modify-phases %standard-phases
880 'configure 'setup-waf
881 (lambda* (#:key inputs #:allow-other-keys)
882 (copy-file (assoc-ref inputs "waf") "waf")
883 (setenv "CC" "gcc"))))
884 #:configure-flags (list "--enable-libmpv-shared" "--enable-zsh-comp")
885 ;; No check function defined.
887 (home-page "https://mpv.io/")
888 (synopsis "Audio and video player")
889 (description "mpv is a general-purpose audio and video player. It is a
890 fork of mplayer2 and MPlayer. It shares some features with the former
891 projects while introducing many more.")
892 (license license:gpl2+)))
894 (define-public gnome-mpv
901 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
902 "/download/v" version "/gnome-mpv-" version
906 "10zizf926a82c753a80bi49rb5c4yqjyd6zin4xgmggspfxngncj"))))
908 `(("intltool" ,intltool)
909 ("pkg-config" ,pkg-config)))
912 ("libepoxy" ,libepoxy)
914 (build-system glib-or-gtk-build-system)
915 (home-page "https://github.com/gnome-mpv/gnome-mpv")
916 (synopsis "GTK+ frontend for the mpv media player")
917 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
918 GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
919 access to mpv's powerful playback capabilities.")
920 (license license:gpl3+)))
922 (define-public libvpx
928 (uri (string-append "http://storage.googleapis.com/"
929 "downloads.webmproject.org/releases/webm/"
930 name "-" version ".tar.bz2"))
933 "1basd6dda5di9p7jhc0f4f52wzm9c3hsravqspw6ibpcn5gbpbyh"))
934 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
935 (build-system gnu-build-system)
938 (modify-phases %standard-phases
940 (lambda* (#:key outputs #:allow-other-keys)
941 (setenv "CONFIG_SHELL" (which "bash"))
942 (let ((out (assoc-ref outputs "out")))
944 (string-append "-Wl,-rpath=" out "/lib"))
945 (zero? (system* "./configure"
948 ;; Limit size to avoid CVE-2015-1258
949 "--size-limit=16384x16384"
950 (string-append "--prefix=" out)))))))
951 #:tests? #f)) ; no check target
955 (synopsis "VP8/VP9 video codec")
956 (description "libvpx is a codec for the VP8/VP9 video compression format.")
957 (license license:bsd-3)
958 (home-page "http://www.webmproject.org/")))
960 (define-public youtube-dl
963 (version "2016.10.16")
966 (uri (string-append "https://youtube-dl.org/downloads/"
967 version "/youtube-dl-"
971 "0q6cxbp1xx8xmwn3xbxh6gcbgqjxy3slzfca4dbkk9xl2yy9rwqg"))))
972 (build-system python-build-system)
974 ;; The problem here is that the directory for the man page and completion
975 ;; files is relative, and for some reason, setup.py uses the
976 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
977 ;; So, we need pass the prefix directly. In addition, make sure the Bash
978 ;; completion file is called 'youtube-dl' rather than
979 ;; 'youtube-dl.bash-completion'.
980 `(#:phases (modify-phases %standard-phases
981 (add-before 'install 'fix-the-data-directories
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let ((prefix (assoc-ref outputs "out")))
984 (mkdir "bash-completion")
985 (rename-file "youtube-dl.bash-completion"
986 "bash-completion/youtube-dl")
987 (substitute* "setup.py"
988 (("youtube-dl\\.bash-completion")
989 "bash-completion/youtube-dl")
991 (string-append "'" prefix "/etc/"))
993 (string-append "'" prefix "/share/")))))))))
994 (synopsis "Download videos from YouTube.com and other sites")
996 "Youtube-dl is a small command-line program to download videos from
997 YouTube.com and a few more sites.")
998 (home-page "https://youtube-dl.org")
999 (license license:public-domain)))
1001 (define-public libbluray
1007 (uri (string-append "https://download.videolan.org/videolan/"
1008 name "/" version "/"
1009 name "-" version ".tar.bz2"))
1012 "1q1whviqv5sr9nr372h31zwid1rvbfbx3z4lzr8lnj25xha6cdm6"))))
1013 (build-system gnu-build-system)
1015 `(#:configure-flags '("--disable-bdjava")
1017 (modify-phases %standard-phases
1018 (add-before 'build 'fix-dlopen-paths
1019 (lambda* (#:key inputs #:allow-other-keys)
1020 (let ((libaacs (assoc-ref inputs "libaacs"))
1021 (libbdplus (assoc-ref inputs "libbdplus")))
1022 (substitute* "src/libbluray/disc/aacs.c"
1024 (string-append "\"" libaacs "/lib/libaacs\"")))
1025 (substitute* "src/libbluray/disc/bdplus.c"
1027 (string-append "\"" libbdplus "/lib/libbdplus\"")))
1029 (native-inputs `(("pkg-config" ,pkg-config)))
1031 `(("fontconfig" ,fontconfig)
1032 ("freetype" ,freetype)
1033 ("libaacs" ,libaacs)
1034 ("libbdplus" ,libbdplus)
1035 ("libxml2" ,libxml2)))
1036 (home-page "https://www.videolan.org/developers/libbluray.html")
1037 (synopsis "Blu-Ray Disc playback library")
1039 "libbluray is a library designed for Blu-Ray Disc playback for media
1040 players, like VLC or MPlayer.")
1041 (license license:lgpl2.1+)))
1043 (define-public libdvdread
1049 (uri (string-append "http://download.videolan.org/videolan/"
1050 name "/" version "/"
1051 name "-" version ".tar.bz2"))
1054 "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j"))))
1055 (build-system gnu-build-system)
1056 (home-page "http://dvdnav.mplayerhq.hu/")
1057 (synopsis "Library for reading video DVDs")
1059 "Libdvdread provides a simple foundation for reading DVD video
1060 disks. It provides the functionality that is required to access many
1061 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
1062 authentication and descrambling (if an external libdvdcss library is
1064 (license license:gpl2+)))
1066 (define-public libdvdnav
1072 (uri (string-append "http://download.videolan.org/videolan/"
1073 name "/" version "/"
1074 name "-" version ".tar.bz2"))
1077 "0v8byv5z598k06rqzdmj7739vc86xq3zf79zfr698dib7lz055sh"))))
1078 (build-system gnu-build-system)
1080 `(("pkg-config" ,pkg-config)))
1082 `(("libdvdread" ,libdvdread)))
1083 (home-page "http://dvdnav.mplayerhq.hu/")
1084 (synopsis "Library for video DVD navigation features")
1086 "Libdvdnav is a library for developers of multimedia
1087 applications. It allows easy use of sophisticated DVD navigation features
1088 such as DVD menus, multiangle playback and even interactive DVD games. All
1089 this functionality is provided through a simple API which provides the DVD
1090 playback as a single logical stream of blocks, intermitted by special
1091 dvdnav events to report certain conditions. The main usage of libdvdnav is
1092 a loop regularly calling a function to get the next block, surrounded by
1093 additional calls to tell the library of user interaction. The whole
1094 DVD virtual machine and internal playback states are completely
1096 (license license:gpl2+)))
1098 (define-public libdvdnav-4
1106 "http://download.videolan.org/videolan/libdvdnav/libdvdnav-"
1110 "0wi3gy408c8xj0ism0hckv5jbfh3lg4pmgxv87gbch9jrhp2gjkz"))))
1112 `(("pkg-config" ,pkg-config)
1113 ("autoconf" ,autoconf)
1114 ("automake" ,automake)
1115 ("libtool" ,libtool)))
1121 (zero? (system* "autoreconf" "-vif")))
1122 %standard-phases)))))
1124 (define-public libdvdcss
1130 (uri (string-append "http://download.videolan.org/pub/"
1131 name "/" version "/"
1132 name "-" version ".tar.bz2"))
1135 "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290"))))
1136 (build-system gnu-build-system)
1137 (home-page "http://www.videolan.org/developers/libdvdcss.html")
1138 (synopsis "Library for accessing DVDs as block devices")
1140 "libdvdcss is a simple library designed for accessing DVDs like a block
1141 device without having to bother about the decryption.")
1142 (license license:gpl2+)))
1144 (define-public srt2vtt
1151 "http://dthompson.us/releases/srt2vtt/srt2vtt-"
1155 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1156 (build-system gnu-build-system)
1158 `(("guile" ,guile-2.0)))
1159 (synopsis "SubRip to WebVTT subtitle converter")
1160 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1161 for use with HTML5 video.")
1162 (home-page "http://dthompson.us/pages/software/srt2vtt")
1163 (license license:gpl3+)))
1165 (define-public avidemux
1172 "mirror://sourceforge/" name "/" name "/" version "/"
1173 name "_" version ".tar.gz"))
1176 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
1177 (patches (search-patches "avidemux-install-to-lib.patch"))))
1178 (build-system cmake-build-system)
1180 `(("pkg-config" ,pkg-config)))
1181 ;; FIXME: Once packaged, add libraries not found during the build.
1183 `(("alsa-lib" ,alsa-lib)
1184 ("fontconfig" ,fontconfig)
1185 ("freetype" ,freetype)
1186 ("fribidi" ,fribidi)
1191 ("libvdpau" ,libvdpau)
1192 ("libvorbis" ,libvorbis)
1196 ("pulseaudio" ,pulseaudio)
1197 ("python" ,python-wrapper)
1198 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
1199 ;("qtbase" ,qtbase) with -std=gnu++11.
1200 ;("qttools" ,qttools)
1206 `(#:tests? #f ; no check target
1208 ;; Make sure files inside the included ffmpeg tarball are
1210 (modify-phases %standard-phases
1211 (add-before 'patch-source-shebangs 'unpack-ffmpeg
1213 (with-directory-excursion "avidemux_core/ffmpeg_package"
1214 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1215 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1216 (add-after 'patch-source-shebangs 'repack-ffmpeg
1218 (with-directory-excursion "avidemux_core/ffmpeg_package"
1219 (substitute* "ffmpeg-2.7.6/configure"
1220 (("#! /bin/sh") (string-append "#!" (which "bash"))))
1221 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
1222 ;; avoid non-determinism in the archive
1223 "--sort=name" "--mtime=@0"
1224 "--owner=root:0" "--group=root:0")
1225 (delete-file-recursively "ffmpeg-2.7.6"))))
1228 ;; Copy-paste settings from the cmake build system.
1229 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1230 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1232 (lambda* (#:key inputs outputs #:allow-other-keys)
1234 ((out (assoc-ref outputs "out"))
1235 (lib (string-append out "/lib"))
1237 (sdl (assoc-ref inputs "sdl"))
1239 (lambda* (component srcdir #:optional (args '()))
1240 (let ((builddir (string-append "build_" component)))
1242 (with-directory-excursion builddir
1245 (apply system* "cmake"
1246 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1247 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1248 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1249 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1250 "\"-Wl,-rpath=" lib "\"")
1251 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1252 (string-append "-DSDL_INCLUDE_DIR="
1254 (string-append "../" srcdir)
1257 (system* "make" "-j"
1258 (number->string (parallel-job-count)))
1259 (system* "make" "install"))))))))
1261 (and (build_component "core" "avidemux_core")
1262 (build_component "cli" "avidemux/cli")
1263 (build_component "qt4" "avidemux/qt4")
1264 (build_component "plugins_common" "avidemux_plugins"
1265 '("-DPLUGIN_UI=COMMON"))
1266 (build_component "plugins_cli" "avidemux_plugins"
1267 '("-DPLUGIN_UI=CLI"))
1268 (build_component "plugins_qt4" "avidemux_plugins"
1269 '("-DPLUGIN_UI=QT4"))
1270 (build_component "plugins_settings" "avidemux_plugins"
1271 '("-DPLUGIN_UI=SETTINGS")))
1272 ;; Remove .exe and .dll file.
1273 (delete-file-recursively
1274 (string-append out "/share/ADM6_addons")))))
1275 (delete 'install))))
1276 (home-page "http://fixounet.free.fr/avidemux/")
1277 (synopsis "Video editor")
1278 (description "Avidemux is a video editor designed for simple cutting,
1279 filtering and encoding tasks. It supports many file types, including AVI,
1280 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1281 can be automated using projects, job queue and powerful scripting
1283 ;; Software with various licenses is included, see License.txt.
1284 (license license:gpl2+)))
1286 (define-public vapoursynth
1288 (name "vapoursynth")
1293 "https://github.com/vapoursynth/vapoursynth/archive/R"
1295 (file-name (string-append name "-" version ".tar.gz"))
1298 "0629ys2lf618n9cc644xlvx0vx52v2fp3sx14p4mx5rg9nlasb3n"))))
1299 (build-system gnu-build-system)
1301 `(("autoconf" ,autoconf)
1302 ("automake" ,automake)
1303 ("cython" ,python-cython)
1304 ("libtool" ,libtool)
1305 ("pkg-config" ,pkg-config)
1309 `(("ffmpeg" ,ffmpeg)
1311 ("tesseract-ocr" ,tesseract-ocr)
1315 (modify-phases %standard-phases
1319 (zero? (system* "sh" "autogen.sh")))))))
1320 (home-page "http://www.vapoursynth.com/")
1321 (synopsis "Video processing framework")
1322 (description "VapourSynth is a C++ library and Python module for video
1323 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1324 multithreading, generalized colorspaces, per frame properties, and videos with
1326 ;; src/core/cpufeatures only allows x86, ARM or PPC
1327 (supported-systems (delete "mips64el-linux" %supported-systems))
1328 ;; As seen from the source files.
1329 (license license:lgpl2.1+)))
1338 "http://downloads.xvid.org/downloads/xvidcore-"
1339 version ".tar.bz2"))
1342 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
1343 (build-system gnu-build-system)
1344 (native-inputs `(("yasm" ,yasm)))
1347 (modify-phases %standard-phases
1349 'configure 'pre-configure
1351 (chdir "build/generic")
1352 (substitute* "configure"
1353 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
1354 ;; No 'check' target.
1356 (home-page "https://www.xvid.com/")
1357 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1358 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1359 codec library. It uses ASP features such as b-frames, global and quarter
1360 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1361 and custom quantization matrices.")
1362 (license license:gpl2+)))
1364 (define-public livestreamer
1366 (name "livestreamer")
1371 "https://github.com/chrippa/livestreamer/archive/v"
1373 (file-name (string-append "livestreamer-" version ".tar.gz"))
1376 "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"))))
1377 (build-system python-build-system)
1379 '(#:tests? #f)) ; tests rely on external web servers
1381 `(("python-requests" ,python-requests)))
1382 (synopsis "Internet video stream viewer")
1383 (description "Livestreamer is a command-line utility that extracts streams
1384 from various services and pipes them into a video playing application.")
1385 (home-page "http://livestreamer.io/")
1386 (license license:bsd-2)))
1394 (uri (string-append "https://github.com/mltframework/mlt/"
1395 "archive/v" version ".tar.gz"))
1396 (file-name (string-append name "-" version ".tar.gz"))
1399 "1zwzfgxrcbwkxnkiwv0a1rzxdnnaly90yyarl9wdw84nx11ffbnx"))))
1400 (build-system gnu-build-system)
1402 `(#:tests? #f ; no tests
1403 #:make-flags '("CC=gcc")
1405 (list "--enable-gpl3"
1408 (modify-phases %standard-phases
1410 'configure 'override-LDFLAGS
1411 (lambda* (#:key outputs #:allow-other-keys)
1412 (substitute* "config.mak"
1414 (string-append "LDFLAGS+=-Wl,-rpath="
1415 (assoc-ref outputs "out")
1419 `(("alsa-lib" ,alsa-lib)
1421 ("libxml2" ,libxml2)
1424 ("libsamplerate" ,libsamplerate)
1425 ("pulseaudio" ,pulseaudio)
1429 `(("pkg-config" ,pkg-config)))
1430 (home-page "https://www.mltframework.org/")
1431 (synopsis "Author, manage, and run multitrack audio/video compositions")
1433 "MLT is a multimedia framework, designed and developed for television
1434 broadcasting. It provides a toolkit for broadcasters, video editors, media
1435 players, transcoders, web streamers and many more types of applications. The
1436 functionality of the system is provided via an assortment of ready to use
1437 tools, XML authoring components, and an extensible plug-in based API.")
1438 (license license:lgpl2.1+)))
1440 (define-public v4l-utils
1446 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
1447 "/v4l-utils-" version ".tar.bz2"))
1450 "1h1nhg5cmmzlbipak526nk4bm6d0yb217mll75f3rpg7kz1cqiv1"))))
1451 (build-system gnu-build-system)
1454 (list (string-append "--with-udevdir="
1455 (assoc-ref %outputs "out")
1457 "CXXFLAGS=-std=gnu++11")))
1459 `(("pkg-config" ,pkg-config)))
1461 `(("alsa-lib" ,alsa-lib)
1463 ("libjpeg" ,libjpeg)
1467 (synopsis "Realtime video capture utilities for Linux")
1468 (description "The v4l-utils provide a series of libraries and utilities to
1469 be used for realtime video capture via Linux-specific APIs.")
1470 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
1471 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
1472 (license (list license:lgpl2.1+ license:gpl2))))
1480 (uri (string-append "https://github.com/jp9000/obs-studio"
1481 "/archive/" version ".tar.gz"))
1482 (file-name (string-append name "-" version ".tar.gz"))
1485 "0p2grxyaf79hb3nlja23xp7b2vc1w18llvzcyhnjn2lhwfjabcgm"))))
1486 (build-system cmake-build-system)
1488 `(#:tests? #f ; no tests
1489 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1493 (modify-phases %standard-phases
1494 (add-after 'unpack 'remove-architecture-specific-instructions
1495 ;; non-Intel platforms fail to build with the architecture
1496 ;; specific compiler flags included by default.
1498 (substitute* "libobs/CMakeLists.txt"
1499 (("if\\(NOT MSVC\\)") "if(MSVC)"))
1503 `(("pkg-config" ,pkg-config)))
1508 ("freetype" ,freetype)
1510 ("jansson" ,jansson)
1511 ("libx264" ,libx264)
1512 ("libxcomposite" ,libxcomposite)
1514 ("pulseaudio" ,pulseaudio)
1516 ("qtx11extras" ,qtx11extras)
1517 ("v4l-utils" ,v4l-utils)
1519 (synopsis "Live streaming software")
1520 (description "Open Broadcaster Software provides a graphical interface for
1521 video recording and live streaming. OBS supports capturing audio and video
1522 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
1524 (home-page "https://obsproject.com")
1525 (license license:gpl2+)))
1527 (define-public libvdpau
1534 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1535 name "-" version ".tar.bz2"))
1538 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
1539 (build-system gnu-build-system)
1541 `(("pkg-config" ,pkg-config)))
1543 `(("dri2proto" ,dri2proto)
1544 ("libx11" ,libx11 "out")
1545 ("libxext" ,libxext)))
1546 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1547 (synopsis "Video Decode and Presentation API")
1548 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
1549 provides an interface to video decode acceleration and presentation hardware
1550 present in modern GPUs.")
1551 (license (license:x11-style "file://COPYING"))))
1553 (define-public vdpauinfo
1560 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1561 name "-" version ".tar.gz"))
1564 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
1565 (build-system gnu-build-system)
1567 `(("pkg-config" ,pkg-config)
1568 ("libx11" ,libx11)))
1570 `(("libvdpau" ,libvdpau)))
1571 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1572 (synopsis "Tool to query the capabilities of a VDPAU implementation")
1573 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
1575 (license (license:x11-style "file://COPYING"))))
1577 (define-public recordmydesktop
1579 (name "recordmydesktop")
1583 (uri (string-append "mirror://sourceforge/" name "/" name "/"
1584 version "/recordmydesktop-" version ".tar.gz"))
1587 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
1588 (build-system gnu-build-system)
1589 (inputs `(("popt" ,popt)
1594 ("libxfixes" ,libxfixes)
1595 ("libxdamage" ,libxdamage)
1596 ("libxext" ,libxext)
1597 ("alsa-lib" ,alsa-lib)
1598 ("libvorbis" ,libvorbis)
1599 ("libtheora" ,libtheora)))
1600 (home-page "http://recordmydesktop.sourceforge.net/")
1601 (synopsis "Desktop session video recorder")
1603 "recordMyDesktop is a command-line tool that captures the activity in
1604 your graphical desktop and encodes it as a video. This is a useful tool for
1605 making @dfn{screencasts}.")
1606 (license license:gpl2+)))
1608 (define-public libsmpeg
1615 (url "svn://svn.icculus.org/smpeg/trunk/")
1616 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
1619 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
1620 (build-system gnu-build-system)
1622 `(#:phases (modify-phases %standard-phases
1623 (add-after 'unpack 'autogen.sh
1625 (zero? (system* "sh" "autogen.sh")))))))
1627 `(("autoconf" ,autoconf)
1628 ("automake" ,automake)))
1631 (home-page "http://icculus.org/smpeg/")
1632 (synopsis "SDL MPEG decoding library")
1634 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
1635 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
1636 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
1637 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
1638 and MPEG system streams.")
1639 (license (list license:expat
1644 (define-public libbdplus
1651 (uri (string-append "ftp://ftp.videolan.org/pub/videolan/libbdplus/"
1652 version "/" name "-" version ".tar.bz2"))
1654 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
1656 `(("libgcrypt" ,libgcrypt)))
1657 (build-system gnu-build-system)
1658 (home-page "http://www.videolan.org/developers/libbdplus.html")
1659 (synopsis "Library for decrypting certain Blu-Ray discs")
1660 (description "libbdplus is a library which implements the BD+ System
1662 (license license:lgpl2.1+)))
1664 (define-public libaacs
1671 (uri (string-append "ftp://ftp.videolan.org/pub/videolan/libaacs/"
1672 version "/" name "-" version ".tar.bz2"))
1674 (base32 "1s5v075hnbs57995r6lljm79wgrip3gnyf55a0y7bja75jh49hwm"))))
1676 `(("libgcrypt" ,libgcrypt)))
1680 (build-system gnu-build-system)
1681 (home-page "http://www.videolan.org/developers/libaacs.html")
1682 (synopsis "Library for decrypting certain Blu-Ray discs")
1683 (description "libaacs is a library which implements the Advanced Access
1684 Content System specification.")
1685 (license license:lgpl2.1+)))