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 Alex Vong <alexvong1995@gmail.com>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages video)
29 #:use-module (ice-9 match)
30 #:use-module (srfi srfi-1)
31 #:use-module (srfi srfi-26)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix utils)
34 #:use-module (guix packages)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix svn-download)
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system glib-or-gtk)
41 #:use-module (guix build-system python)
42 #:use-module (guix build-system waf)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages avahi)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages cdrom)
50 #:use-module (gnu packages compression)
51 #:use-module (gnu packages curl)
52 #:use-module (gnu packages databases)
53 #:use-module (gnu packages elf)
54 #:use-module (gnu packages fontutils)
55 #:use-module (gnu packages fribidi)
56 #:use-module (gnu packages gettext)
57 #:use-module (gnu packages ghostscript)
58 #:use-module (gnu packages gl)
59 #:use-module (gnu packages glib)
60 #:use-module (gnu packages guile)
61 #:use-module (gnu packages gnupg)
62 #:use-module (gnu packages gtk)
63 #:use-module (gnu packages image)
64 #:use-module (gnu packages linux)
65 #:use-module (gnu packages lua)
66 #:use-module (gnu packages mp3)
67 #:use-module (gnu packages ncurses)
68 #:use-module (gnu packages ocr)
69 #:use-module (gnu packages perl)
70 #:use-module (gnu packages pkg-config)
71 #:use-module (gnu packages popt)
72 #:use-module (gnu packages pulseaudio)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages qt)
75 #:use-module (gnu packages sdl)
76 #:use-module (gnu packages ssh)
77 #:use-module (gnu packages texinfo)
78 #:use-module (gnu packages textutils)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages version-control)
81 #:use-module (gnu packages web)
82 #:use-module (gnu packages xdisorg)
83 #:use-module (gnu packages xiph)
84 #:use-module (gnu packages xml)
85 #:use-module (gnu packages xorg)
86 #:use-module (gnu packages assembly)
87 #:use-module (gnu packages zip))
95 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
96 version "/" name "-" version ".tar.gz"))
99 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
100 (build-system gnu-build-system)
102 `(("makeinfo" ,texinfo)))
104 `(("ncurses" ,ncurses)))
107 (modify-phases %standard-phases
109 (lambda* (#:key build inputs outputs #:allow-other-keys)
110 ;; This old `configure' script doesn't support
111 ;; variables passed as arguments.
112 (let ((out (assoc-ref outputs "out"))
113 (ncurses (assoc-ref inputs "ncurses")))
114 (setenv "CONFIG_SHELL" (which "bash"))
115 (zero? (system* "./configure"
116 (string-append "--prefix=" out)
117 (string-append "--build=" build)
118 (string-append "--with-ncurses="
120 (home-page "http://aa-project.sourceforge.net/aalib/")
121 (synopsis "ASCII-art library")
123 "AA-lib is a low level gfx library which does not require graphics device.
124 In fact, there is no graphical output possible. AA-lib replaces those
125 old-fashioned output methods with powerful ascii-art renderer.")
126 (license license:lgpl2.0+)))
128 (define-public liba52
135 ;; A mirror://sourceforge URI doesn't work, presumably
136 ;; because the SourceForge project is misconfigured.
137 "http://liba52.sourceforge.net/files/a52dec-" version
141 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
142 (patches (search-patches "liba52-enable-pic.patch"
143 "liba52-set-soname.patch"
144 "liba52-use-mtune-not-mcpu.patch"
145 "liba52-link-with-libm.patch"))))
146 (build-system gnu-build-system)
147 ;; XXX We need to run ./bootstrap because of the build system fixes above.
149 `(("autoconf" ,autoconf)
150 ("automake" ,automake)
151 ("libtool" ,libtool)))
152 (arguments `(#:configure-flags '("--enable-shared")
154 (modify-phases %standard-phases
155 ;; XXX We need to run ./bootstrap because of the build
156 ;; system fixes above.
159 (lambda _ (zero? (system* "sh" "bootstrap")))))))
160 (home-page "http://liba52.sourceforge.net/")
161 (synopsis "ATSC A/52 stream decoder")
162 (description "liba52 is a library for decoding ATSC A/52 streams. The
163 A/52 standard is used in a variety of applications, including digital
164 television and DVD. It is also known as AC-3.")
165 (license license:gpl2+)))
167 (define-public libmpeg2
173 ;; A mirror://sourceforge URI doesn't work, presumably
174 ;; because the SourceForge project is misconfigured.
175 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
176 name "-" version ".tar.gz"))
179 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
187 (build-system gnu-build-system)
188 (home-page "http://libmpeg2.sourceforge.net/")
189 (synopsis "MPEG1 and MPEG2 video decoder library")
191 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
192 (license license:gpl2+)))
194 (define-public libx264
197 (version "20160220-2245")
200 (uri (string-append "http://download.videolan.org/pub/x264/snapshots/"
201 "x264-snapshot-" version ".tar.bz2"))
204 "12zyzbiihfhamf7yi4qqaj6k0nisnrydvfr36kxadvmsm7dg4sj3"))))
205 (build-system gnu-build-system)
207 `(("pkg-config" ,pkg-config)
209 ;; TODO: Add gpac input
211 `(#:tests? #f ;no check target
212 #:configure-flags '("--enable-shared"
213 ;; Don't build the command-line program. If we
214 ;; want it later, we should do so in a different
215 ;; package to avoid a circular dependency (the x264
216 ;; program depends on ffmpeg and ffmpeg depends on
219 (home-page "http://www.videolan.org/developers/x264.html")
220 (synopsis "H.264 video coding library")
221 (description "libx264 is an advanced encoding library for creating
222 H.264 (MPEG-4 AVC) video streams.")
223 (license (list license:gpl2+ ;most files
224 license:isc ;common/x86/x86inc.asm
225 license:lgpl2.1+ ;extras/getopt.c
226 license:bsd-3 ;extras/inttypes.h
227 (license:non-copyleft ;extras/cl*.h
229 "See extras/cl.h in the distribution.")))))
231 (define-public libass
238 "https://github.com/libass/libass/releases/download/"
239 version "/libass-" version ".tar.xz"))
242 "1kpsw4zw95v4cjvild9wpk73dzavn1khsm3bm32kcz6amnkd166n"))))
243 (build-system gnu-build-system)
245 `(("pkg-config" ,pkg-config)
248 `(("freetype" ,freetype)
250 ("fontconfig" ,fontconfig)
251 ("harfbuzz" ,harfbuzz)
253 (home-page "https://github.com/libass/libass")
254 (synopsis "Subtitle rendering library for the ASS/SSA format")
255 (description "libass is a subtitle rendering library for the
256 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
257 (license license:isc)))
259 (define-public libcaca
262 (version "0.99.beta19")
265 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
269 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
270 (build-system gnu-build-system)
271 (native-inputs `(("pkg-config" ,pkg-config)))
273 `(("freeglut" ,freeglut)
279 (home-page "http://caca.zoy.org/wiki/libcaca")
280 (synopsis "Colour ASCII-art library")
281 (description "libcaca is a graphics library that outputs text instead of
282 pixels, so that it can work on older video cards or text terminals. It
283 supports Unicode, 2048 colors, dithering of color images, and advanced text
285 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
287 (define-public libdca
294 "http://download.videolan.org/pub/videolan/libdca/"
295 version "/libdca-" version ".tar.bz2"))
298 "0hh6a7l8vvccsd5i1fkv9av2gzv9fy8m0b8jpsn5p6hh4bh2586v"))))
299 (build-system gnu-build-system)
300 (home-page "http://www.videolan.org/developers/libdca.html")
301 (synopsis "DTS Coherent Acoustics decoder")
302 (description "libdca is a library for decoding DTS Coherent Acoustics
304 (license license:gpl2+)))
313 "mirror://sourceforge/" name "/" name "/"
314 version "/" name "-" version ".tar.gz"))
317 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
318 (build-system gnu-build-system)
319 (native-inputs `(("pkg-config" ,pkg-config)))
320 (inputs `(("libxv" ,libxv)))
321 (home-page "http://libdv.sourceforge.net/")
322 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
323 (description "The Quasar DV codec (libdv) is a software codec for DV
324 video, the encoding format used by most digital camcorders, typically those
325 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
326 developed according to the official standards for DV video: IEC 61834 and
328 (license license:lgpl2.1+)))
338 "https://www.freedesktop.org/software/vaapi/releases/libva/libva-"
341 (base32 "0bjfb5s8dk3lql843l91ffxzlq47isqks5sj19cxh7j3nhzw58kz"))))
342 (build-system gnu-build-system)
344 `(("pkg-config" ,pkg-config)))
349 ("libxfixes" ,libxfixes)
353 (modify-phases %standard-phases
355 'build 'fix-dlopen-paths
356 (lambda* (#:key outputs #:allow-other-keys)
357 (let ((out (assoc-ref outputs "out")))
358 (substitute* "va/drm/va_drm_auth_x11.c"
359 (("\"libva-x11\\.so\\.%d\"")
360 (string-append "\"" out "/lib/libva-x11.so.%d\"")))))))
361 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
362 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
364 (list (string-append "--with-drivers-path="
365 (assoc-ref %build-inputs "mesa") "/lib/dri"))
366 ;; However, we can't write to mesa's store directory, so override the
367 ;; following make variable to install the dummy driver to libva's
368 ;; $prefix/lib/dri directory.
370 (list (string-append "dummy_drv_video_ladir="
371 (assoc-ref %outputs "out") "/lib/dri"))))
372 (home-page "http://www.freedesktop.org/wiki/Software/vaapi/")
373 (synopsis "Video acceleration library")
374 (description "The main motivation for VA-API (Video Acceleration API) is
375 to enable hardware accelerated video decode/encode at various
376 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
377 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
378 (license license:expat)))
380 (define-public ffmpeg
386 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
390 "1nris3flwqd4v4b65yrrv9aqhsab7cb9lfp4wpxz6bi0m3r13g3i"))))
391 (build-system gnu-build-system)
393 `(("fontconfig" ,fontconfig)
394 ("freetype" ,freetype)
400 ("libbluray" ,libbluray)
402 ("libcdio-paranoia" ,libcdio-paranoia)
403 ("libtheora" ,libtheora)
404 ("libvdpau" ,libvdpau)
405 ("libvorbis" ,libvorbis)
411 ("pulseaudio" ,pulseaudio)
420 ("pkg-config" ,pkg-config)
422 ("python" ,python-2) ; scripts use interpreter python2
426 `(#:test-target "fate"
428 ;; possible additional inputs:
429 ;; --enable-avisynth enable reading of AviSynth script
431 ;; --enable-frei0r enable frei0r video filtering
432 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
433 ;; --enable-libcelt enable CELT decoding via libcelt [no]
434 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
435 ;; and libraw1394 [no]
436 ;; --enable-libfaac enable AAC encoding via libfaac [no]
437 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
438 ;; --enable-libflite enable flite (voice synthesis) support via
440 ;; --enable-libgme enable Game Music Emu via libgme [no]
441 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
442 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
443 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
444 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
445 ;; --enable-libnut enable NUT (de)muxing via libnut,
446 ;; native (de)muxer exists [no]
447 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
448 ;; libopencore-amrnb [no]
449 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
450 ;; libopencore-amrwb [no]
451 ;; --enable-libopencv enable video filtering via libopencv [no]
452 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
454 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
455 ;; --enable-libschroedinger enable Dirac de/encoding via
456 ;; libschroedinger [no]
457 ;; --enable-libshine enable fixed-point MP3 encoding via
459 ;; --enable-libssh enable SFTP protocol via libssh [no]
460 ;; (libssh2 does not work)
461 ;; --enable-libstagefright-h264 enable H.264 decoding via
462 ;; libstagefright [no]
463 ;; --enable-libutvideo enable Ut Video encoding and decoding via
465 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
466 ;; --enable-libvidstab enable video stabilization using
468 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
469 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
470 ;; libvo-amrwbenc [no]
471 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
472 ;; --enable-libxavs enable AVS encoding via xavs [no]
473 ;; --enable-libzmq enable message passing via libzmq [no]
474 ;; --enable-libzvbi enable teletext support via libzvbi [no]
475 ;; --enable-opencl enable OpenCL code
476 '("--enable-avresample"
477 "--enable-gpl" ; enable optional gpl licensed parts
479 "--enable-fontconfig"
486 "--enable-libfreetype"
487 "--enable-libmp3lame"
493 "--enable-libtwolame"
502 "--enable-runtime-cpudetect"
504 ;; Runtime cpu detection is not implemented on
505 ;; MIPS, so we disable some features.
508 "--disable-mipsdspr2"
511 (modify-phases %standard-phases
514 ;; configure does not work followed by "SHELL=..." and
515 ;; "CONFIG_SHELL=..."; set environment variables instead
516 (lambda* (#:key outputs configure-flags #:allow-other-keys)
517 (let ((out (assoc-ref outputs "out")))
518 (substitute* "configure"
519 (("#! /bin/sh") (string-append "#!" (which "bash"))))
520 (setenv "SHELL" (which "bash"))
521 (setenv "CONFIG_SHELL" (which "bash"))
522 (zero? (apply system*
524 (string-append "--prefix=" out)
525 ;; Add $libdir to the RUNPATH of all the binaries.
526 (string-append "--extra-ldflags=-Wl,-rpath="
530 'check 'set-ld-library-path
532 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
534 (let* ((dso (find-files "." "\\.so$"))
535 (path (string-join (map dirname dso) ":")))
536 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
537 (setenv "LD_LIBRARY_PATH" path)
539 (home-page "https://www.ffmpeg.org/")
540 (synopsis "Audio and video framework")
541 (description "FFmpeg is a complete, cross-platform solution to record,
542 convert and stream audio and video. It includes the libavcodec
543 audio/video codec library.")
544 (license license:gpl2+)))
546 (define-public ffmpeg-2.8
552 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
556 "0z0mcj2q3ysp9qdn1ks03g5sn2zxyr06vxs4al0m4b5b3in8mglp"))))
558 (substitute-keyword-arguments (package-arguments ffmpeg)
559 ((#:configure-flags flags)
561 (if (string=? flag "--disable-mipsdsp")
562 "--disable-mipsdspr1"
573 "https://download.videolan.org/pub/videolan/vlc/"
574 version "/vlc-" version ".tar.xz"))
577 "1gjkrwlg8ab3skzl67cxb9qzg4187ifckd1z9kpy11q058fyjchn"))
578 (modules '((guix build utils)))
580 ;; There are two occurrences where __DATE__ and __TIME__ are
581 ;; used to capture the build time and show it to the user.
582 '(substitute* (find-files "." "help\\.c(pp)?$")
583 (("__DATE__") "\"2016\"")
584 (("__TIME__") "\"00:00\"")))))
585 (build-system gnu-build-system)
587 `(("git" ,git) ; needed for a test
588 ("pkg-config" ,pkg-config)))
589 ;; FIXME: Add optional inputs once available.
591 `(("alsa-lib" ,alsa-lib)
595 ("ffmpeg" ,ffmpeg-2.8) ;fails to build against ffmpeg 3.0
596 ("fontconfig" ,fontconfig)
597 ("freetype" ,freetype)
600 ("libgcrypt" ,libgcrypt)
605 ("libsamplerate" ,libsamplerate)
607 ("libvorbis" ,libvorbis)
608 ("libtheora" ,libtheora)
610 ("libxinerama" ,libxinerama)
617 ("pulseaudio" ,pulseaudio)
618 ("python" ,python-wrapper)
620 ;("qtx11extras" ,qtx11extras)
622 ("sdl-image" ,sdl-image)
624 ("xcb-util-keysyms" ,xcb-util-keysyms)))
627 `("--disable-a52" ; FIXME: reenable once available
628 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
629 (assoc-ref %build-inputs "ffmpeg")
630 "/lib")) ;needed for the tests
633 (modify-phases %standard-phases
634 (add-before 'configure 'remove-visual-tests
635 ;; Some of the tests require using the display to test out VLC,
636 ;; which fails in our sandboxed build system
638 (substitute* "test/run_vlc.sh"
639 (("./vlc --ignore-config") "echo"))
641 (add-after 'install 'regenerate-plugin-cache
642 (lambda* (#:key outputs #:allow-other-keys)
643 ;; The 'install-exec-hook' rule in the top-level Makefile.am
644 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
645 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
646 ;; it references. Thus, we first reset the timestamps of all
647 ;; these files, and then regenerate the cache such that the
648 ;; mtimes it includes are always zero instead of being dependent
649 ;; on the build time.
650 (let* ((out (assoc-ref outputs "out"))
651 (pkglibdir (string-append out "/lib/vlc"))
652 (plugindir (string-append pkglibdir "/plugins"))
653 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
654 ;; TODO: Factorize 'reset-timestamps'.
655 (for-each (lambda (file)
656 (let ((s (lstat file)))
657 (unless (eq? (stat:type s) 'symlink)
658 (utime file 0 0 0 0))))
659 (find-files plugindir))
660 (zero? (system* cachegen plugindir))))))))
661 (home-page "https://www.videolan.org/")
662 (synopsis "Audio and video framework")
663 (description "VLC is a cross-platform multimedia player and framework
664 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
665 treaming protocols.")
666 (license license:gpl2+)))
668 (define-public mplayer
675 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
679 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
680 (build-system gnu-build-system)
681 ;; FIXME: Add additional inputs once available.
683 `(("pkg-config" ,pkg-config)))
685 `(("alsa-lib" ,alsa-lib)
686 ("cdparanoia" ,cdparanoia)
688 ("fontconfig" ,fontconfig)
689 ("freetype" ,freetype)
690 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
693 ("libdvdcss" ,libdvdcss)
694 ("libdvdnav" ,libdvdnav)
696 ("libmpeg2" ,libmpeg2)
697 ("libmpg123" ,mpg123) ; audio codec for MP3
699 ("libtheora" ,libtheora)
700 ("libvdpau" ,libvdpau)
701 ("libvorbis" ,libvorbis)
704 ("libxinerama" ,libxinerama)
706 ("libxxf86dga" ,libxxf86dga)
710 ("pulseaudio" ,pulseaudio)
711 ("python" ,python-wrapper)
717 `(#:tests? #f ; no test target
719 (modify-phases %standard-phases
721 ;; configure does not work followed by "SHELL=..." and
722 ;; "CONFIG_SHELL=..."; set environment variables instead
723 (lambda* (#:key inputs outputs #:allow-other-keys)
724 (let ((out (assoc-ref outputs "out"))
725 (libx11 (assoc-ref inputs "libx11")))
726 (substitute* "configure"
727 (("#! /bin/sh") (string-append "#!" (which "bash"))))
728 (setenv "SHELL" (which "bash"))
729 (setenv "CONFIG_SHELL" (which "bash"))
732 (string-append "--extra-cflags=-I"
733 libx11 "/include") ; to detect libx11
734 "--disable-ffmpeg_a" ; disables bundled ffmpeg
735 (string-append "--prefix=" out)
736 ;; Enable runtime cpu detection where supported,
737 ;; and choose a suitable target.
738 ,@(match (or (%current-target-system)
741 '("--enable-runtime-cpudetection"
742 "--target=x86_64-linux"))
744 '("--enable-runtime-cpudetection"
745 "--target=i686-linux"))
747 '("--target=mips3-linux"))
748 (_ (list (string-append
750 (or (%current-target-system)
751 (nix-system->gnu-triplet
752 (%current-system)))))))
753 "--disable-iwmmxt"))))))))
754 (home-page "https://www.mplayerhq.hu/design7/news.html")
755 (synopsis "Audio and video player")
756 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
757 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
758 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
759 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
760 (license license:gpl2)))
769 "https://github.com/mpv-player/mpv/archive/v" version
773 "0az0zqb2rakak51zsvfqzj9a8jiqpvc61jxap8hjdkkb9y6n6mmn"))
774 (file-name (string-append name "-" version ".tar.gz"))))
775 (build-system waf-build-system)
778 ("pkg-config" ,pkg-config)
779 ("python-docutils" ,python-docutils)))
780 ;; Missing features: libguess, Wayland, V4L2
782 `(("alsa-lib" ,alsa-lib)
789 ("libbluray" ,libbluray)
792 ("libcdio-paranoia" ,libcdio-paranoia)
793 ("libdvdread" ,libdvdread)
794 ("libdvdnav" ,libdvdnav)
797 ("libvdpau" ,libvdpau)
800 ("libxinerama" ,libxinerama)
801 ("libxrandr" ,libxrandr)
802 ("libxscrnsaver" ,libxscrnsaver)
807 ("pulseaudio" ,pulseaudio)
809 ("vapoursynth" ,vapoursynth)
811 ("youtube-dl" ,youtube-dl)
815 (modify-phases %standard-phases
817 'configure 'setup-waf
818 (lambda* (#:key inputs #:allow-other-keys)
819 (copy-file (assoc-ref inputs "waf") "waf")
820 (setenv "CC" "gcc"))))
821 #:configure-flags (list "--enable-libmpv-shared" "--enable-zsh-comp")
822 ;; No check function defined.
824 (home-page "https://mpv.io/")
825 (synopsis "Audio and video player")
826 (description "mpv is a general-purpose audio and video player. It is a
827 fork of mplayer2 and MPlayer. It shares some features with the former
828 projects while introducing many more.")
829 (license license:gpl2+)))
831 (define-public gnome-mpv
838 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
839 "/download/v" version "/gnome-mpv-" version
843 "06pgxl6f3kkgxv8nlmyl7gy3pg55sqf8vgr8m6426mlpm4p3qdn0"))))
845 `(("intltool" ,intltool)
846 ("pkg-config" ,pkg-config)))
849 ("libepoxy" ,libepoxy)
851 (build-system glib-or-gtk-build-system)
852 (home-page "https://github.com/gnome-mpv/gnome-mpv")
853 (synopsis "GTK+ frontend for the mpv media player")
854 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
855 GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
856 access to mpv's powerful playback capabilities.")
857 (license license:gpl3+)))
859 (define-public libvpx
865 (uri (string-append "http://storage.googleapis.com/"
866 "downloads.webmproject.org/releases/webm/"
867 name "-" version ".tar.bz2"))
870 "15v7qw0ydyxn08ksb6lxn1l51pxgpwgshdwd3275yrr5hs86fv9h"))
871 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
872 (build-system gnu-build-system)
875 (modify-phases %standard-phases
877 (lambda* (#:key outputs #:allow-other-keys)
878 (setenv "CONFIG_SHELL" (which "bash"))
879 (let ((out (assoc-ref outputs "out")))
881 (string-append "-Wl,-rpath=" out "/lib"))
882 (zero? (system* "./configure"
885 ;; Limit size to avoid CVE-2015-1258
886 "--size-limit=16384x16384"
887 (string-append "--prefix=" out)))))))
888 #:tests? #f)) ; no check target
892 (synopsis "VP8/VP9 video codec")
893 (description "libvpx is a codec for the VP8/VP9 video compression format.")
894 (license license:bsd-3)
895 (home-page "http://www.webmproject.org/")))
897 (define-public youtube-dl
900 (version "2016.07.22")
903 (uri (string-append "https://youtube-dl.org/downloads/"
904 version "/youtube-dl-"
908 "02wcxpcbpvsbvyxcnhhf94ma0x5dcg4fygnxxca2h31dp47dkak9"))))
909 (build-system python-build-system)
910 (home-page "https://youtube-dl.org")
912 ;; The problem here is that the directory for the man page and completion
913 ;; files is relative, and for some reason, setup.py uses the
914 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
915 ;; So, we need pass the prefix directly. In addition, make sure the Bash
916 ;; completion file is called 'youtube-dl' rather than
917 ;; 'youtube-dl.bash-completion'.
918 `(#:phases (modify-phases %standard-phases
919 (add-before 'install 'fix-the-data-directories
920 (lambda* (#:key outputs #:allow-other-keys)
921 (let ((prefix (assoc-ref outputs "out")))
922 (mkdir "bash-completion")
923 (rename-file "youtube-dl.bash-completion"
924 "bash-completion/youtube-dl")
925 (substitute* "setup.py"
926 (("youtube-dl\\.bash-completion")
927 "bash-completion/youtube-dl")
929 (string-append "'" prefix "/etc/"))
931 (string-append "'" prefix "/share/")))))))))
932 (synopsis "Download videos from YouTube.com and other sites")
934 "Youtube-dl is a small command-line program to download videos from
935 YouTube.com and a few more sites.")
936 (license license:public-domain)))
938 (define-public libbluray
944 (uri (string-append "https://download.videolan.org/videolan/"
946 name "-" version ".tar.bz2"))
949 "1q1whviqv5sr9nr372h31zwid1rvbfbx3z4lzr8lnj25xha6cdm6"))))
950 (build-system gnu-build-system)
951 (arguments `(#:configure-flags '("--disable-bdjava")))
952 (native-inputs `(("pkg-config" ,pkg-config)))
954 `(("fontconfig" ,fontconfig)
955 ("freetype" ,freetype)
956 ("libxml2" ,libxml2)))
957 (home-page "https://www.videolan.org/developers/libbluray.html")
958 (synopsis "Blu-Ray Disc playback library")
960 "libbluray is a library designed for Blu-Ray Disc playback for media
961 players, like VLC or MPlayer.")
962 (license license:lgpl2.1+)))
964 (define-public libdvdread
970 (uri (string-append "http://download.videolan.org/videolan/"
972 name "-" version ".tar.bz2"))
975 "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j"))))
976 (build-system gnu-build-system)
977 (home-page "http://dvdnav.mplayerhq.hu/")
978 (synopsis "Library for reading video DVDs")
980 "Libdvdread provides a simple foundation for reading DVD video
981 disks. It provides the functionality that is required to access many
982 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
983 authentication and descrambling (if an external libdvdcss library is
985 (license license:gpl2+)))
987 (define-public libdvdnav
993 (uri (string-append "http://download.videolan.org/videolan/"
995 name "-" version ".tar.bz2"))
998 "0v8byv5z598k06rqzdmj7739vc86xq3zf79zfr698dib7lz055sh"))))
999 (build-system gnu-build-system)
1001 `(("pkg-config" ,pkg-config)))
1003 `(("libdvdread" ,libdvdread)))
1004 (home-page "http://dvdnav.mplayerhq.hu/")
1005 (synopsis "Library for video DVD navigation features")
1007 "Libdvdnav is a library for developers of multimedia
1008 applications. It allows easy use of sophisticated DVD navigation features
1009 such as DVD menus, multiangle playback and even interactive DVD games. All
1010 this functionality is provided through a simple API which provides the DVD
1011 playback as a single logical stream of blocks, intermitted by special
1012 dvdnav events to report certain conditions. The main usage of libdvdnav is
1013 a loop regularly calling a function to get the next block, surrounded by
1014 additional calls to tell the library of user interaction. The whole
1015 DVD virtual machine and internal playback states are completely
1017 (license license:gpl2+)))
1019 (define-public libdvdnav-4
1027 "http://download.videolan.org/videolan/libdvdnav/libdvdnav-"
1031 "0wi3gy408c8xj0ism0hckv5jbfh3lg4pmgxv87gbch9jrhp2gjkz"))))
1033 `(("pkg-config" ,pkg-config)
1034 ("autoconf" ,autoconf)
1035 ("automake" ,automake)
1036 ("libtool" ,libtool)))
1042 (zero? (system* "autoreconf" "-vif")))
1043 %standard-phases)))))
1045 (define-public libdvdcss
1051 (uri (string-append "http://download.videolan.org/pub/"
1052 name "/" version "/"
1053 name "-" version ".tar.bz2"))
1056 "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290"))))
1057 (build-system gnu-build-system)
1058 (home-page "http://www.videolan.org/developers/libdvdcss.html")
1059 (synopsis "Library for accessing DVDs as block devices")
1061 "libdvdcss is a simple library designed for accessing DVDs like a block
1062 device without having to bother about the decryption.")
1063 (license license:gpl2+)))
1065 (define-public srt2vtt
1072 "http://dthompson.us/releases/srt2vtt/srt2vtt-"
1076 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1077 (build-system gnu-build-system)
1079 `(("guile" ,guile-2.0)))
1080 (synopsis "SubRip to WebVTT subtitle converter")
1081 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1082 for use with HTML5 video.")
1083 (home-page "http://dthompson.us/pages/software/srt2vtt")
1084 (license license:gpl3+)))
1086 (define-public avidemux
1093 "mirror://sourceforge/" name "/" name "/" version "/"
1094 name "_" version ".tar.gz"))
1097 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
1098 (patches (search-patches "avidemux-install-to-lib.patch"))))
1099 (build-system cmake-build-system)
1101 `(("pkg-config" ,pkg-config)))
1102 ;; FIXME: Once packaged, add libraries not found during the build.
1104 `(("alsa-lib" ,alsa-lib)
1105 ("fontconfig" ,fontconfig)
1106 ("freetype" ,freetype)
1107 ("fribidi" ,fribidi)
1112 ("libvdpau" ,libvdpau)
1113 ("libvorbis" ,libvorbis)
1117 ("pulseaudio" ,pulseaudio)
1118 ("python" ,python-wrapper)
1120 ("qttools" ,qttools)
1126 `(#:tests? #f ; no check target
1128 ;; Make sure files inside the included ffmpeg tarball are
1130 (modify-phases %standard-phases
1131 (add-before 'patch-source-shebangs 'unpack-ffmpeg
1133 (with-directory-excursion "avidemux_core/ffmpeg_package"
1134 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1135 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1136 (add-after 'patch-source-shebangs 'repack-ffmpeg
1138 (with-directory-excursion "avidemux_core/ffmpeg_package"
1139 (substitute* "ffmpeg-2.7.6/configure"
1140 (("#! /bin/sh") (string-append "#!" (which "bash"))))
1141 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
1142 ;; avoid non-determinism in the archive
1143 "--sort=name" "--mtime=@0"
1144 "--owner=root:0" "--group=root:0")
1145 (delete-file-recursively "ffmpeg-2.7.6"))))
1148 ;; Copy-paste settings from the cmake build system.
1149 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1150 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1152 (lambda* (#:key inputs outputs #:allow-other-keys)
1154 ((out (assoc-ref outputs "out"))
1155 (lib (string-append out "/lib"))
1157 (sdl (assoc-ref inputs "sdl"))
1159 (lambda* (component srcdir #:optional (args '()))
1160 (let ((builddir (string-append "build_" component)))
1162 (with-directory-excursion builddir
1165 (apply system* "cmake"
1166 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1167 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1168 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1169 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1170 "\"-Wl,-rpath=" lib "\"")
1171 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1172 (string-append "-DSDL_INCLUDE_DIR="
1174 (string-append "../" srcdir)
1177 (system* "make" "-j"
1178 (number->string (parallel-job-count)))
1179 (system* "make" "install"))))))))
1181 (and (build_component "core" "avidemux_core")
1182 (build_component "cli" "avidemux/cli")
1183 (build_component "qt4" "avidemux/qt4")
1184 (build_component "plugins_common" "avidemux_plugins"
1185 '("-DPLUGIN_UI=COMMON"))
1186 (build_component "plugins_cli" "avidemux_plugins"
1187 '("-DPLUGIN_UI=CLI"))
1188 (build_component "plugins_qt4" "avidemux_plugins"
1189 '("-DPLUGIN_UI=QT4"))
1190 (build_component "plugins_settings" "avidemux_plugins"
1191 '("-DPLUGIN_UI=SETTINGS")))
1192 ;; Remove .exe and .dll file.
1193 (delete-file-recursively
1194 (string-append out "/share/ADM6_addons")))))
1195 (delete 'install))))
1196 (home-page "http://fixounet.free.fr/avidemux/")
1197 (synopsis "Video editor")
1198 (description "Avidemux is a video editor designed for simple cutting,
1199 filtering and encoding tasks. It supports many file types, including AVI,
1200 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1201 can be automated using projects, job queue and powerful scripting
1203 ;; Software with various licenses is included, see License.txt.
1204 (license license:gpl2+)))
1206 (define-public vapoursynth
1208 (name "vapoursynth")
1213 "https://github.com/vapoursynth/vapoursynth/archive/R"
1215 (file-name (string-append name "-" version))
1218 "1j08whj946v2kkpgxsfhpca8xf0ax9iqzn73wvwjx319p9j0ymp9"))))
1219 (build-system gnu-build-system)
1221 `(("autoconf" ,autoconf)
1222 ("automake" ,automake)
1223 ("cython" ,python-cython)
1224 ("libtool" ,libtool)
1225 ("pkg-config" ,pkg-config)
1229 `(("ffmpeg" ,ffmpeg)
1231 ("tesseract-ocr" ,tesseract-ocr)
1235 (modify-phases %standard-phases
1239 (zero? (system* "sh" "autogen.sh")))))))
1240 (home-page "http://www.vapoursynth.com/")
1241 (synopsis "Video processing framework")
1242 (description "VapourSynth is a C++ library and Python module for video
1243 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1244 multithreading, generalized colorspaces, per frame properties, and videos with
1246 ;; As seen from the source files.
1247 (license license:lgpl2.1+)))
1256 "http://downloads.xvid.org/downloads/xvidcore-"
1257 version ".tar.bz2"))
1260 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
1261 (build-system gnu-build-system)
1262 (native-inputs `(("yasm" ,yasm)))
1265 (modify-phases %standard-phases
1267 'configure 'pre-configure
1269 (chdir "build/generic")
1270 (substitute* "configure"
1271 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
1272 ;; No 'check' target.
1274 (home-page "https://www.xvid.com/")
1275 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1276 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1277 codec library. It uses ASP features such as b-frames, global and quarter
1278 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1279 and custom quantization matrices.")
1280 (license license:gpl2+)))
1282 (define-public livestreamer
1284 (name "livestreamer")
1289 "https://github.com/chrippa/livestreamer/archive/v"
1291 (file-name (string-append "livestreamer-" version ".tar.gz"))
1294 "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"))))
1295 (build-system python-build-system)
1297 '(#:tests? #f)) ; tests rely on external web servers
1299 `(("python-requests" ,python-requests)))
1300 (synopsis "Internet video stream viewer")
1301 (description "Livestreamer is a command-line utility that extracts streams
1302 from various services and pipes them into a video playing application.")
1303 (home-page "http://livestreamer.io/")
1304 (license license:bsd-2)))
1312 (uri (string-append "https://github.com/mltframework/mlt/"
1313 "archive/v" version ".tar.gz"))
1314 (file-name (string-append name "-" version ".tar.gz"))
1317 "1zwzfgxrcbwkxnkiwv0a1rzxdnnaly90yyarl9wdw84nx11ffbnx"))))
1318 (build-system gnu-build-system)
1320 `(#:tests? #f ; no tests
1321 #:make-flags '("CC=gcc")
1323 (list "--enable-gpl3"
1326 (modify-phases %standard-phases
1328 'configure 'override-LDFLAGS
1329 (lambda* (#:key outputs #:allow-other-keys)
1330 (substitute* "config.mak"
1332 (string-append "LDFLAGS+=-Wl,-rpath="
1333 (assoc-ref outputs "out")
1337 `(("alsa-lib" ,alsa-lib)
1339 ("libxml2" ,libxml2)
1342 ("libsamplerate" ,libsamplerate)
1343 ("pulseaudio" ,pulseaudio)
1347 `(("pkg-config" ,pkg-config)))
1348 (home-page "https://www.mltframework.org/")
1349 (synopsis "Author, manage, and run multitrack audio/video compositions")
1351 "MLT is a multimedia framework, designed and developed for television
1352 broadcasting. It provides a toolkit for broadcasters, video editors, media
1353 players, transcoders, web streamers and many more types of applications. The
1354 functionality of the system is provided via an assortment of ready to use
1355 tools, XML authoring components, and an extensible plug-in based API.")
1356 (license license:lgpl2.1+)))
1358 (define-public v4l-utils
1364 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
1365 "/v4l-utils-" version ".tar.bz2"))
1368 "1h1nhg5cmmzlbipak526nk4bm6d0yb217mll75f3rpg7kz1cqiv1"))))
1369 (build-system gnu-build-system)
1372 (list (string-append "--with-udevdir="
1373 (assoc-ref %outputs "out")
1376 `(("pkg-config" ,pkg-config)))
1378 `(("alsa-lib" ,alsa-lib)
1380 ("libjpeg" ,libjpeg)
1384 (synopsis "Realtime video capture utilities for Linux")
1385 (description "The v4l-utils provide a series of libraries and utilities to
1386 be used for realtime video capture via Linux-specific APIs.")
1387 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
1388 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
1389 (license (list license:lgpl2.1+ license:gpl2))))
1397 (uri (string-append "https://github.com/jp9000/obs-studio"
1398 "/archive/" version ".tar.gz"))
1399 (file-name (string-append name "-" version ".tar.gz"))
1402 "18fycg7xlj2i89wdb9c5js0bnl964s1lpmnvmfyj11zi9k061wsg"))))
1403 (build-system cmake-build-system)
1405 `(#:tests? #f ; no tests
1406 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1410 (modify-phases %standard-phases
1411 (add-after 'unpack 'remove-architecture-specific-instructions
1412 ;; non-Intel platforms fail to build with the architecture
1413 ;; specific compiler flags included by default.
1415 (substitute* "libobs/CMakeLists.txt"
1416 (("if\\(NOT MSVC\\)") "if(MSVC)"))
1420 `(("pkg-config" ,pkg-config)))
1425 ("freetype" ,freetype)
1427 ("jansson" ,jansson)
1428 ("libx264" ,libx264)
1429 ("libxcomposite" ,libxcomposite)
1431 ("pulseaudio" ,pulseaudio)
1433 ("qtx11extras" ,qtx11extras)
1434 ("v4l-utils" ,v4l-utils)
1436 (synopsis "Live streaming software")
1437 (description "Open Broadcaster Software provides a graphical interface for
1438 video recording and live streaming. OBS supports capturing audio and video
1439 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
1441 (home-page "https://obsproject.com")
1442 (license license:gpl2+)))
1444 (define-public libvdpau
1451 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1452 name "-" version ".tar.bz2"))
1455 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
1456 (build-system gnu-build-system)
1458 `(("pkg-config" ,pkg-config)))
1460 `(("dri2proto" ,dri2proto)
1461 ("libx11" ,libx11 "out")
1462 ("libxext" ,libxext)))
1463 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1464 (synopsis "Video Decode and Presentation API")
1465 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
1466 provides an interface to video decode acceleration and presentation hardware
1467 present in modern GPUs.")
1468 (license (license:x11-style "file://COPYING"))))
1470 (define-public vdpauinfo
1477 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1478 name "-" version ".tar.gz"))
1481 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
1482 (build-system gnu-build-system)
1484 `(("pkg-config" ,pkg-config)
1485 ("libx11" ,libx11)))
1487 `(("libvdpau" ,libvdpau)))
1488 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1489 (synopsis "Tool to query the capabilities of a VDPAU implementation")
1490 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
1492 (license (license:x11-style "file://COPYING"))))
1494 (define-public recordmydesktop
1496 (name "recordmydesktop")
1500 (uri (string-append "mirror://sourceforge/" name "/" name "/"
1501 version "/recordmydesktop-" version ".tar.gz"))
1504 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
1505 (build-system gnu-build-system)
1506 (inputs `(("popt" ,popt)
1511 ("libxfixes" ,libxfixes)
1512 ("libxdamage" ,libxdamage)
1513 ("libxext" ,libxext)
1514 ("libvorbis" ,libvorbis)
1515 ("libtheora" ,libtheora)))
1516 (home-page "http://recordmydesktop.sourceforge.net/")
1517 (synopsis "Desktop session video recorder")
1519 "recordMyDesktop is a command-line tool that captures the activity in
1520 your graphical desktop and encodes it as a video. This is a useful tool for
1521 making @dfn{screencasts}.")
1522 (license license:gpl2+)))
1524 (define-public libsmpeg
1531 (url "svn://svn.icculus.org/smpeg/trunk/")
1532 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
1535 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
1536 (build-system gnu-build-system)
1538 `(#:phases (modify-phases %standard-phases
1539 (add-after 'unpack 'autogen.sh
1541 (zero? (system* "sh" "autogen.sh")))))))
1543 `(("autoconf" ,autoconf)
1544 ("automake" ,automake)))
1547 (home-page "http://icculus.org/smpeg/")
1548 (synopsis "SDL MPEG decoding library")
1550 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
1551 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
1552 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
1553 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
1554 and MPEG system streams.")
1555 (license (list license:expat