gnu: python-paramiko: Update to 2.4.2 [security fixes].
[jackhill/guix/guix.git] / gnu / packages / video.scm
CommitLineData
39efcc9b 1;;; GNU Guix --- Functional package management for GNU
71ee51a0 2;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
945d985a 3;;; Copyright © 2014, 2015, 2016 David Thompson <davet@gnu.org>
76277052 4;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
cda163cd 5;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
1373ce7c 6;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
12f92e38 7;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca>
307ad140 8;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
e61da2e8 9;;; Copyright © 2015, 2016, 2017, 2018 Alex Vong <alexvong1995@gmail.com>
2b841707 10;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
3c8ba11a 11;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
ed6ba9cc 12;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
4df07622 13;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
4a78fd46 14;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
fe047e13 15;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
590abe01 16;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
72fa6667 17;;; Copyright © 2017 Feng Shu <tumashu@163.com>
50b97d1a 18;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
794223bc 19;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
b5b20bda 20;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
e0c40707 21;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
eb88e2c1 22;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
2973ebf5 23;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
8bbd4b01 24;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
e21f3473 25;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
e896c227 26;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
4715f92e 27;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
a0135eee 28;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
4febfdd0 29;;; Copyright © 2018 Brendan Tildesley <brendan.tildesley@openmailbox.org>
0c85d2c6 30;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
18e56ad7 31;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
39efcc9b
AE
32;;;
33;;; This file is part of GNU Guix.
34;;;
35;;; GNU Guix is free software; you can redistribute it and/or modify it
36;;; under the terms of the GNU General Public License as published by
37;;; the Free Software Foundation; either version 3 of the License, or (at
38;;; your option) any later version.
39;;;
40;;; GNU Guix is distributed in the hope that it will be useful, but
41;;; WITHOUT ANY WARRANTY; without even the implied warranty of
42;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43;;; GNU General Public License for more details.
44;;;
45;;; You should have received a copy of the GNU General Public License
46;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
47
48(define-module (gnu packages video)
fe138965 49 #:use-module (ice-9 match)
08858812 50 #:use-module (srfi srfi-1)
2b94c14c 51 #:use-module (srfi srfi-26)
ae0bdd81 52 #:use-module ((guix licenses) #:prefix license:)
e930c2a3 53 #:use-module (guix utils)
39efcc9b
AE
54 #:use-module (guix packages)
55 #:use-module (guix download)
38829eac 56 #:use-module (guix git-download)
d8841cc5 57 #:use-module (guix svn-download)
44726031 58 #:use-module (guix build-system cmake)
39efcc9b 59 #:use-module (guix build-system gnu)
0e74bb5b 60 #:use-module (guix build-system glib-or-gtk)
635f981b 61 #:use-module (guix build-system meson)
6f45e45d 62 #:use-module (guix build-system perl)
615215a5 63 #:use-module (guix build-system python)
1c1178cd 64 #:use-module (guix build-system waf)
f27f264e 65 #:use-module (guix build-system trivial)
3b02429c 66 #:use-module (gnu packages)
39efcc9b 67 #:use-module (gnu packages algebra)
72bfebf5 68 #:use-module (gnu packages audio)
f1044010 69 #:use-module (gnu packages autotools)
d5a748e8 70 #:use-module (gnu packages avahi)
76277052 71 #:use-module (gnu packages backup)
38829eac 72 #:use-module (gnu packages base)
8dd6fc51 73 #:use-module (gnu packages bison)
2973ebf5 74 #:use-module (gnu packages boost)
d5a748e8 75 #:use-module (gnu packages cdrom)
2973ebf5 76 #:use-module (gnu packages check)
fe047e13 77 #:use-module (gnu packages cmake)
39efcc9b 78 #:use-module (gnu packages compression)
e0c40707 79 #:use-module (gnu packages cpp)
f464016d 80 #:use-module (gnu packages curl)
44726031 81 #:use-module (gnu packages databases)
3a44c7bb 82 #:use-module (gnu packages dejagnu)
2973ebf5 83 #:use-module (gnu packages docbook)
e37bdc0f 84 #:use-module (gnu packages documentation)
f22e0e26 85 #:use-module (gnu packages elf)
2973ebf5 86 #:use-module (gnu packages file)
8dd6fc51 87 #:use-module (gnu packages flex)
39efcc9b 88 #:use-module (gnu packages fontutils)
c161c22a 89 #:use-module (gnu packages freedesktop)
44726031
AE
90 #:use-module (gnu packages fribidi)
91 #:use-module (gnu packages gettext)
38829eac 92 #:use-module (gnu packages ghostscript)
d5a748e8
AE
93 #:use-module (gnu packages gl)
94 #:use-module (gnu packages glib)
2cd85cf9 95 #:use-module (gnu packages guile)
fe047e13 96 #:use-module (gnu packages gnome)
d5a748e8 97 #:use-module (gnu packages gnupg)
fe047e13 98 #:use-module (gnu packages gstreamer)
44726031 99 #:use-module (gnu packages gtk)
e55354b8 100 #:use-module (gnu packages image)
b5b20bda 101 #:use-module (gnu packages imagemagick)
f48feaa2 102 #:use-module (gnu packages iso-codes)
76277052 103 #:use-module (gnu packages libidn)
c812f460 104 #:use-module (gnu packages libreoffice)
d5a748e8
AE
105 #:use-module (gnu packages linux)
106 #:use-module (gnu packages lua)
fe047e13 107 #:use-module (gnu packages m4)
3a44c7bb 108 #:use-module (gnu packages man)
d5a748e8 109 #:use-module (gnu packages mp3)
4d94b93c 110 #:use-module (gnu packages ncurses)
6f6c8b65 111 #:use-module (gnu packages ocr)
39efcc9b
AE
112 #:use-module (gnu packages perl)
113 #:use-module (gnu packages pkg-config)
a7d94b54 114 #:use-module (gnu packages popt)
d5a748e8 115 #:use-module (gnu packages pulseaudio)
39efcc9b 116 #:use-module (gnu packages python)
f48feaa2 117 #:use-module (gnu packages python-crypto)
589e3f4e 118 #:use-module (gnu packages python-web)
d5a748e8 119 #:use-module (gnu packages qt)
76277052 120 #:use-module (gnu packages rdesktop)
2973ebf5 121 #:use-module (gnu packages ruby)
76277052 122 #:use-module (gnu packages samba)
d5a748e8 123 #:use-module (gnu packages sdl)
2973ebf5
GG
124 #:use-module (gnu packages serialization)
125 #:use-module (gnu packages shells)
d5a748e8 126 #:use-module (gnu packages ssh)
6b2c6be0 127 #:use-module (gnu packages texinfo)
c426e61e 128 #:use-module (gnu packages textutils)
a7fd7b68 129 #:use-module (gnu packages tls)
1a291593 130 #:use-module (gnu packages time)
76277052 131 #:use-module (gnu packages upnp)
d5a748e8 132 #:use-module (gnu packages version-control)
870541d6 133 #:use-module (gnu packages vulkan)
bb470bd3 134 #:use-module (gnu packages web)
fe047e13 135 #:use-module (gnu packages webkit)
794223bc 136 #:use-module (gnu packages wxwidgets)
ee3b55ea 137 #:use-module (gnu packages xdisorg)
54ff0b7d 138 #:use-module (gnu packages xiph)
d5a748e8
AE
139 #:use-module (gnu packages xml)
140 #:use-module (gnu packages xorg)
148585c2 141 #:use-module (gnu packages assembly))
39efcc9b 142
6b2c6be0
SB
143(define-public aalib
144 (package
145 (name "aalib")
146 (version "1.4rc5")
147 (source (origin
148 (method url-fetch)
de67e922
LF
149 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
150 version "/" name "-" version ".tar.gz"))
6b2c6be0
SB
151 (sha256
152 (base32
153 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
154 (build-system gnu-build-system)
155 (native-inputs
156 `(("makeinfo" ,texinfo)))
157 (inputs
158 `(("ncurses" ,ncurses)))
159 (arguments
c437922a 160 `(#:phases
6b2c6be0 161 (modify-phases %standard-phases
3a4de6b2 162 (replace 'configure
014cbde6 163 (lambda* (#:key build inputs outputs #:allow-other-keys)
6b2c6be0
SB
164 ;; This old `configure' script doesn't support
165 ;; variables passed as arguments.
166 (let ((out (assoc-ref outputs "out"))
167 (ncurses (assoc-ref inputs "ncurses")))
168 (setenv "CONFIG_SHELL" (which "bash"))
3595e83d
MW
169 (invoke "./configure"
170 (string-append "--prefix=" out)
171 (string-append "--build=" build)
172 ;; The ancient config.guess is unable to
173 ;; guess the host triplet on mips64el.
174 ,@(if (string=? "mips64el-linux"
175 (%current-system))
176 '("--host=mips64el-unknown-linux-gnu")
177 '())
178 ;; The same is also true with aarch64.
179 ,@(if (string=? "aarch64-linux"
180 (%current-system))
181 '("--host=aarch64-unknown-linux-gnu")
182 '())
183 (string-append "--with-ncurses="
184 ncurses))))))))
6b2c6be0
SB
185 (home-page "http://aa-project.sourceforge.net/aalib/")
186 (synopsis "ASCII-art library")
187 (description
188 "AA-lib is a low level gfx library which does not require graphics device.
189In fact, there is no graphical output possible. AA-lib replaces those
190old-fashioned output methods with powerful ascii-art renderer.")
191 (license license:lgpl2.0+)))
192
cda163cd
TUBK
193(define-public liba52
194 (package
195 (name "liba52")
196 (version "0.7.4")
197 (source (origin
198 (method url-fetch)
8c056935
TUBK
199 (uri (string-append
200 ;; A mirror://sourceforge URI doesn't work, presumably
201 ;; because the SourceForge project is misconfigured.
202 "http://liba52.sourceforge.net/files/a52dec-" version
203 ".tar.gz"))
cda163cd
TUBK
204 (sha256
205 (base32
23da88f6 206 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
fc1adab1
AK
207 (patches (search-patches "liba52-enable-pic.patch"
208 "liba52-set-soname.patch"
209 "liba52-use-mtune-not-mcpu.patch"
210 "liba52-link-with-libm.patch"))))
cda163cd 211 (build-system gnu-build-system)
23da88f6
MW
212 ;; XXX We need to run ./bootstrap because of the build system fixes above.
213 (native-inputs
214 `(("autoconf" ,autoconf)
215 ("automake" ,automake)
216 ("libtool" ,libtool)))
412a2422 217 (arguments `(#:configure-flags '("--enable-shared")
23da88f6
MW
218 #:phases
219 (modify-phases %standard-phases
220 ;; XXX We need to run ./bootstrap because of the build
221 ;; system fixes above.
189be331 222 (replace 'bootstrap
78666a68 223 (lambda _ (invoke "sh" "bootstrap"))))))
cda163cd
TUBK
224 (home-page "http://liba52.sourceforge.net/")
225 (synopsis "ATSC A/52 stream decoder")
226 (description "liba52 is a library for decoding ATSC A/52 streams. The
227A/52 standard is used in a variety of applications, including digital
228television and DVD. It is also known as AC-3.")
ae0bdd81 229 (license license:gpl2+)))
cda163cd 230
e0884109
MW
231(define-public libmpeg2
232 (package
233 (name "libmpeg2")
234 (version "0.5.1")
235 (source (origin
236 (method url-fetch)
237 ;; A mirror://sourceforge URI doesn't work, presumably
238 ;; because the SourceForge project is misconfigured.
239 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
240 name "-" version ".tar.gz"))
241 (sha256
242 (base32
243 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
244 (inputs
245 `(("libx11" ,libx11)
246 ("libxext" ,libxext)
247 ("libxv" ,libxv)
248 ("libsm" ,libsm)
249 ("libice" ,libice)
250 ("sdl" ,sdl)))
251 (build-system gnu-build-system)
252 (home-page "http://libmpeg2.sourceforge.net/")
253 (synopsis "MPEG1 and MPEG2 video decoder library")
254 (description
255 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
256 (license license:gpl2+)))
257
82712597
MW
258(define-public libx264
259 (package
260 (name "libx264")
fac39b99 261 (version "20180810-2245")
82712597
MW
262 (source (origin
263 (method url-fetch)
4ff71cac 264 (uri (string-append "https://download.videolan.org/pub/x264/snapshots/"
bb2a9558 265 "x264-snapshot-" version "-stable.tar.bz2"))
82712597
MW
266 (sha256
267 (base32
fac39b99 268 "0f25f39imas9pcqm7lnaa0shhjmf42hdx7jxzcnvxc7qsb7lh1bv"))))
82712597
MW
269 (build-system gnu-build-system)
270 (native-inputs
271 `(("pkg-config" ,pkg-config)
a0343008 272 ("nasm" ,nasm)))
82712597
MW
273 ;; TODO: Add gpac input
274 (arguments
275 `(#:tests? #f ;no check target
276 #:configure-flags '("--enable-shared"
277 ;; Don't build the command-line program. If we
278 ;; want it later, we should do so in a different
279 ;; package to avoid a circular dependency (the x264
280 ;; program depends on ffmpeg and ffmpeg depends on
281 ;; libx264).
cb50d0c2
MW
282 "--disable-cli"
283
284 ;; On MIPS, we must pass "--disable-asm" or else
285 ;; configure fails after printing: "You specified a
286 ;; pre-MSA CPU in your CFLAGS. If you really want
287 ;; to run on such a CPU, configure with
288 ;; --disable-asm."
289 ,@(if (string-prefix? "mips"
290 (or (%current-target-system)
291 (%current-system)))
292 '("--disable-asm")
293 '()))))
4ff71cac 294 (home-page "https://www.videolan.org/developers/x264.html")
82712597
MW
295 (synopsis "H.264 video coding library")
296 (description "libx264 is an advanced encoding library for creating
297H.264 (MPEG-4 AVC) video streams.")
298 (license (list license:gpl2+ ;most files
299 license:isc ;common/x86/x86inc.asm
300 license:lgpl2.1+ ;extras/getopt.c
301 license:bsd-3 ;extras/inttypes.h
302 (license:non-copyleft ;extras/cl*.h
303 "file://extras/cl.h"
304 "See extras/cl.h in the distribution.")))))
305
2973ebf5
GG
306(define-public mkvtoolnix
307 (package
308 (name "mkvtoolnix")
309 (version "13.0.0")
310 (source
311 (origin
312 (method url-fetch)
313 (uri (string-append "https://mkvtoolnix.download/sources/"
314 name "-" version ".tar.xz"))
315 (sha256
316 (base32
317 "0hknnnnx9661igm1r73dc7aqxnnrl5a8yvyvr1nhd9ymn2klwpl5"))
318 (modules '((guix build utils)))
6cbee49d
MW
319 (snippet '(begin
320 ;; Delete bundled libraries.
321 (for-each delete-file-recursively
322 '("lib/libebml"
323 "lib/libmatroska"
324 "lib/nlohmann-json"
325 "lib/pugixml"
326 "lib/utf8-cpp"))
327 #t))))
2973ebf5
GG
328 (build-system gnu-build-system)
329 (inputs
330 `(("boost" ,boost)
331 ("bzip2" ,bzip2)
332 ("libebml" ,libebml)
333 ("flac" ,flac)
334 ("file" ,file)
335 ("libmatroska" ,libmatroska)
336 ("libogg" ,libogg)
337 ("libvorbis" ,libvorbis)
338 ("lzo" ,lzo)
339 ("pugixml" ,pugixml)
340 ("qt" ,qt)
341 ("utfcpp" ,utfcpp)
342 ("zlib" ,zlib)))
343 (native-inputs
344 `(("docbook-xsl" ,docbook-xsl)
345 ("gettext" ,gettext-minimal)
346 ("googletest" ,googletest)
347 ("libxslt" ,libxslt)
348 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
349 ("perl" ,perl)
350 ("pkg-config" ,pkg-config)
351 ("po4a" ,po4a)
352 ("ruby" ,ruby)))
353 (arguments
354 `(#:configure-flags
355 (list (string-append "--with-boost="
356 (assoc-ref %build-inputs "boost"))
357 (string-append "--with-docbook-xsl-root="
358 (assoc-ref %build-inputs "docbook-xsl")
359 "/xml/xsl/docbook-xsl-"
360 ,(package-version docbook-xsl))
361 (string-append "--with-extra-includes="
362 (assoc-ref %build-inputs "nlohmann-json-cpp")
363 "/include/nlohmann"))
364 #:phases
365 (modify-phases %standard-phases
366 (add-before 'configure 'add-googletest
367 (lambda _
368 (symlink
369 (string-append (assoc-ref %build-inputs "googletest")
370 "/include/gtest") "lib/gtest")
371 #t))
372 (replace 'build
373 (lambda _
374 (let ((-j (list "-j" (number->string (parallel-job-count)))))
6c4d1413 375 (apply invoke "rake" -j))))
2973ebf5
GG
376 (replace 'check
377 (lambda _
6c4d1413 378 (invoke "rake" "tests/unit")))
2973ebf5
GG
379 (replace 'install
380 (lambda _
6c4d1413 381 (invoke "rake" "install"))))))
2973ebf5
GG
382 (home-page "https://mkvtoolnix.download")
383 (synopsis "Tools to create, alter and inspect Matroska files")
384 (description
385 "MKVToolNix provides tools for getting information about Matroska files
386(@code{mkvinfo}), extracting tracks/data from Matroska files (@code{mkvextract})
387and creating Matroska files from other media files (@code{mkvmerge}).")
388 (license license:gpl2)))
389
7bc7ffc2
EF
390(define-public x265
391 (package
392 (name "x265")
b9d56228 393 (version "2.8")
7bc7ffc2
EF
394 (source
395 (origin
396 (method url-fetch)
397 (uri (string-append "https://download.videolan.org/videolan/x265/"
398 "x265_" version ".tar.gz"))
399 (sha256
400 (base32
b9d56228 401 "0qx8mavwdzdpkkby7n29i9av7zsnklavacwfz537mf62q2pzjnbf"))
c95c9032
LC
402 (patches (search-patches "x265-fix-ppc64le-build.patch"
403 "x265-arm-asm-primitives.patch"))
7bc7ffc2 404 (modules '((guix build utils)))
6cbee49d
MW
405 (snippet '(begin
406 (delete-file-recursively "source/compat/getopt")
407 #t))))
7bc7ffc2
EF
408 (build-system cmake-build-system)
409 (arguments
410 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
afe0c03a 411 ;; Currently the source code doesn't check for aarch64.
2b94c14c
EF
412 ,@(if (any (cute string-prefix? <> (or (%current-system)
413 (%current-target-system)))
414 '("armhf" "aarch64"))
a160778c
EF
415 '(#:configure-flags '("-DENABLE_PIC=TRUE"))
416 '())
7bc7ffc2
EF
417 #:phases
418 (modify-phases %standard-phases
419 (add-before 'configure 'prepare-build
420 (lambda _
421 (delete-file-recursively "build")
422 (chdir "source")
423 #t)))))
424 (home-page "http://x265.org/")
425 (synopsis "Library for encoding h.265/HEVC video streams")
426 (description "x265 is a H.265 / HEVC video encoder application library,
427designed to encode video or images into an H.265 / HEVC encoded bitstream.")
428 (license license:gpl2+)))
429
c426e61e
TUBK
430(define-public libass
431 (package
432 (name "libass")
449ad88b 433 (version "0.14.0")
c426e61e
TUBK
434 (source (origin
435 (method url-fetch)
436 (uri (string-append
437 "https://github.com/libass/libass/releases/download/"
438 version "/libass-" version ".tar.xz"))
439 (sha256
440 (base32
449ad88b 441 "18iqznl4mabhj9ywfsz4kwvbsplcv1jjxq50nxssvbj8my1267w8"))))
c426e61e
TUBK
442 (build-system gnu-build-system)
443 (native-inputs
444 `(("pkg-config" ,pkg-config)
449ad88b 445 ("nasm" ,nasm)))
c426e61e
TUBK
446 (propagated-inputs
447 `(("freetype" ,freetype)
448 ("fribidi" ,fribidi)
449 ("fontconfig" ,fontconfig)
450 ("harfbuzz" ,harfbuzz)
451 ("enca" ,enca)))
452 (home-page "https://github.com/libass/libass")
453 (synopsis "Subtitle rendering library for the ASS/SSA format")
454 (description "libass is a subtitle rendering library for the
455ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
ae0bdd81 456 (license license:isc)))
c426e61e 457
4d94b93c
TUBK
458(define-public libcaca
459 (package
460 (name "libcaca")
461 (version "0.99.beta19")
462 (source (origin
463 (method url-fetch)
464 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
465 version ".tar.gz"))
466 (sha256
467 (base32
468 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
469 (build-system gnu-build-system)
470 (native-inputs `(("pkg-config" ,pkg-config)))
471 (inputs
472 `(("freeglut" ,freeglut)
473 ("ftgl" ,ftgl)
43d51239 474 ("imlib2" ,imlib2)
4d94b93c
TUBK
475 ("libx11" ,libx11)
476 ("mesa" ,mesa)
477 ("ncurses" ,ncurses)
478 ("zlib" ,zlib)))
479 (home-page "http://caca.zoy.org/wiki/libcaca")
480 (synopsis "Colour ASCII-art library")
481 (description "libcaca is a graphics library that outputs text instead of
482pixels, so that it can work on older video cards or text terminals. It
483supports Unicode, 2048 colors, dithering of color images, and advanced text
484canvas operations.")
ae0bdd81 485 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2
4d94b93c 486
3bfb78dc
TUBK
487(define-public libdca
488 (package
489 (name "libdca")
649b334b 490 (version "0.0.6")
3bfb78dc
TUBK
491 (source (origin
492 (method url-fetch)
493 (uri (string-append
b8a31908 494 "https://download.videolan.org/pub/videolan/libdca/"
3bfb78dc
TUBK
495 version "/libdca-" version ".tar.bz2"))
496 (sha256
497 (base32
649b334b 498 "0h0zvcn97i9kyljdpifzi8in9xnw31fx3b3ggj96p8h0l2d8mycq"))))
3bfb78dc 499 (build-system gnu-build-system)
b8a31908 500 (home-page "https://www.videolan.org/developers/libdca.html")
3bfb78dc
TUBK
501 (synopsis "DTS Coherent Acoustics decoder")
502 (description "libdca is a library for decoding DTS Coherent Acoustics
503streams.")
ae0bdd81 504 (license license:gpl2+)))
3bfb78dc 505
99d4c455
TUBK
506(define-public libdv
507 (package
508 (name "libdv")
509 (version "1.0.0")
510 (source (origin
511 (method url-fetch)
512 (uri (string-append
de67e922
LF
513 "mirror://sourceforge/" name "/" name "/"
514 version "/" name "-" version ".tar.gz"))
99d4c455
TUBK
515 (sha256
516 (base32
517 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
518 (build-system gnu-build-system)
519 (native-inputs `(("pkg-config" ,pkg-config)))
520 (inputs `(("libxv" ,libxv)))
521 (home-page "http://libdv.sourceforge.net/")
522 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
523 (description "The Quasar DV codec (libdv) is a software codec for DV
524video, the encoding format used by most digital camcorders, typically those
525that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
526developed according to the official standards for DV video: IEC 61834 and
527SMPTE 314M.")
ae0bdd81 528 (license license:lgpl2.1+)))
99d4c455 529
15f1d02a
GG
530(define-public libmatroska
531 (package
532 (name "libmatroska")
23e24ff6 533 (version "1.4.9")
15f1d02a
GG
534 (source
535 (origin
536 (method url-fetch)
537 (uri (string-append "https://dl.matroska.org/downloads/"
0dfc7612 538 name "/" name "-" version ".tar.xz"))
15f1d02a
GG
539 (sha256
540 (base32
23e24ff6
TGR
541 "1j4mjzx6mjzfjf9hz8g4w84krf5jccmr5cyynll0j1vwv3aiv9iq"))))
542 (build-system cmake-build-system)
15f1d02a
GG
543 (inputs
544 `(("libebml" ,libebml)))
23e24ff6
TGR
545 (arguments
546 `(#:configure-flags
547 (list "-DBUILD_SHARED_LIBS=YES")
548 #:tests? #f)) ; no test suite
15f1d02a 549 (home-page "https://www.matroska.org")
cb778117 550 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
15f1d02a
GG
551 (description
552 "Matroska aims to become the standard of multimedia container formats.
cb778117 553It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
15f1d02a
GG
554of XML. EBML enables the Matroska Development Team to gain significant
555advantages in terms of future format extensibility, without breaking file
556support in old parsers.
557libebml is a C++ library to read and write EBML files.")
558 (license license:lgpl2.1)))
559
ee3b55ea
TUBK
560(define-public libva
561 (package
562 (name "libva")
486cddcd 563 (version "2.2.0")
ee3b55ea
TUBK
564 (source
565 (origin
566 (method url-fetch)
7035d2dd
MB
567 (uri (list
568 ;; Newer releases are only available on GitHub.
569 (string-append "https://github.com/01org/libva/releases/download/"
570 version "/libva-" version ".tar.bz2")
571 ;; Keep the old URL around for compatibility.
572 (string-append "https://www.freedesktop.org/software/vaapi/releases/"
573 "libva/libva-" version "/libva-" version ".tar.bz2")))
ee3b55ea 574 (sha256
486cddcd 575 (base32 "1wjfrs261fp9wkhgpmrlz5smnhxrmsk31way646x6i2mg16a0v3g"))))
ee3b55ea
TUBK
576 (build-system gnu-build-system)
577 (native-inputs
578 `(("pkg-config" ,pkg-config)))
579 (inputs
580 `(("libdrm" ,libdrm)
581 ("libx11" ,libx11)
582 ("libxext" ,libxext)
583 ("libxfixes" ,libxfixes)
3ee7b4cc
EF
584 ("mesa" ,mesa)
585 ("wayland" ,wayland)))
372cf039
TUBK
586 (arguments
587 `(#:phases
588 (modify-phases %standard-phases
589 (add-before
590 'build 'fix-dlopen-paths
591 (lambda* (#:key outputs #:allow-other-keys)
592 (let ((out (assoc-ref outputs "out")))
593 (substitute* "va/drm/va_drm_auth_x11.c"
594 (("\"libva-x11\\.so\\.%d\"")
d5c88f16
MW
595 (string-append "\"" out "/lib/libva-x11.so.%d\"")))
596 #t))))
372cf039
TUBK
597 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
598 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
599 #:configure-flags
600 (list (string-append "--with-drivers-path="
601 (assoc-ref %build-inputs "mesa") "/lib/dri"))
602 ;; However, we can't write to mesa's store directory, so override the
603 ;; following make variable to install the dummy driver to libva's
604 ;; $prefix/lib/dri directory.
605 #:make-flags
606 (list (string-append "dummy_drv_video_ladir="
607 (assoc-ref %outputs "out") "/lib/dri"))))
5c1c2254 608 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
ee3b55ea
TUBK
609 (synopsis "Video acceleration library")
610 (description "The main motivation for VA-API (Video Acceleration API) is
611to enable hardware accelerated video decode/encode at various
612entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
613standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
ae0bdd81 614 (license license:expat)))
ee3b55ea 615
39efcc9b
AE
616(define-public ffmpeg
617 (package
618 (name "ffmpeg")
eb9c0d20 619 (version "4.0.2")
39efcc9b
AE
620 (source (origin
621 (method url-fetch)
a1121a7f
EF
622 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
623 version ".tar.xz"))
39efcc9b
AE
624 (sha256
625 (base32
eb9c0d20 626 "15rgzcmdccy4flajs63gkz4n3k24wkkg50r13l1r83lrxg4hqp59"))))
39efcc9b
AE
627 (build-system gnu-build-system)
628 (inputs
c4c4cc05 629 `(("fontconfig" ,fontconfig)
39efcc9b 630 ("freetype" ,freetype)
8fd43200 631 ("frei0r-plugins" ,frei0r-plugins)
c8dab7f4 632 ("gnutls" ,gnutls)
e816b348 633 ("opus" ,opus)
71241192 634 ("ladspa" ,ladspa)
d4f12db8 635 ("lame" ,lame)
c426e61e 636 ("libass" ,libass)
5d3609e4 637 ("libbluray" ,libbluray)
4d94b93c 638 ("libcaca" ,libcaca)
cc6c0170 639 ("libcdio-paranoia" ,libcdio-paranoia)
39efcc9b 640 ("libtheora" ,libtheora)
bb3df15e 641 ("libva" ,libva)
f88f0d20 642 ("libvdpau" ,libvdpau)
39efcc9b 643 ("libvorbis" ,libvorbis)
dc55b8b2 644 ("libvpx" ,libvpx)
f88f0d20 645 ("libx11" ,libx11)
549381d6 646 ("libx264" ,libx264)
f88f0d20 647 ("mesa" ,mesa)
71241192 648 ("openal" ,openal)
71241192 649 ("pulseaudio" ,pulseaudio)
85bc5434 650 ("sdl" ,sdl2)
72bfebf5 651 ("soxr" ,soxr)
c4c4cc05 652 ("speex" ,speex)
72bfebf5 653 ("twolame" ,twolame)
6d777ff9 654 ("vidstab" ,vidstab)
d505801a 655 ("x265" ,x265)
67932f86 656 ("xvid" ,xvid)
b3546174 657 ("zlib" ,zlib)))
c4c4cc05
JD
658 (native-inputs
659 `(("bc" ,bc)
39efcc9b
AE
660 ("perl" ,perl)
661 ("pkg-config" ,pkg-config)
824d9dc3 662 ("texinfo" ,texinfo)
39efcc9b
AE
663 ("python" ,python-2) ; scripts use interpreter python2
664 ("speex" ,speex)
c4c4cc05 665 ("yasm" ,yasm)))
39efcc9b 666 (arguments
31f9322e 667 `(#:test-target "fate"
12f92e38
AP
668 #:configure-flags
669 ;; possible additional inputs:
670 ;; --enable-avisynth enable reading of AviSynth script
671 ;; files [no]
12f92e38
AP
672 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
673 ;; --enable-libcelt enable CELT decoding via libcelt [no]
674 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
675 ;; and libraw1394 [no]
676 ;; --enable-libfaac enable AAC encoding via libfaac [no]
677 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
678 ;; --enable-libflite enable flite (voice synthesis) support via
679 ;; libflite [no]
680 ;; --enable-libgme enable Game Music Emu via libgme [no]
681 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
682 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
683 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
684 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
685 ;; --enable-libnut enable NUT (de)muxing via libnut,
686 ;; native (de)muxer exists [no]
687 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
688 ;; libopencore-amrnb [no]
689 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
690 ;; libopencore-amrwb [no]
691 ;; --enable-libopencv enable video filtering via libopencv [no]
692 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
693 ;; OpenJPEG [no]
694 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
695 ;; --enable-libschroedinger enable Dirac de/encoding via
696 ;; libschroedinger [no]
697 ;; --enable-libshine enable fixed-point MP3 encoding via
698 ;; libshine [no]
699 ;; --enable-libssh enable SFTP protocol via libssh [no]
700 ;; (libssh2 does not work)
701 ;; --enable-libstagefright-h264 enable H.264 decoding via
702 ;; libstagefright [no]
703 ;; --enable-libutvideo enable Ut Video encoding and decoding via
704 ;; libutvideo [no]
705 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
12f92e38
AP
706 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
707 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
708 ;; libvo-amrwbenc [no]
709 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
710 ;; --enable-libxavs enable AVS encoding via xavs [no]
711 ;; --enable-libzmq enable message passing via libzmq [no]
712 ;; --enable-libzvbi enable teletext support via libzvbi [no]
713 ;; --enable-opencl enable OpenCL code
12f92e38
AP
714 '("--enable-avresample"
715 "--enable-gpl" ; enable optional gpl licensed parts
716 "--enable-shared"
8fd43200 717 "--enable-frei0r"
12f92e38 718 "--enable-fontconfig"
c8dab7f4 719 "--enable-gnutls"
12f92e38
AP
720 "--enable-ladspa"
721 "--enable-libass"
722 "--enable-libbluray"
723 "--enable-libcaca"
724 "--enable-libcdio"
725 "--enable-libfreetype"
726 "--enable-libmp3lame"
727 "--enable-libopus"
728 "--enable-libpulse"
12f92e38
AP
729 "--enable-libsoxr"
730 "--enable-libspeex"
731 "--enable-libtheora"
732 "--enable-libtwolame"
6d777ff9 733 "--enable-libvidstab"
12f92e38
AP
734 "--enable-libvorbis"
735 "--enable-libvpx"
736 "--enable-libxvid"
737 "--enable-libx264"
d505801a 738 "--enable-libx265"
12f92e38 739 "--enable-openal"
f88f0d20 740 "--enable-opengl"
12f92e38
AP
741
742 "--enable-runtime-cpudetect"
743
1e2a36e1
EF
744 ;; The HTML pages take 7.2 MiB
745 "--disable-htmlpages"
746
747 ;; The static libraries are 23 MiB
748 "--disable-static"
749
12f92e38
AP
750 ;; Runtime cpu detection is not implemented on
751 ;; MIPS, so we disable some features.
752 "--disable-mips32r2"
c5e1fcd0 753 "--disable-mipsdsp"
12f92e38
AP
754 "--disable-mipsdspr2"
755 "--disable-mipsfpu")
31f9322e 756 #:phases
f2feb0ce
LC
757 (modify-phases %standard-phases
758 (replace
39efcc9b
AE
759 'configure
760 ;; configure does not work followed by "SHELL=..." and
761 ;; "CONFIG_SHELL=..."; set environment variables instead
762 (lambda* (#:key outputs configure-flags #:allow-other-keys)
763 (let ((out (assoc-ref outputs "out")))
764 (substitute* "configure"
47734a56 765 (("#! /bin/sh") (string-append "#!" (which "sh"))))
39efcc9b
AE
766 (setenv "SHELL" (which "bash"))
767 (setenv "CONFIG_SHELL" (which "bash"))
3918ed73
MW
768 (apply invoke
769 "./configure"
770 (string-append "--prefix=" out)
771 ;; Add $libdir to the RUNPATH of all the binaries.
772 (string-append "--extra-ldflags=-Wl,-rpath="
773 out "/lib")
774 configure-flags))))
457e528e
LC
775 (add-before
776 'check 'set-ld-library-path
777 (lambda _
778 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
779 ;; running tests.
780 (let* ((dso (find-files "." "\\.so$"))
781 (path (string-join (map dirname dso) ":")))
782 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
783 (setenv "LD_LIBRARY_PATH" path)
27350ef8 784 #t))))))
702bfbf1 785 (home-page "https://www.ffmpeg.org/")
39efcc9b
AE
786 (synopsis "Audio and video framework")
787 (description "FFmpeg is a complete, cross-platform solution to record,
788convert and stream audio and video. It includes the libavcodec
789audio/video codec library.")
ae0bdd81 790 (license license:gpl2+)))
d5a748e8 791
06079c19
RH
792(define-public ffmpeg-3.4
793 (package
794 (inherit ffmpeg)
0a08ea2a 795 (version "3.4.4")
06079c19
RH
796 (source (origin
797 (method url-fetch)
798 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
799 version ".tar.xz"))
800 (sha256
801 (base32
0a08ea2a 802 "1iizgnhjbhar9y1ykqlj1czqanlv24knkfq5vvfnppv5x00pcvrq"))))))
06079c19 803
940778c7
LC
804(define-public ffmpeg-2.8
805 (package
806 (inherit ffmpeg)
7c9e27e8 807 (version "2.8.15")
940778c7
LC
808 (source (origin
809 (method url-fetch)
810 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
811 version ".tar.xz"))
812 (sha256
813 (base32
7c9e27e8 814 "065xbvnfmxfbfrc14cavpqyd2slil99vcjksw4ndb7w8zdh0wp3v"))))
940778c7
LC
815 (arguments
816 (substitute-keyword-arguments (package-arguments ffmpeg)
817 ((#:configure-flags flags)
818 `(map (lambda (flag)
819 (if (string=? flag "--disable-mipsdsp")
820 "--disable-mipsdspr1"
821 flag))
822 ,flags))))))
823
4febfdd0
BT
824(define-public ffmpegthumbnailer
825 (package
826 (name "ffmpegthumbnailer")
827 (version "2.2.0")
828 (source (origin
829 (method url-fetch)
830 (uri (string-append "https://github.com/dirkvdb/"
831 name "/archive/" version ".tar.gz"))
832 (sha256
833 (base32
834 "13qs4iwd4l3iiim30s5051n80z0vgsnikym8vsn321cnm9algiwb"))))
835 (build-system cmake-build-system)
836 (native-inputs
837 `(("pkg-config" ,pkg-config)))
838 (inputs
839 `(("ffmpeg" ,ffmpeg)
840 ("libjpeg-turbo" ,libjpeg-turbo)
841 ("libpng" ,libpng)
842 ("gvfs" ,gvfs)))
843 (arguments
844 `(#:configure-flags (list "-DENABLE_GIO=ON" "-DENABLE_THUMBNAILER=ON")))
845 (home-page "https://github.com/dirkvdb/ffmpegthumbnailer")
846 (synopsis "Create thumbnails from video files")
847 (description "FFmpegthumbnailer is a lightweight video thumbnailer that
848can be used by file managers to create thumbnails for your video files. The
849thumbnailer uses ffmpeg to decode frames from the video files, so supported
850videoformats depend on the configuration flags of ffmpeg.")
851 (license license:gpl2+)))
852
5f9a9945
MB
853;; Fix build with newer x264.
854(define %vlc-libx264-compat.patch
855 (origin
856 (method url-fetch)
857 (uri (string-append "https://git.videolan.org/?p=vlc.git;a=patch;h="
858 "a8953ba707cca1f2de372ca24513296bcfcdaaa8"))
859 (file-name "vlc-libx264-compat.patch")
860 (sha256
861 (base32
862 "04igckbdp3sbp8vh0ihmhcf3yjyyk9r3cd5dm9mn9j6vipi1dg3g"))))
863
d5a748e8
AE
864(define-public vlc
865 (package
866 (name "vlc")
091ef8c9 867 (version "3.0.4")
d5a748e8
AE
868 (source (origin
869 (method url-fetch)
870 (uri (string-append
a134cc8e 871 "https://download.videolan.org/pub/videolan/vlc/"
324c049f
LF
872 (car (string-split version #\-))
873 "/vlc-" version ".tar.xz"))
5f9a9945 874 (patches (list %vlc-libx264-compat.patch))
d5a748e8
AE
875 (sha256
876 (base32
091ef8c9 877 "17jsq0zqpqyxw4ckvjba0hf6zk8ywc4wf8sy3z03hh3ij0vxpwq1"))))
d5a748e8
AE
878 (build-system gnu-build-system)
879 (native-inputs
76277052
MW
880 `(("flex" ,flex)
881 ("bison" ,bison)
882 ("gettext" ,gettext-minimal)
883 ("git" ,git) ; needed for a test
d5a748e8
AE
884 ("pkg-config" ,pkg-config)))
885 ;; FIXME: Add optional inputs once available.
886 (inputs
887 `(("alsa-lib" ,alsa-lib)
888 ("avahi" ,avahi)
889 ("dbus" ,dbus)
76277052 890 ("eudev" ,eudev)
d5a748e8 891 ("flac" ,flac)
76277052 892 ("ffmpeg" ,ffmpeg)
d5a748e8
AE
893 ("fontconfig" ,fontconfig)
894 ("freetype" ,freetype)
76277052 895 ("fribidi" ,fribidi)
d5a748e8 896 ("gnutls" ,gnutls)
8824da4c 897 ("liba52" ,liba52)
76277052
MW
898 ("libarchive" ,libarchive)
899 ("libass" ,libass)
900 ("libavc1394" ,libavc1394)
901 ("libbluray" ,libbluray)
902 ("libcaca" ,libcaca)
d5a748e8 903 ("libcddb" ,libcddb)
76277052 904 ("libdca" ,libdca)
72b6a894 905 ("libdvbpsi" ,libdvbpsi)
76277052
MW
906 ("libdvdnav" ,libdvdnav)
907 ("libdvdread" ,libdvdread)
908 ("libebml" ,libebml)
d5a748e8 909 ("libgcrypt" ,libgcrypt)
76277052 910 ("libidn" ,libidn)
d5a748e8
AE
911 ("libkate" ,libkate)
912 ("libmad" ,libmad)
76277052
MW
913 ("libmatroska" ,libmatroska)
914 ("libmodplug" ,libmodplug)
915 ("libmpeg2" ,libmpeg2)
d5a748e8
AE
916 ("libogg" ,libogg)
917 ("libpng" ,libpng)
76277052
MW
918 ("libraw1394" ,libraw1394)
919 ("librsvg" ,librsvg)
d5a748e8 920 ("libsamplerate" ,libsamplerate)
76277052 921 ("libsecret" ,libsecret)
d5a748e8 922 ("libssh2" ,libssh2)
76277052
MW
923 ("libupnp" ,libupnp)
924 ("libva" ,libva)
925 ("libvdpau" ,libvdpau)
d5a748e8 926 ("libvorbis" ,libvorbis)
76277052 927 ("libvpx" ,libvpx)
d5a748e8 928 ("libtheora" ,libtheora)
76277052 929 ("libx264" ,libx264)
d5a748e8 930 ("libxext" ,libxext)
c161c22a 931 ("libxi" ,libxi)
d5a748e8
AE
932 ("libxinerama" ,libxinerama)
933 ("libxml2" ,libxml2)
934 ("libxpm" ,libxpm)
2aaa5729 935 ("livemedia-utils" ,livemedia-utils)
76277052 936 ("lua" ,lua-5.2)
d5a748e8
AE
937 ("mesa" ,mesa)
938 ("opus" ,opus)
939 ("perl" ,perl)
940 ("pulseaudio" ,pulseaudio)
941 ("python" ,python-wrapper)
552c3e95 942 ("qtbase" ,qtbase)
76277052 943 ("qtsvg" ,qtsvg)
552c3e95 944 ("qtx11extras" ,qtx11extras)
76277052 945 ("samba" ,samba)
d5a748e8
AE
946 ("sdl" ,sdl)
947 ("sdl-image" ,sdl-image)
948 ("speex" ,speex)
76277052
MW
949 ("speexdsp" ,speexdsp)
950 ("taglib" ,taglib)
951 ("twolame" ,twolame)
952 ("unzip" ,unzip)
953 ("wayland" ,wayland)
954 ("wayland-protocols" ,wayland-protocols)
8f5f6c92 955 ("x265" ,x265)
d5a748e8
AE
956 ("xcb-util-keysyms" ,xcb-util-keysyms)))
957 (arguments
958 `(#:configure-flags
eb1f2420 959 `("CXXFLAGS=-std=gnu++11"
76277052 960 "BUILDCC=gcc"
d5a748e8
AE
961 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
962 (assoc-ref %build-inputs "ffmpeg")
cd76fbde
LC
963 "/lib")) ;needed for the tests
964
965 #:phases
966 (modify-phases %standard-phases
2d2e97bd 967 (add-after 'unpack 'patch-source
2aaa5729
CL
968 (lambda* (#:key inputs #:allow-other-keys)
969 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
2d2e97bd 970 (substitute* "configure"
2aaa5729
CL
971 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
972 (string-append "LIVE555_PREFIX=" livemedia-utils)))
2d2e97bd
MB
973 ;; Some of the tests require using the display to test out VLC,
974 ;; which fails in our sandboxed build system
975 (substitute* "test/run_vlc.sh"
976 (("./vlc --ignore-config") "echo"))
76277052
MW
977
978 ;; modules/text_renderer/freetype/text_layout.c uses a
979 ;; now-deprecated interface 'fribidi_get_par_embedding_levels'
980 ;; from fribidi.h, so for now we enable the use of deprecated
981 ;; fribidi interfaces from this file.
982 ;; FIXME: Try removing this for vlc >= 3.0.3.
983 (substitute* "modules/text_renderer/freetype/text_layout.c"
984 (("# define FRIBIDI_NO_DEPRECATED 1") ""))
985
c7d901c1 986 ;; Fix build against Qt 5.11.
76277052 987 (substitute* "modules/gui/qt/actions_manager.cpp"
c7d901c1
CL
988 (("#include <vlc_keys.h>") "#include <vlc_keys.h>
989#include <QAction>"))
76277052 990 (substitute* "modules/gui/qt/components/simple_preferences.cpp"
c7d901c1
CL
991 (("#include <QFont>") "#include <QFont>
992#include <QButtonGroup>"))
2aaa5729 993 #t)))
76277052 994 (add-after 'strip 'regenerate-plugin-cache
cd76fbde
LC
995 (lambda* (#:key outputs #:allow-other-keys)
996 ;; The 'install-exec-hook' rule in the top-level Makefile.am
997 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
998 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
999 ;; it references. Thus, we first reset the timestamps of all
1000 ;; these files, and then regenerate the cache such that the
1001 ;; mtimes it includes are always zero instead of being dependent
1002 ;; on the build time.
1003 (let* ((out (assoc-ref outputs "out"))
1004 (pkglibdir (string-append out "/lib/vlc"))
1005 (plugindir (string-append pkglibdir "/plugins"))
1006 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
1007 ;; TODO: Factorize 'reset-timestamps'.
1008 (for-each (lambda (file)
1009 (let ((s (lstat file)))
1010 (unless (eq? (stat:type s) 'symlink)
76277052 1011 (utime file 1 1))))
cd76fbde 1012 (find-files plugindir))
76277052
MW
1013 (invoke cachegen plugindir))))
1014 (add-after 'install 'wrap-executable
1015 (lambda* (#:key outputs #:allow-other-keys)
1016 (let ((out (assoc-ref outputs "out"))
1017 (plugin-path (getenv "QT_PLUGIN_PATH")))
1018 (wrap-program (string-append out "/bin/vlc")
1019 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
1020 #t)))))
d5a748e8
AE
1021 (home-page "https://www.videolan.org/")
1022 (synopsis "Audio and video framework")
1023 (description "VLC is a cross-platform multimedia player and framework
1024that plays most multimedia files as well as DVD, Audio CD, VCD, and various
1025treaming protocols.")
ae0bdd81 1026 (license license:gpl2+)))
ace69243
AE
1027
1028(define-public mplayer
1029 (package
1030 (name "mplayer")
e71b20e5 1031 (version "1.3.0")
ace69243
AE
1032 (source (origin
1033 (method url-fetch)
1034 (uri (string-append
ebde7c7a 1035 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
ace69243
AE
1036 version ".tar.xz"))
1037 (sha256
1038 (base32
e71b20e5 1039 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
ace69243
AE
1040 (build-system gnu-build-system)
1041 ;; FIXME: Add additional inputs once available.
1042 (native-inputs
1043 `(("pkg-config" ,pkg-config)))
1044 (inputs
1045 `(("alsa-lib" ,alsa-lib)
1046 ("cdparanoia" ,cdparanoia)
21e6428d 1047 ("ffmpeg" ,ffmpeg-3.4)
778a6a8b 1048 ("fontconfig" ,fontconfig)
ace69243 1049 ("freetype" ,freetype)
778a6a8b 1050;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
ace69243 1051 ("lame" ,lame)
778a6a8b 1052 ("libass" ,libass)
b3546174
MW
1053 ("libdvdcss" ,libdvdcss)
1054 ("libdvdnav" ,libdvdnav)
ace69243 1055 ("libjpeg" ,libjpeg)
778a6a8b
EF
1056 ("libmpeg2" ,libmpeg2)
1057 ("libmpg123" ,mpg123) ; audio codec for MP3
ace69243
AE
1058 ("libpng" ,libpng)
1059 ("libtheora" ,libtheora)
778a6a8b 1060 ("libvdpau" ,libvdpau)
ace69243
AE
1061 ("libvorbis" ,libvorbis)
1062 ("libx11" ,libx11)
778a6a8b 1063 ("libx264" ,libx264)
ace69243
AE
1064 ("libxinerama" ,libxinerama)
1065 ("libxv" ,libxv)
778a6a8b 1066 ("libxxf86dga" ,libxxf86dga)
ace69243 1067 ("mesa" ,mesa)
778a6a8b 1068 ("opus" ,opus)
ace69243
AE
1069 ("perl" ,perl)
1070 ("pulseaudio" ,pulseaudio)
1071 ("python" ,python-wrapper)
1072 ("sdl" ,sdl)
1073 ("speex" ,speex)
1074 ("yasm" ,yasm)
1075 ("zlib" ,zlib)))
1076 (arguments
1077 `(#:tests? #f ; no test target
1078 #:phases
ebde7c7a
EF
1079 (modify-phases %standard-phases
1080 (replace 'configure
ace69243
AE
1081 ;; configure does not work followed by "SHELL=..." and
1082 ;; "CONFIG_SHELL=..."; set environment variables instead
1083 (lambda* (#:key inputs outputs #:allow-other-keys)
1084 (let ((out (assoc-ref outputs "out"))
1085 (libx11 (assoc-ref inputs "libx11")))
1086 (substitute* "configure"
2564b7c2 1087 (("#! /bin/sh") (string-append "#!" (which "sh"))))
ace69243
AE
1088 (setenv "SHELL" (which "bash"))
1089 (setenv "CONFIG_SHELL" (which "bash"))
1fe5791d 1090 (invoke "./configure"
ace69243
AE
1091 (string-append "--extra-cflags=-I"
1092 libx11 "/include") ; to detect libx11
ebde7c7a 1093 "--disable-ffmpeg_a" ; disables bundled ffmpeg
ace69243 1094 (string-append "--prefix=" out)
fe138965
MW
1095 ;; Enable runtime cpu detection where supported,
1096 ;; and choose a suitable target.
1097 ,@(match (or (%current-target-system)
1098 (%current-system))
1099 ("x86_64-linux"
1100 '("--enable-runtime-cpudetection"
1101 "--target=x86_64-linux"))
1102 ("i686-linux"
1103 '("--enable-runtime-cpudetection"
1104 "--target=i686-linux"))
1105 ("mips64el-linux"
f0d6d835
MW
1106 '("--target=mips3-linux"))
1107 (_ (list (string-append
1108 "--target="
1109 (or (%current-target-system)
1110 (nix-system->gnu-triplet
1111 (%current-system)))))))
1fe5791d 1112 "--disable-iwmmxt")))))))
ebde7c7a 1113 (home-page "https://www.mplayerhq.hu/design7/news.html")
ace69243
AE
1114 (synopsis "Audio and video player")
1115 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
1116Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
1117NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
1118SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
ae0bdd81 1119 (license license:gpl2)))
d0ed39be 1120
1c1178cd
TUBK
1121(define-public mpv
1122 (package
1123 (name "mpv")
e97454b6 1124 (version "0.29.0")
1c1178cd
TUBK
1125 (source (origin
1126 (method url-fetch)
1127 (uri (string-append
1128 "https://github.com/mpv-player/mpv/archive/v" version
1129 ".tar.gz"))
1130 (sha256
1131 (base32
e97454b6 1132 "06bk8836brzik1qmq8kycwg5n35r438sd2176k6msjg5rrwghakp"))
1c1178cd
TUBK
1133 (file-name (string-append name "-" version ".tar.gz"))))
1134 (build-system waf-build-system)
1135 (native-inputs
832d60dc 1136 `(("perl" ,perl) ; for zsh completion file
1c1178cd
TUBK
1137 ("pkg-config" ,pkg-config)
1138 ("python-docutils" ,python-docutils)))
3440f12a 1139 ;; Missing features: libguess, V4L2
1c1178cd
TUBK
1140 (inputs
1141 `(("alsa-lib" ,alsa-lib)
1142 ("enca" ,enca)
06079c19 1143 ("ffmpeg" ,ffmpeg)
2d8781a4 1144 ("jack" ,jack-1)
1c1178cd
TUBK
1145 ("ladspa" ,ladspa)
1146 ("lcms" ,lcms)
1147 ("libass" ,libass)
1148 ("libbluray" ,libbluray)
1149 ("libcaca" ,libcaca)
1150 ("libbs2b" ,libbs2b)
1151 ("libcdio-paranoia" ,libcdio-paranoia)
1152 ("libdvdread" ,libdvdread)
1153 ("libdvdnav" ,libdvdnav)
1154 ("libjpeg" ,libjpeg)
1155 ("libva" ,libva)
81c29ccc 1156 ("libvdpau" ,libvdpau)
1c1178cd
TUBK
1157 ("libx11" ,libx11)
1158 ("libxext" ,libxext)
1159 ("libxinerama" ,libxinerama)
1160 ("libxrandr" ,libxrandr)
1161 ("libxscrnsaver" ,libxscrnsaver)
1162 ("libxv" ,libxv)
e66f0dd2
AP
1163 ;; XXX: lua > 5.2 is not currently supported; see
1164 ;; waftools/checks/custom.py
1165 ("lua" ,lua-5.2)
1c1178cd
TUBK
1166 ("mesa" ,mesa)
1167 ("mpg123" ,mpg123)
1168 ("pulseaudio" ,pulseaudio)
1169 ("rsound" ,rsound)
870541d6 1170 ("shaderc" ,shaderc)
08899ee9 1171 ("vulkan-headers" ,vulkan-headers)
e6fcf903 1172 ("vulkan-loader" ,vulkan-loader)
f0b8d83a 1173 ("waf" ,python-waf)
3440f12a 1174 ("wayland" ,wayland)
abc5ef5a 1175 ("wayland-protocols" ,wayland-protocols)
c695fb76 1176 ("libxkbcommon" ,libxkbcommon)
1c1178cd
TUBK
1177 ("youtube-dl" ,youtube-dl)
1178 ("zlib" ,zlib)))
1179 (arguments
1180 '(#:phases
1181 (modify-phases %standard-phases
1182 (add-before
f8503e2b 1183 'configure 'setup-waf
1c1178cd
TUBK
1184 (lambda* (#:key inputs #:allow-other-keys)
1185 (copy-file (assoc-ref inputs "waf") "waf")
d39260dc
MW
1186 (setenv "CC" "gcc")
1187 #t)))
98c8b963 1188 #:configure-flags (list "--enable-libmpv-shared"
43ba5dd4
EF
1189 "--enable-cdda"
1190 "--enable-dvdread"
1191 "--enable-dvdnav"
98c8b963
EF
1192 "--enable-zsh-comp"
1193 "--disable-build-date")
1c1178cd
TUBK
1194 ;; No check function defined.
1195 #:tests? #f))
581873b5 1196 (home-page "https://mpv.io/")
1c1178cd
TUBK
1197 (synopsis "Audio and video player")
1198 (description "mpv is a general-purpose audio and video player. It is a
1199fork of mplayer2 and MPlayer. It shares some features with the former
1200projects while introducing many more.")
ae0bdd81 1201 (license license:gpl2+)))
1c1178cd 1202
0e74bb5b
AG
1203(define-public gnome-mpv
1204 (package
1205 (name "gnome-mpv")
98184e56 1206 (version "0.15")
0e74bb5b
AG
1207 (source
1208 (origin
1209 (method url-fetch)
1210 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
1211 "/download/v" version "/gnome-mpv-" version
1212 ".tar.xz"))
1213 (sha256
1214 (base32
98184e56 1215 "1y47abkidxh1il0bvq8r3dglwn3ggsy41x2n7ic3x23wvvcqmq74"))))
0e74bb5b
AG
1216 (native-inputs
1217 `(("intltool" ,intltool)
1218 ("pkg-config" ,pkg-config)))
1219 (inputs
1220 `(("gtk+" ,gtk+)
1221 ("libepoxy" ,libepoxy)
1222 ("mpv" ,mpv)))
1223 (build-system glib-or-gtk-build-system)
1224 (home-page "https://github.com/gnome-mpv/gnome-mpv")
1225 (synopsis "GTK+ frontend for the mpv media player")
1226 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
1227GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
1228access to mpv's powerful playback capabilities.")
1229 (license license:gpl3+)))
1230
d0ed39be
DT
1231(define-public libvpx
1232 (package
1233 (name "libvpx")
8a464433 1234 (version "1.7.0")
d0ed39be 1235 (source (origin
8a464433
MB
1236 ;; XXX: Upstream does not provide tarballs for > 1.6.1.
1237 (method git-fetch)
1238 (uri (git-reference
1239 (url "https://chromium.googlesource.com/webm/libvpx")
1240 (commit (string-append "v" version))))
1241 (file-name (git-file-name name version))
d0ed39be
DT
1242 (sha256
1243 (base32
8a464433 1244 "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6"))
c7c49446 1245 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
d0ed39be
DT
1246 (build-system gnu-build-system)
1247 (arguments
e896c227 1248 `(#:configure-flags (list "--enable-shared"
0e47b4e7
EF
1249 "--as=yasm"
1250 ;; Limit size to avoid CVE-2015-1258
1251 "--size-limit=16384x16384"
e896c227
MB
1252 (string-append "--prefix=" (assoc-ref %outputs "out")))
1253 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
1254 (assoc-ref %outputs "out") "/lib"))
1255 #:phases (modify-phases %standard-phases
1256 (replace 'configure
1257 (lambda* (#:key configure-flags #:allow-other-keys)
1258 ;; The configure script does not understand some of the GNU
1259 ;; options, so we only add the flags specified above.
1260 (apply invoke "./configure" configure-flags))))
4f8f15cd 1261 #:tests? #f)) ; no check target
d0ed39be
DT
1262 (native-inputs
1263 `(("perl" ,perl)
1264 ("yasm" ,yasm)))
1265 (synopsis "VP8/VP9 video codec")
1266 (description "libvpx is a codec for the VP8/VP9 video compression format.")
ae0bdd81 1267 (license license:bsd-3)
ad7664f6 1268 (home-page "https://www.webmproject.org/")))
615215a5
LC
1269
1270(define-public youtube-dl
1271 (package
1272 (name "youtube-dl")
d9303740 1273 (version "2018.09.08")
615215a5
LC
1274 (source (origin
1275 (method url-fetch)
39dc7032 1276 (uri (string-append "https://yt-dl.org/downloads/"
615215a5
LC
1277 version "/youtube-dl-"
1278 version ".tar.gz"))
1279 (sha256
1280 (base32
d9303740 1281 "0vwc4faqdddrb3nm4fzmkr60n5rc2zwyy8jwrrjad60kcp8isf05"))))
615215a5 1282 (build-system python-build-system)
2ad9515c
AV
1283 (arguments
1284 ;; The problem here is that the directory for the man page and completion
1285 ;; files is relative, and for some reason, setup.py uses the
1286 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
1287 ;; So, we need pass the prefix directly. In addition, make sure the Bash
1288 ;; completion file is called 'youtube-dl' rather than
1289 ;; 'youtube-dl.bash-completion'.
31c58006
LF
1290 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
1291 #:phases (modify-phases %standard-phases
2ad9515c
AV
1292 (add-before 'install 'fix-the-data-directories
1293 (lambda* (#:key outputs #:allow-other-keys)
1294 (let ((prefix (assoc-ref outputs "out")))
1295 (mkdir "bash-completion")
1296 (rename-file "youtube-dl.bash-completion"
1297 "bash-completion/youtube-dl")
1298 (substitute* "setup.py"
1299 (("youtube-dl\\.bash-completion")
1300 "bash-completion/youtube-dl")
1301 (("'etc/")
1302 (string-append "'" prefix "/etc/"))
1303 (("'share/")
caa8de70
TGR
1304 (string-append "'" prefix "/share/")))
1305 #t))))))
615215a5
LC
1306 (synopsis "Download videos from YouTube.com and other sites")
1307 (description
b798dfde 1308 "Youtube-dl is a small command-line program to download videos from
1c911690 1309YouTube.com and many more sites.")
39dc7032 1310 (home-page "https://yt-dl.org")
ae0bdd81 1311 (license license:public-domain)))
e6bdb36a 1312
794223bc
CM
1313(define-public youtube-dl-gui
1314 (package
1315 (name "youtube-dl-gui")
1316 (version "0.3.8")
1317 (source
1318 (origin
1319 (method url-fetch)
1320 (uri (pypi-uri "Youtube-DLG" version))
1321 (sha256
1322 (base32
1323 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
1324 (build-system python-build-system)
1325 (arguments
1326 ;; In Guix, wxpython has not yet been packaged for Python 3.
1327 `(#:python ,python-2
1328 ;; This package has no tests.
1329 #:tests? #f
1330 #:phases
1331 (modify-phases %standard-phases
1332 (add-before 'build 'patch-source
1333 (lambda* (#:key inputs #:allow-other-keys)
1334 ;; The youtube-dl-gui program lets you configure options. Some of
1335 ;; them are problematic, so we change their defaults.
1336 (substitute* "youtube_dl_gui/optionsmanager.py"
1337 ;; When this is true, the builder process will try (and fail) to
1338 ;; write logs to the builder user's home directory.
1339 (("'enable_log': True") "'enable_log': False")
1340 ;; This determines which youtube-dl program youtube-dl-gui will
1341 ;; run. If we don't set this, then youtube-dl-gui might download
1342 ;; an arbitrary copy from the Internet into the user's home
1343 ;; directory and run it, so let's make sure youtube-dl-gui uses
1344 ;; the youtube-dl from the inputs by default.
1345 (("'youtubedl_path': self.config_path")
1346 (string-append "'youtubedl_path': '"
1347 (assoc-ref inputs "youtube-dl")
1348 "/bin'"))
1349 ;; When this is True, when youtube-dl-gui is finished downloading
1350 ;; a file, it will try (and possibly fail) to open the directory
1351 ;; containing the downloaded file. This can fail because it
1352 ;; assumes that xdg-open is in PATH. Unfortunately, simply
1353 ;; adding xdg-utils to the propagated inputs is not enough to
1354 ;; make this work, so for now we set the default to False.
1355 (("'open_dl_dir': True") "'open_dl_dir': False"))
1356 ;; The youtube-dl program from the inputs is actually a wrapper
1357 ;; script written in bash, so attempting to invoke it as a python
1358 ;; script will fail.
1359 (substitute* "youtube_dl_gui/downloaders.py"
1360 (("cmd = \\['python', self\\.youtubedl_path\\]")
1361 "cmd = [self.youtubedl_path]"))
1362 ;; Use relative paths for installing data files so youtube-dl-gui
1363 ;; installs the files relative to its prefix in the store, rather
1364 ;; than relative to /. Also, instead of installing data files into
1365 ;; $prefix/usr/share, install them into $prefix/share for
1366 ;; consistency (see: (standards) Directory Variables).
1367 (substitute* "setup.py"
1368 (("= '/usr/share") "= 'share"))
1369 ;; Update get_locale_file() so it finds the installed localization
1370 ;; files.
1371 (substitute* "youtube_dl_gui/utils.py"
1372 (("os\\.path\\.join\\('/usr', 'share'")
1373 (string-append "os.path.join('"
1374 (assoc-ref %outputs "out")
1375 "', 'share'"))))))))
1376 (inputs
1377 `(("python2-wxpython" ,python2-wxpython)
1378 ("youtube-dl" ,youtube-dl)))
1379 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
1380 (synopsis
1381 "GUI (Graphical User Interface) for @command{youtube-dl}")
1382 (description
1383 "Youtube-dlG is a GUI (Graphical User Interface) for
1384@command{youtube-dl}. You can use it to download videos from YouTube and any
1385other site that youtube-dl supports.")
1386 (license license:unlicense)))
1387
72fa6667
FS
1388(define-public you-get
1389 (package
1390 (name "you-get")
7ea56cde 1391 (version "0.4.1077")
72fa6667
FS
1392 (source (origin
1393 (method url-fetch)
1394 (uri (string-append
e2155f58
FS
1395 "https://github.com/soimort/you-get/archive/v"
1396 version ".tar.gz"))
1397 (file-name (string-append name "-" version ".tar.gz"))
72fa6667
FS
1398 (sha256
1399 (base32
7ea56cde 1400 "04vxc91k627qgsqs8dhqajrb6vpj4pw21jlwbha28qakfiz2x11k"))))
72fa6667 1401 (build-system python-build-system)
72fa6667 1402 (inputs
5e84eab0
TGR
1403 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
1404 (arguments
1405 `(#:phases
1406 (modify-phases %standard-phases
1407 (add-after 'unpack 'qualify-input-references
1408 ;; Explicitly invoke the input ffmpeg, instead of whichever one
1409 ;; happens to be in the user's $PATH at run time.
1410 (lambda* (#:key inputs #:allow-other-keys)
1411 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
1412 "/bin/ffmpeg")))
1413 (substitute* "src/you_get/processor/ffmpeg.py"
1414 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
1415 ;; same string is also used when sniffing ffmpeg's output.
1416 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
1417 (string-append prefix "'" ffmpeg "'")))
1418 #t))))
1419 #:tests? #f)) ; XXX some tests need Internet access
817e91bc 1420 (synopsis "Download videos, audio, or images from Web sites")
72fa6667
FS
1421 (description
1422 "You-Get is a command-line utility to download media contents (videos,
1423audio, images) from the Web. It can use either mpv or vlc for playback.")
1424 (home-page "https://you-get.org/")
1425 (license license:expat)))
1426
6f45e45d
AV
1427(define-public youtube-viewer
1428 (package
1429 (name "youtube-viewer")
0b0b43ed 1430 (version "3.4.1")
6f45e45d 1431 (source (origin
6be44578
TGR
1432 (method git-fetch)
1433 (uri (git-reference
1434 (url "https://github.com/trizen/youtube-viewer.git")
1435 (commit version)))
1436 (file-name (git-file-name name version))
6f45e45d
AV
1437 (sha256
1438 (base32
0b0b43ed 1439 "0axgb95lx81psgrb2a5rfdd8gl4mhsrzf41jas6l58d1xkaj54ri"))))
6f45e45d
AV
1440 (build-system perl-build-system)
1441 (native-inputs
1442 `(("perl-module-build" ,perl-module-build)))
1443 ;; FIXME: Add optional dependencies once available:
1444 ;; perl-lwp-useragent-cached and perl-term-readline-gnu
1445 (inputs
1446 `(("perl-data-dump" ,perl-data-dump)
1447 ("perl-file-sharedir" ,perl-file-sharedir)
1448 ("perl-gtk2" ,perl-gtk2)
1449 ("perl-json" ,perl-json)
1450 ("perl-libwww" ,perl-libwww)
1451 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1452 ("perl-mozilla-ca" ,perl-mozilla-ca)
1453 ("perl-unicode-linebreak" ,perl-unicode-linebreak)))
1454 (arguments
1455 `(#:modules ((guix build perl-build-system)
1456 (guix build utils)
1457 (srfi srfi-26))
1458 #:module-build-flags '("--gtk")
63d99002
AV
1459 #:phases
1460 (modify-phases %standard-phases
1461 (add-after 'install 'wrap-program
1462 (lambda* (#:key outputs #:allow-other-keys)
1463 (let* ((out (assoc-ref outputs "out"))
1464 (bin-dir (string-append out "/bin/"))
1465 (site-dir (string-append out "/lib/perl5/site_perl/"))
1466 (lib-path (getenv "PERL5LIB")))
1467 (for-each (cut wrap-program <>
1468 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1469 (find-files bin-dir))
1470 #t))))))
6f45e45d
AV
1471 (synopsis
1472 "Lightweight application for searching and streaming videos from YouTube")
1473 (description
1474 "Youtube-viewer searches and plays YouTube videos in a native player.
1475It comes with various search options; it can search for videos, playlists
1476and/or channels. The videos are streamed directly in a selected video player
1477at the best resolution (customizable) and with closed-captions (if available).
1478Both command-line and GTK2 interface are available.")
1479 (home-page "https://github.com/trizen/youtube-viewer")
1480 (license license:perl-license)))
1481
5d3609e4
TUBK
1482(define-public libbluray
1483 (package
1484 (name "libbluray")
004450f4 1485 (version "1.0.2")
5d3609e4
TUBK
1486 (source (origin
1487 (method url-fetch)
5e3f68e6 1488 (uri (string-append "https://download.videolan.org/videolan/"
5d3609e4
TUBK
1489 name "/" version "/"
1490 name "-" version ".tar.bz2"))
1491 (sha256
1492 (base32
004450f4 1493 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
5d3609e4 1494 (build-system gnu-build-system)
6c0cd765 1495 (arguments
d76e2634 1496 `(#:configure-flags '("--disable-bdjava-jar")
6c0cd765
AP
1497 #:phases
1498 (modify-phases %standard-phases
004450f4
TGR
1499 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
1500 ;; Avoid the need to propagate libxml2 by referring to it
1501 ;; directly, as is already done for fontconfig & freetype.
1502 (lambda* (#:key inputs #:allow-other-keys)
1503 (let ((libxml2 (assoc-ref inputs "libxml2")))
1504 (substitute* "configure"
1505 ((" libxml-2.0") ""))
1506 (substitute* "src/libbluray.pc.in"
1507 (("^Libs.private:" field)
1508 (string-append field " -L" libxml2 "/lib -lxml2")))
1509 #t)))
6c0cd765
AP
1510 (add-before 'build 'fix-dlopen-paths
1511 (lambda* (#:key inputs #:allow-other-keys)
1512 (let ((libaacs (assoc-ref inputs "libaacs"))
1513 (libbdplus (assoc-ref inputs "libbdplus")))
1514 (substitute* "src/libbluray/disc/aacs.c"
1515 (("\"libaacs\"")
1516 (string-append "\"" libaacs "/lib/libaacs\"")))
1517 (substitute* "src/libbluray/disc/bdplus.c"
1518 (("\"libbdplus\"")
1519 (string-append "\"" libbdplus "/lib/libbdplus\"")))
1520 #t))))))
2da45ebe 1521 (native-inputs `(("pkg-config" ,pkg-config)))
5d3609e4 1522 (inputs
71ee51a0 1523 `(("fontconfig" ,fontconfig)
5d3609e4 1524 ("freetype" ,freetype)
6c0cd765
AP
1525 ("libaacs" ,libaacs)
1526 ("libbdplus" ,libbdplus)
71ee51a0 1527 ("libxml2" ,libxml2)))
5e3f68e6 1528 (home-page "https://www.videolan.org/developers/libbluray.html")
5d3609e4
TUBK
1529 (synopsis "Blu-Ray Disc playback library")
1530 (description
1531 "libbluray is a library designed for Blu-Ray Disc playback for media
1532players, like VLC or MPlayer.")
ae0bdd81 1533 (license license:lgpl2.1+)))
5d3609e4 1534
e6bdb36a
AE
1535(define-public libdvdread
1536 (package
1537 (name "libdvdread")
3c9deb0b 1538 (version "6.0.0")
e6bdb36a
AE
1539 (source (origin
1540 (method url-fetch)
b8a31908 1541 (uri (string-append "https://download.videolan.org/videolan/"
e6bdb36a
AE
1542 name "/" version "/"
1543 name "-" version ".tar.bz2"))
1544 (sha256
1545 (base32
3c9deb0b 1546 "0dgr23fzcjhb7ck54xkr9zmf4jcq3ph0dz3fbyvla1c6ni9ijfxk"))))
e6bdb36a 1547 (build-system gnu-build-system)
e21f3473
RJ
1548 (arguments
1549 `(#:configure-flags '("--with-libdvdcss=yes")))
1550 (native-inputs
1551 `(("pkg-config" ,pkg-config)))
1552 (propagated-inputs
1553 `(("libdvdcss" ,libdvdcss)))
e6bdb36a
AE
1554 (home-page "http://dvdnav.mplayerhq.hu/")
1555 (synopsis "Library for reading video DVDs")
1556 (description
1557 "Libdvdread provides a simple foundation for reading DVD video
1558disks. It provides the functionality that is required to access many
1559DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
1560authentication and descrambling (if an external libdvdcss library is
1561installed).")
ae0bdd81 1562 (license license:gpl2+)))
b027d919 1563
b5b20bda
TD
1564(define-public dvdauthor
1565 (package
1566 (name "dvdauthor")
1567 (version "0.7.2")
1568 (source
1569 (origin
1570 (method url-fetch)
1571 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
1572 version ".tar.gz"))
1573 (sha256
1574 (base32
1575 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
1576 (build-system gnu-build-system)
1577 (inputs
1578 `(("libdvdread" ,libdvdread)
1579 ("libpng" ,libpng)
1580 ("imagemagick" ,imagemagick)
1581 ("libxml2" ,libxml2)
1582 ("freetype" ,freetype)))
1583 (native-inputs
1584 `(("pkg-config" ,pkg-config)))
1585 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
1586 (description "@command{dvdauthor} will generate a DVD-Video movie from a
1587MPEG-2 stream containing VOB packets.")
1588 (home-page "http://dvdauthor.sourceforge.net")
1589 (license license:gpl3+)))
1590
b027d919
AE
1591(define-public libdvdnav
1592 (package
1593 (name "libdvdnav")
0976ea38 1594 (version "6.0.0")
b027d919
AE
1595 (source (origin
1596 (method url-fetch)
b8a31908 1597 (uri (string-append "https://download.videolan.org/videolan/"
b027d919
AE
1598 name "/" version "/"
1599 name "-" version ".tar.bz2"))
1600 (sha256
1601 (base32
0976ea38 1602 "062njcksmpgw9yv3737qkf93r2pzhaxi9szqjabpa8d010dp38ph"))))
b027d919
AE
1603 (build-system gnu-build-system)
1604 (native-inputs
1605 `(("pkg-config" ,pkg-config)))
1606 (inputs
1607 `(("libdvdread" ,libdvdread)))
1608 (home-page "http://dvdnav.mplayerhq.hu/")
1609 (synopsis "Library for video DVD navigation features")
1610 (description
1611 "Libdvdnav is a library for developers of multimedia
1612applications. It allows easy use of sophisticated DVD navigation features
1613such as DVD menus, multiangle playback and even interactive DVD games. All
1614this functionality is provided through a simple API which provides the DVD
1615playback as a single logical stream of blocks, intermitted by special
1616dvdnav events to report certain conditions. The main usage of libdvdnav is
1617a loop regularly calling a function to get the next block, surrounded by
1618additional calls to tell the library of user interaction. The whole
1619DVD virtual machine and internal playback states are completely
1620encapsulated.")
ae0bdd81 1621 (license license:gpl2+)))
2cd85cf9 1622
a6f710ec
TUBK
1623(define-public libdvdcss
1624 (package
1625 (name "libdvdcss")
c77fb2d6 1626 (version "1.4.2")
a6f710ec
TUBK
1627 (source (origin
1628 (method url-fetch)
b8a31908 1629 (uri (string-append "https://download.videolan.org/pub/"
a6f710ec
TUBK
1630 name "/" version "/"
1631 name "-" version ".tar.bz2"))
1632 (sha256
1633 (base32
c77fb2d6 1634 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
a6f710ec 1635 (build-system gnu-build-system)
b8a31908 1636 (home-page "https://www.videolan.org/developers/libdvdcss.html")
a6f710ec
TUBK
1637 (synopsis "Library for accessing DVDs as block devices")
1638 (description
1639 "libdvdcss is a simple library designed for accessing DVDs like a block
1640device without having to bother about the decryption.")
ae0bdd81 1641 (license license:gpl2+)))
a6f710ec 1642
2cd85cf9
DT
1643(define-public srt2vtt
1644 (package
1645 (name "srt2vtt")
1646 (version "0.1")
1647 (source (origin
1648 (method url-fetch)
1649 (uri (string-append
152fc959 1650 "https://files.dthompson.us/srt2vtt/srt2vtt-"
2cd85cf9
DT
1651 version ".tar.gz"))
1652 (sha256
1653 (base32
1654 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1655 (build-system gnu-build-system)
1656 (inputs
1657 `(("guile" ,guile-2.0)))
1658 (synopsis "SubRip to WebVTT subtitle converter")
1659 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1660for use with HTML5 video.")
373cc3b7 1661 (home-page "https://dthompson.us/projects/srt2vtt.html")
ae0bdd81 1662 (license license:gpl3+)))
44726031
AE
1663
1664(define-public avidemux
1665 (package
1666 (name "avidemux")
9e786e8b 1667 (version "2.6.12")
44726031
AE
1668 (source (origin
1669 (method url-fetch)
1670 (uri (string-append
de67e922
LF
1671 "mirror://sourceforge/" name "/" name "/" version "/"
1672 name "_" version ".tar.gz"))
44726031
AE
1673 (sha256
1674 (base32
9e786e8b 1675 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
fc1adab1 1676 (patches (search-patches "avidemux-install-to-lib.patch"))))
44726031
AE
1677 (build-system cmake-build-system)
1678 (native-inputs
1679 `(("pkg-config" ,pkg-config)))
1680 ;; FIXME: Once packaged, add libraries not found during the build.
1681 (inputs
1682 `(("alsa-lib" ,alsa-lib)
1683 ("fontconfig" ,fontconfig)
1684 ("freetype" ,freetype)
1685 ("fribidi" ,fribidi)
1686 ("glu" ,glu)
44726031
AE
1687 ("jack" ,jack-1)
1688 ("lame" ,lame)
4cafe8ad
EF
1689 ("libva" ,libva)
1690 ("libvdpau" ,libvdpau)
44726031
AE
1691 ("libvorbis" ,libvorbis)
1692 ("libvpx" ,libvpx)
1693 ("libxv" ,libxv)
1694 ("perl" ,perl)
1695 ("pulseaudio" ,pulseaudio)
1696 ("python" ,python-wrapper)
a2c24bf5
DC
1697 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
1698 ;("qtbase" ,qtbase) with -std=gnu++11.
1699 ;("qttools" ,qttools)
44726031
AE
1700 ("sdl" ,sdl)
1701 ("sqlite" ,sqlite)
1702 ("yasm" ,yasm)
1703 ("zlib" ,zlib)))
1704 (arguments
1705 `(#:tests? #f ; no check target
1706 #:phases
1707 ;; Make sure files inside the included ffmpeg tarball are
1708 ;; patch-shebanged.
1898900f
EF
1709 (modify-phases %standard-phases
1710 (add-before 'patch-source-shebangs 'unpack-ffmpeg
44726031
AE
1711 (lambda _
1712 (with-directory-excursion "avidemux_core/ffmpeg_package"
1898900f
EF
1713 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1714 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1715 (add-after 'patch-source-shebangs 'repack-ffmpeg
44726031
AE
1716 (lambda _
1717 (with-directory-excursion "avidemux_core/ffmpeg_package"
9e786e8b 1718 (substitute* "ffmpeg-2.7.6/configure"
2fed4042 1719 (("#! /bin/sh") (string-append "#!" (which "sh"))))
9e786e8b 1720 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
c09e6a5f 1721 ;; avoid non-determinism in the archive
92226a47
MW
1722 "--sort=name" "--mtime=@0"
1723 "--owner=root:0" "--group=root:0")
1898900f
EF
1724 (delete-file-recursively "ffmpeg-2.7.6"))))
1725 (replace 'configure
1726 (lambda _
1727 ;; Copy-paste settings from the cmake build system.
1728 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1729 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1730 (replace 'build
1731 (lambda* (#:key inputs outputs #:allow-other-keys)
1732 (let*
1733 ((out (assoc-ref outputs "out"))
1734 (lib (string-append out "/lib"))
1735 (top (getcwd))
1736 (sdl (assoc-ref inputs "sdl"))
1737 (build_component
1738 (lambda* (component srcdir #:optional (args '()))
1739 (let ((builddir (string-append "build_" component)))
1740 (mkdir builddir)
1741 (with-directory-excursion builddir
1742 (zero?
1743 (and
44726031
AE
1744 (apply system* "cmake"
1745 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1746 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1747 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
c687f731
AE
1748 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1749 "\"-Wl,-rpath=" lib "\"")
44726031
AE
1750 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1751 (string-append "-DSDL_INCLUDE_DIR="
1752 sdl "/include/SDL")
1753 (string-append "../" srcdir)
aab56ab7 1754 "-DENABLE_QT5=True"
44726031 1755 args)
1898900f
EF
1756 (system* "make" "-j"
1757 (number->string (parallel-job-count)))
1758 (system* "make" "install"))))))))
1759 (mkdir out)
1760 (and (build_component "core" "avidemux_core")
1761 (build_component "cli" "avidemux/cli")
1762 (build_component "qt4" "avidemux/qt4")
1763 (build_component "plugins_common" "avidemux_plugins"
1764 '("-DPLUGIN_UI=COMMON"))
1765 (build_component "plugins_cli" "avidemux_plugins"
1766 '("-DPLUGIN_UI=CLI"))
1767 (build_component "plugins_qt4" "avidemux_plugins"
1768 '("-DPLUGIN_UI=QT4"))
1769 (build_component "plugins_settings" "avidemux_plugins"
1770 '("-DPLUGIN_UI=SETTINGS")))
1771 ;; Remove .exe and .dll file.
1772 (delete-file-recursively
1773 (string-append out "/share/ADM6_addons")))))
1774 (delete 'install))))
44726031
AE
1775 (home-page "http://fixounet.free.fr/avidemux/")
1776 (synopsis "Video editor")
1777 (description "Avidemux is a video editor designed for simple cutting,
1778filtering and encoding tasks. It supports many file types, including AVI,
1779DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1780can be automated using projects, job queue and powerful scripting
1781capabilities.")
afd9ed5c 1782 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
44726031 1783 ;; Software with various licenses is included, see License.txt.
ae0bdd81 1784 (license license:gpl2+)))
44726031 1785
6f6c8b65
TUBK
1786(define-public vapoursynth
1787 (package
1788 (name "vapoursynth")
4f7a9e0b 1789 (version "37")
6f6c8b65
TUBK
1790 (source (origin
1791 (method url-fetch)
1792 (uri (string-append
1793 "https://github.com/vapoursynth/vapoursynth/archive/R"
1794 version ".tar.gz"))
0b37c4cd 1795 (file-name (string-append name "-" version ".tar.gz"))
6f6c8b65
TUBK
1796 (sha256
1797 (base32
4f7a9e0b 1798 "1g3hc079jw4mz1cmkv2y28pdb556wqc8ql7iravgh1rg8j3f1zi5"))))
6f6c8b65
TUBK
1799 (build-system gnu-build-system)
1800 (native-inputs
1801 `(("autoconf" ,autoconf)
1802 ("automake" ,automake)
1803 ("cython" ,python-cython)
1804 ("libtool" ,libtool)
1805 ("pkg-config" ,pkg-config)
1806 ("python" ,python)
1807 ("yasm" ,yasm)))
1808 (inputs
1809 `(("ffmpeg" ,ffmpeg)
1810 ("libass" ,libass)
f80d5fe0
EF
1811 ("tesseract-ocr" ,tesseract-ocr)
1812 ("zimg" ,zimg)))
6f6c8b65
TUBK
1813 (arguments
1814 '(#:phases
1815 (modify-phases %standard-phases
52fb5b3a
TGR
1816 (add-after 'unpack 'autogen
1817 (lambda _
1818 (invoke "sh" "autogen.sh"))))))
6f6c8b65
TUBK
1819 (home-page "http://www.vapoursynth.com/")
1820 (synopsis "Video processing framework")
1821 (description "VapourSynth is a C++ library and Python module for video
1822manipulation. It aims to be a modern rewrite of Avisynth, supporting
1823multithreading, generalized colorspaces, per frame properties, and videos with
1824format changes.")
9a078f48 1825 ;; src/core/cpufeatures only allows x86, ARM or PPC
cda20ee8
EF
1826 (supported-systems (fold delete %supported-systems
1827 '("mips64el-linux" "aarch64-linux")))
6f6c8b65 1828 ;; As seen from the source files.
ae0bdd81 1829 (license license:lgpl2.1+)))
6f6c8b65 1830
67932f86
TUBK
1831(define-public xvid
1832 (package
1833 (name "xvid")
e05035c7 1834 (version "1.3.4")
67932f86
TUBK
1835 (source (origin
1836 (method url-fetch)
1837 (uri (string-append
1838 "http://downloads.xvid.org/downloads/xvidcore-"
1839 version ".tar.bz2"))
1840 (sha256
1841 (base32
e05035c7 1842 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
67932f86
TUBK
1843 (build-system gnu-build-system)
1844 (native-inputs `(("yasm" ,yasm)))
1845 (arguments
1846 '(#:phases
62fe2d47
EF
1847 (modify-phases %standard-phases
1848 (add-before
1849 'configure 'pre-configure
1850 (lambda _
1851 (chdir "build/generic")
1852 (substitute* "configure"
1853 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
67932f86
TUBK
1854 ;; No 'check' target.
1855 #:tests? #f))
1856 (home-page "https://www.xvid.com/")
1857 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1858 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1859codec library. It uses ASP features such as b-frames, global and quarter
1860pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1861and custom quantization matrices.")
ae0bdd81 1862 (license license:gpl2+)))
e16fde14 1863
f48feaa2 1864(define-public streamlink
1a291593
OP
1865 ;; Release tarball doesn't contain ‘tests/resources/dash/’ directory.
1866 (let ((commit "2dca7930a938f60b48d8e23260963ea7c49d979f"))
1867 (package
1868 (name "streamlink")
1869 (version (git-version "0.13.0" "1" commit))
1870 (source
1871 (origin
1872 (method git-fetch)
1873 (uri (git-reference
1874 (url "https://github.com/streamlink/streamlink.git")
1875 (commit commit)))
1876 (file-name (git-file-name name version))
1877 (sha256
1878 (base32
1879 "0vq19aspshim63aj8yl2p64ykrbk2mwwlawdx427b3j2djlc5qhw"))))
1880 (build-system python-build-system)
1881 (home-page "https://github.com/streamlink/streamlink")
1882 (native-inputs
1883 `(("python-freezegun" ,python-freezegun)
1884 ("python-pytest" ,python-pytest)
1885 ("python-mock" ,python-mock)
1886 ("python-requests-mock" ,python-requests-mock)))
1887 (propagated-inputs
1888 `(("python-pysocks" ,python-pysocks)
1889 ("python-websocket-client" ,python-websocket-client)
1890 ("python-iso3166" ,python-iso3166)
1891 ("python-iso639" ,python-iso639)
1892 ("python-isodate", python-isodate)
1893 ("python-pycryptodome" ,python-pycryptodome)
1894 ("python-requests" ,python-requests)
1895 ("python-urllib3" ,python-urllib3)))
1896 (synopsis "Extract streams from various services")
1897 (description "Streamlink is command-line utility that extracts streams
f48feaa2 1898from sites like Twitch.tv and pipes them into a video player of choice.")
1a291593 1899 (license license:bsd-2))))
f48feaa2 1900
d84e2257
OP
1901(define-public livestreamer
1902 (deprecated-package "livestreamer" streamlink))
1903
e5e5eb1f
OP
1904(define-public twitchy
1905 (let ((commit "0c0f925b9c7ff2aed4a3b0046561cb794143c398")) ;Fixes tests.
1906 (package
1907 (name "twitchy")
1908 (version (git-version "3.2" "1" commit))
1909 (source
1910 (origin
1911 (method git-fetch)
1912 (uri (git-reference
1913 (url "https://github.com/BasioMeusPuga/twitchy.git")
1914 (commit commit)))
1915 (file-name (git-file-name name version))
1916 (sha256
1917 (base32
1918 "02aizvsr744sh8bdqvwwsmp2qpczlzn8fy76h5dyd3517n9nlcz9"))))
1919 (build-system python-build-system)
1920 (arguments
1921 '(#:phases
1922 (modify-phases %standard-phases
1923 (add-before 'check 'check-setup
1924 (lambda _
1925 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
ca82bdfd
OP
1926 #t))
1927 (add-after 'install 'install-rofi-plugin
1928 (lambda* (#:key outputs #:allow-other-keys)
1929 (install-file "plugins/rofi-twitchy"
1930 (string-append (assoc-ref outputs "out")
1931 "/bin")))))))
e5e5eb1f
OP
1932 (inputs
1933 `(("python-requests" ,python-requests)
1934 ("streamlink" ,streamlink)))
1935 (home-page "https://github.com/BasioMeusPuga/twitchy")
1936 (synopsis "Command-line interface for Twitch.tv")
1937 (description
1938 "This package provides a command-line interface for Twitch.tv")
1939 (license license:gpl3+))))
1940
307ad140
RW
1941(define-public mlt
1942 (package
1943 (name "mlt")
f05f5b30 1944 (version "6.4.1")
307ad140
RW
1945 (source (origin
1946 (method url-fetch)
4c7729dc
EF
1947 (uri (string-append "https://github.com/mltframework/mlt/"
1948 "archive/v" version ".tar.gz"))
1949 (file-name (string-append name "-" version ".tar.gz"))
307ad140
RW
1950 (sha256
1951 (base32
fd7da5b9
OP
1952 "10m3ry0b2pvqx3bk34qh5dq337nn8pkc2gzfyhsj4nv9abskln47"))
1953 (modules '((guix build utils)))
6cbee49d
MW
1954 (snippet '(begin
1955 ;; As of glibc 2.26, <xlocale.h> no longer is.
1956 (substitute* "src/framework/mlt_property.h"
2857e527
MW
1957 (("xlocale\\.h") "locale.h"))
1958 #t))))
307ad140
RW
1959 (build-system gnu-build-system)
1960 (arguments
1961 `(#:tests? #f ; no tests
1962 #:make-flags '("CC=gcc")
1963 #:configure-flags
1964 (list "--enable-gpl3"
1965 "--enable-gpl")
1966 #:phases
1967 (modify-phases %standard-phases
1968 (add-after
1969 'configure 'override-LDFLAGS
1970 (lambda* (#:key outputs #:allow-other-keys)
1971 (substitute* "config.mak"
1972 (("LDFLAGS\\+=")
1973 (string-append "LDFLAGS+=-Wl,-rpath="
1974 (assoc-ref outputs "out")
1975 "/lib ")))
1976 #t)))))
1977 (inputs
1978 `(("alsa-lib" ,alsa-lib)
bb5c508c 1979 ("ffmpeg" ,ffmpeg-3.4)
307ad140
RW
1980 ("fftw" ,fftw)
1981 ("libxml2" ,libxml2)
1982 ("jack" ,jack-1)
1983 ("ladspa" ,ladspa)
1984 ("libsamplerate" ,libsamplerate)
4c7729dc 1985 ("pulseaudio" ,pulseaudio)
307ad140
RW
1986 ("sdl" ,sdl)
1987 ("sox" ,sox)))
1988 (native-inputs
1989 `(("pkg-config" ,pkg-config)))
4c7729dc 1990 (home-page "https://www.mltframework.org/")
307ad140
RW
1991 (synopsis "Author, manage, and run multitrack audio/video compositions")
1992 (description
1993 "MLT is a multimedia framework, designed and developed for television
1994broadcasting. It provides a toolkit for broadcasters, video editors, media
1995players, transcoders, web streamers and many more types of applications. The
1996functionality of the system is provided via an assortment of ready to use
1997tools, XML authoring components, and an extensible plug-in based API.")
42b9541c 1998 (license license:gpl3)))
f464016d 1999
945d985a
DT
2000(define-public v4l-utils
2001 (package
2002 (name "v4l-utils")
f1d1ef71 2003 (version "1.12.5")
945d985a
DT
2004 (source (origin
2005 (method url-fetch)
1d4ac724 2006 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
945d985a
DT
2007 "/v4l-utils-" version ".tar.bz2"))
2008 (sha256
2009 (base32
f1d1ef71 2010 "03g2b4rivrilimcp57mwrlsa3qvrxmk4sza08mygwmqbvcnic606"))))
945d985a
DT
2011 (build-system gnu-build-system)
2012 (arguments
2013 '(#:configure-flags
2014 (list (string-append "--with-udevdir="
2015 (assoc-ref %outputs "out")
2cef0f7c
DC
2016 "/lib/udev")
2017 "CXXFLAGS=-std=gnu++11")))
945d985a 2018 (native-inputs
4ca077d5
TGR
2019 `(("perl" ,perl)
2020 ("pkg-config" ,pkg-config)))
945d985a
DT
2021 (inputs
2022 `(("alsa-lib" ,alsa-lib)
2023 ("glu" ,glu)
2024 ("libjpeg" ,libjpeg)
2025 ("libx11" ,libx11)
b37662e2 2026 ("qtbase" ,qtbase)
945d985a
DT
2027 ("eudev" ,eudev)))
2028 (synopsis "Realtime video capture utilities for Linux")
2029 (description "The v4l-utils provide a series of libraries and utilities to
2030be used for realtime video capture via Linux-specific APIs.")
2031 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
2032 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
2033 (license (list license:lgpl2.1+ license:gpl2))))
2034
f464016d
DT
2035(define-public obs
2036 (package
2037 (name "obs")
48a716c4 2038 (version "20.1.3")
f464016d
DT
2039 (source (origin
2040 (method url-fetch)
2041 (uri (string-append "https://github.com/jp9000/obs-studio"
2042 "/archive/" version ".tar.gz"))
2043 (file-name (string-append name "-" version ".tar.gz"))
2044 (sha256
2045 (base32
48a716c4 2046 "1g5z6z050v25whc7n3xvg6l238wmg5crp7ihvk73qngvzxr8bg28"))))
f464016d 2047 (build-system cmake-build-system)
08858812 2048 (arguments
f3bd1728 2049 `(#:tests? #f)) ; no tests
f464016d
DT
2050 (native-inputs
2051 `(("pkg-config" ,pkg-config)))
2052 (inputs
4f98c3c5
EF
2053 `(("alsa-lib" ,alsa-lib)
2054 ("curl" ,curl)
f464016d
DT
2055 ("eudev" ,eudev)
2056 ("ffmpeg" ,ffmpeg)
4f98c3c5 2057 ("fontconfig" ,fontconfig)
f464016d
DT
2058 ("freetype" ,freetype)
2059 ("jack" ,jack-1)
2060 ("jansson" ,jansson)
2061 ("libx264" ,libx264)
2062 ("libxcomposite" ,libxcomposite)
2063 ("mesa" ,mesa)
2064 ("pulseaudio" ,pulseaudio)
90a2309b
EF
2065 ("qtbase" ,qtbase)
2066 ("qtx11extras" ,qtx11extras)
4f98c3c5 2067 ("speex" ,speex)
d4df2032 2068 ("v4l-utils" ,v4l-utils)
f464016d
DT
2069 ("zlib" ,zlib)))
2070 (synopsis "Live streaming software")
2071 (description "Open Broadcaster Software provides a graphical interface for
2072video recording and live streaming. OBS supports capturing audio and video
2073from many input sources such as webcams, X11 (for screencasting), PulseAudio,
2074and JACK.")
2075 (home-page "https://obsproject.com")
f3bd1728 2076 (supported-systems '("x86_64-linux" "i686-linux"))
f464016d 2077 (license license:gpl2+)))
d5650f86
EF
2078
2079(define-public libvdpau
2080 (package
2081 (name "libvdpau")
2082 (version "1.1.1")
2083 (source
2084 (origin
2085 (method url-fetch)
2086 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2087 name "-" version ".tar.bz2"))
2088 (sha256
2089 (base32
2090 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
2091 (build-system gnu-build-system)
2092 (native-inputs
2093 `(("pkg-config" ,pkg-config)))
2094 (inputs
3993a28a
MB
2095 `(("libx11" ,libx11 "out")
2096 ("libxext" ,libxext)
2097 ("xorgproto" ,xorgproto)))
d5650f86
EF
2098 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2099 (synopsis "Video Decode and Presentation API")
2100 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
2101provides an interface to video decode acceleration and presentation hardware
2102present in modern GPUs.")
2103 (license (license:x11-style "file://COPYING"))))
3161d32d
EF
2104
2105(define-public vdpauinfo
2106 (package
2107 (name "vdpauinfo")
2108 (version "1.0")
2109 (source
2110 (origin
2111 (method url-fetch)
2112 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2113 name "-" version ".tar.gz"))
2114 (sha256
2115 (base32
2116 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
2117 (build-system gnu-build-system)
2118 (native-inputs
2119 `(("pkg-config" ,pkg-config)
2120 ("libx11" ,libx11)))
2121 (propagated-inputs
2122 `(("libvdpau" ,libvdpau)))
2123 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2124 (synopsis "Tool to query the capabilities of a VDPAU implementation")
2125 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
2126implementation.")
2127 (license (license:x11-style "file://COPYING"))))
a7d94b54 2128
67df7164
EF
2129(define-public libvdpau-va-gl
2130 (package
2131 (name "libvdpau-va-gl")
2132 (version "0.4.2")
2133 (source
2134 (origin
2135 (method url-fetch)
2136 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
2137 "releases/download/v" version "/libvdpau-va-gl-"
2138 version ".tar.gz"))
2139 (sha256
2140 (base32
2141 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
2142 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
2143 (modules '((guix build utils)))
6cbee49d
MW
2144 (snippet '(begin (delete-file-recursively "3rdparty")
2145 #t))))
67df7164
EF
2146 (build-system cmake-build-system)
2147 (arguments
2148 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
2149 (native-inputs
2150 `(("libvdpau" ,libvdpau)
2151 ("pkg-config" ,pkg-config)))
2152 (inputs
2153 `(("libva" ,libva)
2154 ("mesa" ,mesa)))
2155 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
2156 (synopsis "VDPAU driver with VA-API/OpenGL backend")
2157 (description
2158 "Many applications can use VDPAU to accelerate portions of the video
2159decoding process and video post-processing to the GPU video hardware. Since
2160there is no VDPAU available on Intel chips, they fall back to different drawing
2161techniques. This driver uses OpenGL under the hood to accelerate drawing and
2162scaling and VA-API (if available) to accelerate video decoding.")
2163 (license license:expat)))
2164
a7d94b54
LC
2165(define-public recordmydesktop
2166 (package
2167 (name "recordmydesktop")
2168 (version "0.3.8.1")
2169 (source (origin
2170 (method url-fetch)
2171 (uri (string-append "mirror://sourceforge/" name "/" name "/"
2172 version "/recordmydesktop-" version ".tar.gz"))
2173 (sha256
2174 (base32
2175 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
2176 (build-system gnu-build-system)
2177 (inputs `(("popt" ,popt)
2178 ("zlib" ,zlib)
2179 ("libx11" ,libx11)
2180 ("libice" ,libice)
2181 ("libsm" ,libsm)
2182 ("libxfixes" ,libxfixes)
2183 ("libxdamage" ,libxdamage)
2184 ("libxext" ,libxext)
ed6ba9cc 2185 ("alsa-lib" ,alsa-lib)
a7d94b54
LC
2186 ("libvorbis" ,libvorbis)
2187 ("libtheora" ,libtheora)))
2188 (home-page "http://recordmydesktop.sourceforge.net/")
2189 (synopsis "Desktop session video recorder")
2190 (description
2191 "recordMyDesktop is a command-line tool that captures the activity in
2192your graphical desktop and encodes it as a video. This is a useful tool for
2193making @dfn{screencasts}.")
2194 (license license:gpl2+)))
d8841cc5 2195
63cd4d53
AV
2196(define-public simplescreenrecorder
2197 (package
2198 (name "simplescreenrecorder")
8332ac03 2199 (version "0.3.11")
63cd4d53
AV
2200 (source
2201 (origin
2202 (method url-fetch)
2203 (uri (string-append "https://github.com/MaartenBaert/ssr/archive/"
2204 version ".tar.gz"))
2205 (file-name (string-append name "-" version ".tar.gz"))
2206 (sha256
2207 (base32
8332ac03 2208 "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal"))))
83c92882 2209 (build-system cmake-build-system)
63cd4d53
AV
2210 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
2211 ;; README.md, the program builds and functions properly without them.
2212 ;; As a result, they are omitted. Please add them back if problems appear.
2213 (inputs
2214 `(("alsa-lib" ,alsa-lib)
8332ac03 2215 ("ffmpeg" ,ffmpeg)
63cd4d53
AV
2216 ("glu" ,glu)
2217 ("jack" ,jack-1)
2218 ("libxi" ,libxi)
2219 ("pulseaudio" ,pulseaudio)
91562061
MB
2220 ("qtbase" ,qtbase)
2221 ("qtx11extras" ,qtx11extras)))
63cd4d53 2222 (native-inputs `(("pkg-config" ,pkg-config)))
83c92882
TGR
2223 (arguments
2224 `(#:configure-flags
2225 (list "-DWITH_QT5=TRUE")
2226 #:tests? #f)) ; no test suite
63cd4d53
AV
2227 ;; Using HTTPS causes part of the page to be displayed improperly.
2228 (home-page "http://www.maartenbaert.be/simplescreenrecorder/")
2229 (synopsis "Screen recorder")
2230 (description "SimpleScreenRecorder is an easy to use screen recorder with
2231a graphical user interface. It supports recording the entire screen, or a
2232part of it, and allows encoding in many different codecs and file formats.
2233Other features include a live preview and live streaming.")
2234 (license (list license:gpl3+ ; most files
2235 license:zlib ; glinject/elfhacks.*
2236 license:isc ; glinject/*
2237 license:x11)))) ; build-aux/install-sh
2238
d8841cc5
KK
2239(define-public libsmpeg
2240 (package
2241 (name "libsmpeg")
2242 (version "0.4.5")
2243 (source (origin
2244 (method svn-fetch)
2245 (uri (svn-reference
2246 (url "svn://svn.icculus.org/smpeg/trunk/")
2247 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
b9af0564 2248 (file-name (string-append name "-" version "-checkout"))
d8841cc5
KK
2249 (sha256
2250 (base32
2251 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
2252 (build-system gnu-build-system)
2253 (arguments
e6269846
TGR
2254 `(#:phases
2255 (modify-phases %standard-phases
2256 (add-after 'unpack 'autogen.sh
2257 (lambda _
2258 (invoke "sh" "autogen.sh"))))))
d8841cc5
KK
2259 (native-inputs
2260 `(("autoconf" ,autoconf)
2261 ("automake" ,automake)))
2262 (inputs
2263 `(("sdl" ,sdl2)))
2264 (home-page "http://icculus.org/smpeg/")
2265 (synopsis "SDL MPEG decoding library")
2266 (description
2267 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
2268with sound support. Video playback is based on the ubiquitous Berkeley MPEG
2269player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
2270library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
2271and MPEG system streams.")
2272 (license (list license:expat
2273 license:lgpl2.1
2274 license:lgpl2.1+
2275 license:gpl2))))
4df07622
AP
2276
2277(define-public libbdplus
2278 (package
2279 (name "libbdplus")
2280 (version "0.1.2")
2281 (source
2282 (origin
2283 (method url-fetch)
6f13c4fd 2284 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
4df07622
AP
2285 version "/" name "-" version ".tar.bz2"))
2286 (sha256
2287 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
2288 (inputs
2289 `(("libgcrypt" ,libgcrypt)))
2290 (build-system gnu-build-system)
b8a31908 2291 (home-page "https://www.videolan.org/developers/libbdplus.html")
4df07622
AP
2292 (synopsis "Library for decrypting certain Blu-Ray discs")
2293 (description "libbdplus is a library which implements the BD+ System
2294specifications.")
2295 (license license:lgpl2.1+)))
8dd6fc51
AP
2296
2297(define-public libaacs
2298 (package
2299 (name "libaacs")
ba58886a 2300 (version "0.9.0")
8dd6fc51
AP
2301 (source
2302 (origin
2303 (method url-fetch)
6c2481ef 2304 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
8dd6fc51
AP
2305 version "/" name "-" version ".tar.bz2"))
2306 (sha256
ba58886a 2307 (base32 "1kms92i0c7i1yl659kqjf19lm8172pnpik5lsxp19xphr74vvq27"))))
8dd6fc51
AP
2308 (inputs
2309 `(("libgcrypt" ,libgcrypt)))
2310 (native-inputs
2311 `(("bison" ,bison)
2312 ("flex" ,flex)))
2313 (build-system gnu-build-system)
b8a31908 2314 (home-page "https://www.videolan.org/developers/libaacs.html")
8dd6fc51
AP
2315 (synopsis "Library for decrypting certain Blu-Ray discs")
2316 (description "libaacs is a library which implements the Advanced Access
2317Content System specification.")
2318 (license license:lgpl2.1+)))
05234973 2319
2320(define-public mps-youtube
2321 (package
2322 (name "mps-youtube")
c53fa8c8 2323 (version "0.2.8")
05234973 2324 (source
2325 (origin
2326 (method url-fetch)
2327 (uri (string-append "https://github.com/mps-youtube/mps-youtube/"
2328 "archive/v" version ".tar.gz"))
2329 (file-name (string-append name "-" version ".tar.gz"))
2330 (sha256
2331 (base32
c53fa8c8 2332 "0x7cmfh199q9j396v7bz81nnvanfllhsg86489i5dw2p3yyc9wnm"))))
05234973 2333 (build-system python-build-system)
175d6264 2334 (arguments
2335 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
2336 ;; test suite results differ depending on the country and also introduce
2337 ;; non-determinism in the tests.
2338 ;; https://github.com/mps-youtube/mps-youtube/issues/556
2339 `(#:tests? #f))
05234973 2340 (propagated-inputs
2341 `(("python-pafy" ,python-pafy)
2342 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
2343 (home-page "https://github.com/mps-youtube/mps-youtube")
2344 (synopsis "Terminal based YouTube player and downloader")
2345 (description
2346 "@code{mps-youtube} is based on mps, a terminal based program to
2347search, stream and download music. This implementation uses YouTube as
2348a source of content and can play and download video as well as audio.
2349It can use either mpv or mplayer for playback, and for conversion of
2350formats ffmpeg or libav is used. Users should install one of the
2351supported players in addition to this package.")
2352 (license license:gpl3+)))
fe047e13
EB
2353
2354(define-public handbrake
2355 (package
2356 (name "handbrake")
2357 (version "0.10.5")
2358 (source (origin
2359 (method url-fetch)
2360 (uri (string-append "https://handbrake.fr/rotation.php?file="
2361 "HandBrake-" version ".tar.bz2"))
2362 (file-name (string-append "handbrake-" version ".tar.bz2"))
2363 (sha256
2364 (base32
2365 "1w720y3bplkz187wgvy4a4xm0vpppg45mlni55l6yi8v2bfk14pv"))
2366 (patches (search-patches "handbrake-pkg-config-path.patch"))
2367 (modules '((guix build utils)))
2368 (snippet
2369 ;; Remove bundled libraries and source not necessary for
2370 ;; running under a GNU environment.
2371 '(begin
2372 (for-each delete-file-recursively '("contrib" "macosx" "win"))
2373 #t))))
2374 (build-system glib-or-gtk-build-system)
2375 (native-inputs
2376 `(("automake" ,automake) ;gui subpackage must be bootstrapped
2377 ("autoconf" ,autoconf)
2378 ("curl" ,curl) ;not actually used, but tested for
2379 ("intltool" ,intltool)
2380 ("libtool" ,libtool)
2381 ("pkg-config" ,pkg-config)
2382 ("python" ,python-2))) ;for configuration
2383 (inputs
2384 `(("bzip2" ,bzip2)
2385 ("dbus-glib" ,dbus-glib)
30780027 2386 ("ffmpeg" ,ffmpeg-3.4) ;compilation errors with ffmpeg-4
fe047e13
EB
2387 ("fontconfig" ,fontconfig)
2388 ("freetype" ,freetype)
2389 ("glib" ,glib)
2390 ("gstreamer" ,gstreamer)
2391 ("gst-plugins-base" ,gst-plugins-base)
2392 ("gtk+" ,gtk+)
2393 ("lame" ,lame)
2394 ("libass" ,libass)
2395 ("libbluray" ,libbluray)
2396 ("libdvdnav" ,libdvdnav)
2397 ("libdvdread" ,libdvdread)
2398 ("libgudev" ,libgudev)
2399 ("libmpeg2" ,libmpeg2)
2400 ("libnotify" ,libnotify)
2401 ("libogg" ,libogg)
2402 ("libsamplerate" ,libsamplerate)
2403 ("libtheora" ,libtheora)
2404 ("libvorbis" ,libvorbis)
2405 ("libvpx" ,libvpx)
2406 ("libxml2" ,libxml2)
2407 ("libx264" ,libx264)
2408 ("x265" ,x265)
2409 ("zlib" ,zlib)))
2410 (arguments
2411 `(#:tests? #f ;tests require Ruby and claim to be unsupported
2412 #:phases
2413 (modify-phases %standard-phases
189be331 2414 (replace 'bootstrap
fe047e13
EB
2415 ;; Run bootstrap ahead of time so that shebangs get patched.
2416 (lambda _
2417 (setenv "CONFIG_SHELL" (which "sh"))
2418 (setenv "NOCONFIGURE" "1")
2419 ;; Patch the Makefile so that it doesn't bootstrap again.
2420 (substitute* "gtk/module.rules"
2421 ((".*autogen\\.sh.*") ""))
da6f345c 2422 (invoke "sh" "./gtk/autogen.sh")))
fe047e13
EB
2423 (add-before 'configure 'disable-contrib
2424 (lambda _
2425 (substitute* "make/include/main.defs"
2426 ;; Disable unconditional inclusion of some "contrib"
2427 ;; libraries (ffmpeg, libvpx, libdvdread, libdvdnav,
2428 ;; and libbluray), which would lead to fetching and
2429 ;; building of these libraries. Use our own instead.
2430 (("MODULES \\+= contrib") "# MODULES += contrib"))
2431 #t))
2432 (add-before 'configure 'fix-x265-linking
2433 (lambda _
2434 (substitute* "test/module.defs"
2435 ;; Fix missing library during linking error
2436 (("TEST.GCC.l =") "TEST.GCC.l = x265"))
2437 #t))
2438 (replace 'configure
2439 (lambda* (#:key outputs configure-flags #:allow-other-keys)
2440 ;; 'configure' is not an autoconf-generated script, and
2441 ;; errors on unrecognized arguments,
2442 ;; e.g. --enable-fast-install
2443 (let ((out (assoc-ref outputs "out")))
da6f345c
TGR
2444 (apply invoke "./configure"
2445 (string-append "--prefix=" out)
2446 (or configure-flags '())))))
fe047e13
EB
2447 (add-after 'configure 'chdir-build
2448 (lambda _ (chdir "./build") #t)))))
2449 (home-page "https://handbrake.fr")
2450 (synopsis "Video transcoder")
2451 (description
2452 "HandBrake is a tool for converting video from any format to a selection
2453of modern, widely supported codecs.")
2454 ;; Most under GPL version 2 or later, and portions under BSD 3 Clause
2455 (license (list license:gpl2+ license:bsd-3))))
590abe01
JN
2456
2457(define-public openh264
2458 (package
2459 (name "openh264")
03229b36 2460 (version "1.8.0")
590abe01
JN
2461 (source (origin
2462 (method url-fetch)
2463 (uri (string-append "https://github.com/cisco/"
03229b36
MB
2464 name "/releases/download/v"
2465 version "/Source.Code.tar.gz.gz"))
590abe01
JN
2466 (file-name (string-append name "-" version ".tar.gz"))
2467 (sha256
2468 (base32
03229b36 2469 "0niha3wnn1jsndvz9vfwy2wyql8mp9j6v75vjsipy0idwan5yzgf"))))
590abe01
JN
2470 (build-system gnu-build-system)
2471 (native-inputs
2472 `(("nasm" ,nasm)
2473 ("python" ,python)))
2474 (arguments
8363a835
EF
2475 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2476 "CC=gcc")
590abe01
JN
2477 #:test-target "test"
2478 #:phases (modify-phases %standard-phases
2479 ;; no configure script
2480 (delete 'configure))))
2481 (home-page "http://www.openh264.org/")
2482 (synopsis "H264 decoder library")
2483 (description
2484 "Openh264 is a library which can decode H264 video streams.")
2485 (license license:bsd-2)))
3a44c7bb 2486
2487(define-public libmp4v2
2488 (package
2489 (name "libmp4v2")
2490 (version "2.0.0")
2491 (source
2492 (origin
2493 (method url-fetch)
2494 ;; XXX: The new location of upstream is uncertain and will become relevant the
2495 ;; moment when the googlecode archive shuts down. It is past the date it
2496 ;; should've been turned off. I tried to communicate with upstream, but this
2497 ;; wasn't very responsive and not very helpful. The short summary is, it is
2498 ;; chaos when it comes to the amount of forks and only time will tell where
2499 ;; the new upstream location is.
2500 (uri (string-append "https://storage.googleapis.com/google-"
2501 "code-archive-downloads/v2/"
2502 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
2503 (file-name (string-append name "-" version ".tar.bz2"))
2504 (sha256
2505 (base32
2506 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
2507 (build-system gnu-build-system)
2508 (outputs '("out"
2509 "static")) ; 3.7MiB .a file
2510 (arguments
2511 `(#:phases
2512 (modify-phases %standard-phases
2513 (add-after 'unpack 'remove-dates
2514 (lambda _
2515 ;; Make the build reproducible.
2516 (substitute* "configure"
2517 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
2518 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
2519 #t))
2520 (add-after 'install 'move-static-libraries
2521 (lambda* (#:key outputs #:allow-other-keys)
2522 ;; Move static libraries to the "static" output.
2523 (let* ((out (assoc-ref outputs "out"))
2524 (lib (string-append out "/lib"))
2525 (static (assoc-ref outputs "static"))
2526 (slib (string-append static "/lib")))
2527 (mkdir-p slib)
2528 (for-each (lambda (file)
2529 (install-file file slib)
2530 (delete-file file))
2531 (find-files lib "\\.a$"))
2532 #t))))))
2533 (native-inputs
2534 `(("help2man" ,help2man)
2535 ("dejagnu" ,dejagnu)))
2536 (home-page "https://code.google.com/archive/p/mp4v2/")
2537 (synopsis "API to create and modify mp4 files")
2538 (description
2539 "The MP4v2 library provides an API to create and modify mp4 files as defined by
2540ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
2541file format that has been used as a multimedia file format in a variety of platforms and
2542applications. It is a very powerful and extensible format that can accommodate
2543practically any type of media.")
2544 (license license:mpl1.1)))
e0c40707
EJ
2545
2546(define-public libmediainfo
2547 (package
2548 (name "libmediainfo")
2549 (version "0.7.95")
2550 (source (origin
2551 (method url-fetch)
2552 (uri (string-append "https://mediaarea.net/download/source/"
2553 name "/" version"/"
2554 name "_" version ".tar.bz2"))
2555 (sha256
2556 (base32
2557 "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b"))))
2558 ;; TODO add a Big Buck Bunny webm for tests.
2559 (native-inputs
2560 `(("autoconf" ,autoconf)
2561 ("automake" ,automake)
2562 ("libtool" ,libtool)
2563 ("pkg-config" ,pkg-config)
2564 ("zlib" ,zlib)
2565 ("tinyxml2" ,tinyxml2)
2566 ("curl" ,curl)
2567 ("libzen" ,libzen)))
2568 (build-system gnu-build-system)
2569 (arguments
2570 '(#:tests? #f ; see above TODO
2571 #:phases
2572 ;; build scripts not in root of archive
2573 (modify-phases %standard-phases
0cae36b5 2574 (add-after 'unpack 'change-to-build-dir
e0c40707 2575 (lambda _
0cae36b5
EF
2576 (chdir "Project/GNU/Library")
2577 #t))
2578 (add-after 'change-to-build-dir 'autogen
e0c40707 2579 (lambda _
bf6edb95 2580 (invoke "sh" "autogen.sh"))))))
e0c40707
EJ
2581 (home-page "https://mediaarea.net/en/MediaInfo")
2582 (synopsis "Library for retrieving media metadata")
2583 (description "MediaInfo is a library used for retrieving technical
2584information and other metadata about audio or video files. A non-exhaustive
2585list of the information MediaInfo can retrieve from media files include:
2586
2587@itemize
2588@item General: title, author, director, album, track number, date, duration...
2589@item Video: codec, aspect, fps, bitrate...
2590@item Audio: codec, sample rate, channels, language, bitrate...
2591@item Text: language of subtitle
2592@item Chapters: number of chapters, list of chapters
2593@end itemize
2594
2595MediaInfo supports the following formats:
2596
2597@itemize
2598@item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
2599MPEG-2, MPEG-4, DVD (VOB)...
2600@item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
2601@item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
2602@item Subtitles: SRT, SSA, ASS, SAMI...
2603@end itemize\n")
2604 (license license:bsd-2)))
2605
d5fa2777
EJ
2606;; TODO also have a GUI version available
2607(define-public mediainfo
2608 (package
2609 (name "mediainfo")
2610 (version "0.7.95")
2611 (source (origin
2612 (method url-fetch)
2613 (uri (string-append "https://mediaarea.net/download/source/"
2614 name "/" version "/"
2615 name "_" version ".tar.bz2"))
2616 (sha256
2617 (base32
2618 "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv"))))
2619 (native-inputs
2620 `(("autoconf" ,autoconf)
2621 ("automake" ,automake)
2622 ("libtool" ,libtool)
2623 ("pkg-config" ,pkg-config)
2624 ("zlib" ,zlib)
c695fb76 2625 ("libmediainfo" ,libmediainfo)
d5fa2777
EJ
2626 ("libzen" ,libzen)))
2627 (build-system gnu-build-system)
2628 (arguments
2629 '(#:tests? #f ; lacks tests
2630 #:phases
2631 ;; build scripts not in root of archive
2632 (modify-phases %standard-phases
2f17187f 2633 (add-after 'unpack 'change-to-build-dir
d5fa2777 2634 (lambda _
2f17187f
EF
2635 (chdir "Project/GNU/CLI")
2636 #t))
2637 (add-after 'change-to-build-dir 'autogen
d5fa2777 2638 (lambda _
d793d9a6 2639 (invoke "sh" "autogen.sh"))))))
d5fa2777
EJ
2640 (home-page "https://mediaarea.net/en/MediaInfo")
2641 (synopsis "Utility for reading media metadata")
2642 (description "MediaInfo is a utility used for retrieving technical
2643information and other metadata about audio or video files. It supports the
2644many codecs and formats supported by libmediainfo.")
2645 (license license:bsd-2)))
fa379a5b
CL
2646
2647(define-public livemedia-utils
2648 (package
2649 (name "livemedia-utils")
7342edf3 2650 (version "2017.10.28")
fa379a5b
CL
2651 (source (origin
2652 (method url-fetch)
2653 (uri (string-append
517c66c0 2654 "https://download.videolan.org/contrib/live555/live."
fa379a5b
CL
2655 version ".tar.gz"))
2656 (sha256
2657 (base32
7342edf3 2658 "0f5kxpayqn3yhabqrd2cqlc74i6x2xr01jfkank1lcilxnfyrsnq"))
156c14c1 2659 (modules '((guix build utils)))
6cbee49d
MW
2660 (snippet '(begin
2661 ;; As of glibc 2.26, <xlocale.h> no longer is.
2662 (substitute* "liveMedia/include/Locale.hh"
2857e527
MW
2663 (("xlocale\\.h") "locale.h"))
2664 #t))))
fa379a5b
CL
2665 (build-system gnu-build-system)
2666 (arguments
2667 '(#:tests? #f ; no tests
2668 #:make-flags (list "CC=gcc"
2669 (string-append "LDFLAGS=-Wl,-rpath="
2670 (assoc-ref %outputs "out") "/lib")
2671 (string-append "PREFIX="
2672 (assoc-ref %outputs "out")))
2673 #:phases (modify-phases %standard-phases
2674 (add-before 'configure 'fix-makefiles-generation
2675 (lambda _
2676 (substitute* "genMakefiles"
2677 (("/bin/rm") "rm"))
2678 #t))
2679 (replace 'configure
2680 (lambda _
6b677bb0
TGR
2681 (invoke "./genMakefiles"
2682 "linux-with-shared-libraries"))))))
fa379a5b
CL
2683 (home-page "http://www.live555.com/liveMedia/")
2684 (synopsis "Set of C++ libraries for multimedia streaming")
2685 (description "This code forms a set of C++ libraries for multimedia
2686streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
2687can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
2688JPEG video, and several audio codecs. They can easily be extended to support
2689additional (audio and/or video) codecs, and can also be used to build basic
2690RTSP or SIP clients and servers.")
2691 (license license:lgpl3+)))
0dff4dd9
CL
2692
2693(define-public libdvbpsi
2694 (package
2695 (name "libdvbpsi")
74b977d7 2696 (version "1.3.2")
0dff4dd9
CL
2697 (source (origin
2698 (method url-fetch)
2699 (uri (string-append
2700 "https://download.videolan.org/pub/libdvbpsi/"
2701 version "/libdvbpsi-" version ".tar.bz2"))
2702 (sha256
2703 (base32
74b977d7 2704 "1zn5hfv4qbahmydbwh59a3b480s3m5ss27r6ml35gqdip7r3jkmc"))))
0dff4dd9
CL
2705 (build-system gnu-build-system)
2706 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
2707 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
2708tables")
2709 (description "libdvbpsi is a simple library designed for decoding and
2710generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
2711and ITU-T H.222.0.")
2712 (license license:lgpl2.1)))
6779ae27
JL
2713
2714(define-public ffms2
2715 (package
2716 (name "ffms2")
2717 (version "2.23")
b1eaede0 2718 (home-page "https://github.com/FFMS/ffms2")
6779ae27
JL
2719 (source (origin
2720 (method url-fetch)
b1eaede0 2721 (uri (string-append home-page "/archive/" version ".tar.gz"))
6779ae27
JL
2722 (file-name (string-append name "-" version ".tar.gz"))
2723 (sha256
2724 (base32
2725 "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh"))))
2726 (build-system gnu-build-system)
2727 (arguments
2728 '(#:configure-flags
2729 (list "--enable-avresample")))
2730 (inputs
2731 `(("zlib" ,zlib)))
2732 (propagated-inputs
2733 `(("ffmpeg" ,ffmpeg)))
2734 (native-inputs
2735 `(("pkg-config" ,pkg-config)))
2736 (synopsis "Cross-platform wrapper around ffmpeg/libav")
2737 (description
2738 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
2739programmers to access a standard API to open and decompress media files.")
2740 ;; sources are distributed under a different license that the binary.
2741 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
2742 (license license:gpl2+))); inherits from ffmpeg
c812f460
JL
2743
2744(define-public aegisub
2745 (package
2746 (name "aegisub")
2747 (version "3.2.2")
2748 (source (origin
2749 (method url-fetch)
2750 (uri (string-append
2751 "http://ftp.aegisub.org/pub/archives/releases/source/"
2752 name "-" version ".tar.xz"))
2753 (sha256
2754 (base32
18e56ad7
BH
2755 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))
2756 (patches (search-patches "aegisub-icu59-include-unistr.patch"))))
c812f460
JL
2757 (build-system gnu-build-system)
2758 (arguments
2759 `(#:configure-flags
2760 (list "--disable-update-checker"
2761 "--without-portaudio"
2762 "--without-openal"
18e56ad7
BH
2763 "--without-oss"
2764 "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1")
c812f460
JL
2765 ;; tests require busted, a lua package we don't have yet
2766 #:tests? #f
2767 #:phases
2768 (modify-phases %standard-phases
2769 (add-before 'configure 'fix-ldflags
2770 (lambda _
18e56ad7
BH
2771 (setenv "LDFLAGS" "-pthread")
2772 #t)))))
c812f460
JL
2773 (inputs
2774 `(("boost" ,boost)
2775 ("desktop-file-utils" ,desktop-file-utils)
2776 ("ffms2" ,ffms2)
2777 ("fftw" ,fftw)
2778 ("hunspell" ,hunspell)
2779 ("mesa" ,mesa)
2780 ("libass" ,libass)
2781 ("alsa-lib" ,alsa-lib)
2782 ("pulseaudio" ,pulseaudio)
2783 ("libx11" ,libx11)
2784 ("freetype" ,freetype)
2785 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2786 (native-inputs
2787 `(("intltool" ,intltool)
2788 ("pkg-config" ,pkg-config)))
2789 (home-page "http://www.aegisub.org/")
2790 (synopsis "Subtitle engine")
2791 (description
2792 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
2793it quick and easy to time subtitles to audio, and features many powerful
2794tools for styling them, including a built-in real-time video preview.")
2795 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
2796 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
2797 license:expat)))) ; and src/gl that is under a license similar
2798 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
2799 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
2800 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
2801
635f981b 2802(define-public gst-transcoder
2803 (package
2804 (name "gst-transcoder")
2805 (version "1.12.2")
2806 (source
2807 (origin
2808 (method url-fetch)
2809 (uri (string-append "https://github.com/pitivi/gst-transcoder/"
2810 "archive/" version ".tar.gz"))
2811 (file-name (string-append name "-" version ".tar.gz"))
2812 (sha256
2813 (base32
2814 "0cnwmrsd321s02ff91m3j27ydj7f8wks0jvmp5admlhka6z7zxm9"))))
2815 (build-system meson-build-system)
2816 (inputs
2817 `(("gobject-introspection" ,gobject-introspection)
2818 ("glib" ,glib)
2819 ("gstreamer" ,gstreamer)
2820 ("gst-plugins-base" ,gst-plugins-base)))
2821 (native-inputs
2822 `(("python" ,python)
2823 ("pkg-config" ,pkg-config)))
2824 (home-page "https://github.com/pitivi/gst-transcoder/")
2825 (synopsis "GStreamer Transcoding API")
2826 (description "GStreamer Transcoding API")
2827 (license license:lgpl2.1)))
e37bdc0f 2828
2829(define-public gavl
2830 (package
2831 (name "gavl")
2832 (version "1.4.0")
2833 (source
2834 (origin
2835 (method url-fetch)
2836 (uri (string-append "mirror://sourceforge/gmerlin/"
2837 name "/" version "/"
2838 name "-" version ".tar.gz"))
2839 (file-name (string-append name "-" version ".tar.gz"))
2840 (sha256
2841 (base32
2842 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
2843 (build-system gnu-build-system)
c178aa34
EF
2844 (arguments
2845 '(#:configure-flags '("LIBS=-lm")))
e37bdc0f 2846 (native-inputs
2847 `(("pkg-config" ,pkg-config)
2848 ("doxygen" ,doxygen)))
2849 (home-page "http://gmerlin.sourceforge.net")
2850 (synopsis "Low level library for multimedia API building")
2851 (description
2852 "Gavl is short for Gmerlin Audio Video Library. It is a low level
2853library, upon which multimedia APIs can be built. Gavl handles all the
2854details of audio and video formats like colorspaces, sample rates,
2855multichannel configurations, etc. It provides standardized definitions for
2856those formats as well as container structures for carrying audio samples or
2857video images inside an application.
2858
2859In addition, it handles the sometimes ugly task of converting between all
2860these formats and provides some elementary operations (copying, scaling,
2861alpha blending etc).")
2862 (license license:gpl3)))
49e1d76d 2863
2864(define-public frei0r-plugins
2865 (package
2866 (name "frei0r-plugins")
2867 (version "1.6.1")
2868 (source
2869 (origin
2870 (method url-fetch)
2871 (uri (string-append "https://files.dyne.org/frei0r/"
2872 "frei0r-plugins-" version ".tar.gz"))
2873 (sha256
2874 (base32
2875 "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0"))))
2876 (build-system gnu-build-system)
2877 (arguments
2878 `(#:phases
2879 (modify-phases %standard-phases
2880 (add-after 'unpack 'autotools
2881 (lambda _
63181c85
TGR
2882 (invoke "sh" "autogen.sh"))))))
2883 ;; TODO: opencv for additional face detection filters.
49e1d76d 2884 (inputs
2885 `(("gavl" ,gavl)
2886 ("cairo" ,cairo)))
2887 (native-inputs
2888 `(("pkg-config" ,pkg-config)
2889 ("libtool" ,libtool)
2890 ("automake" ,automake)
2891 ("autoconf" ,autoconf)))
2892 (home-page "https://www.dyne.org/software/frei0r/")
2893 (synopsis "Minimalistic plugin API for video effects")
2894 (description
2895 "Frei0r is a minimalistic plugin API for video effects.
2896The main emphasis is on simplicity for an API that will round up
2897the most common video effects into simple filters, sources and
2898mixers that can be controlled by parameters. Frei0r wants to
2899provide a way to share these simple effects between many
2900applications, avoiding their reimplementation by different projects.
2901It counts more than 100 plugins.")
2902 (license (list license:gpl2+
2903 ;; The following files are licensed as LGPL2.1+:
2904 ;; src/generator/ising0r/ising0r.c
2905 ;; src/generator/onecol0r/onecol0r.cpp
2906 ;; src/generator/nois0r/nois0r.cpp
2907 ;; src/generator/lissajous0r/lissajous0r.cpp
2908 ;; src/filter/ndvi/gradientlut.hpp
2909 ;; src/filter/ndvi/ndvi.cpp
2910 ;; src/filter/facedetect/facedetect.cpp
2911 license:lgpl2.1+))))
eb3e41c9
LC
2912
2913(define-public motion
2914 (package
2915 (name "motion")
2916 (version "4.1.1")
2917 (home-page "https://motion-project.github.io/")
2918 (source (origin
2919 (method url-fetch)
2920 (uri (string-append
2921 "https://github.com/Motion-Project/motion/archive/"
2922 "release-" version ".tar.gz"))
2923 (sha256
2924 (base32
2925 "1qm4i8zrqafl60sv2frhixvkd0wh0r5jfcrj5i6gha7yplsvjx10"))
2926 (file-name (string-append name "-" version ".tar.gz"))))
2927 (build-system gnu-build-system)
2928 (native-inputs
464f5447 2929 `(("autoconf" ,autoconf-wrapper)
eb3e41c9
LC
2930 ("automake" ,automake)
2931 ("pkg-config" ,pkg-config)))
2932 (inputs
2933 `(("libjpeg" ,libjpeg)
bb5c508c 2934 ("ffmpeg" ,ffmpeg-3.4)
eb3e41c9
LC
2935 ("sqlite" ,sqlite)))
2936 (arguments
2937 '(#:phases (modify-phases %standard-phases
189be331 2938 (replace 'bootstrap
eb3e41c9
LC
2939 (lambda _
2940 (patch-shebang "version.sh")
2941 (invoke "autoreconf" "-vfi"))))
2942 #:configure-flags '("--sysconfdir=/etc")
2943 #:make-flags (list (string-append "sysconfdir="
2944 (assoc-ref %outputs "out")
2945 "/etc"))
2946
2947 #:tests? #f)) ;no 'check' target
2948 (synopsis "Detect motion from video signals")
2949 (description
2950 "Motion is a program that monitors the video signal from one or more
2951cameras and is able to detect if a significant part of the picture has
2952changed. Or in other words, it can detect motion.")
2953
2954 ;; Some files say "version 2" and others "version 2 or later".
2955 (license license:gpl2)))
f27f264e
PN
2956
2957(define-public subdl
2958 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
2959 (revision "1"))
2960 (package
2961 (name "subdl")
2962 (version (git-version "1.0.3" revision commit))
2963 (source (origin
2964 (method git-fetch)
2965 (uri (git-reference
2966 (url "https://github.com/alexanderwink/subdl.git")
2967 (commit commit)))
2968 (file-name (git-file-name name version))
2969 (sha256
2970 (base32
2971 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
2972 (build-system trivial-build-system)
2973 (arguments
2974 `(#:modules ((guix build utils))
2975 #:builder (begin
2976 (use-modules (guix build utils))
2977 (let* ((out (assoc-ref %outputs "out"))
2978 (bin (string-append out "/bin"))
2979 (source (assoc-ref %build-inputs "source"))
2980 (python (assoc-ref %build-inputs "python")))
2981 (install-file (string-append source "/subdl") bin)
2982 (patch-shebang (string-append bin "/subdl")
2983 (list (string-append python "/bin")))))))
2984 (inputs `(("python" ,python)))
2985 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
2986 (description "Subdl is a command-line tool for downloading subtitles from
2987opensubtitles.org. By default, it will search for English subtitles, display
2988the results, download the highest-rated result in the requested language and
2989save it to the appropriate filename.")
2990 (license license:gpl3+)
2991 (home-page "https://github.com/alexanderwink/subdl"))))
eb88e2c1
CL
2992
2993(define-public l-smash
2994 (package
2995 (name "l-smash")
2996 (version "2.14.5")
2997 (source (origin
2998 (method url-fetch)
2999 (uri (string-append
3000 "https://github.com/" name "/" name "/archive/v"
3001 version ".tar.gz"))
3002 (file-name (string-append name "-" version ".tar.gz"))
3003 (sha256
3004 (base32
3005 "0dary0h65kq6sv93iabv25djlvzr5ckdcp3ywagbix44wqfw7xz6"))))
3006 (build-system gnu-build-system)
3007 (arguments
3008 `(#:tests? #f ;no tests
3009 #:make-flags
3010 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
3011 (assoc-ref %outputs "out") "/lib"))
3012 #:phases
3013 (modify-phases %standard-phases
3014 ;; configure fails if it is followed by CONFIG_SHELL
3015 (replace 'configure
3016 (lambda* (#:key outputs #:allow-other-keys)
3017 (let ((out (assoc-ref outputs "out")))
3018 (invoke "./configure" (string-append "--prefix=" out)
3019 "--disable-static")))))))
3020 (native-inputs
3021 `(("which" ,which)))
3022 (home-page "https://l-smash.github.io/l-smash/")
3023 (synopsis "MP4 multiplexer and demultiplexer library")
3024 (description
3025 "L-SMASH is a cross-platform library that handles the ISO base media file
3026format and some of its derived file formats, including MP4. It operates as a
3027multiplexer and demultiplexer, and can mux video and audio in several formats
3028using standalone executable files.")
3029 (license license:isc)))
a0135eee
LF
3030
3031(define-public qtfaststart
3032 (package
3033 (name "qtfaststart")
3034 (version "1.8")
3035 (source (origin
3036 (method url-fetch)
3037 (uri (pypi-uri "qtfaststart" version))
3038 (sha256
3039 (base32
3040 "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h"))))
3041 (build-system python-build-system)
3042 (arguments
3043 '(#:tests? #f)) ; no test suite
3044 (synopsis "Move QuickTime and MP4 metadata to the beginning of the file")
3045 (description "qtfaststart enables streaming and pseudo-streaming of
3046QuickTime and MP4 files by moving metadata and offset information to the
3047beginning of the file. It can also print some useful information about the
3048structure of the file. This program is based on qt-faststart.c from the FFmpeg
3049project, which is released into the public domain, as well as ISO 14496-12:2005
3050(the official spec for MP4), which can be obtained from the ISO or found
3051online.")
3052 (home-page "https://github.com/danielgtaylor/qtfaststart")
3053 (license license:expat)))
485638cd
LF
3054
3055(define-public vidstab
3056 (package
3057 (name "vidstab")
3058 (version "1.1.0")
3059 (source (origin
3060 (method url-fetch)
3061 (uri (string-append "https://github.com/georgmartius/vid.stab/"
3062 "archive/v" version ".tar.gz"))
3063 (sha256
3064 (base32
3065 "1fy03n343djfdi19msac81833v5iivpv635yjzrx9nkfwm9s1lhl"))))
3066 (build-system cmake-build-system)
3067 (arguments
3068 '(#:tests? #f)) ; tests are not run as part of standard build process
3069 (home-page "http://public.hronopik.de/vid.stab/")
3070 (synopsis "Video stabilization library")
3071 (description "Vidstab is a video stabilization library which can be used
3072with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a
3073vehicle typically suffers from undesirable shakes and jitters. Activities such
3074as surfing, skiing, riding and walking while shooting videos are especially
3075prone to erratic camera shakes. Vidstab targets these video contents to help
3076create smoother and stable videos.")
3077 (license license:gpl2+)))