gnu: libbluray: Remove java as native-input.
[jackhill/guix/guix.git] / gnu / packages / video.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 ;;;
7 ;;; This file is part of GNU Guix.
8 ;;;
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
13 ;;;
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
18 ;;;
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22 (define-module (gnu packages video)
23 #:use-module (ice-9 match)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix utils)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix git-download)
29 #:use-module (guix build-system cmake)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix build-system python)
32 #:use-module (guix build-system waf)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages algebra)
35 #:use-module (gnu packages audio)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages avahi)
38 #:use-module (gnu packages base)
39 #:use-module (gnu packages cdrom)
40 #:use-module (gnu packages compression)
41 #:use-module (gnu packages databases)
42 #:use-module (gnu packages doxygen)
43 #:use-module (gnu packages elf)
44 #:use-module (gnu packages fontutils)
45 #:use-module (gnu packages fribidi)
46 #:use-module (gnu packages gettext)
47 #:use-module (gnu packages ghostscript)
48 #:use-module (gnu packages gl)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages guile)
51 #:use-module (gnu packages gnupg)
52 #:use-module (gnu packages gtk)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages linux)
55 #:use-module (gnu packages lua)
56 #:use-module (gnu packages mp3)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages ocr)
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages pulseaudio)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages qt)
64 #:use-module (gnu packages samba)
65 #:use-module (gnu packages sdl)
66 #:use-module (gnu packages ssh)
67 #:use-module (gnu packages texinfo)
68 #:use-module (gnu packages texlive)
69 #:use-module (gnu packages textutils)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages version-control)
72 #:use-module (gnu packages web)
73 #:use-module (gnu packages xdisorg)
74 #:use-module (gnu packages xiph)
75 #:use-module (gnu packages xml)
76 #:use-module (gnu packages xorg)
77 #:use-module (gnu packages yasm)
78 #:use-module (gnu packages zip))
79
80 (define-public aalib
81 (package
82 (name "aalib")
83 (version "1.4rc5")
84 (source (origin
85 (method url-fetch)
86 (uri (string-append "mirror://sourceforge/aa-project/"
87 name "-" version ".tar.gz"))
88 (sha256
89 (base32
90 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
91 (build-system gnu-build-system)
92 (native-inputs
93 `(("makeinfo" ,texinfo)))
94 (inputs
95 `(("ncurses" ,ncurses)))
96 (arguments
97 '(#:phases
98 (modify-phases %standard-phases
99 (replace 'configure
100 (lambda* (#:key build inputs outputs #:allow-other-keys)
101 ;; This old `configure' script doesn't support
102 ;; variables passed as arguments.
103 (let ((out (assoc-ref outputs "out"))
104 (ncurses (assoc-ref inputs "ncurses")))
105 (setenv "CONFIG_SHELL" (which "bash"))
106 (zero? (system* "./configure"
107 (string-append "--prefix=" out)
108 (string-append "--build=" build)
109 (string-append "--with-ncurses="
110 ncurses)))))))))
111 (home-page "http://aa-project.sourceforge.net/aalib/")
112 (synopsis "ASCII-art library")
113 (description
114 "AA-lib is a low level gfx library which does not require graphics device.
115 In fact, there is no graphical output possible. AA-lib replaces those
116 old-fashioned output methods with powerful ascii-art renderer.")
117 (license license:lgpl2.0+)))
118
119 (define-public liba52
120 (package
121 (name "liba52")
122 (version "0.7.4")
123 (source (origin
124 (method url-fetch)
125 (uri (string-append
126 ;; A mirror://sourceforge URI doesn't work, presumably
127 ;; because the SourceForge project is misconfigured.
128 "http://liba52.sourceforge.net/files/a52dec-" version
129 ".tar.gz"))
130 (sha256
131 (base32
132 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
133 (patches (map search-patch '("liba52-enable-pic.patch"
134 "liba52-set-soname.patch"
135 "liba52-use-mtune-not-mcpu.patch"
136 "liba52-link-with-libm.patch")))))
137 (build-system gnu-build-system)
138 ;; XXX We need to run ./bootstrap because of the build system fixes above.
139 (native-inputs
140 `(("autoconf" ,autoconf)
141 ("automake" ,automake)
142 ("libtool" ,libtool)))
143 (arguments `(#:configure-flags '("--enable-shared")
144 #:phases
145 (modify-phases %standard-phases
146 ;; XXX We need to run ./bootstrap because of the build
147 ;; system fixes above.
148 (add-after
149 'unpack 'bootstrap
150 (lambda _ (zero? (system* "sh" "bootstrap")))))))
151 (home-page "http://liba52.sourceforge.net/")
152 (synopsis "ATSC A/52 stream decoder")
153 (description "liba52 is a library for decoding ATSC A/52 streams. The
154 A/52 standard is used in a variety of applications, including digital
155 television and DVD. It is also known as AC-3.")
156 (license license:gpl2+)))
157
158 (define-public libmpeg2
159 (package
160 (name "libmpeg2")
161 (version "0.5.1")
162 (source (origin
163 (method url-fetch)
164 ;; A mirror://sourceforge URI doesn't work, presumably
165 ;; because the SourceForge project is misconfigured.
166 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
167 name "-" version ".tar.gz"))
168 (sha256
169 (base32
170 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
171 (inputs
172 `(("libx11" ,libx11)
173 ("libxext" ,libxext)
174 ("libxv" ,libxv)
175 ("libsm" ,libsm)
176 ("libice" ,libice)
177 ("sdl" ,sdl)))
178 (build-system gnu-build-system)
179 (home-page "http://libmpeg2.sourceforge.net/")
180 (synopsis "MPEG1 and MPEG2 video decoder library")
181 (description
182 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
183 (license license:gpl2+)))
184
185 (define-public libx264
186 (package
187 (name "libx264")
188 (version "20150706-2245")
189 (source (origin
190 (method url-fetch)
191 (uri (string-append "ftp://ftp.videolan.org/pub/x264/snapshots/"
192 "x264-snapshot-" version ".tar.bz2"))
193 (sha256
194 (base32
195 "0v04xq25q66gsk78i4kryy7503ki87jxbhln2c0qpvyy0d47p466"))))
196 (build-system gnu-build-system)
197 (native-inputs
198 `(("pkg-config" ,pkg-config)
199 ("yasm" ,yasm)))
200 ;; TODO: Add gpac input
201 (arguments
202 `(#:tests? #f ;no check target
203 #:configure-flags '("--enable-shared"
204 ;; Don't build the command-line program. If we
205 ;; want it later, we should do so in a different
206 ;; package to avoid a circular dependency (the x264
207 ;; program depends on ffmpeg and ffmpeg depends on
208 ;; libx264).
209 "--disable-cli")))
210 (home-page "http://www.videolan.org/developers/x264.html")
211 (synopsis "H.264 video coding library")
212 (description "libx264 is an advanced encoding library for creating
213 H.264 (MPEG-4 AVC) video streams.")
214 (license (list license:gpl2+ ;most files
215 license:isc ;common/x86/x86inc.asm
216 license:lgpl2.1+ ;extras/getopt.c
217 license:bsd-3 ;extras/inttypes.h
218 (license:non-copyleft ;extras/cl*.h
219 "file://extras/cl.h"
220 "See extras/cl.h in the distribution.")))))
221
222 (define-public libass
223 (package
224 (name "libass")
225 (version "0.12.1")
226 (source (origin
227 (method url-fetch)
228 (uri (string-append
229 "https://github.com/libass/libass/releases/download/"
230 version "/libass-" version ".tar.xz"))
231 (sha256
232 (base32
233 "1mwj2nk9g6cq6f8m1hf0ijg1299rghhy9naahqq43sc2whblb1l7"))))
234 (build-system gnu-build-system)
235 (native-inputs
236 `(("pkg-config" ,pkg-config)
237 ("yasm" ,yasm)))
238 (propagated-inputs
239 `(("freetype" ,freetype)
240 ("fribidi" ,fribidi)
241 ("fontconfig" ,fontconfig)
242 ("harfbuzz" ,harfbuzz)
243 ("enca" ,enca)))
244 (home-page "https://github.com/libass/libass")
245 (synopsis "Subtitle rendering library for the ASS/SSA format")
246 (description "libass is a subtitle rendering library for the
247 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
248 (license license:isc)))
249
250 (define-public libcaca
251 (package
252 (name "libcaca")
253 (version "0.99.beta19")
254 (source (origin
255 (method url-fetch)
256 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
257 version ".tar.gz"))
258 (sha256
259 (base32
260 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
261 (build-system gnu-build-system)
262 (native-inputs `(("pkg-config" ,pkg-config)))
263 (inputs
264 `(("freeglut" ,freeglut)
265 ("ftgl" ,ftgl)
266 ("libx11" ,libx11)
267 ("mesa" ,mesa)
268 ("ncurses" ,ncurses)
269 ("zlib" ,zlib)))
270 (home-page "http://caca.zoy.org/wiki/libcaca")
271 (synopsis "Colour ASCII-art library")
272 (description "libcaca is a graphics library that outputs text instead of
273 pixels, so that it can work on older video cards or text terminals. It
274 supports Unicode, 2048 colors, dithering of color images, and advanced text
275 canvas operations.")
276 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
277
278 (define-public libdca
279 (package
280 (name "libdca")
281 (version "0.0.5")
282 (source (origin
283 (method url-fetch)
284 (uri (string-append
285 "http://download.videolan.org/pub/videolan/libdca/"
286 version "/libdca-" version ".tar.bz2"))
287 (sha256
288 (base32
289 "0hh6a7l8vvccsd5i1fkv9av2gzv9fy8m0b8jpsn5p6hh4bh2586v"))))
290 (build-system gnu-build-system)
291 (home-page "http://www.videolan.org/developers/libdca.html")
292 (synopsis "DTS Coherent Acoustics decoder")
293 (description "libdca is a library for decoding DTS Coherent Acoustics
294 streams.")
295 (license license:gpl2+)))
296
297 (define-public libdv
298 (package
299 (name "libdv")
300 (version "1.0.0")
301 (source (origin
302 (method url-fetch)
303 (uri (string-append
304 "mirror://sourceforge/libdv/libdv-" version ".tar.gz"))
305 (sha256
306 (base32
307 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
308 (build-system gnu-build-system)
309 (native-inputs `(("pkg-config" ,pkg-config)))
310 (inputs `(("libxv" ,libxv)))
311 (home-page "http://libdv.sourceforge.net/")
312 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
313 (description "The Quasar DV codec (libdv) is a software codec for DV
314 video, the encoding format used by most digital camcorders, typically those
315 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
316 developed according to the official standards for DV video: IEC 61834 and
317 SMPTE 314M.")
318 (license license:lgpl2.1+)))
319
320 (define-public libva
321 (package
322 (name "libva")
323 (version "1.5.1")
324 (source
325 (origin
326 (method url-fetch)
327 (uri (string-append
328 "http://www.freedesktop.org/software/vaapi/releases/libva/libva-"
329 version".tar.bz2"))
330 (sha256
331 (base32 "01d01mm9fgpwzqycmjjcj3in3vvzcibi3f64icsw2sksmmgb4495"))))
332 (build-system gnu-build-system)
333 (native-inputs
334 `(("pkg-config" ,pkg-config)))
335 (inputs
336 `(("libdrm" ,libdrm)
337 ("libx11" ,libx11)
338 ("libxext" ,libxext)
339 ("libxfixes" ,libxfixes)
340 ("mesa" ,mesa)))
341 (arguments
342 `(#:phases
343 (modify-phases %standard-phases
344 (add-before
345 'build 'fix-dlopen-paths
346 (lambda* (#:key outputs #:allow-other-keys)
347 (let ((out (assoc-ref outputs "out")))
348 (substitute* "va/drm/va_drm_auth_x11.c"
349 (("\"libva-x11\\.so\\.%d\"")
350 (string-append "\"" out "/lib/libva-x11.so.%d\"")))))))
351 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
352 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
353 #:configure-flags
354 (list (string-append "--with-drivers-path="
355 (assoc-ref %build-inputs "mesa") "/lib/dri"))
356 ;; However, we can't write to mesa's store directory, so override the
357 ;; following make variable to install the dummy driver to libva's
358 ;; $prefix/lib/dri directory.
359 #:make-flags
360 (list (string-append "dummy_drv_video_ladir="
361 (assoc-ref %outputs "out") "/lib/dri"))))
362 (home-page "http://www.freedesktop.org/wiki/Software/vaapi/")
363 (synopsis "Video acceleration library")
364 (description "The main motivation for VA-API (Video Acceleration API) is
365 to enable hardware accelerated video decode/encode at various
366 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
367 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
368 (license license:expat)))
369
370 (define-public ffmpeg
371 (package
372 (name "ffmpeg")
373 (version "2.8")
374 (source (origin
375 (method url-fetch)
376 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
377 version ".tar.xz"))
378 (sha256
379 (base32
380 "10l1iwc01k1algk2v4vzsrahdvqjmjfi3qazm2cwism0d8hsfg4r"))))
381 (build-system gnu-build-system)
382 (inputs
383 `(("fontconfig" ,fontconfig)
384 ("freetype" ,freetype)
385 ("opus" ,opus)
386 ("ladspa" ,ladspa)
387 ("lame" ,lame)
388 ("libass" ,libass)
389 ("libbluray" ,libbluray)
390 ("libcaca" ,libcaca)
391 ("libcdio-paranoia" ,libcdio-paranoia)
392 ("libquvi" ,libquvi)
393 ("libtheora" ,libtheora)
394 ("libvorbis" ,libvorbis)
395 ("libvpx" ,libvpx)
396 ("libx264" ,libx264)
397 ("openal" ,openal)
398 ("pulseaudio" ,pulseaudio)
399 ("soxr" ,soxr)
400 ("speex" ,speex)
401 ("twolame" ,twolame)
402 ("xvid" ,xvid)
403 ("zlib", zlib)))
404 (native-inputs
405 `(("bc" ,bc)
406 ("perl" ,perl)
407 ("pkg-config" ,pkg-config)
408 ("texinfo" ,texinfo)
409 ("python" ,python-2) ; scripts use interpreter python2
410 ("speex" ,speex)
411 ("yasm" ,yasm)))
412 (arguments
413 `(#:test-target "fate"
414 #:phases
415 (modify-phases %standard-phases
416 (replace
417 'configure
418 ;; configure does not work followed by "SHELL=..." and
419 ;; "CONFIG_SHELL=..."; set environment variables instead
420 (lambda* (#:key outputs configure-flags #:allow-other-keys)
421 (let ((out (assoc-ref outputs "out")))
422 (substitute* "configure"
423 (("#! /bin/sh") (string-append "#!" (which "bash"))))
424 (setenv "SHELL" (which "bash"))
425 (setenv "CONFIG_SHELL" (which "bash"))
426 ;; possible additional inputs:
427 ;; --enable-avisynth enable reading of AviSynth script files [no]
428 ;; --enable-frei0r enable frei0r video filtering
429 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
430 ;; --enable-libcelt enable CELT decoding via libcelt [no]
431 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
432 ;; and libraw1394 [no]
433 ;; --enable-libfaac enable AAC encoding via libfaac [no]
434 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
435 ;; --enable-libflite enable flite (voice synthesis) support via libflite [no]
436 ;; --enable-libgme enable Game Music Emu via libgme [no]
437 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
438 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
439 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
440 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
441 ;; --enable-libnut enable NUT (de)muxing via libnut,
442 ;; native (de)muxer exists [no]
443 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
444 ;; --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
445 ;; --enable-libopencv enable video filtering via libopencv [no]
446 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no]
447 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
448 ;; --enable-libschroedinger enable Dirac de/encoding via libschroedinger [no]
449 ;; --enable-libshine enable fixed-point MP3 encoding via libshine [no]
450 ;; --enable-libssh enable SFTP protocol via libssh [no]
451 ;; (libssh2 does not work)
452 ;; --enable-libstagefright-h264 enable H.264 decoding via libstagefright [no]
453 ;; --enable-libutvideo enable Ut Video encoding and decoding via libutvideo [no]
454 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
455 ;; --enable-libvidstab enable video stabilization using vid.stab [no]
456 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
457 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc [no]
458 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
459 ;; --enable-libxavs enable AVS encoding via xavs [no]
460 ;; --enable-libzmq enable message passing via libzmq [no]
461 ;; --enable-libzvbi enable teletext support via libzvbi [no]
462 ;; --enable-opencl enable OpenCL code
463 ;; --enable-x11grab enable X11 grabbing [no]
464 (zero? (system*
465 "./configure"
466 (string-append "--prefix=" out)
467 ;; Add $libdir to the RUNPATH of all the binaries.
468 (string-append "--extra-ldflags=-Wl,-rpath="
469 %output "/lib")
470 "--enable-avresample"
471 "--enable-gpl" ; enable optional gpl licensed parts
472 "--enable-shared"
473 "--enable-fontconfig"
474 ;; "--enable-gnutls" ; causes test failures
475 "--enable-ladspa"
476 "--enable-libass"
477 "--enable-libbluray"
478 "--enable-libcaca"
479 "--enable-libcdio"
480 "--enable-libfreetype"
481 "--enable-libmp3lame"
482 "--enable-libopus"
483 "--enable-libpulse"
484 "--enable-libquvi"
485 "--enable-libsoxr"
486 "--enable-libspeex"
487 "--enable-libtheora"
488 "--enable-libtwolame"
489 "--enable-libvorbis"
490 "--enable-libvpx"
491 "--enable-libxvid"
492 "--enable-libx264"
493 "--enable-openal"
494
495 "--enable-runtime-cpudetect"
496
497 ;; Runtime cpu detection is not implemented on
498 ;; MIPS, so we disable some features.
499 "--disable-mips32r2"
500 "--disable-mipsdspr1"
501 "--disable-mipsdspr2"
502 "--disable-mipsfpu")))))
503 (add-before
504 'check 'set-ld-library-path
505 (lambda _
506 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
507 ;; running tests.
508 (let* ((dso (find-files "." "\\.so$"))
509 (path (string-join (map dirname dso) ":")))
510 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
511 (setenv "LD_LIBRARY_PATH" path)
512 #t))))))
513 (home-page "http://www.ffmpeg.org/")
514 (synopsis "Audio and video framework")
515 (description "FFmpeg is a complete, cross-platform solution to record,
516 convert and stream audio and video. It includes the libavcodec
517 audio/video codec library.")
518 (license license:gpl2+)))
519
520 (define-public vlc
521 (package
522 (name "vlc")
523 (version "2.2.1")
524 (source (origin
525 (method url-fetch)
526 (uri (string-append
527 "http://download.videolan.org/pub/videolan/vlc/"
528 version "/vlc-" version ".tar.xz"))
529 (sha256
530 (base32
531 "1jqzrzrpw6932lbkf863xk8cfmn4z2ngbxz7w8ggmh4f6xz9sgal"))))
532 (build-system gnu-build-system)
533 (native-inputs
534 `(("git" ,git) ; needed for a test
535 ("pkg-config" ,pkg-config)))
536 ;; FIXME: Add optional inputs once available.
537 (inputs
538 `(("alsa-lib" ,alsa-lib)
539 ("avahi" ,avahi)
540 ("dbus" ,dbus)
541 ("flac" ,flac)
542 ("ffmpeg" ,ffmpeg)
543 ("fontconfig" ,fontconfig)
544 ("freetype" ,freetype)
545 ("gnutls" ,gnutls)
546 ("libcddb" ,libcddb)
547 ("libgcrypt" ,libgcrypt)
548 ("libkate" ,libkate)
549 ("libmad" ,libmad)
550 ("libogg" ,libogg)
551 ("libpng" ,libpng)
552 ("libsamplerate" ,libsamplerate)
553 ("libssh2" ,libssh2)
554 ("libvorbis" ,libvorbis)
555 ("libtheora" ,libtheora)
556 ("libxext" ,libxext)
557 ("libxinerama" ,libxinerama)
558 ("libxml2" ,libxml2)
559 ("libxpm" ,libxpm)
560 ("lua" ,lua-5.1)
561 ("mesa" ,mesa)
562 ("opus" ,opus)
563 ("perl" ,perl)
564 ("pulseaudio" ,pulseaudio)
565 ("python" ,python-wrapper)
566 ("qt" ,qt)
567 ("sdl" ,sdl)
568 ("sdl-image" ,sdl-image)
569 ("speex" ,speex)
570 ("xcb-util-keysyms" ,xcb-util-keysyms)))
571 (arguments
572 `(#:configure-flags
573 `("--disable-a52" ; FIXME: reenable once available
574 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
575 (assoc-ref %build-inputs "ffmpeg")
576 "/lib")))) ; needed for the tests
577 (home-page "https://www.videolan.org/")
578 (synopsis "Audio and video framework")
579 (description "VLC is a cross-platform multimedia player and framework
580 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
581 treaming protocols.")
582 (license license:gpl2+)))
583
584 (define-public mplayer
585 (package
586 (name "mplayer")
587 (version "1.1.1")
588 (source (origin
589 (method url-fetch)
590 (uri (string-append
591 "http://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
592 version ".tar.xz"))
593 (sha256
594 (base32
595 "0xlcg7rszrwmw29wqr0plsw5d1rq0hb7vjsq7bmmfsly2z1wg3yf"))))
596 (build-system gnu-build-system)
597 ;; FIXME: Add additional inputs once available.
598 (native-inputs
599 `(("pkg-config" ,pkg-config)))
600 (inputs
601 `(("alsa-lib" ,alsa-lib)
602 ("cdparanoia" ,cdparanoia)
603 ("fontconfig" ,fontconfig)
604 ("freetype" ,freetype)
605 ("lame" ,lame)
606 ("libmpg123" ,mpg123) ; audio codec for MP3
607 ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
608 ("libjpeg" ,libjpeg)
609 ("libpng" ,libpng)
610 ("libtheora" ,libtheora)
611 ("libvorbis" ,libvorbis)
612 ("libx11" ,libx11)
613 ("libxxf86dga" ,libxxf86dga)
614 ("libxinerama" ,libxinerama)
615 ("libxv" ,libxv)
616 ("mesa" ,mesa)
617 ("perl" ,perl)
618 ("pulseaudio" ,pulseaudio)
619 ("python" ,python-wrapper)
620 ("sdl" ,sdl)
621 ("speex" ,speex)
622 ("yasm" ,yasm)
623 ("zlib" ,zlib)))
624 (arguments
625 `(#:tests? #f ; no test target
626 #:phases
627 (alist-replace
628 'configure
629 ;; configure does not work followed by "SHELL=..." and
630 ;; "CONFIG_SHELL=..."; set environment variables instead
631 (lambda* (#:key inputs outputs #:allow-other-keys)
632 (let ((out (assoc-ref outputs "out"))
633 (libx11 (assoc-ref inputs "libx11")))
634 (substitute* "configure"
635 (("#! /bin/sh") (string-append "#!" (which "bash"))))
636 (setenv "SHELL" (which "bash"))
637 (setenv "CONFIG_SHELL" (which "bash"))
638 (zero? (system*
639 "./configure"
640 (string-append "--extra-cflags=-I"
641 libx11 "/include") ; to detect libx11
642 "--disable-tremor-internal" ; forces external libvorbis
643 (string-append "--prefix=" out)
644 ;; Enable runtime cpu detection where supported,
645 ;; and choose a suitable target.
646 ,@(match (or (%current-target-system)
647 (%current-system))
648 ("x86_64-linux"
649 '("--enable-runtime-cpudetection"
650 "--target=x86_64-linux"))
651 ("i686-linux"
652 '("--enable-runtime-cpudetection"
653 "--target=i686-linux"))
654 ("mips64el-linux"
655 '("--target=mips3-linux"))
656 (_ (list (string-append
657 "--target="
658 (or (%current-target-system)
659 (nix-system->gnu-triplet
660 (%current-system)))))))
661 "--disable-iwmmxt"))))
662 %standard-phases)))
663 (home-page "http://www.mplayerhq.hu/design7/news.html")
664 (synopsis "Audio and video player")
665 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
666 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
667 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
668 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
669 (license license:gpl2)))
670
671 (define-public mpv
672 (package
673 (name "mpv")
674 (version "0.11.0")
675 (source (origin
676 (method url-fetch)
677 (uri (string-append
678 "https://github.com/mpv-player/mpv/archive/v" version
679 ".tar.gz"))
680 (sha256
681 (base32
682 "1njvmqzj8akan5y485gx4blynwiy52adw7zbbnnnvd3dwis725d2"))
683 (file-name (string-append name "-" version ".tar.gz"))))
684 (build-system waf-build-system)
685 (native-inputs
686 `(("perl" ,perl)
687 ("pkg-config" ,pkg-config)
688 ("python-docutils" ,python-docutils)))
689 ;; Missing features: libguess, Wayland, VDPAU, V4L2
690 (inputs
691 `(("alsa-lib" ,alsa-lib)
692 ("enca" ,enca)
693 ("ffmpeg" ,ffmpeg)
694 ("jack" ,jack-1)
695 ("ladspa" ,ladspa)
696 ("lcms" ,lcms)
697 ("libass" ,libass)
698 ("libbluray" ,libbluray)
699 ("libcaca" ,libcaca)
700 ("libbs2b" ,libbs2b)
701 ("libcdio-paranoia" ,libcdio-paranoia)
702 ("libdvdread" ,libdvdread)
703 ("libdvdnav" ,libdvdnav)
704 ("libjpeg" ,libjpeg)
705 ("libva" ,libva)
706 ("libx11" ,libx11)
707 ("libxext" ,libxext)
708 ("libxinerama" ,libxinerama)
709 ("libxrandr" ,libxrandr)
710 ("libxscrnsaver" ,libxscrnsaver)
711 ("libxv" ,libxv)
712 ("lua" ,lua)
713 ("mesa" ,mesa)
714 ("mpg123" ,mpg123)
715 ("pulseaudio" ,pulseaudio)
716 ("rsound" ,rsound)
717 ("samba" ,samba)
718 ("vapoursynth" ,vapoursynth)
719 ("waf" ,(origin
720 (method url-fetch)
721 ;; Keep this in sync with the version in the bootstrap.py
722 ;; script of the source tarball.
723 (uri "http://www.freehackers.org/~tnagy/release/waf-1.8.4")
724 (sha256
725 (base32
726 "1a7skwgpl91adhcwlmdr76xzdpidh91hvcmj34zz6548bpx3a87h"))))
727 ("youtube-dl" ,youtube-dl)
728 ("zlib" ,zlib)))
729 (arguments
730 '(#:phases
731 (modify-phases %standard-phases
732 (add-before
733 'configure 'setup-waf
734 (lambda* (#:key inputs #:allow-other-keys)
735 (copy-file (assoc-ref inputs "waf") "waf")
736 (setenv "CC" "gcc")))
737 (add-before
738 'configure 'patch-wscript
739 (lambda* (#:key inputs #:allow-other-keys)
740 (substitute* "wscript"
741 ;; XXX Remove this when our Samba package provides a .pc file.
742 (("check_pkg_config\\('smbclient'\\)")
743 "check_cc(lib='smbclient')")
744 ;; XXX Remove this when our Lua package provides a .pc file.
745 (("check_lua")
746 "check_cc(lib='lua')")))))
747 ;; No check function defined.
748 #:tests? #f))
749 (home-page "http://mpv.io/")
750 (synopsis "Audio and video player")
751 (description "mpv is a general-purpose audio and video player. It is a
752 fork of mplayer2 and MPlayer. It shares some features with the former
753 projects while introducing many more.")
754 (license license:gpl2+)))
755
756 (define-public libvpx
757 (package
758 (name "libvpx")
759 (version "1.4.0")
760 (source (origin
761 (method url-fetch)
762 (uri (string-append "http://storage.googleapis.com/"
763 "downloads.webmproject.org/releases/webm/"
764 name "-" version ".tar.bz2"))
765 (sha256
766 (base32
767 "1r0ql5kgy0c8mh5w7iiqvsd7w5njl9f9cclc7m52ln8assrdk0pm"))))
768 (build-system gnu-build-system)
769 (arguments
770 `(#:phases (alist-replace
771 'configure
772 (lambda* (#:key outputs #:allow-other-keys)
773 (setenv "CONFIG_SHELL" (which "bash"))
774 (let ((out (assoc-ref outputs "out")))
775 (setenv "LDFLAGS"
776 (string-append "-Wl,-rpath=" out "/lib"))
777 (zero? (system* "./configure"
778 "--enable-shared"
779 "--as=yasm"
780 (string-append "--prefix=" out)))))
781 %standard-phases)
782 #:tests? #f)) ; no check target
783 (native-inputs
784 `(("perl" ,perl)
785 ("yasm" ,yasm)))
786 (synopsis "VP8/VP9 video codec")
787 (description "libvpx is a codec for the VP8/VP9 video compression format.")
788 (license license:bsd-3)
789 (home-page "http://www.webmproject.org/")))
790
791 (define-public youtube-dl
792 (package
793 (name "youtube-dl")
794 (version "2015.09.28")
795 (source (origin
796 (method url-fetch)
797 (uri (string-append "https://youtube-dl.org/downloads/"
798 version "/youtube-dl-"
799 version ".tar.gz"))
800 (sha256
801 (base32
802 "0q3s2a91s1lr1db2ngacq0iapyr4jngx1dqp4z5dc6zma0qyx5k3"))))
803 (build-system python-build-system)
804 (inputs `(("setuptools" ,python-setuptools)))
805 (home-page "http://youtube-dl.org")
806 (synopsis "Download videos from YouTube.com and other sites")
807 (description
808 "youtube-dl is a small command-line program to download videos from
809 YouTube.com and a few more sites.")
810 (license license:public-domain)))
811
812 (define-public libbluray
813 (package
814 (name "libbluray")
815 (version "0.9.0")
816 (source (origin
817 (method url-fetch)
818 (uri (string-append "http://download.videolan.org/videolan/"
819 name "/" version "/"
820 name "-" version ".tar.bz2"))
821 (sha256
822 (base32
823 "0kb9znxk6610vi0fjhqxn4z5i98nvxlsz1f8dakj99rg42livdl4"))))
824 (build-system gnu-build-system)
825 (arguments `(#:configure-flags '("--disable-bdjava")))
826 (native-inputs `(("pkg-config" ,pkg-config)))
827 (inputs
828 `(("doxygen" ,doxygen)
829 ("fontconfig" ,fontconfig)
830 ("freetype" ,freetype)
831 ("libxml2" ,libxml2)
832 ("perl" ,perl) ;for doxygen
833 ("texlive" ,texlive)))
834 (home-page "http://www.videolan.org/developers/libbluray.html")
835 (synopsis "Blu-Ray Disc playback library")
836 (description
837 "libbluray is a library designed for Blu-Ray Disc playback for media
838 players, like VLC or MPlayer.")
839 (license license:lgpl2.1+)))
840
841 (define-public libdvdread
842 (package
843 (name "libdvdread")
844 (version "5.0.3")
845 (source (origin
846 (method url-fetch)
847 (uri (string-append "http://download.videolan.org/videolan/"
848 name "/" version "/"
849 name "-" version ".tar.bz2"))
850 (sha256
851 (base32
852 "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j"))))
853 (build-system gnu-build-system)
854 (home-page "http://dvdnav.mplayerhq.hu/")
855 (synopsis "Library for reading video DVDs")
856 (description
857 "Libdvdread provides a simple foundation for reading DVD video
858 disks. It provides the functionality that is required to access many
859 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
860 authentication and descrambling (if an external libdvdcss library is
861 installed).")
862 (license license:gpl2+)))
863
864 (define-public libdvdnav
865 (package
866 (name "libdvdnav")
867 (version "5.0.3")
868 (source (origin
869 (method url-fetch)
870 (uri (string-append "http://download.videolan.org/videolan/"
871 name "/" version "/"
872 name "-" version ".tar.bz2"))
873 (sha256
874 (base32
875 "0v8byv5z598k06rqzdmj7739vc86xq3zf79zfr698dib7lz055sh"))))
876 (build-system gnu-build-system)
877 (native-inputs
878 `(("pkg-config" ,pkg-config)))
879 (inputs
880 `(("libdvdread" ,libdvdread)))
881 (home-page "http://dvdnav.mplayerhq.hu/")
882 (synopsis "Library for video DVD navigation features")
883 (description
884 "Libdvdnav is a library for developers of multimedia
885 applications. It allows easy use of sophisticated DVD navigation features
886 such as DVD menus, multiangle playback and even interactive DVD games. All
887 this functionality is provided through a simple API which provides the DVD
888 playback as a single logical stream of blocks, intermitted by special
889 dvdnav events to report certain conditions. The main usage of libdvdnav is
890 a loop regularly calling a function to get the next block, surrounded by
891 additional calls to tell the library of user interaction. The whole
892 DVD virtual machine and internal playback states are completely
893 encapsulated.")
894 (license license:gpl2+)))
895
896 (define-public libdvdnav-4
897 (package
898 (inherit libdvdnav)
899 (version "4.2.1")
900 (source (origin
901 (method url-fetch)
902 (uri
903 (string-append
904 "http://download.videolan.org/videolan/libdvdnav/libdvdnav-"
905 version ".tar.xz"))
906 (sha256
907 (base32
908 "0wi3gy408c8xj0ism0hckv5jbfh3lg4pmgxv87gbch9jrhp2gjkz"))))
909 (native-inputs
910 `(("pkg-config" ,pkg-config)
911 ("autoconf" ,autoconf)
912 ("automake" ,automake)
913 ("libtool" ,libtool)))
914 (arguments
915 '(#:phases
916 (alist-cons-after
917 'unpack 'autoreconf
918 (lambda _
919 (zero? (system* "autoreconf" "-vif")))
920 %standard-phases)))))
921
922 (define-public libdvdcss
923 (package
924 (name "libdvdcss")
925 (version "1.3.99")
926 (source (origin
927 (method url-fetch)
928 (uri (string-append "http://download.videolan.org/videolan/"
929 name "/" version "/"
930 name "-" version ".tar.bz2"))
931 (sha256
932 (base32
933 "0pawkfyvn2h3yl6ph5spcvqxb4fr4yi4wfkvw2xqqcqv2ywzmc08"))))
934 (build-system gnu-build-system)
935 (home-page "http://www.videolan.org/developers/libdvdcss.html")
936 (synopsis "Library for accessing DVDs as block devices")
937 (description
938 "libdvdcss is a simple library designed for accessing DVDs like a block
939 device without having to bother about the decryption.")
940 (license license:gpl2+)))
941
942 (define-public srt2vtt
943 (package
944 (name "srt2vtt")
945 (version "0.1")
946 (source (origin
947 (method url-fetch)
948 (uri (string-append
949 "http://dthompson.us/releases/srt2vtt/srt2vtt-"
950 version ".tar.gz"))
951 (sha256
952 (base32
953 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
954 (build-system gnu-build-system)
955 (inputs
956 `(("guile" ,guile-2.0)))
957 (synopsis "SubRip to WebVTT subtitle converter")
958 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
959 for use with HTML5 video.")
960 (home-page "http://dthompson.us/pages/software/srt2vtt")
961 (license license:gpl3+)))
962
963 (define-public avidemux
964 (package
965 (name "avidemux")
966 (version "2.6.10")
967 (source (origin
968 (method url-fetch)
969 (uri (string-append
970 "mirror://sourceforge/avidemux/avidemux_"
971 version ".tar.gz"))
972 (sha256
973 (base32
974 "1vas43bwb15q2wv3dpp7fgp8dc6szinmwl7i0ziq2vv5l2128v0p"))
975 (patches (map search-patch '("avidemux-install-to-lib.patch")))))
976 (build-system cmake-build-system)
977 (native-inputs
978 `(("pkg-config" ,pkg-config)))
979 ;; FIXME: Once packaged, add libraries not found during the build.
980 (inputs
981 `(("alsa-lib" ,alsa-lib)
982 ("fontconfig" ,fontconfig)
983 ("freetype" ,freetype)
984 ("fribidi" ,fribidi)
985 ("glu" ,glu)
986 ("jack" ,jack-1)
987 ("lame" ,lame)
988 ("libvorbis" ,libvorbis)
989 ("libvpx" ,libvpx)
990 ("libxv" ,libxv)
991 ("perl" ,perl)
992 ("pulseaudio" ,pulseaudio)
993 ("python" ,python-wrapper)
994 ("qt" ,qt)
995 ("sdl" ,sdl)
996 ("sqlite" ,sqlite)
997 ("yasm" ,yasm)
998 ("zlib" ,zlib)))
999 (arguments
1000 `(#:tests? #f ; no check target
1001 #:phases
1002 ;; Make sure files inside the included ffmpeg tarball are
1003 ;; patch-shebanged.
1004 (alist-cons-before
1005 'patch-source-shebangs 'unpack-ffmpeg
1006 (lambda _
1007 (with-directory-excursion "avidemux_core/ffmpeg_package"
1008 (system* "tar" "xf" "ffmpeg-2.6.1.tar.bz2")
1009 (delete-file "ffmpeg-2.6.1.tar.bz2")))
1010 (alist-cons-after
1011 'patch-source-shebangs 'repack-ffmpeg
1012 (lambda _
1013 (with-directory-excursion "avidemux_core/ffmpeg_package"
1014 (substitute* "ffmpeg-2.6.1/configure"
1015 (("#! /bin/sh") (string-append "#!" (which "bash"))))
1016 (system* "tar" "cjf" "ffmpeg-2.6.1.tar.bz2" "ffmpeg-2.6.1"
1017 ;; avoid non-determinism in the archive
1018 "--sort=name" "--mtime=@0"
1019 "--owner=root:0" "--group=root:0")
1020 (delete-file-recursively "ffmpeg-2.6.1")))
1021 (alist-replace 'configure
1022 (lambda _
1023 ;; Copy-paste settings from the cmake build system.
1024 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1025 (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH")))
1026 (alist-replace 'build
1027 (lambda* (#:key inputs outputs #:allow-other-keys)
1028 (let*
1029 ((out (assoc-ref outputs "out"))
1030 (lib (string-append out "/lib"))
1031 (top (getcwd))
1032 (sdl (assoc-ref inputs "sdl"))
1033 (build_component
1034 (lambda* (component srcdir #:optional (args '()))
1035 (let ((builddir (string-append "build_" component)))
1036 (mkdir builddir)
1037 (with-directory-excursion builddir
1038 (zero? (and
1039 (apply system* "cmake"
1040 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1041 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1042 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
1043 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1044 "\"-Wl,-rpath=" lib "\"")
1045 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1046 (string-append "-DSDL_INCLUDE_DIR="
1047 sdl "/include/SDL")
1048 (string-append "../" srcdir)
1049 "-DENABLE_QT5=True"
1050 args)
1051 (system* "make" "-j"
1052 (number->string (parallel-job-count)))
1053 (system* "make" "install"))))))))
1054 (mkdir out)
1055 (and (build_component "core" "avidemux_core")
1056 (build_component "cli" "avidemux/cli")
1057 (build_component "qt4" "avidemux/qt4")
1058 (build_component "plugins_common" "avidemux_plugins"
1059 '("-DPLUGIN_UI=COMMON"))
1060 (build_component "plugins_cli" "avidemux_plugins"
1061 '("-DPLUGIN_UI=CLI"))
1062 (build_component "plugins_qt4" "avidemux_plugins"
1063 '("-DPLUGIN_UI=QT4"))
1064 (build_component "plugins_settings" "avidemux_plugins"
1065 '("-DPLUGIN_UI=SETTINGS")))
1066 ;; Remove .exe and .dll file.
1067 (delete-file-recursively
1068 (string-append out "/share/ADM6_addons"))))
1069 (alist-delete 'install
1070 %standard-phases)))))))
1071 (home-page "http://fixounet.free.fr/avidemux/")
1072 (synopsis "Video editor")
1073 (description "Avidemux is a video editor designed for simple cutting,
1074 filtering and encoding tasks. It supports many file types, including AVI,
1075 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1076 can be automated using projects, job queue and powerful scripting
1077 capabilities.")
1078 ;; Software with various licenses is included, see License.txt.
1079 (license license:gpl2+)))
1080
1081 (define-public vapoursynth
1082 (package
1083 (name "vapoursynth")
1084 (version "26")
1085 (source (origin
1086 (method url-fetch)
1087 (uri (string-append
1088 "https://github.com/vapoursynth/vapoursynth/archive/R"
1089 version ".tar.gz"))
1090 (sha256
1091 (base32
1092 "1qbg5kg0kgrxldd0ckn1s7vy7vx2ig8nqzv6djp38fxccpzw3x9k"))))
1093 (build-system gnu-build-system)
1094 (native-inputs
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)
1097 ("cython" ,python-cython)
1098 ("libtool" ,libtool)
1099 ("pkg-config" ,pkg-config)
1100 ("python" ,python)
1101 ("yasm" ,yasm)))
1102 (inputs
1103 `(("ffmpeg" ,ffmpeg)
1104 ("libass" ,libass)
1105 ("tesseract-ocr" ,tesseract-ocr)))
1106 (arguments
1107 '(#:phases
1108 (modify-phases %standard-phases
1109 (add-after
1110 'unpack 'autogen
1111 (lambda _
1112 (zero? (system* "sh" "autogen.sh")))))))
1113 (home-page "http://www.vapoursynth.com/")
1114 (synopsis "Video processing framework")
1115 (description "VapourSynth is a C++ library and Python module for video
1116 manipulation. It aims to be a modern rewrite of Avisynth, supporting
1117 multithreading, generalized colorspaces, per frame properties, and videos with
1118 format changes.")
1119 ;; As seen from the source files.
1120 (license license:lgpl2.1+)))
1121
1122 (define-public xvid
1123 (package
1124 (name "xvid")
1125 (version "1.3.3")
1126 (source (origin
1127 (method url-fetch)
1128 (uri (string-append
1129 "http://downloads.xvid.org/downloads/xvidcore-"
1130 version ".tar.bz2"))
1131 (sha256
1132 (base32
1133 "0m5g75qvapr7xpywg6a83v5x19kw1nm9l2q48lg7jvvpba0bmqdh"))))
1134 (build-system gnu-build-system)
1135 (native-inputs `(("yasm" ,yasm)))
1136 (arguments
1137 '(#:phases
1138 (alist-cons-before
1139 'configure 'pre-configure
1140 (lambda _
1141 (chdir "build/generic")
1142 (substitute* "configure"
1143 (("#! /bin/sh") (string-append "#!" (which "sh")))))
1144 %standard-phases)
1145 ;; No 'check' target.
1146 #:tests? #f))
1147 (home-page "https://www.xvid.com/")
1148 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1149 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1150 codec library. It uses ASP features such as b-frames, global and quarter
1151 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1152 and custom quantization matrices.")
1153 (license license:gpl2+)))
1154
1155 (define-public livestreamer
1156 (package
1157 (name "livestreamer")
1158 (version "1.12.2")
1159 (source (origin
1160 (method url-fetch)
1161 (uri (string-append
1162 "https://github.com/chrippa/livestreamer/archive/v"
1163 version ".tar.gz"))
1164 (file-name (string-append "livestreamer-" version ".tar.gz"))
1165 (sha256
1166 (base32
1167 "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"))))
1168 (build-system python-build-system)
1169 (arguments
1170 '(#:tests? #f)) ; tests rely on external web servers
1171 (native-inputs
1172 `(("python-setuptools" ,python-setuptools)))
1173 (propagated-inputs
1174 `(("python-requests" ,python-requests)
1175 ("python-singledispatch" ,python-singledispatch)))
1176 (synopsis "Internet video stream viewer")
1177 (description "Livestreamer is a command-line utility that extracts streams
1178 from various services and pipes them into a video playing application.")
1179 (home-page "http://livestreamer.io/")
1180 (license license:bsd-2)))