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 "0py9igf4kicj7ji22bjawkpd6my013qpg0s4ir2np9l1rk5vr2d6"))))
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 "https://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
629 ;; Gross workaround for <https://trac.videolan.org/vlc/ticket/16907>.
630 ;; In our case, this led to a test failure:
631 ;; test_libvlc_equalizer: libvlc/equalizer.c:122: test_equalizer: Assertion `isnan(libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands))' failed.
632 "ac_cv_c_fast_math=no"
634 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
635 (assoc-ref %build-inputs "ffmpeg")
636 "/lib")) ;needed for the tests
639 (modify-phases %standard-phases
640 (add-before 'configure 'remove-visual-tests
641 ;; Some of the tests require using the display to test out VLC,
642 ;; which fails in our sandboxed build system
644 (substitute* "test/run_vlc.sh"
645 (("./vlc --ignore-config") "echo"))
647 (add-after 'install 'regenerate-plugin-cache
648 (lambda* (#:key outputs #:allow-other-keys)
649 ;; The 'install-exec-hook' rule in the top-level Makefile.am
650 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
651 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
652 ;; it references. Thus, we first reset the timestamps of all
653 ;; these files, and then regenerate the cache such that the
654 ;; mtimes it includes are always zero instead of being dependent
655 ;; on the build time.
656 (let* ((out (assoc-ref outputs "out"))
657 (pkglibdir (string-append out "/lib/vlc"))
658 (plugindir (string-append pkglibdir "/plugins"))
659 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
660 ;; TODO: Factorize 'reset-timestamps'.
661 (for-each (lambda (file)
662 (let ((s (lstat file)))
663 (unless (eq? (stat:type s) 'symlink)
664 (utime file 0 0 0 0))))
665 (find-files plugindir))
666 (zero? (system* cachegen plugindir))))))))
667 (home-page "https://www.videolan.org/")
668 (synopsis "Audio and video framework")
669 (description "VLC is a cross-platform multimedia player and framework
670 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
671 treaming protocols.")
672 (license license:gpl2+)))
674 (define-public mplayer
681 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
685 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
686 (build-system gnu-build-system)
687 ;; FIXME: Add additional inputs once available.
689 `(("pkg-config" ,pkg-config)))
691 `(("alsa-lib" ,alsa-lib)
692 ("cdparanoia" ,cdparanoia)
694 ("fontconfig" ,fontconfig)
695 ("freetype" ,freetype)
696 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
699 ("libdvdcss" ,libdvdcss)
700 ("libdvdnav" ,libdvdnav)
702 ("libmpeg2" ,libmpeg2)
703 ("libmpg123" ,mpg123) ; audio codec for MP3
705 ("libtheora" ,libtheora)
706 ("libvdpau" ,libvdpau)
707 ("libvorbis" ,libvorbis)
710 ("libxinerama" ,libxinerama)
712 ("libxxf86dga" ,libxxf86dga)
716 ("pulseaudio" ,pulseaudio)
717 ("python" ,python-wrapper)
723 `(#:tests? #f ; no test target
725 (modify-phases %standard-phases
727 ;; configure does not work followed by "SHELL=..." and
728 ;; "CONFIG_SHELL=..."; set environment variables instead
729 (lambda* (#:key inputs outputs #:allow-other-keys)
730 (let ((out (assoc-ref outputs "out"))
731 (libx11 (assoc-ref inputs "libx11")))
732 (substitute* "configure"
733 (("#! /bin/sh") (string-append "#!" (which "bash"))))
734 (setenv "SHELL" (which "bash"))
735 (setenv "CONFIG_SHELL" (which "bash"))
738 (string-append "--extra-cflags=-I"
739 libx11 "/include") ; to detect libx11
740 "--disable-ffmpeg_a" ; disables bundled ffmpeg
741 (string-append "--prefix=" out)
742 ;; Enable runtime cpu detection where supported,
743 ;; and choose a suitable target.
744 ,@(match (or (%current-target-system)
747 '("--enable-runtime-cpudetection"
748 "--target=x86_64-linux"))
750 '("--enable-runtime-cpudetection"
751 "--target=i686-linux"))
753 '("--target=mips3-linux"))
754 (_ (list (string-append
756 (or (%current-target-system)
757 (nix-system->gnu-triplet
758 (%current-system)))))))
759 "--disable-iwmmxt"))))))))
760 (home-page "https://www.mplayerhq.hu/design7/news.html")
761 (synopsis "Audio and video player")
762 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
763 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
764 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
765 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
766 (license license:gpl2)))
775 "https://github.com/mpv-player/mpv/archive/v" version
779 "0az0zqb2rakak51zsvfqzj9a8jiqpvc61jxap8hjdkkb9y6n6mmn"))
780 (file-name (string-append name "-" version ".tar.gz"))))
781 (build-system waf-build-system)
784 ("pkg-config" ,pkg-config)
785 ("python-docutils" ,python-docutils)))
786 ;; Missing features: libguess, Wayland, V4L2
788 `(("alsa-lib" ,alsa-lib)
795 ("libbluray" ,libbluray)
798 ("libcdio-paranoia" ,libcdio-paranoia)
799 ("libdvdread" ,libdvdread)
800 ("libdvdnav" ,libdvdnav)
803 ("libvdpau" ,libvdpau)
806 ("libxinerama" ,libxinerama)
807 ("libxrandr" ,libxrandr)
808 ("libxscrnsaver" ,libxscrnsaver)
813 ("pulseaudio" ,pulseaudio)
815 ("vapoursynth" ,vapoursynth)
817 ("youtube-dl" ,youtube-dl)
821 (modify-phases %standard-phases
823 'configure 'setup-waf
824 (lambda* (#:key inputs #:allow-other-keys)
825 (copy-file (assoc-ref inputs "waf") "waf")
826 (setenv "CC" "gcc"))))
827 #:configure-flags (list "--enable-libmpv-shared" "--enable-zsh-comp")
828 ;; No check function defined.
830 (home-page "https://mpv.io/")
831 (synopsis "Audio and video player")
832 (description "mpv is a general-purpose audio and video player. It is a
833 fork of mplayer2 and MPlayer. It shares some features with the former
834 projects while introducing many more.")
835 (license license:gpl2+)))
837 (define-public gnome-mpv
844 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
845 "/download/v" version "/gnome-mpv-" version
849 "06pgxl6f3kkgxv8nlmyl7gy3pg55sqf8vgr8m6426mlpm4p3qdn0"))))
851 `(("intltool" ,intltool)
852 ("pkg-config" ,pkg-config)))
855 ("libepoxy" ,libepoxy)
857 (build-system glib-or-gtk-build-system)
858 (home-page "https://github.com/gnome-mpv/gnome-mpv")
859 (synopsis "GTK+ frontend for the mpv media player")
860 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
861 GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
862 access to mpv's powerful playback capabilities.")
863 (license license:gpl3+)))
865 (define-public libvpx
871 (uri (string-append "http://storage.googleapis.com/"
872 "downloads.webmproject.org/releases/webm/"
873 name "-" version ".tar.bz2"))
876 "15v7qw0ydyxn08ksb6lxn1l51pxgpwgshdwd3275yrr5hs86fv9h"))
877 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
878 (build-system gnu-build-system)
881 (modify-phases %standard-phases
883 (lambda* (#:key outputs #:allow-other-keys)
884 (setenv "CONFIG_SHELL" (which "bash"))
885 (let ((out (assoc-ref outputs "out")))
887 (string-append "-Wl,-rpath=" out "/lib"))
888 (zero? (system* "./configure"
891 ;; Limit size to avoid CVE-2015-1258
892 "--size-limit=16384x16384"
893 (string-append "--prefix=" out)))))))
894 #:tests? #f)) ; no check target
898 (synopsis "VP8/VP9 video codec")
899 (description "libvpx is a codec for the VP8/VP9 video compression format.")
900 (license license:bsd-3)
901 (home-page "http://www.webmproject.org/")))
903 (define-public youtube-dl
906 (version "2016.07.22")
909 (uri (string-append "https://youtube-dl.org/downloads/"
910 version "/youtube-dl-"
914 "02wcxpcbpvsbvyxcnhhf94ma0x5dcg4fygnxxca2h31dp47dkak9"))))
915 (build-system python-build-system)
916 (home-page "https://youtube-dl.org")
918 ;; The problem here is that the directory for the man page and completion
919 ;; files is relative, and for some reason, setup.py uses the
920 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
921 ;; So, we need pass the prefix directly. In addition, make sure the Bash
922 ;; completion file is called 'youtube-dl' rather than
923 ;; 'youtube-dl.bash-completion'.
924 `(#:phases (modify-phases %standard-phases
925 (add-before 'install 'fix-the-data-directories
926 (lambda* (#:key outputs #:allow-other-keys)
927 (let ((prefix (assoc-ref outputs "out")))
928 (mkdir "bash-completion")
929 (rename-file "youtube-dl.bash-completion"
930 "bash-completion/youtube-dl")
931 (substitute* "setup.py"
932 (("youtube-dl\\.bash-completion")
933 "bash-completion/youtube-dl")
935 (string-append "'" prefix "/etc/"))
937 (string-append "'" prefix "/share/")))))))))
938 (synopsis "Download videos from YouTube.com and other sites")
940 "Youtube-dl is a small command-line program to download videos from
941 YouTube.com and a few more sites.")
942 (license license:public-domain)))
944 (define-public libbluray
950 (uri (string-append "https://download.videolan.org/videolan/"
952 name "-" version ".tar.bz2"))
955 "1q1whviqv5sr9nr372h31zwid1rvbfbx3z4lzr8lnj25xha6cdm6"))))
956 (build-system gnu-build-system)
957 (arguments `(#:configure-flags '("--disable-bdjava")))
958 (native-inputs `(("pkg-config" ,pkg-config)))
960 `(("fontconfig" ,fontconfig)
961 ("freetype" ,freetype)
962 ("libxml2" ,libxml2)))
963 (home-page "https://www.videolan.org/developers/libbluray.html")
964 (synopsis "Blu-Ray Disc playback library")
966 "libbluray is a library designed for Blu-Ray Disc playback for media
967 players, like VLC or MPlayer.")
968 (license license:lgpl2.1+)))
970 (define-public libdvdread
976 (uri (string-append "http://download.videolan.org/videolan/"
978 name "-" version ".tar.bz2"))
981 "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j"))))
982 (build-system gnu-build-system)
983 (home-page "http://dvdnav.mplayerhq.hu/")
984 (synopsis "Library for reading video DVDs")
986 "Libdvdread provides a simple foundation for reading DVD video
987 disks. It provides the functionality that is required to access many
988 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
989 authentication and descrambling (if an external libdvdcss library is
991 (license license:gpl2+)))
993 (define-public libdvdnav
999 (uri (string-append "http://download.videolan.org/videolan/"
1000 name "/" version "/"
1001 name "-" version ".tar.bz2"))
1004 "0v8byv5z598k06rqzdmj7739vc86xq3zf79zfr698dib7lz055sh"))))
1005 (build-system gnu-build-system)
1007 `(("pkg-config" ,pkg-config)))
1009 `(("libdvdread" ,libdvdread)))
1010 (home-page "http://dvdnav.mplayerhq.hu/")
1011 (synopsis "Library for video DVD navigation features")
1013 "Libdvdnav is a library for developers of multimedia
1014 applications. It allows easy use of sophisticated DVD navigation features
1015 such as DVD menus, multiangle playback and even interactive DVD games. All
1016 this functionality is provided through a simple API which provides the DVD
1017 playback as a single logical stream of blocks, intermitted by special
1018 dvdnav events to report certain conditions. The main usage of libdvdnav is
1019 a loop regularly calling a function to get the next block, surrounded by
1020 additional calls to tell the library of user interaction. The whole
1021 DVD virtual machine and internal playback states are completely
1023 (license license:gpl2+)))
1025 (define-public libdvdnav-4
1033 "http://download.videolan.org/videolan/libdvdnav/libdvdnav-"
1037 "0wi3gy408c8xj0ism0hckv5jbfh3lg4pmgxv87gbch9jrhp2gjkz"))))
1039 `(("pkg-config" ,pkg-config)
1040 ("autoconf" ,autoconf)
1041 ("automake" ,automake)
1042 ("libtool" ,libtool)))
1048 (zero? (system* "autoreconf" "-vif")))
1049 %standard-phases)))))
1051 (define-public libdvdcss
1057 (uri (string-append "http://download.videolan.org/pub/"
1058 name "/" version "/"
1059 name "-" version ".tar.bz2"))
1062 "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290"))))
1063 (build-system gnu-build-system)
1064 (home-page "http://www.videolan.org/developers/libdvdcss.html")
1065 (synopsis "Library for accessing DVDs as block devices")
1067 "libdvdcss is a simple library designed for accessing DVDs like a block
1068 device without having to bother about the decryption.")
1069 (license license:gpl2+)))
1071 (define-public srt2vtt
1078 "http://dthompson.us/releases/srt2vtt/srt2vtt-"
1082 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1083 (build-system gnu-build-system)
1085 `(("guile" ,guile-2.0)))
1086 (synopsis "SubRip to WebVTT subtitle converter")
1087 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1088 for use with HTML5 video.")
1089 (home-page "http://dthompson.us/pages/software/srt2vtt")
1090 (license license:gpl3+)))
1092 (define-public avidemux
1099 "mirror://sourceforge/" name "/" name "/" version "/"
1100 name "_" version ".tar.gz"))
1103 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
1104 (patches (search-patches "avidemux-install-to-lib.patch"))))
1105 (build-system cmake-build-system)
1107 `(("pkg-config" ,pkg-config)))
1108 ;; FIXME: Once packaged, add libraries not found during the build.
1110 `(("alsa-lib" ,alsa-lib)
1111 ("fontconfig" ,fontconfig)
1112 ("freetype" ,freetype)
1113 ("fribidi" ,fribidi)
1118 ("libvdpau" ,libvdpau)
1119 ("libvorbis" ,libvorbis)
1123 ("pulseaudio" ,pulseaudio)
1124 ("python" ,python-wrapper)
1126 ("qttools" ,qttools)
1132 `(#:tests? #f ; no check target
1134 ;; Make sure files inside the included ffmpeg tarball are
1136 (modify-phases %standard-phases
1137 (add-before 'patch-source-shebangs 'unpack-ffmpeg
1139 (with-directory-excursion "avidemux_core/ffmpeg_package"
1140 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1141 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1142 (add-after 'patch-source-shebangs 'repack-ffmpeg
1144 (with-directory-excursion "avidemux_core/ffmpeg_package"
1145 (substitute* "ffmpeg-2.7.6/configure"
1146 (("#! /bin/sh") (string-append "#!" (which "bash"))))
1147 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
1148 ;; avoid non-determinism in the archive
1149 "--sort=name" "--mtime=@0"
1150 "--owner=root:0" "--group=root:0")
1151 (delete-file-recursively "ffmpeg-2.7.6"))))
1154 ;; Copy-paste settings from the cmake build system.
1155 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1156 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1158 (lambda* (#:key inputs outputs #:allow-other-keys)
1160 ((out (assoc-ref outputs "out"))
1161 (lib (string-append out "/lib"))
1163 (sdl (assoc-ref inputs "sdl"))
1165 (lambda* (component srcdir #:optional (args '()))
1166 (let ((builddir (string-append "build_" component)))
1168 (with-directory-excursion builddir
1171 (apply system* "cmake"
1172 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1173 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1174 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1175 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1176 "\"-Wl,-rpath=" lib "\"")
1177 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1178 (string-append "-DSDL_INCLUDE_DIR="
1180 (string-append "../" srcdir)
1183 (system* "make" "-j"
1184 (number->string (parallel-job-count)))
1185 (system* "make" "install"))))))))
1187 (and (build_component "core" "avidemux_core")
1188 (build_component "cli" "avidemux/cli")
1189 (build_component "qt4" "avidemux/qt4")
1190 (build_component "plugins_common" "avidemux_plugins"
1191 '("-DPLUGIN_UI=COMMON"))
1192 (build_component "plugins_cli" "avidemux_plugins"
1193 '("-DPLUGIN_UI=CLI"))
1194 (build_component "plugins_qt4" "avidemux_plugins"
1195 '("-DPLUGIN_UI=QT4"))
1196 (build_component "plugins_settings" "avidemux_plugins"
1197 '("-DPLUGIN_UI=SETTINGS")))
1198 ;; Remove .exe and .dll file.
1199 (delete-file-recursively
1200 (string-append out "/share/ADM6_addons")))))
1201 (delete 'install))))
1202 (home-page "http://fixounet.free.fr/avidemux/")
1203 (synopsis "Video editor")
1204 (description "Avidemux is a video editor designed for simple cutting,
1205 filtering and encoding tasks. It supports many file types, including AVI,
1206 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1207 can be automated using projects, job queue and powerful scripting
1209 ;; Software with various licenses is included, see License.txt.
1210 (license license:gpl2+)))
1212 (define-public vapoursynth
1214 (name "vapoursynth")
1219 "https://github.com/vapoursynth/vapoursynth/archive/R"
1221 (file-name (string-append name "-" version))
1224 "1j08whj946v2kkpgxsfhpca8xf0ax9iqzn73wvwjx319p9j0ymp9"))))
1225 (build-system gnu-build-system)
1227 `(("autoconf" ,autoconf)
1228 ("automake" ,automake)
1229 ("cython" ,python-cython)
1230 ("libtool" ,libtool)
1231 ("pkg-config" ,pkg-config)
1235 `(("ffmpeg" ,ffmpeg)
1237 ("tesseract-ocr" ,tesseract-ocr)
1241 (modify-phases %standard-phases
1245 (zero? (system* "sh" "autogen.sh")))))))
1246 (home-page "http://www.vapoursynth.com/")
1247 (synopsis "Video processing framework")
1248 (description "VapourSynth is a C++ library and Python module for video
1249 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1250 multithreading, generalized colorspaces, per frame properties, and videos with
1252 ;; As seen from the source files.
1253 (license license:lgpl2.1+)))
1262 "http://downloads.xvid.org/downloads/xvidcore-"
1263 version ".tar.bz2"))
1266 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
1267 (build-system gnu-build-system)
1268 (native-inputs `(("yasm" ,yasm)))
1271 (modify-phases %standard-phases
1273 'configure 'pre-configure
1275 (chdir "build/generic")
1276 (substitute* "configure"
1277 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
1278 ;; No 'check' target.
1280 (home-page "https://www.xvid.com/")
1281 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1282 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1283 codec library. It uses ASP features such as b-frames, global and quarter
1284 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1285 and custom quantization matrices.")
1286 (license license:gpl2+)))
1288 (define-public livestreamer
1290 (name "livestreamer")
1295 "https://github.com/chrippa/livestreamer/archive/v"
1297 (file-name (string-append "livestreamer-" version ".tar.gz"))
1300 "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"))))
1301 (build-system python-build-system)
1303 '(#:tests? #f)) ; tests rely on external web servers
1305 `(("python-requests" ,python-requests)))
1306 (synopsis "Internet video stream viewer")
1307 (description "Livestreamer is a command-line utility that extracts streams
1308 from various services and pipes them into a video playing application.")
1309 (home-page "http://livestreamer.io/")
1310 (license license:bsd-2)))
1318 (uri (string-append "https://github.com/mltframework/mlt/"
1319 "archive/v" version ".tar.gz"))
1320 (file-name (string-append name "-" version ".tar.gz"))
1323 "1zwzfgxrcbwkxnkiwv0a1rzxdnnaly90yyarl9wdw84nx11ffbnx"))))
1324 (build-system gnu-build-system)
1326 `(#:tests? #f ; no tests
1327 #:make-flags '("CC=gcc")
1329 (list "--enable-gpl3"
1332 (modify-phases %standard-phases
1334 'configure 'override-LDFLAGS
1335 (lambda* (#:key outputs #:allow-other-keys)
1336 (substitute* "config.mak"
1338 (string-append "LDFLAGS+=-Wl,-rpath="
1339 (assoc-ref outputs "out")
1343 `(("alsa-lib" ,alsa-lib)
1345 ("libxml2" ,libxml2)
1348 ("libsamplerate" ,libsamplerate)
1349 ("pulseaudio" ,pulseaudio)
1353 `(("pkg-config" ,pkg-config)))
1354 (home-page "https://www.mltframework.org/")
1355 (synopsis "Author, manage, and run multitrack audio/video compositions")
1357 "MLT is a multimedia framework, designed and developed for television
1358 broadcasting. It provides a toolkit for broadcasters, video editors, media
1359 players, transcoders, web streamers and many more types of applications. The
1360 functionality of the system is provided via an assortment of ready to use
1361 tools, XML authoring components, and an extensible plug-in based API.")
1362 (license license:lgpl2.1+)))
1364 (define-public v4l-utils
1370 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
1371 "/v4l-utils-" version ".tar.bz2"))
1374 "1h1nhg5cmmzlbipak526nk4bm6d0yb217mll75f3rpg7kz1cqiv1"))))
1375 (build-system gnu-build-system)
1378 (list (string-append "--with-udevdir="
1379 (assoc-ref %outputs "out")
1382 `(("pkg-config" ,pkg-config)))
1384 `(("alsa-lib" ,alsa-lib)
1386 ("libjpeg" ,libjpeg)
1390 (synopsis "Realtime video capture utilities for Linux")
1391 (description "The v4l-utils provide a series of libraries and utilities to
1392 be used for realtime video capture via Linux-specific APIs.")
1393 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
1394 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
1395 (license (list license:lgpl2.1+ license:gpl2))))
1403 (uri (string-append "https://github.com/jp9000/obs-studio"
1404 "/archive/" version ".tar.gz"))
1405 (file-name (string-append name "-" version ".tar.gz"))
1408 "18fycg7xlj2i89wdb9c5js0bnl964s1lpmnvmfyj11zi9k061wsg"))))
1409 (build-system cmake-build-system)
1411 `(#:tests? #f ; no tests
1412 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1416 (modify-phases %standard-phases
1417 (add-after 'unpack 'remove-architecture-specific-instructions
1418 ;; non-Intel platforms fail to build with the architecture
1419 ;; specific compiler flags included by default.
1421 (substitute* "libobs/CMakeLists.txt"
1422 (("if\\(NOT MSVC\\)") "if(MSVC)"))
1426 `(("pkg-config" ,pkg-config)))
1431 ("freetype" ,freetype)
1433 ("jansson" ,jansson)
1434 ("libx264" ,libx264)
1435 ("libxcomposite" ,libxcomposite)
1437 ("pulseaudio" ,pulseaudio)
1439 ("qtx11extras" ,qtx11extras)
1440 ("v4l-utils" ,v4l-utils)
1442 (synopsis "Live streaming software")
1443 (description "Open Broadcaster Software provides a graphical interface for
1444 video recording and live streaming. OBS supports capturing audio and video
1445 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
1447 (home-page "https://obsproject.com")
1448 (license license:gpl2+)))
1450 (define-public libvdpau
1457 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1458 name "-" version ".tar.bz2"))
1461 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
1462 (build-system gnu-build-system)
1464 `(("pkg-config" ,pkg-config)))
1466 `(("dri2proto" ,dri2proto)
1467 ("libx11" ,libx11 "out")
1468 ("libxext" ,libxext)))
1469 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1470 (synopsis "Video Decode and Presentation API")
1471 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
1472 provides an interface to video decode acceleration and presentation hardware
1473 present in modern GPUs.")
1474 (license (license:x11-style "file://COPYING"))))
1476 (define-public vdpauinfo
1483 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
1484 name "-" version ".tar.gz"))
1487 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
1488 (build-system gnu-build-system)
1490 `(("pkg-config" ,pkg-config)
1491 ("libx11" ,libx11)))
1493 `(("libvdpau" ,libvdpau)))
1494 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
1495 (synopsis "Tool to query the capabilities of a VDPAU implementation")
1496 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
1498 (license (license:x11-style "file://COPYING"))))
1500 (define-public recordmydesktop
1502 (name "recordmydesktop")
1506 (uri (string-append "mirror://sourceforge/" name "/" name "/"
1507 version "/recordmydesktop-" version ".tar.gz"))
1510 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
1511 (build-system gnu-build-system)
1512 (inputs `(("popt" ,popt)
1517 ("libxfixes" ,libxfixes)
1518 ("libxdamage" ,libxdamage)
1519 ("libxext" ,libxext)
1520 ("libvorbis" ,libvorbis)
1521 ("libtheora" ,libtheora)))
1522 (home-page "http://recordmydesktop.sourceforge.net/")
1523 (synopsis "Desktop session video recorder")
1525 "recordMyDesktop is a command-line tool that captures the activity in
1526 your graphical desktop and encodes it as a video. This is a useful tool for
1527 making @dfn{screencasts}.")
1528 (license license:gpl2+)))
1530 (define-public libsmpeg
1537 (url "svn://svn.icculus.org/smpeg/trunk/")
1538 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
1541 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
1542 (build-system gnu-build-system)
1544 `(#:phases (modify-phases %standard-phases
1545 (add-after 'unpack 'autogen.sh
1547 (zero? (system* "sh" "autogen.sh")))))))
1549 `(("autoconf" ,autoconf)
1550 ("automake" ,automake)))
1553 (home-page "http://icculus.org/smpeg/")
1554 (synopsis "SDL MPEG decoding library")
1556 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
1557 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
1558 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
1559 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
1560 and MPEG system streams.")
1561 (license (list license:expat