gnu: ocaml-gsl: Update to 1.22.0.
[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>
f27f264e 27;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
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")
a33727db 261 (version "20180219-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
bb2a9558 268 "1x0cg8l30wp84mr7q0ddp06jclm0kjrszazrx87d4k7js3qxjy8m"))))
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")
2c01c42e 563 (version "2.1.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
2c01c42e 575 (base32 "03sb1b3fxw8myf9kz6rxw5f3v1p0vfmk34779qx0q8fk24x9bypk"))))
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
d5a748e8
AE
853(define-public vlc
854 (package
855 (name "vlc")
324c049f 856 (version "3.0.3-1")
d5a748e8
AE
857 (source (origin
858 (method url-fetch)
859 (uri (string-append
a134cc8e 860 "https://download.videolan.org/pub/videolan/vlc/"
324c049f
LF
861 (car (string-split version #\-))
862 "/vlc-" version ".tar.xz"))
d5a748e8
AE
863 (sha256
864 (base32
324c049f 865 "1p7qvdvg9w4lz8vckzhn6bswfkq3qw7fqkgvwjcskdgc266xx7dw"))))
d5a748e8
AE
866 (build-system gnu-build-system)
867 (native-inputs
76277052
MW
868 `(("flex" ,flex)
869 ("bison" ,bison)
870 ("gettext" ,gettext-minimal)
871 ("git" ,git) ; needed for a test
d5a748e8
AE
872 ("pkg-config" ,pkg-config)))
873 ;; FIXME: Add optional inputs once available.
874 (inputs
875 `(("alsa-lib" ,alsa-lib)
876 ("avahi" ,avahi)
877 ("dbus" ,dbus)
76277052 878 ("eudev" ,eudev)
d5a748e8 879 ("flac" ,flac)
76277052 880 ("ffmpeg" ,ffmpeg)
d5a748e8
AE
881 ("fontconfig" ,fontconfig)
882 ("freetype" ,freetype)
76277052 883 ("fribidi" ,fribidi)
d5a748e8 884 ("gnutls" ,gnutls)
8824da4c 885 ("liba52" ,liba52)
76277052
MW
886 ("libarchive" ,libarchive)
887 ("libass" ,libass)
888 ("libavc1394" ,libavc1394)
889 ("libbluray" ,libbluray)
890 ("libcaca" ,libcaca)
d5a748e8 891 ("libcddb" ,libcddb)
76277052 892 ("libdca" ,libdca)
72b6a894 893 ("libdvbpsi" ,libdvbpsi)
76277052
MW
894 ("libdvdnav" ,libdvdnav)
895 ("libdvdread" ,libdvdread)
896 ("libebml" ,libebml)
d5a748e8 897 ("libgcrypt" ,libgcrypt)
76277052 898 ("libidn" ,libidn)
d5a748e8
AE
899 ("libkate" ,libkate)
900 ("libmad" ,libmad)
76277052
MW
901 ("libmatroska" ,libmatroska)
902 ("libmodplug" ,libmodplug)
903 ("libmpeg2" ,libmpeg2)
d5a748e8
AE
904 ("libogg" ,libogg)
905 ("libpng" ,libpng)
76277052
MW
906 ("libraw1394" ,libraw1394)
907 ("librsvg" ,librsvg)
d5a748e8 908 ("libsamplerate" ,libsamplerate)
76277052 909 ("libsecret" ,libsecret)
d5a748e8 910 ("libssh2" ,libssh2)
76277052
MW
911 ("libupnp" ,libupnp)
912 ("libva" ,libva)
913 ("libvdpau" ,libvdpau)
d5a748e8 914 ("libvorbis" ,libvorbis)
76277052 915 ("libvpx" ,libvpx)
d5a748e8 916 ("libtheora" ,libtheora)
76277052 917 ("libx264" ,libx264)
d5a748e8 918 ("libxext" ,libxext)
c161c22a 919 ("libxi" ,libxi)
d5a748e8
AE
920 ("libxinerama" ,libxinerama)
921 ("libxml2" ,libxml2)
922 ("libxpm" ,libxpm)
2aaa5729 923 ("livemedia-utils" ,livemedia-utils)
76277052 924 ("lua" ,lua-5.2)
d5a748e8
AE
925 ("mesa" ,mesa)
926 ("opus" ,opus)
927 ("perl" ,perl)
928 ("pulseaudio" ,pulseaudio)
929 ("python" ,python-wrapper)
552c3e95 930 ("qtbase" ,qtbase)
76277052 931 ("qtsvg" ,qtsvg)
552c3e95 932 ("qtx11extras" ,qtx11extras)
76277052 933 ("samba" ,samba)
d5a748e8
AE
934 ("sdl" ,sdl)
935 ("sdl-image" ,sdl-image)
936 ("speex" ,speex)
76277052
MW
937 ("speexdsp" ,speexdsp)
938 ("taglib" ,taglib)
939 ("twolame" ,twolame)
940 ("unzip" ,unzip)
941 ("wayland" ,wayland)
942 ("wayland-protocols" ,wayland-protocols)
8f5f6c92 943 ("x265" ,x265)
d5a748e8
AE
944 ("xcb-util-keysyms" ,xcb-util-keysyms)))
945 (arguments
946 `(#:configure-flags
eb1f2420 947 `("CXXFLAGS=-std=gnu++11"
76277052 948 "BUILDCC=gcc"
d5a748e8
AE
949 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
950 (assoc-ref %build-inputs "ffmpeg")
cd76fbde
LC
951 "/lib")) ;needed for the tests
952
953 #:phases
954 (modify-phases %standard-phases
2d2e97bd 955 (add-after 'unpack 'patch-source
2aaa5729
CL
956 (lambda* (#:key inputs #:allow-other-keys)
957 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
2d2e97bd 958 (substitute* "configure"
2aaa5729
CL
959 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
960 (string-append "LIVE555_PREFIX=" livemedia-utils)))
2d2e97bd
MB
961 ;; Some of the tests require using the display to test out VLC,
962 ;; which fails in our sandboxed build system
963 (substitute* "test/run_vlc.sh"
964 (("./vlc --ignore-config") "echo"))
76277052
MW
965
966 ;; modules/text_renderer/freetype/text_layout.c uses a
967 ;; now-deprecated interface 'fribidi_get_par_embedding_levels'
968 ;; from fribidi.h, so for now we enable the use of deprecated
969 ;; fribidi interfaces from this file.
970 ;; FIXME: Try removing this for vlc >= 3.0.3.
971 (substitute* "modules/text_renderer/freetype/text_layout.c"
972 (("# define FRIBIDI_NO_DEPRECATED 1") ""))
973
c7d901c1 974 ;; Fix build against Qt 5.11.
76277052 975 (substitute* "modules/gui/qt/actions_manager.cpp"
c7d901c1
CL
976 (("#include <vlc_keys.h>") "#include <vlc_keys.h>
977#include <QAction>"))
76277052 978 (substitute* "modules/gui/qt/components/simple_preferences.cpp"
c7d901c1
CL
979 (("#include <QFont>") "#include <QFont>
980#include <QButtonGroup>"))
2aaa5729 981 #t)))
76277052 982 (add-after 'strip 'regenerate-plugin-cache
cd76fbde
LC
983 (lambda* (#:key outputs #:allow-other-keys)
984 ;; The 'install-exec-hook' rule in the top-level Makefile.am
985 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
986 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
987 ;; it references. Thus, we first reset the timestamps of all
988 ;; these files, and then regenerate the cache such that the
989 ;; mtimes it includes are always zero instead of being dependent
990 ;; on the build time.
991 (let* ((out (assoc-ref outputs "out"))
992 (pkglibdir (string-append out "/lib/vlc"))
993 (plugindir (string-append pkglibdir "/plugins"))
994 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
995 ;; TODO: Factorize 'reset-timestamps'.
996 (for-each (lambda (file)
997 (let ((s (lstat file)))
998 (unless (eq? (stat:type s) 'symlink)
76277052 999 (utime file 1 1))))
cd76fbde 1000 (find-files plugindir))
76277052
MW
1001 (invoke cachegen plugindir))))
1002 (add-after 'install 'wrap-executable
1003 (lambda* (#:key outputs #:allow-other-keys)
1004 (let ((out (assoc-ref outputs "out"))
1005 (plugin-path (getenv "QT_PLUGIN_PATH")))
1006 (wrap-program (string-append out "/bin/vlc")
1007 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
1008 #t)))))
d5a748e8
AE
1009 (home-page "https://www.videolan.org/")
1010 (synopsis "Audio and video framework")
1011 (description "VLC is a cross-platform multimedia player and framework
1012that plays most multimedia files as well as DVD, Audio CD, VCD, and various
1013treaming protocols.")
ae0bdd81 1014 (license license:gpl2+)))
ace69243
AE
1015
1016(define-public mplayer
1017 (package
1018 (name "mplayer")
e71b20e5 1019 (version "1.3.0")
ace69243
AE
1020 (source (origin
1021 (method url-fetch)
1022 (uri (string-append
ebde7c7a 1023 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
ace69243
AE
1024 version ".tar.xz"))
1025 (sha256
1026 (base32
e71b20e5 1027 "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s"))))
ace69243
AE
1028 (build-system gnu-build-system)
1029 ;; FIXME: Add additional inputs once available.
1030 (native-inputs
1031 `(("pkg-config" ,pkg-config)))
1032 (inputs
1033 `(("alsa-lib" ,alsa-lib)
1034 ("cdparanoia" ,cdparanoia)
21e6428d 1035 ("ffmpeg" ,ffmpeg-3.4)
778a6a8b 1036 ("fontconfig" ,fontconfig)
ace69243 1037 ("freetype" ,freetype)
778a6a8b 1038;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5
ace69243 1039 ("lame" ,lame)
778a6a8b 1040 ("libass" ,libass)
b3546174
MW
1041 ("libdvdcss" ,libdvdcss)
1042 ("libdvdnav" ,libdvdnav)
ace69243 1043 ("libjpeg" ,libjpeg)
778a6a8b
EF
1044 ("libmpeg2" ,libmpeg2)
1045 ("libmpg123" ,mpg123) ; audio codec for MP3
ace69243
AE
1046 ("libpng" ,libpng)
1047 ("libtheora" ,libtheora)
778a6a8b 1048 ("libvdpau" ,libvdpau)
ace69243
AE
1049 ("libvorbis" ,libvorbis)
1050 ("libx11" ,libx11)
778a6a8b 1051 ("libx264" ,libx264)
ace69243
AE
1052 ("libxinerama" ,libxinerama)
1053 ("libxv" ,libxv)
778a6a8b 1054 ("libxxf86dga" ,libxxf86dga)
ace69243 1055 ("mesa" ,mesa)
778a6a8b 1056 ("opus" ,opus)
ace69243
AE
1057 ("perl" ,perl)
1058 ("pulseaudio" ,pulseaudio)
1059 ("python" ,python-wrapper)
1060 ("sdl" ,sdl)
1061 ("speex" ,speex)
1062 ("yasm" ,yasm)
1063 ("zlib" ,zlib)))
1064 (arguments
1065 `(#:tests? #f ; no test target
1066 #:phases
ebde7c7a
EF
1067 (modify-phases %standard-phases
1068 (replace 'configure
ace69243
AE
1069 ;; configure does not work followed by "SHELL=..." and
1070 ;; "CONFIG_SHELL=..."; set environment variables instead
1071 (lambda* (#:key inputs outputs #:allow-other-keys)
1072 (let ((out (assoc-ref outputs "out"))
1073 (libx11 (assoc-ref inputs "libx11")))
1074 (substitute* "configure"
2564b7c2 1075 (("#! /bin/sh") (string-append "#!" (which "sh"))))
ace69243
AE
1076 (setenv "SHELL" (which "bash"))
1077 (setenv "CONFIG_SHELL" (which "bash"))
1fe5791d 1078 (invoke "./configure"
ace69243
AE
1079 (string-append "--extra-cflags=-I"
1080 libx11 "/include") ; to detect libx11
ebde7c7a 1081 "--disable-ffmpeg_a" ; disables bundled ffmpeg
ace69243 1082 (string-append "--prefix=" out)
fe138965
MW
1083 ;; Enable runtime cpu detection where supported,
1084 ;; and choose a suitable target.
1085 ,@(match (or (%current-target-system)
1086 (%current-system))
1087 ("x86_64-linux"
1088 '("--enable-runtime-cpudetection"
1089 "--target=x86_64-linux"))
1090 ("i686-linux"
1091 '("--enable-runtime-cpudetection"
1092 "--target=i686-linux"))
1093 ("mips64el-linux"
f0d6d835
MW
1094 '("--target=mips3-linux"))
1095 (_ (list (string-append
1096 "--target="
1097 (or (%current-target-system)
1098 (nix-system->gnu-triplet
1099 (%current-system)))))))
1fe5791d 1100 "--disable-iwmmxt")))))))
ebde7c7a 1101 (home-page "https://www.mplayerhq.hu/design7/news.html")
ace69243
AE
1102 (synopsis "Audio and video player")
1103 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
1104Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
1105NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
1106SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
ae0bdd81 1107 (license license:gpl2)))
d0ed39be 1108
1c1178cd
TUBK
1109(define-public mpv
1110 (package
1111 (name "mpv")
e97454b6 1112 (version "0.29.0")
1c1178cd
TUBK
1113 (source (origin
1114 (method url-fetch)
1115 (uri (string-append
1116 "https://github.com/mpv-player/mpv/archive/v" version
1117 ".tar.gz"))
1118 (sha256
1119 (base32
e97454b6 1120 "06bk8836brzik1qmq8kycwg5n35r438sd2176k6msjg5rrwghakp"))
1c1178cd
TUBK
1121 (file-name (string-append name "-" version ".tar.gz"))))
1122 (build-system waf-build-system)
1123 (native-inputs
832d60dc 1124 `(("perl" ,perl) ; for zsh completion file
1c1178cd
TUBK
1125 ("pkg-config" ,pkg-config)
1126 ("python-docutils" ,python-docutils)))
3440f12a 1127 ;; Missing features: libguess, V4L2
1c1178cd
TUBK
1128 (inputs
1129 `(("alsa-lib" ,alsa-lib)
1130 ("enca" ,enca)
06079c19 1131 ("ffmpeg" ,ffmpeg)
2d8781a4 1132 ("jack" ,jack-1)
1c1178cd
TUBK
1133 ("ladspa" ,ladspa)
1134 ("lcms" ,lcms)
1135 ("libass" ,libass)
1136 ("libbluray" ,libbluray)
1137 ("libcaca" ,libcaca)
1138 ("libbs2b" ,libbs2b)
1139 ("libcdio-paranoia" ,libcdio-paranoia)
1140 ("libdvdread" ,libdvdread)
1141 ("libdvdnav" ,libdvdnav)
1142 ("libjpeg" ,libjpeg)
1143 ("libva" ,libva)
81c29ccc 1144 ("libvdpau" ,libvdpau)
1c1178cd
TUBK
1145 ("libx11" ,libx11)
1146 ("libxext" ,libxext)
1147 ("libxinerama" ,libxinerama)
1148 ("libxrandr" ,libxrandr)
1149 ("libxscrnsaver" ,libxscrnsaver)
1150 ("libxv" ,libxv)
e66f0dd2
AP
1151 ;; XXX: lua > 5.2 is not currently supported; see
1152 ;; waftools/checks/custom.py
1153 ("lua" ,lua-5.2)
1c1178cd
TUBK
1154 ("mesa" ,mesa)
1155 ("mpg123" ,mpg123)
1156 ("pulseaudio" ,pulseaudio)
1157 ("rsound" ,rsound)
870541d6 1158 ("shaderc" ,shaderc)
08899ee9 1159 ("vulkan-headers" ,vulkan-headers)
e6fcf903 1160 ("vulkan-loader" ,vulkan-loader)
f0b8d83a 1161 ("waf" ,python-waf)
3440f12a 1162 ("wayland" ,wayland)
abc5ef5a 1163 ("wayland-protocols" ,wayland-protocols)
c695fb76 1164 ("libxkbcommon" ,libxkbcommon)
1c1178cd
TUBK
1165 ("youtube-dl" ,youtube-dl)
1166 ("zlib" ,zlib)))
1167 (arguments
1168 '(#:phases
1169 (modify-phases %standard-phases
1170 (add-before
f8503e2b 1171 'configure 'setup-waf
1c1178cd
TUBK
1172 (lambda* (#:key inputs #:allow-other-keys)
1173 (copy-file (assoc-ref inputs "waf") "waf")
d39260dc
MW
1174 (setenv "CC" "gcc")
1175 #t)))
98c8b963 1176 #:configure-flags (list "--enable-libmpv-shared"
43ba5dd4
EF
1177 "--enable-cdda"
1178 "--enable-dvdread"
1179 "--enable-dvdnav"
98c8b963
EF
1180 "--enable-zsh-comp"
1181 "--disable-build-date")
1c1178cd
TUBK
1182 ;; No check function defined.
1183 #:tests? #f))
581873b5 1184 (home-page "https://mpv.io/")
1c1178cd
TUBK
1185 (synopsis "Audio and video player")
1186 (description "mpv is a general-purpose audio and video player. It is a
1187fork of mplayer2 and MPlayer. It shares some features with the former
1188projects while introducing many more.")
ae0bdd81 1189 (license license:gpl2+)))
1c1178cd 1190
0e74bb5b
AG
1191(define-public gnome-mpv
1192 (package
1193 (name "gnome-mpv")
f136c8f2 1194 (version "0.14")
0e74bb5b
AG
1195 (source
1196 (origin
1197 (method url-fetch)
1198 (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases"
1199 "/download/v" version "/gnome-mpv-" version
1200 ".tar.xz"))
1201 (sha256
1202 (base32
f136c8f2 1203 "03kjwd5jq0i5ajnvhjwf5019bjjaa16xkdrhdkiz1k58ipjvvj93"))))
0e74bb5b
AG
1204 (native-inputs
1205 `(("intltool" ,intltool)
1206 ("pkg-config" ,pkg-config)))
1207 (inputs
1208 `(("gtk+" ,gtk+)
1209 ("libepoxy" ,libepoxy)
1210 ("mpv" ,mpv)))
1211 (build-system glib-or-gtk-build-system)
1212 (home-page "https://github.com/gnome-mpv/gnome-mpv")
1213 (synopsis "GTK+ frontend for the mpv media player")
1214 (description "GNOME MPV is a simple GTK+ frontend for the mpv media player.
1215GNOME MPV interacts with mpv via the client API exported by libmpv, allowing
1216access to mpv's powerful playback capabilities.")
1217 (license license:gpl3+)))
1218
d0ed39be
DT
1219(define-public libvpx
1220 (package
1221 (name "libvpx")
8a464433 1222 (version "1.7.0")
d0ed39be 1223 (source (origin
8a464433
MB
1224 ;; XXX: Upstream does not provide tarballs for > 1.6.1.
1225 (method git-fetch)
1226 (uri (git-reference
1227 (url "https://chromium.googlesource.com/webm/libvpx")
1228 (commit (string-append "v" version))))
1229 (file-name (git-file-name name version))
d0ed39be
DT
1230 (sha256
1231 (base32
8a464433 1232 "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6"))
c7c49446 1233 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
d0ed39be
DT
1234 (build-system gnu-build-system)
1235 (arguments
e896c227 1236 `(#:configure-flags (list "--enable-shared"
0e47b4e7
EF
1237 "--as=yasm"
1238 ;; Limit size to avoid CVE-2015-1258
1239 "--size-limit=16384x16384"
e896c227
MB
1240 (string-append "--prefix=" (assoc-ref %outputs "out")))
1241 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
1242 (assoc-ref %outputs "out") "/lib"))
1243 #:phases (modify-phases %standard-phases
1244 (replace 'configure
1245 (lambda* (#:key configure-flags #:allow-other-keys)
1246 ;; The configure script does not understand some of the GNU
1247 ;; options, so we only add the flags specified above.
1248 (apply invoke "./configure" configure-flags))))
4f8f15cd 1249 #:tests? #f)) ; no check target
d0ed39be
DT
1250 (native-inputs
1251 `(("perl" ,perl)
1252 ("yasm" ,yasm)))
1253 (synopsis "VP8/VP9 video codec")
1254 (description "libvpx is a codec for the VP8/VP9 video compression format.")
ae0bdd81 1255 (license license:bsd-3)
ad7664f6 1256 (home-page "https://www.webmproject.org/")))
615215a5
LC
1257
1258(define-public youtube-dl
1259 (package
1260 (name "youtube-dl")
57f962f3 1261 (version "2018.08.04")
615215a5
LC
1262 (source (origin
1263 (method url-fetch)
39dc7032 1264 (uri (string-append "https://yt-dl.org/downloads/"
615215a5
LC
1265 version "/youtube-dl-"
1266 version ".tar.gz"))
1267 (sha256
1268 (base32
57f962f3 1269 "1hcx99qbbyigc8k98c8bcc6a2wnhq6493fmrkl7rysc8krlxr0pm"))))
615215a5 1270 (build-system python-build-system)
2ad9515c
AV
1271 (arguments
1272 ;; The problem here is that the directory for the man page and completion
1273 ;; files is relative, and for some reason, setup.py uses the
1274 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
1275 ;; So, we need pass the prefix directly. In addition, make sure the Bash
1276 ;; completion file is called 'youtube-dl' rather than
1277 ;; 'youtube-dl.bash-completion'.
31c58006
LF
1278 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
1279 #:phases (modify-phases %standard-phases
2ad9515c
AV
1280 (add-before 'install 'fix-the-data-directories
1281 (lambda* (#:key outputs #:allow-other-keys)
1282 (let ((prefix (assoc-ref outputs "out")))
1283 (mkdir "bash-completion")
1284 (rename-file "youtube-dl.bash-completion"
1285 "bash-completion/youtube-dl")
1286 (substitute* "setup.py"
1287 (("youtube-dl\\.bash-completion")
1288 "bash-completion/youtube-dl")
1289 (("'etc/")
1290 (string-append "'" prefix "/etc/"))
1291 (("'share/")
caa8de70
TGR
1292 (string-append "'" prefix "/share/")))
1293 #t))))))
615215a5
LC
1294 (synopsis "Download videos from YouTube.com and other sites")
1295 (description
b798dfde 1296 "Youtube-dl is a small command-line program to download videos from
1c911690 1297YouTube.com and many more sites.")
39dc7032 1298 (home-page "https://yt-dl.org")
ae0bdd81 1299 (license license:public-domain)))
e6bdb36a 1300
794223bc
CM
1301(define-public youtube-dl-gui
1302 (package
1303 (name "youtube-dl-gui")
1304 (version "0.3.8")
1305 (source
1306 (origin
1307 (method url-fetch)
1308 (uri (pypi-uri "Youtube-DLG" version))
1309 (sha256
1310 (base32
1311 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
1312 (build-system python-build-system)
1313 (arguments
1314 ;; In Guix, wxpython has not yet been packaged for Python 3.
1315 `(#:python ,python-2
1316 ;; This package has no tests.
1317 #:tests? #f
1318 #:phases
1319 (modify-phases %standard-phases
1320 (add-before 'build 'patch-source
1321 (lambda* (#:key inputs #:allow-other-keys)
1322 ;; The youtube-dl-gui program lets you configure options. Some of
1323 ;; them are problematic, so we change their defaults.
1324 (substitute* "youtube_dl_gui/optionsmanager.py"
1325 ;; When this is true, the builder process will try (and fail) to
1326 ;; write logs to the builder user's home directory.
1327 (("'enable_log': True") "'enable_log': False")
1328 ;; This determines which youtube-dl program youtube-dl-gui will
1329 ;; run. If we don't set this, then youtube-dl-gui might download
1330 ;; an arbitrary copy from the Internet into the user's home
1331 ;; directory and run it, so let's make sure youtube-dl-gui uses
1332 ;; the youtube-dl from the inputs by default.
1333 (("'youtubedl_path': self.config_path")
1334 (string-append "'youtubedl_path': '"
1335 (assoc-ref inputs "youtube-dl")
1336 "/bin'"))
1337 ;; When this is True, when youtube-dl-gui is finished downloading
1338 ;; a file, it will try (and possibly fail) to open the directory
1339 ;; containing the downloaded file. This can fail because it
1340 ;; assumes that xdg-open is in PATH. Unfortunately, simply
1341 ;; adding xdg-utils to the propagated inputs is not enough to
1342 ;; make this work, so for now we set the default to False.
1343 (("'open_dl_dir': True") "'open_dl_dir': False"))
1344 ;; The youtube-dl program from the inputs is actually a wrapper
1345 ;; script written in bash, so attempting to invoke it as a python
1346 ;; script will fail.
1347 (substitute* "youtube_dl_gui/downloaders.py"
1348 (("cmd = \\['python', self\\.youtubedl_path\\]")
1349 "cmd = [self.youtubedl_path]"))
1350 ;; Use relative paths for installing data files so youtube-dl-gui
1351 ;; installs the files relative to its prefix in the store, rather
1352 ;; than relative to /. Also, instead of installing data files into
1353 ;; $prefix/usr/share, install them into $prefix/share for
1354 ;; consistency (see: (standards) Directory Variables).
1355 (substitute* "setup.py"
1356 (("= '/usr/share") "= 'share"))
1357 ;; Update get_locale_file() so it finds the installed localization
1358 ;; files.
1359 (substitute* "youtube_dl_gui/utils.py"
1360 (("os\\.path\\.join\\('/usr', 'share'")
1361 (string-append "os.path.join('"
1362 (assoc-ref %outputs "out")
1363 "', 'share'"))))))))
1364 (inputs
1365 `(("python2-wxpython" ,python2-wxpython)
1366 ("youtube-dl" ,youtube-dl)))
1367 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
1368 (synopsis
1369 "GUI (Graphical User Interface) for @command{youtube-dl}")
1370 (description
1371 "Youtube-dlG is a GUI (Graphical User Interface) for
1372@command{youtube-dl}. You can use it to download videos from YouTube and any
1373other site that youtube-dl supports.")
1374 (license license:unlicense)))
1375
72fa6667
FS
1376(define-public you-get
1377 (package
1378 (name "you-get")
7ea56cde 1379 (version "0.4.1077")
72fa6667
FS
1380 (source (origin
1381 (method url-fetch)
1382 (uri (string-append
e2155f58
FS
1383 "https://github.com/soimort/you-get/archive/v"
1384 version ".tar.gz"))
1385 (file-name (string-append name "-" version ".tar.gz"))
72fa6667
FS
1386 (sha256
1387 (base32
7ea56cde 1388 "04vxc91k627qgsqs8dhqajrb6vpj4pw21jlwbha28qakfiz2x11k"))))
72fa6667 1389 (build-system python-build-system)
72fa6667 1390 (inputs
5e84eab0
TGR
1391 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
1392 (arguments
1393 `(#:phases
1394 (modify-phases %standard-phases
1395 (add-after 'unpack 'qualify-input-references
1396 ;; Explicitly invoke the input ffmpeg, instead of whichever one
1397 ;; happens to be in the user's $PATH at run time.
1398 (lambda* (#:key inputs #:allow-other-keys)
1399 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
1400 "/bin/ffmpeg")))
1401 (substitute* "src/you_get/processor/ffmpeg.py"
1402 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
1403 ;; same string is also used when sniffing ffmpeg's output.
1404 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
1405 (string-append prefix "'" ffmpeg "'")))
1406 #t))))
1407 #:tests? #f)) ; XXX some tests need Internet access
817e91bc 1408 (synopsis "Download videos, audio, or images from Web sites")
72fa6667
FS
1409 (description
1410 "You-Get is a command-line utility to download media contents (videos,
1411audio, images) from the Web. It can use either mpv or vlc for playback.")
1412 (home-page "https://you-get.org/")
1413 (license license:expat)))
1414
6f45e45d
AV
1415(define-public youtube-viewer
1416 (package
1417 (name "youtube-viewer")
3b806473 1418 (version "3.3.4")
6f45e45d
AV
1419 (source (origin
1420 (method url-fetch)
1421 (uri (string-append
1422 "https://github.com/trizen/youtube-viewer/archive/"
1423 version ".tar.gz"))
1424 (file-name (string-append name "-" version ".tar.gz"))
1425 (sha256
1426 (base32
3b806473 1427 "1dqaxkz5svv0lmxds6lppcpzhkq6gar2raw9gx6imrd7yz02fpgn"))))
6f45e45d
AV
1428 (build-system perl-build-system)
1429 (native-inputs
1430 `(("perl-module-build" ,perl-module-build)))
1431 ;; FIXME: Add optional dependencies once available:
1432 ;; perl-lwp-useragent-cached and perl-term-readline-gnu
1433 (inputs
1434 `(("perl-data-dump" ,perl-data-dump)
1435 ("perl-file-sharedir" ,perl-file-sharedir)
1436 ("perl-gtk2" ,perl-gtk2)
1437 ("perl-json" ,perl-json)
1438 ("perl-libwww" ,perl-libwww)
1439 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1440 ("perl-mozilla-ca" ,perl-mozilla-ca)
1441 ("perl-unicode-linebreak" ,perl-unicode-linebreak)))
1442 (arguments
1443 `(#:modules ((guix build perl-build-system)
1444 (guix build utils)
1445 (srfi srfi-26))
1446 #:module-build-flags '("--gtk")
63d99002
AV
1447 #:phases
1448 (modify-phases %standard-phases
1449 (add-after 'install 'wrap-program
1450 (lambda* (#:key outputs #:allow-other-keys)
1451 (let* ((out (assoc-ref outputs "out"))
1452 (bin-dir (string-append out "/bin/"))
1453 (site-dir (string-append out "/lib/perl5/site_perl/"))
1454 (lib-path (getenv "PERL5LIB")))
1455 (for-each (cut wrap-program <>
1456 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1457 (find-files bin-dir))
1458 #t))))))
6f45e45d
AV
1459 (synopsis
1460 "Lightweight application for searching and streaming videos from YouTube")
1461 (description
1462 "Youtube-viewer searches and plays YouTube videos in a native player.
1463It comes with various search options; it can search for videos, playlists
1464and/or channels. The videos are streamed directly in a selected video player
1465at the best resolution (customizable) and with closed-captions (if available).
1466Both command-line and GTK2 interface are available.")
1467 (home-page "https://github.com/trizen/youtube-viewer")
1468 (license license:perl-license)))
1469
5d3609e4
TUBK
1470(define-public libbluray
1471 (package
1472 (name "libbluray")
004450f4 1473 (version "1.0.2")
5d3609e4
TUBK
1474 (source (origin
1475 (method url-fetch)
5e3f68e6 1476 (uri (string-append "https://download.videolan.org/videolan/"
5d3609e4
TUBK
1477 name "/" version "/"
1478 name "-" version ".tar.bz2"))
1479 (sha256
1480 (base32
004450f4 1481 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
5d3609e4 1482 (build-system gnu-build-system)
6c0cd765 1483 (arguments
d76e2634 1484 `(#:configure-flags '("--disable-bdjava-jar")
6c0cd765
AP
1485 #:phases
1486 (modify-phases %standard-phases
004450f4
TGR
1487 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
1488 ;; Avoid the need to propagate libxml2 by referring to it
1489 ;; directly, as is already done for fontconfig & freetype.
1490 (lambda* (#:key inputs #:allow-other-keys)
1491 (let ((libxml2 (assoc-ref inputs "libxml2")))
1492 (substitute* "configure"
1493 ((" libxml-2.0") ""))
1494 (substitute* "src/libbluray.pc.in"
1495 (("^Libs.private:" field)
1496 (string-append field " -L" libxml2 "/lib -lxml2")))
1497 #t)))
6c0cd765
AP
1498 (add-before 'build 'fix-dlopen-paths
1499 (lambda* (#:key inputs #:allow-other-keys)
1500 (let ((libaacs (assoc-ref inputs "libaacs"))
1501 (libbdplus (assoc-ref inputs "libbdplus")))
1502 (substitute* "src/libbluray/disc/aacs.c"
1503 (("\"libaacs\"")
1504 (string-append "\"" libaacs "/lib/libaacs\"")))
1505 (substitute* "src/libbluray/disc/bdplus.c"
1506 (("\"libbdplus\"")
1507 (string-append "\"" libbdplus "/lib/libbdplus\"")))
1508 #t))))))
2da45ebe 1509 (native-inputs `(("pkg-config" ,pkg-config)))
5d3609e4 1510 (inputs
71ee51a0 1511 `(("fontconfig" ,fontconfig)
5d3609e4 1512 ("freetype" ,freetype)
6c0cd765
AP
1513 ("libaacs" ,libaacs)
1514 ("libbdplus" ,libbdplus)
71ee51a0 1515 ("libxml2" ,libxml2)))
5e3f68e6 1516 (home-page "https://www.videolan.org/developers/libbluray.html")
5d3609e4
TUBK
1517 (synopsis "Blu-Ray Disc playback library")
1518 (description
1519 "libbluray is a library designed for Blu-Ray Disc playback for media
1520players, like VLC or MPlayer.")
ae0bdd81 1521 (license license:lgpl2.1+)))
5d3609e4 1522
e6bdb36a
AE
1523(define-public libdvdread
1524 (package
1525 (name "libdvdread")
3c9deb0b 1526 (version "6.0.0")
e6bdb36a
AE
1527 (source (origin
1528 (method url-fetch)
b8a31908 1529 (uri (string-append "https://download.videolan.org/videolan/"
e6bdb36a
AE
1530 name "/" version "/"
1531 name "-" version ".tar.bz2"))
1532 (sha256
1533 (base32
3c9deb0b 1534 "0dgr23fzcjhb7ck54xkr9zmf4jcq3ph0dz3fbyvla1c6ni9ijfxk"))))
e6bdb36a 1535 (build-system gnu-build-system)
e21f3473
RJ
1536 (arguments
1537 `(#:configure-flags '("--with-libdvdcss=yes")))
1538 (native-inputs
1539 `(("pkg-config" ,pkg-config)))
1540 (propagated-inputs
1541 `(("libdvdcss" ,libdvdcss)))
e6bdb36a
AE
1542 (home-page "http://dvdnav.mplayerhq.hu/")
1543 (synopsis "Library for reading video DVDs")
1544 (description
1545 "Libdvdread provides a simple foundation for reading DVD video
1546disks. It provides the functionality that is required to access many
1547DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
1548authentication and descrambling (if an external libdvdcss library is
1549installed).")
ae0bdd81 1550 (license license:gpl2+)))
b027d919 1551
b5b20bda
TD
1552(define-public dvdauthor
1553 (package
1554 (name "dvdauthor")
1555 (version "0.7.2")
1556 (source
1557 (origin
1558 (method url-fetch)
1559 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
1560 version ".tar.gz"))
1561 (sha256
1562 (base32
1563 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
1564 (build-system gnu-build-system)
1565 (inputs
1566 `(("libdvdread" ,libdvdread)
1567 ("libpng" ,libpng)
1568 ("imagemagick" ,imagemagick)
1569 ("libxml2" ,libxml2)
1570 ("freetype" ,freetype)))
1571 (native-inputs
1572 `(("pkg-config" ,pkg-config)))
1573 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
1574 (description "@command{dvdauthor} will generate a DVD-Video movie from a
1575MPEG-2 stream containing VOB packets.")
1576 (home-page "http://dvdauthor.sourceforge.net")
1577 (license license:gpl3+)))
1578
b027d919
AE
1579(define-public libdvdnav
1580 (package
1581 (name "libdvdnav")
0976ea38 1582 (version "6.0.0")
b027d919
AE
1583 (source (origin
1584 (method url-fetch)
b8a31908 1585 (uri (string-append "https://download.videolan.org/videolan/"
b027d919
AE
1586 name "/" version "/"
1587 name "-" version ".tar.bz2"))
1588 (sha256
1589 (base32
0976ea38 1590 "062njcksmpgw9yv3737qkf93r2pzhaxi9szqjabpa8d010dp38ph"))))
b027d919
AE
1591 (build-system gnu-build-system)
1592 (native-inputs
1593 `(("pkg-config" ,pkg-config)))
1594 (inputs
1595 `(("libdvdread" ,libdvdread)))
1596 (home-page "http://dvdnav.mplayerhq.hu/")
1597 (synopsis "Library for video DVD navigation features")
1598 (description
1599 "Libdvdnav is a library for developers of multimedia
1600applications. It allows easy use of sophisticated DVD navigation features
1601such as DVD menus, multiangle playback and even interactive DVD games. All
1602this functionality is provided through a simple API which provides the DVD
1603playback as a single logical stream of blocks, intermitted by special
1604dvdnav events to report certain conditions. The main usage of libdvdnav is
1605a loop regularly calling a function to get the next block, surrounded by
1606additional calls to tell the library of user interaction. The whole
1607DVD virtual machine and internal playback states are completely
1608encapsulated.")
ae0bdd81 1609 (license license:gpl2+)))
2cd85cf9 1610
a6f710ec
TUBK
1611(define-public libdvdcss
1612 (package
1613 (name "libdvdcss")
c77fb2d6 1614 (version "1.4.2")
a6f710ec
TUBK
1615 (source (origin
1616 (method url-fetch)
b8a31908 1617 (uri (string-append "https://download.videolan.org/pub/"
a6f710ec
TUBK
1618 name "/" version "/"
1619 name "-" version ".tar.bz2"))
1620 (sha256
1621 (base32
c77fb2d6 1622 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
a6f710ec 1623 (build-system gnu-build-system)
b8a31908 1624 (home-page "https://www.videolan.org/developers/libdvdcss.html")
a6f710ec
TUBK
1625 (synopsis "Library for accessing DVDs as block devices")
1626 (description
1627 "libdvdcss is a simple library designed for accessing DVDs like a block
1628device without having to bother about the decryption.")
ae0bdd81 1629 (license license:gpl2+)))
a6f710ec 1630
2cd85cf9
DT
1631(define-public srt2vtt
1632 (package
1633 (name "srt2vtt")
1634 (version "0.1")
1635 (source (origin
1636 (method url-fetch)
1637 (uri (string-append
152fc959 1638 "https://files.dthompson.us/srt2vtt/srt2vtt-"
2cd85cf9
DT
1639 version ".tar.gz"))
1640 (sha256
1641 (base32
1642 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
1643 (build-system gnu-build-system)
1644 (inputs
1645 `(("guile" ,guile-2.0)))
1646 (synopsis "SubRip to WebVTT subtitle converter")
1647 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
1648for use with HTML5 video.")
373cc3b7 1649 (home-page "https://dthompson.us/projects/srt2vtt.html")
ae0bdd81 1650 (license license:gpl3+)))
44726031
AE
1651
1652(define-public avidemux
1653 (package
1654 (name "avidemux")
9e786e8b 1655 (version "2.6.12")
44726031
AE
1656 (source (origin
1657 (method url-fetch)
1658 (uri (string-append
de67e922
LF
1659 "mirror://sourceforge/" name "/" name "/" version "/"
1660 name "_" version ".tar.gz"))
44726031
AE
1661 (sha256
1662 (base32
9e786e8b 1663 "0nz52yih8sff53inndkh2dba759xjzsh4b8xjww419lcpk0qp6kn"))
fc1adab1 1664 (patches (search-patches "avidemux-install-to-lib.patch"))))
44726031
AE
1665 (build-system cmake-build-system)
1666 (native-inputs
1667 `(("pkg-config" ,pkg-config)))
1668 ;; FIXME: Once packaged, add libraries not found during the build.
1669 (inputs
1670 `(("alsa-lib" ,alsa-lib)
1671 ("fontconfig" ,fontconfig)
1672 ("freetype" ,freetype)
1673 ("fribidi" ,fribidi)
1674 ("glu" ,glu)
44726031
AE
1675 ("jack" ,jack-1)
1676 ("lame" ,lame)
4cafe8ad
EF
1677 ("libva" ,libva)
1678 ("libvdpau" ,libvdpau)
44726031
AE
1679 ("libvorbis" ,libvorbis)
1680 ("libvpx" ,libvpx)
1681 ("libxv" ,libxv)
1682 ("perl" ,perl)
1683 ("pulseaudio" ,pulseaudio)
1684 ("python" ,python-wrapper)
a2c24bf5
DC
1685 ("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
1686 ;("qtbase" ,qtbase) with -std=gnu++11.
1687 ;("qttools" ,qttools)
44726031
AE
1688 ("sdl" ,sdl)
1689 ("sqlite" ,sqlite)
1690 ("yasm" ,yasm)
1691 ("zlib" ,zlib)))
1692 (arguments
1693 `(#:tests? #f ; no check target
1694 #:phases
1695 ;; Make sure files inside the included ffmpeg tarball are
1696 ;; patch-shebanged.
1898900f
EF
1697 (modify-phases %standard-phases
1698 (add-before 'patch-source-shebangs 'unpack-ffmpeg
44726031
AE
1699 (lambda _
1700 (with-directory-excursion "avidemux_core/ffmpeg_package"
1898900f
EF
1701 (system* "tar" "xf" "ffmpeg-2.7.6.tar.bz2")
1702 (delete-file "ffmpeg-2.7.6.tar.bz2"))))
1703 (add-after 'patch-source-shebangs 'repack-ffmpeg
44726031
AE
1704 (lambda _
1705 (with-directory-excursion "avidemux_core/ffmpeg_package"
9e786e8b 1706 (substitute* "ffmpeg-2.7.6/configure"
2fed4042 1707 (("#! /bin/sh") (string-append "#!" (which "sh"))))
9e786e8b 1708 (system* "tar" "cjf" "ffmpeg-2.7.6.tar.bz2" "ffmpeg-2.7.6"
c09e6a5f 1709 ;; avoid non-determinism in the archive
92226a47
MW
1710 "--sort=name" "--mtime=@0"
1711 "--owner=root:0" "--group=root:0")
1898900f
EF
1712 (delete-file-recursively "ffmpeg-2.7.6"))))
1713 (replace 'configure
1714 (lambda _
1715 ;; Copy-paste settings from the cmake build system.
1716 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1717 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))))
1718 (replace 'build
1719 (lambda* (#:key inputs outputs #:allow-other-keys)
1720 (let*
1721 ((out (assoc-ref outputs "out"))
1722 (lib (string-append out "/lib"))
1723 (top (getcwd))
1724 (sdl (assoc-ref inputs "sdl"))
1725 (build_component
1726 (lambda* (component srcdir #:optional (args '()))
1727 (let ((builddir (string-append "build_" component)))
1728 (mkdir builddir)
1729 (with-directory-excursion builddir
1730 (zero?
1731 (and
44726031
AE
1732 (apply system* "cmake"
1733 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
1734 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1735 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
c687f731
AE
1736 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
1737 "\"-Wl,-rpath=" lib "\"")
44726031
AE
1738 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
1739 (string-append "-DSDL_INCLUDE_DIR="
1740 sdl "/include/SDL")
1741 (string-append "../" srcdir)
aab56ab7 1742 "-DENABLE_QT5=True"
44726031 1743 args)
1898900f
EF
1744 (system* "make" "-j"
1745 (number->string (parallel-job-count)))
1746 (system* "make" "install"))))))))
1747 (mkdir out)
1748 (and (build_component "core" "avidemux_core")
1749 (build_component "cli" "avidemux/cli")
1750 (build_component "qt4" "avidemux/qt4")
1751 (build_component "plugins_common" "avidemux_plugins"
1752 '("-DPLUGIN_UI=COMMON"))
1753 (build_component "plugins_cli" "avidemux_plugins"
1754 '("-DPLUGIN_UI=CLI"))
1755 (build_component "plugins_qt4" "avidemux_plugins"
1756 '("-DPLUGIN_UI=QT4"))
1757 (build_component "plugins_settings" "avidemux_plugins"
1758 '("-DPLUGIN_UI=SETTINGS")))
1759 ;; Remove .exe and .dll file.
1760 (delete-file-recursively
1761 (string-append out "/share/ADM6_addons")))))
1762 (delete 'install))))
44726031
AE
1763 (home-page "http://fixounet.free.fr/avidemux/")
1764 (synopsis "Video editor")
1765 (description "Avidemux is a video editor designed for simple cutting,
1766filtering and encoding tasks. It supports many file types, including AVI,
1767DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
1768can be automated using projects, job queue and powerful scripting
1769capabilities.")
afd9ed5c 1770 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
44726031 1771 ;; Software with various licenses is included, see License.txt.
ae0bdd81 1772 (license license:gpl2+)))
44726031 1773
6f6c8b65
TUBK
1774(define-public vapoursynth
1775 (package
1776 (name "vapoursynth")
4f7a9e0b 1777 (version "37")
6f6c8b65
TUBK
1778 (source (origin
1779 (method url-fetch)
1780 (uri (string-append
1781 "https://github.com/vapoursynth/vapoursynth/archive/R"
1782 version ".tar.gz"))
0b37c4cd 1783 (file-name (string-append name "-" version ".tar.gz"))
6f6c8b65
TUBK
1784 (sha256
1785 (base32
4f7a9e0b 1786 "1g3hc079jw4mz1cmkv2y28pdb556wqc8ql7iravgh1rg8j3f1zi5"))))
6f6c8b65
TUBK
1787 (build-system gnu-build-system)
1788 (native-inputs
1789 `(("autoconf" ,autoconf)
1790 ("automake" ,automake)
1791 ("cython" ,python-cython)
1792 ("libtool" ,libtool)
1793 ("pkg-config" ,pkg-config)
1794 ("python" ,python)
1795 ("yasm" ,yasm)))
1796 (inputs
1797 `(("ffmpeg" ,ffmpeg)
1798 ("libass" ,libass)
f80d5fe0
EF
1799 ("tesseract-ocr" ,tesseract-ocr)
1800 ("zimg" ,zimg)))
6f6c8b65
TUBK
1801 (arguments
1802 '(#:phases
1803 (modify-phases %standard-phases
52fb5b3a
TGR
1804 (add-after 'unpack 'autogen
1805 (lambda _
1806 (invoke "sh" "autogen.sh"))))))
6f6c8b65
TUBK
1807 (home-page "http://www.vapoursynth.com/")
1808 (synopsis "Video processing framework")
1809 (description "VapourSynth is a C++ library and Python module for video
1810manipulation. It aims to be a modern rewrite of Avisynth, supporting
1811multithreading, generalized colorspaces, per frame properties, and videos with
1812format changes.")
9a078f48 1813 ;; src/core/cpufeatures only allows x86, ARM or PPC
cda20ee8
EF
1814 (supported-systems (fold delete %supported-systems
1815 '("mips64el-linux" "aarch64-linux")))
6f6c8b65 1816 ;; As seen from the source files.
ae0bdd81 1817 (license license:lgpl2.1+)))
6f6c8b65 1818
67932f86
TUBK
1819(define-public xvid
1820 (package
1821 (name "xvid")
e05035c7 1822 (version "1.3.4")
67932f86
TUBK
1823 (source (origin
1824 (method url-fetch)
1825 (uri (string-append
1826 "http://downloads.xvid.org/downloads/xvidcore-"
1827 version ".tar.bz2"))
1828 (sha256
1829 (base32
e05035c7 1830 "1xwbmp9wqshc0ckm970zdpi0yvgqxlqg0s8bkz98mnr8p2067bsz"))))
67932f86
TUBK
1831 (build-system gnu-build-system)
1832 (native-inputs `(("yasm" ,yasm)))
1833 (arguments
1834 '(#:phases
62fe2d47
EF
1835 (modify-phases %standard-phases
1836 (add-before
1837 'configure 'pre-configure
1838 (lambda _
1839 (chdir "build/generic")
1840 (substitute* "configure"
1841 (("#! /bin/sh") (string-append "#!" (which "sh")))))))
67932f86
TUBK
1842 ;; No 'check' target.
1843 #:tests? #f))
1844 (home-page "https://www.xvid.com/")
1845 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
1846 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
1847codec library. It uses ASP features such as b-frames, global and quarter
1848pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
1849and custom quantization matrices.")
ae0bdd81 1850 (license license:gpl2+)))
e16fde14 1851
f48feaa2 1852(define-public streamlink
1a291593
OP
1853 ;; Release tarball doesn't contain ‘tests/resources/dash/’ directory.
1854 (let ((commit "2dca7930a938f60b48d8e23260963ea7c49d979f"))
1855 (package
1856 (name "streamlink")
1857 (version (git-version "0.13.0" "1" commit))
1858 (source
1859 (origin
1860 (method git-fetch)
1861 (uri (git-reference
1862 (url "https://github.com/streamlink/streamlink.git")
1863 (commit commit)))
1864 (file-name (git-file-name name version))
1865 (sha256
1866 (base32
1867 "0vq19aspshim63aj8yl2p64ykrbk2mwwlawdx427b3j2djlc5qhw"))))
1868 (build-system python-build-system)
1869 (home-page "https://github.com/streamlink/streamlink")
1870 (native-inputs
1871 `(("python-freezegun" ,python-freezegun)
1872 ("python-pytest" ,python-pytest)
1873 ("python-mock" ,python-mock)
1874 ("python-requests-mock" ,python-requests-mock)))
1875 (propagated-inputs
1876 `(("python-pysocks" ,python-pysocks)
1877 ("python-websocket-client" ,python-websocket-client)
1878 ("python-iso3166" ,python-iso3166)
1879 ("python-iso639" ,python-iso639)
1880 ("python-isodate", python-isodate)
1881 ("python-pycryptodome" ,python-pycryptodome)
1882 ("python-requests" ,python-requests)
1883 ("python-urllib3" ,python-urllib3)))
1884 (synopsis "Extract streams from various services")
1885 (description "Streamlink is command-line utility that extracts streams
f48feaa2 1886from sites like Twitch.tv and pipes them into a video player of choice.")
1a291593 1887 (license license:bsd-2))))
f48feaa2 1888
d84e2257
OP
1889(define-public livestreamer
1890 (deprecated-package "livestreamer" streamlink))
1891
e5e5eb1f
OP
1892(define-public twitchy
1893 (let ((commit "0c0f925b9c7ff2aed4a3b0046561cb794143c398")) ;Fixes tests.
1894 (package
1895 (name "twitchy")
1896 (version (git-version "3.2" "1" commit))
1897 (source
1898 (origin
1899 (method git-fetch)
1900 (uri (git-reference
1901 (url "https://github.com/BasioMeusPuga/twitchy.git")
1902 (commit commit)))
1903 (file-name (git-file-name name version))
1904 (sha256
1905 (base32
1906 "02aizvsr744sh8bdqvwwsmp2qpczlzn8fy76h5dyd3517n9nlcz9"))))
1907 (build-system python-build-system)
1908 (arguments
1909 '(#:phases
1910 (modify-phases %standard-phases
1911 (add-before 'check 'check-setup
1912 (lambda _
1913 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
ca82bdfd
OP
1914 #t))
1915 (add-after 'install 'install-rofi-plugin
1916 (lambda* (#:key outputs #:allow-other-keys)
1917 (install-file "plugins/rofi-twitchy"
1918 (string-append (assoc-ref outputs "out")
1919 "/bin")))))))
e5e5eb1f
OP
1920 (inputs
1921 `(("python-requests" ,python-requests)
1922 ("streamlink" ,streamlink)))
1923 (home-page "https://github.com/BasioMeusPuga/twitchy")
1924 (synopsis "Command-line interface for Twitch.tv")
1925 (description
1926 "This package provides a command-line interface for Twitch.tv")
1927 (license license:gpl3+))))
1928
307ad140
RW
1929(define-public mlt
1930 (package
1931 (name "mlt")
f05f5b30 1932 (version "6.4.1")
307ad140
RW
1933 (source (origin
1934 (method url-fetch)
4c7729dc
EF
1935 (uri (string-append "https://github.com/mltframework/mlt/"
1936 "archive/v" version ".tar.gz"))
1937 (file-name (string-append name "-" version ".tar.gz"))
307ad140
RW
1938 (sha256
1939 (base32
fd7da5b9
OP
1940 "10m3ry0b2pvqx3bk34qh5dq337nn8pkc2gzfyhsj4nv9abskln47"))
1941 (modules '((guix build utils)))
6cbee49d
MW
1942 (snippet '(begin
1943 ;; As of glibc 2.26, <xlocale.h> no longer is.
1944 (substitute* "src/framework/mlt_property.h"
2857e527
MW
1945 (("xlocale\\.h") "locale.h"))
1946 #t))))
307ad140
RW
1947 (build-system gnu-build-system)
1948 (arguments
1949 `(#:tests? #f ; no tests
1950 #:make-flags '("CC=gcc")
1951 #:configure-flags
1952 (list "--enable-gpl3"
1953 "--enable-gpl")
1954 #:phases
1955 (modify-phases %standard-phases
1956 (add-after
1957 'configure 'override-LDFLAGS
1958 (lambda* (#:key outputs #:allow-other-keys)
1959 (substitute* "config.mak"
1960 (("LDFLAGS\\+=")
1961 (string-append "LDFLAGS+=-Wl,-rpath="
1962 (assoc-ref outputs "out")
1963 "/lib ")))
1964 #t)))))
1965 (inputs
1966 `(("alsa-lib" ,alsa-lib)
bb5c508c 1967 ("ffmpeg" ,ffmpeg-3.4)
307ad140
RW
1968 ("fftw" ,fftw)
1969 ("libxml2" ,libxml2)
1970 ("jack" ,jack-1)
1971 ("ladspa" ,ladspa)
1972 ("libsamplerate" ,libsamplerate)
4c7729dc 1973 ("pulseaudio" ,pulseaudio)
307ad140
RW
1974 ("sdl" ,sdl)
1975 ("sox" ,sox)))
1976 (native-inputs
1977 `(("pkg-config" ,pkg-config)))
4c7729dc 1978 (home-page "https://www.mltframework.org/")
307ad140
RW
1979 (synopsis "Author, manage, and run multitrack audio/video compositions")
1980 (description
1981 "MLT is a multimedia framework, designed and developed for television
1982broadcasting. It provides a toolkit for broadcasters, video editors, media
1983players, transcoders, web streamers and many more types of applications. The
1984functionality of the system is provided via an assortment of ready to use
1985tools, XML authoring components, and an extensible plug-in based API.")
42b9541c 1986 (license license:gpl3)))
f464016d 1987
945d985a
DT
1988(define-public v4l-utils
1989 (package
1990 (name "v4l-utils")
f1d1ef71 1991 (version "1.12.5")
945d985a
DT
1992 (source (origin
1993 (method url-fetch)
1d4ac724 1994 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
945d985a
DT
1995 "/v4l-utils-" version ".tar.bz2"))
1996 (sha256
1997 (base32
f1d1ef71 1998 "03g2b4rivrilimcp57mwrlsa3qvrxmk4sza08mygwmqbvcnic606"))))
945d985a
DT
1999 (build-system gnu-build-system)
2000 (arguments
2001 '(#:configure-flags
2002 (list (string-append "--with-udevdir="
2003 (assoc-ref %outputs "out")
2cef0f7c
DC
2004 "/lib/udev")
2005 "CXXFLAGS=-std=gnu++11")))
945d985a 2006 (native-inputs
4ca077d5
TGR
2007 `(("perl" ,perl)
2008 ("pkg-config" ,pkg-config)))
945d985a
DT
2009 (inputs
2010 `(("alsa-lib" ,alsa-lib)
2011 ("glu" ,glu)
2012 ("libjpeg" ,libjpeg)
2013 ("libx11" ,libx11)
b37662e2 2014 ("qtbase" ,qtbase)
945d985a
DT
2015 ("eudev" ,eudev)))
2016 (synopsis "Realtime video capture utilities for Linux")
2017 (description "The v4l-utils provide a series of libraries and utilities to
2018be used for realtime video capture via Linux-specific APIs.")
2019 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
2020 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
2021 (license (list license:lgpl2.1+ license:gpl2))))
2022
f464016d
DT
2023(define-public obs
2024 (package
2025 (name "obs")
48a716c4 2026 (version "20.1.3")
f464016d
DT
2027 (source (origin
2028 (method url-fetch)
2029 (uri (string-append "https://github.com/jp9000/obs-studio"
2030 "/archive/" version ".tar.gz"))
2031 (file-name (string-append name "-" version ".tar.gz"))
2032 (sha256
2033 (base32
48a716c4 2034 "1g5z6z050v25whc7n3xvg6l238wmg5crp7ihvk73qngvzxr8bg28"))))
f464016d 2035 (build-system cmake-build-system)
08858812 2036 (arguments
f3bd1728 2037 `(#:tests? #f)) ; no tests
f464016d
DT
2038 (native-inputs
2039 `(("pkg-config" ,pkg-config)))
2040 (inputs
4f98c3c5
EF
2041 `(("alsa-lib" ,alsa-lib)
2042 ("curl" ,curl)
f464016d
DT
2043 ("eudev" ,eudev)
2044 ("ffmpeg" ,ffmpeg)
4f98c3c5 2045 ("fontconfig" ,fontconfig)
f464016d
DT
2046 ("freetype" ,freetype)
2047 ("jack" ,jack-1)
2048 ("jansson" ,jansson)
2049 ("libx264" ,libx264)
2050 ("libxcomposite" ,libxcomposite)
2051 ("mesa" ,mesa)
2052 ("pulseaudio" ,pulseaudio)
90a2309b
EF
2053 ("qtbase" ,qtbase)
2054 ("qtx11extras" ,qtx11extras)
4f98c3c5 2055 ("speex" ,speex)
d4df2032 2056 ("v4l-utils" ,v4l-utils)
f464016d
DT
2057 ("zlib" ,zlib)))
2058 (synopsis "Live streaming software")
2059 (description "Open Broadcaster Software provides a graphical interface for
2060video recording and live streaming. OBS supports capturing audio and video
2061from many input sources such as webcams, X11 (for screencasting), PulseAudio,
2062and JACK.")
2063 (home-page "https://obsproject.com")
f3bd1728 2064 (supported-systems '("x86_64-linux" "i686-linux"))
f464016d 2065 (license license:gpl2+)))
d5650f86
EF
2066
2067(define-public libvdpau
2068 (package
2069 (name "libvdpau")
2070 (version "1.1.1")
2071 (source
2072 (origin
2073 (method url-fetch)
2074 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2075 name "-" version ".tar.bz2"))
2076 (sha256
2077 (base32
2078 "0dnpb0yh7v6rvckx82kxg045rd9rbsw25wjv7ad5n8h94s9h2yl5"))))
2079 (build-system gnu-build-system)
2080 (native-inputs
2081 `(("pkg-config" ,pkg-config)))
2082 (inputs
3993a28a
MB
2083 `(("libx11" ,libx11 "out")
2084 ("libxext" ,libxext)
2085 ("xorgproto" ,xorgproto)))
d5650f86
EF
2086 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2087 (synopsis "Video Decode and Presentation API")
2088 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
2089provides an interface to video decode acceleration and presentation hardware
2090present in modern GPUs.")
2091 (license (license:x11-style "file://COPYING"))))
3161d32d
EF
2092
2093(define-public vdpauinfo
2094 (package
2095 (name "vdpauinfo")
2096 (version "1.0")
2097 (source
2098 (origin
2099 (method url-fetch)
2100 (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/"
2101 name "-" version ".tar.gz"))
2102 (sha256
2103 (base32
2104 "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
2105 (build-system gnu-build-system)
2106 (native-inputs
2107 `(("pkg-config" ,pkg-config)
2108 ("libx11" ,libx11)))
2109 (propagated-inputs
2110 `(("libvdpau" ,libvdpau)))
2111 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
2112 (synopsis "Tool to query the capabilities of a VDPAU implementation")
2113 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
2114implementation.")
2115 (license (license:x11-style "file://COPYING"))))
a7d94b54 2116
67df7164
EF
2117(define-public libvdpau-va-gl
2118 (package
2119 (name "libvdpau-va-gl")
2120 (version "0.4.2")
2121 (source
2122 (origin
2123 (method url-fetch)
2124 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
2125 "releases/download/v" version "/libvdpau-va-gl-"
2126 version ".tar.gz"))
2127 (sha256
2128 (base32
2129 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
2130 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
2131 (modules '((guix build utils)))
6cbee49d
MW
2132 (snippet '(begin (delete-file-recursively "3rdparty")
2133 #t))))
67df7164
EF
2134 (build-system cmake-build-system)
2135 (arguments
2136 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
2137 (native-inputs
2138 `(("libvdpau" ,libvdpau)
2139 ("pkg-config" ,pkg-config)))
2140 (inputs
2141 `(("libva" ,libva)
2142 ("mesa" ,mesa)))
2143 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
2144 (synopsis "VDPAU driver with VA-API/OpenGL backend")
2145 (description
2146 "Many applications can use VDPAU to accelerate portions of the video
2147decoding process and video post-processing to the GPU video hardware. Since
2148there is no VDPAU available on Intel chips, they fall back to different drawing
2149techniques. This driver uses OpenGL under the hood to accelerate drawing and
2150scaling and VA-API (if available) to accelerate video decoding.")
2151 (license license:expat)))
2152
a7d94b54
LC
2153(define-public recordmydesktop
2154 (package
2155 (name "recordmydesktop")
2156 (version "0.3.8.1")
2157 (source (origin
2158 (method url-fetch)
2159 (uri (string-append "mirror://sourceforge/" name "/" name "/"
2160 version "/recordmydesktop-" version ".tar.gz"))
2161 (sha256
2162 (base32
2163 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
2164 (build-system gnu-build-system)
2165 (inputs `(("popt" ,popt)
2166 ("zlib" ,zlib)
2167 ("libx11" ,libx11)
2168 ("libice" ,libice)
2169 ("libsm" ,libsm)
2170 ("libxfixes" ,libxfixes)
2171 ("libxdamage" ,libxdamage)
2172 ("libxext" ,libxext)
ed6ba9cc 2173 ("alsa-lib" ,alsa-lib)
a7d94b54
LC
2174 ("libvorbis" ,libvorbis)
2175 ("libtheora" ,libtheora)))
2176 (home-page "http://recordmydesktop.sourceforge.net/")
2177 (synopsis "Desktop session video recorder")
2178 (description
2179 "recordMyDesktop is a command-line tool that captures the activity in
2180your graphical desktop and encodes it as a video. This is a useful tool for
2181making @dfn{screencasts}.")
2182 (license license:gpl2+)))
d8841cc5 2183
63cd4d53
AV
2184(define-public simplescreenrecorder
2185 (package
2186 (name "simplescreenrecorder")
8332ac03 2187 (version "0.3.11")
63cd4d53
AV
2188 (source
2189 (origin
2190 (method url-fetch)
2191 (uri (string-append "https://github.com/MaartenBaert/ssr/archive/"
2192 version ".tar.gz"))
2193 (file-name (string-append name "-" version ".tar.gz"))
2194 (sha256
2195 (base32
8332ac03 2196 "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal"))))
83c92882 2197 (build-system cmake-build-system)
63cd4d53
AV
2198 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
2199 ;; README.md, the program builds and functions properly without them.
2200 ;; As a result, they are omitted. Please add them back if problems appear.
2201 (inputs
2202 `(("alsa-lib" ,alsa-lib)
8332ac03 2203 ("ffmpeg" ,ffmpeg)
63cd4d53
AV
2204 ("glu" ,glu)
2205 ("jack" ,jack-1)
2206 ("libxi" ,libxi)
2207 ("pulseaudio" ,pulseaudio)
83c92882 2208 ("qt" ,qt)))
63cd4d53 2209 (native-inputs `(("pkg-config" ,pkg-config)))
83c92882
TGR
2210 (arguments
2211 `(#:configure-flags
2212 (list "-DWITH_QT5=TRUE")
2213 #:tests? #f)) ; no test suite
63cd4d53
AV
2214 ;; Using HTTPS causes part of the page to be displayed improperly.
2215 (home-page "http://www.maartenbaert.be/simplescreenrecorder/")
2216 (synopsis "Screen recorder")
2217 (description "SimpleScreenRecorder is an easy to use screen recorder with
2218a graphical user interface. It supports recording the entire screen, or a
2219part of it, and allows encoding in many different codecs and file formats.
2220Other features include a live preview and live streaming.")
2221 (license (list license:gpl3+ ; most files
2222 license:zlib ; glinject/elfhacks.*
2223 license:isc ; glinject/*
2224 license:x11)))) ; build-aux/install-sh
2225
d8841cc5
KK
2226(define-public libsmpeg
2227 (package
2228 (name "libsmpeg")
2229 (version "0.4.5")
2230 (source (origin
2231 (method svn-fetch)
2232 (uri (svn-reference
2233 (url "svn://svn.icculus.org/smpeg/trunk/")
2234 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
b9af0564 2235 (file-name (string-append name "-" version "-checkout"))
d8841cc5
KK
2236 (sha256
2237 (base32
2238 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
2239 (build-system gnu-build-system)
2240 (arguments
e6269846
TGR
2241 `(#:phases
2242 (modify-phases %standard-phases
2243 (add-after 'unpack 'autogen.sh
2244 (lambda _
2245 (invoke "sh" "autogen.sh"))))))
d8841cc5
KK
2246 (native-inputs
2247 `(("autoconf" ,autoconf)
2248 ("automake" ,automake)))
2249 (inputs
2250 `(("sdl" ,sdl2)))
2251 (home-page "http://icculus.org/smpeg/")
2252 (synopsis "SDL MPEG decoding library")
2253 (description
2254 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
2255with sound support. Video playback is based on the ubiquitous Berkeley MPEG
2256player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
2257library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
2258and MPEG system streams.")
2259 (license (list license:expat
2260 license:lgpl2.1
2261 license:lgpl2.1+
2262 license:gpl2))))
4df07622
AP
2263
2264(define-public libbdplus
2265 (package
2266 (name "libbdplus")
2267 (version "0.1.2")
2268 (source
2269 (origin
2270 (method url-fetch)
6f13c4fd 2271 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
4df07622
AP
2272 version "/" name "-" version ".tar.bz2"))
2273 (sha256
2274 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
2275 (inputs
2276 `(("libgcrypt" ,libgcrypt)))
2277 (build-system gnu-build-system)
b8a31908 2278 (home-page "https://www.videolan.org/developers/libbdplus.html")
4df07622
AP
2279 (synopsis "Library for decrypting certain Blu-Ray discs")
2280 (description "libbdplus is a library which implements the BD+ System
2281specifications.")
2282 (license license:lgpl2.1+)))
8dd6fc51
AP
2283
2284(define-public libaacs
2285 (package
2286 (name "libaacs")
ba58886a 2287 (version "0.9.0")
8dd6fc51
AP
2288 (source
2289 (origin
2290 (method url-fetch)
6c2481ef 2291 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
8dd6fc51
AP
2292 version "/" name "-" version ".tar.bz2"))
2293 (sha256
ba58886a 2294 (base32 "1kms92i0c7i1yl659kqjf19lm8172pnpik5lsxp19xphr74vvq27"))))
8dd6fc51
AP
2295 (inputs
2296 `(("libgcrypt" ,libgcrypt)))
2297 (native-inputs
2298 `(("bison" ,bison)
2299 ("flex" ,flex)))
2300 (build-system gnu-build-system)
b8a31908 2301 (home-page "https://www.videolan.org/developers/libaacs.html")
8dd6fc51
AP
2302 (synopsis "Library for decrypting certain Blu-Ray discs")
2303 (description "libaacs is a library which implements the Advanced Access
2304Content System specification.")
2305 (license license:lgpl2.1+)))
05234973 2306
2307(define-public mps-youtube
2308 (package
2309 (name "mps-youtube")
c53fa8c8 2310 (version "0.2.8")
05234973 2311 (source
2312 (origin
2313 (method url-fetch)
2314 (uri (string-append "https://github.com/mps-youtube/mps-youtube/"
2315 "archive/v" version ".tar.gz"))
2316 (file-name (string-append name "-" version ".tar.gz"))
2317 (sha256
2318 (base32
c53fa8c8 2319 "0x7cmfh199q9j396v7bz81nnvanfllhsg86489i5dw2p3yyc9wnm"))))
05234973 2320 (build-system python-build-system)
175d6264 2321 (arguments
2322 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
2323 ;; test suite results differ depending on the country and also introduce
2324 ;; non-determinism in the tests.
2325 ;; https://github.com/mps-youtube/mps-youtube/issues/556
2326 `(#:tests? #f))
05234973 2327 (propagated-inputs
2328 `(("python-pafy" ,python-pafy)
2329 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
2330 (home-page "https://github.com/mps-youtube/mps-youtube")
2331 (synopsis "Terminal based YouTube player and downloader")
2332 (description
2333 "@code{mps-youtube} is based on mps, a terminal based program to
2334search, stream and download music. This implementation uses YouTube as
2335a source of content and can play and download video as well as audio.
2336It can use either mpv or mplayer for playback, and for conversion of
2337formats ffmpeg or libav is used. Users should install one of the
2338supported players in addition to this package.")
2339 (license license:gpl3+)))
fe047e13
EB
2340
2341(define-public handbrake
2342 (package
2343 (name "handbrake")
2344 (version "0.10.5")
2345 (source (origin
2346 (method url-fetch)
2347 (uri (string-append "https://handbrake.fr/rotation.php?file="
2348 "HandBrake-" version ".tar.bz2"))
2349 (file-name (string-append "handbrake-" version ".tar.bz2"))
2350 (sha256
2351 (base32
2352 "1w720y3bplkz187wgvy4a4xm0vpppg45mlni55l6yi8v2bfk14pv"))
2353 (patches (search-patches "handbrake-pkg-config-path.patch"))
2354 (modules '((guix build utils)))
2355 (snippet
2356 ;; Remove bundled libraries and source not necessary for
2357 ;; running under a GNU environment.
2358 '(begin
2359 (for-each delete-file-recursively '("contrib" "macosx" "win"))
2360 #t))))
2361 (build-system glib-or-gtk-build-system)
2362 (native-inputs
2363 `(("automake" ,automake) ;gui subpackage must be bootstrapped
2364 ("autoconf" ,autoconf)
2365 ("curl" ,curl) ;not actually used, but tested for
2366 ("intltool" ,intltool)
2367 ("libtool" ,libtool)
2368 ("pkg-config" ,pkg-config)
2369 ("python" ,python-2))) ;for configuration
2370 (inputs
2371 `(("bzip2" ,bzip2)
2372 ("dbus-glib" ,dbus-glib)
30780027 2373 ("ffmpeg" ,ffmpeg-3.4) ;compilation errors with ffmpeg-4
fe047e13
EB
2374 ("fontconfig" ,fontconfig)
2375 ("freetype" ,freetype)
2376 ("glib" ,glib)
2377 ("gstreamer" ,gstreamer)
2378 ("gst-plugins-base" ,gst-plugins-base)
2379 ("gtk+" ,gtk+)
2380 ("lame" ,lame)
2381 ("libass" ,libass)
2382 ("libbluray" ,libbluray)
2383 ("libdvdnav" ,libdvdnav)
2384 ("libdvdread" ,libdvdread)
2385 ("libgudev" ,libgudev)
2386 ("libmpeg2" ,libmpeg2)
2387 ("libnotify" ,libnotify)
2388 ("libogg" ,libogg)
2389 ("libsamplerate" ,libsamplerate)
2390 ("libtheora" ,libtheora)
2391 ("libvorbis" ,libvorbis)
2392 ("libvpx" ,libvpx)
2393 ("libxml2" ,libxml2)
2394 ("libx264" ,libx264)
2395 ("x265" ,x265)
2396 ("zlib" ,zlib)))
2397 (arguments
2398 `(#:tests? #f ;tests require Ruby and claim to be unsupported
2399 #:phases
2400 (modify-phases %standard-phases
189be331 2401 (replace 'bootstrap
fe047e13
EB
2402 ;; Run bootstrap ahead of time so that shebangs get patched.
2403 (lambda _
2404 (setenv "CONFIG_SHELL" (which "sh"))
2405 (setenv "NOCONFIGURE" "1")
2406 ;; Patch the Makefile so that it doesn't bootstrap again.
2407 (substitute* "gtk/module.rules"
2408 ((".*autogen\\.sh.*") ""))
da6f345c 2409 (invoke "sh" "./gtk/autogen.sh")))
fe047e13
EB
2410 (add-before 'configure 'disable-contrib
2411 (lambda _
2412 (substitute* "make/include/main.defs"
2413 ;; Disable unconditional inclusion of some "contrib"
2414 ;; libraries (ffmpeg, libvpx, libdvdread, libdvdnav,
2415 ;; and libbluray), which would lead to fetching and
2416 ;; building of these libraries. Use our own instead.
2417 (("MODULES \\+= contrib") "# MODULES += contrib"))
2418 #t))
2419 (add-before 'configure 'fix-x265-linking
2420 (lambda _
2421 (substitute* "test/module.defs"
2422 ;; Fix missing library during linking error
2423 (("TEST.GCC.l =") "TEST.GCC.l = x265"))
2424 #t))
2425 (replace 'configure
2426 (lambda* (#:key outputs configure-flags #:allow-other-keys)
2427 ;; 'configure' is not an autoconf-generated script, and
2428 ;; errors on unrecognized arguments,
2429 ;; e.g. --enable-fast-install
2430 (let ((out (assoc-ref outputs "out")))
da6f345c
TGR
2431 (apply invoke "./configure"
2432 (string-append "--prefix=" out)
2433 (or configure-flags '())))))
fe047e13
EB
2434 (add-after 'configure 'chdir-build
2435 (lambda _ (chdir "./build") #t)))))
2436 (home-page "https://handbrake.fr")
2437 (synopsis "Video transcoder")
2438 (description
2439 "HandBrake is a tool for converting video from any format to a selection
2440of modern, widely supported codecs.")
2441 ;; Most under GPL version 2 or later, and portions under BSD 3 Clause
2442 (license (list license:gpl2+ license:bsd-3))))
590abe01
JN
2443
2444(define-public openh264
2445 (package
2446 (name "openh264")
03229b36 2447 (version "1.8.0")
590abe01
JN
2448 (source (origin
2449 (method url-fetch)
2450 (uri (string-append "https://github.com/cisco/"
03229b36
MB
2451 name "/releases/download/v"
2452 version "/Source.Code.tar.gz.gz"))
590abe01
JN
2453 (file-name (string-append name "-" version ".tar.gz"))
2454 (sha256
2455 (base32
03229b36 2456 "0niha3wnn1jsndvz9vfwy2wyql8mp9j6v75vjsipy0idwan5yzgf"))))
590abe01
JN
2457 (build-system gnu-build-system)
2458 (native-inputs
2459 `(("nasm" ,nasm)
2460 ("python" ,python)))
2461 (arguments
8363a835
EF
2462 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2463 "CC=gcc")
590abe01
JN
2464 #:test-target "test"
2465 #:phases (modify-phases %standard-phases
2466 ;; no configure script
2467 (delete 'configure))))
2468 (home-page "http://www.openh264.org/")
2469 (synopsis "H264 decoder library")
2470 (description
2471 "Openh264 is a library which can decode H264 video streams.")
2472 (license license:bsd-2)))
3a44c7bb 2473
2474(define-public libmp4v2
2475 (package
2476 (name "libmp4v2")
2477 (version "2.0.0")
2478 (source
2479 (origin
2480 (method url-fetch)
2481 ;; XXX: The new location of upstream is uncertain and will become relevant the
2482 ;; moment when the googlecode archive shuts down. It is past the date it
2483 ;; should've been turned off. I tried to communicate with upstream, but this
2484 ;; wasn't very responsive and not very helpful. The short summary is, it is
2485 ;; chaos when it comes to the amount of forks and only time will tell where
2486 ;; the new upstream location is.
2487 (uri (string-append "https://storage.googleapis.com/google-"
2488 "code-archive-downloads/v2/"
2489 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
2490 (file-name (string-append name "-" version ".tar.bz2"))
2491 (sha256
2492 (base32
2493 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
2494 (build-system gnu-build-system)
2495 (outputs '("out"
2496 "static")) ; 3.7MiB .a file
2497 (arguments
2498 `(#:phases
2499 (modify-phases %standard-phases
2500 (add-after 'unpack 'remove-dates
2501 (lambda _
2502 ;; Make the build reproducible.
2503 (substitute* "configure"
2504 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
2505 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
2506 #t))
2507 (add-after 'install 'move-static-libraries
2508 (lambda* (#:key outputs #:allow-other-keys)
2509 ;; Move static libraries to the "static" output.
2510 (let* ((out (assoc-ref outputs "out"))
2511 (lib (string-append out "/lib"))
2512 (static (assoc-ref outputs "static"))
2513 (slib (string-append static "/lib")))
2514 (mkdir-p slib)
2515 (for-each (lambda (file)
2516 (install-file file slib)
2517 (delete-file file))
2518 (find-files lib "\\.a$"))
2519 #t))))))
2520 (native-inputs
2521 `(("help2man" ,help2man)
2522 ("dejagnu" ,dejagnu)))
2523 (home-page "https://code.google.com/archive/p/mp4v2/")
2524 (synopsis "API to create and modify mp4 files")
2525 (description
2526 "The MP4v2 library provides an API to create and modify mp4 files as defined by
2527ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
2528file format that has been used as a multimedia file format in a variety of platforms and
2529applications. It is a very powerful and extensible format that can accommodate
2530practically any type of media.")
2531 (license license:mpl1.1)))
e0c40707
EJ
2532
2533(define-public libmediainfo
2534 (package
2535 (name "libmediainfo")
2536 (version "0.7.95")
2537 (source (origin
2538 (method url-fetch)
2539 (uri (string-append "https://mediaarea.net/download/source/"
2540 name "/" version"/"
2541 name "_" version ".tar.bz2"))
2542 (sha256
2543 (base32
2544 "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b"))))
2545 ;; TODO add a Big Buck Bunny webm for tests.
2546 (native-inputs
2547 `(("autoconf" ,autoconf)
2548 ("automake" ,automake)
2549 ("libtool" ,libtool)
2550 ("pkg-config" ,pkg-config)
2551 ("zlib" ,zlib)
2552 ("tinyxml2" ,tinyxml2)
2553 ("curl" ,curl)
2554 ("libzen" ,libzen)))
2555 (build-system gnu-build-system)
2556 (arguments
2557 '(#:tests? #f ; see above TODO
2558 #:phases
2559 ;; build scripts not in root of archive
2560 (modify-phases %standard-phases
0cae36b5 2561 (add-after 'unpack 'change-to-build-dir
e0c40707 2562 (lambda _
0cae36b5
EF
2563 (chdir "Project/GNU/Library")
2564 #t))
2565 (add-after 'change-to-build-dir 'autogen
e0c40707 2566 (lambda _
bf6edb95 2567 (invoke "sh" "autogen.sh"))))))
e0c40707
EJ
2568 (home-page "https://mediaarea.net/en/MediaInfo")
2569 (synopsis "Library for retrieving media metadata")
2570 (description "MediaInfo is a library used for retrieving technical
2571information and other metadata about audio or video files. A non-exhaustive
2572list of the information MediaInfo can retrieve from media files include:
2573
2574@itemize
2575@item General: title, author, director, album, track number, date, duration...
2576@item Video: codec, aspect, fps, bitrate...
2577@item Audio: codec, sample rate, channels, language, bitrate...
2578@item Text: language of subtitle
2579@item Chapters: number of chapters, list of chapters
2580@end itemize
2581
2582MediaInfo supports the following formats:
2583
2584@itemize
2585@item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
2586MPEG-2, MPEG-4, DVD (VOB)...
2587@item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
2588@item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
2589@item Subtitles: SRT, SSA, ASS, SAMI...
2590@end itemize\n")
2591 (license license:bsd-2)))
2592
d5fa2777
EJ
2593;; TODO also have a GUI version available
2594(define-public mediainfo
2595 (package
2596 (name "mediainfo")
2597 (version "0.7.95")
2598 (source (origin
2599 (method url-fetch)
2600 (uri (string-append "https://mediaarea.net/download/source/"
2601 name "/" version "/"
2602 name "_" version ".tar.bz2"))
2603 (sha256
2604 (base32
2605 "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv"))))
2606 (native-inputs
2607 `(("autoconf" ,autoconf)
2608 ("automake" ,automake)
2609 ("libtool" ,libtool)
2610 ("pkg-config" ,pkg-config)
2611 ("zlib" ,zlib)
c695fb76 2612 ("libmediainfo" ,libmediainfo)
d5fa2777
EJ
2613 ("libzen" ,libzen)))
2614 (build-system gnu-build-system)
2615 (arguments
2616 '(#:tests? #f ; lacks tests
2617 #:phases
2618 ;; build scripts not in root of archive
2619 (modify-phases %standard-phases
2f17187f 2620 (add-after 'unpack 'change-to-build-dir
d5fa2777 2621 (lambda _
2f17187f
EF
2622 (chdir "Project/GNU/CLI")
2623 #t))
2624 (add-after 'change-to-build-dir 'autogen
d5fa2777 2625 (lambda _
d793d9a6 2626 (invoke "sh" "autogen.sh"))))))
d5fa2777
EJ
2627 (home-page "https://mediaarea.net/en/MediaInfo")
2628 (synopsis "Utility for reading media metadata")
2629 (description "MediaInfo is a utility used for retrieving technical
2630information and other metadata about audio or video files. It supports the
2631many codecs and formats supported by libmediainfo.")
2632 (license license:bsd-2)))
fa379a5b
CL
2633
2634(define-public livemedia-utils
2635 (package
2636 (name "livemedia-utils")
7342edf3 2637 (version "2017.10.28")
fa379a5b
CL
2638 (source (origin
2639 (method url-fetch)
2640 (uri (string-append
517c66c0 2641 "https://download.videolan.org/contrib/live555/live."
fa379a5b
CL
2642 version ".tar.gz"))
2643 (sha256
2644 (base32
7342edf3 2645 "0f5kxpayqn3yhabqrd2cqlc74i6x2xr01jfkank1lcilxnfyrsnq"))
156c14c1 2646 (modules '((guix build utils)))
6cbee49d
MW
2647 (snippet '(begin
2648 ;; As of glibc 2.26, <xlocale.h> no longer is.
2649 (substitute* "liveMedia/include/Locale.hh"
2857e527
MW
2650 (("xlocale\\.h") "locale.h"))
2651 #t))))
fa379a5b
CL
2652 (build-system gnu-build-system)
2653 (arguments
2654 '(#:tests? #f ; no tests
2655 #:make-flags (list "CC=gcc"
2656 (string-append "LDFLAGS=-Wl,-rpath="
2657 (assoc-ref %outputs "out") "/lib")
2658 (string-append "PREFIX="
2659 (assoc-ref %outputs "out")))
2660 #:phases (modify-phases %standard-phases
2661 (add-before 'configure 'fix-makefiles-generation
2662 (lambda _
2663 (substitute* "genMakefiles"
2664 (("/bin/rm") "rm"))
2665 #t))
2666 (replace 'configure
2667 (lambda _
6b677bb0
TGR
2668 (invoke "./genMakefiles"
2669 "linux-with-shared-libraries"))))))
fa379a5b
CL
2670 (home-page "http://www.live555.com/liveMedia/")
2671 (synopsis "Set of C++ libraries for multimedia streaming")
2672 (description "This code forms a set of C++ libraries for multimedia
2673streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
2674can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
2675JPEG video, and several audio codecs. They can easily be extended to support
2676additional (audio and/or video) codecs, and can also be used to build basic
2677RTSP or SIP clients and servers.")
2678 (license license:lgpl3+)))
0dff4dd9
CL
2679
2680(define-public libdvbpsi
2681 (package
2682 (name "libdvbpsi")
74b977d7 2683 (version "1.3.2")
0dff4dd9
CL
2684 (source (origin
2685 (method url-fetch)
2686 (uri (string-append
2687 "https://download.videolan.org/pub/libdvbpsi/"
2688 version "/libdvbpsi-" version ".tar.bz2"))
2689 (sha256
2690 (base32
74b977d7 2691 "1zn5hfv4qbahmydbwh59a3b480s3m5ss27r6ml35gqdip7r3jkmc"))))
0dff4dd9
CL
2692 (build-system gnu-build-system)
2693 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
2694 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
2695tables")
2696 (description "libdvbpsi is a simple library designed for decoding and
2697generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
2698and ITU-T H.222.0.")
2699 (license license:lgpl2.1)))
6779ae27
JL
2700
2701(define-public ffms2
2702 (package
2703 (name "ffms2")
2704 (version "2.23")
b1eaede0 2705 (home-page "https://github.com/FFMS/ffms2")
6779ae27
JL
2706 (source (origin
2707 (method url-fetch)
b1eaede0 2708 (uri (string-append home-page "/archive/" version ".tar.gz"))
6779ae27
JL
2709 (file-name (string-append name "-" version ".tar.gz"))
2710 (sha256
2711 (base32
2712 "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh"))))
2713 (build-system gnu-build-system)
2714 (arguments
2715 '(#:configure-flags
2716 (list "--enable-avresample")))
2717 (inputs
2718 `(("zlib" ,zlib)))
2719 (propagated-inputs
2720 `(("ffmpeg" ,ffmpeg)))
2721 (native-inputs
2722 `(("pkg-config" ,pkg-config)))
2723 (synopsis "Cross-platform wrapper around ffmpeg/libav")
2724 (description
2725 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
2726programmers to access a standard API to open and decompress media files.")
2727 ;; sources are distributed under a different license that the binary.
2728 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
2729 (license license:gpl2+))); inherits from ffmpeg
c812f460
JL
2730
2731(define-public aegisub
2732 (package
2733 (name "aegisub")
2734 (version "3.2.2")
2735 (source (origin
2736 (method url-fetch)
2737 (uri (string-append
2738 "http://ftp.aegisub.org/pub/archives/releases/source/"
2739 name "-" version ".tar.xz"))
2740 (sha256
2741 (base32
18e56ad7
BH
2742 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))
2743 (patches (search-patches "aegisub-icu59-include-unistr.patch"))))
c812f460
JL
2744 (build-system gnu-build-system)
2745 (arguments
2746 `(#:configure-flags
2747 (list "--disable-update-checker"
2748 "--without-portaudio"
2749 "--without-openal"
18e56ad7
BH
2750 "--without-oss"
2751 "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1")
c812f460
JL
2752 ;; tests require busted, a lua package we don't have yet
2753 #:tests? #f
2754 #:phases
2755 (modify-phases %standard-phases
2756 (add-before 'configure 'fix-ldflags
2757 (lambda _
18e56ad7
BH
2758 (setenv "LDFLAGS" "-pthread")
2759 #t)))))
c812f460
JL
2760 (inputs
2761 `(("boost" ,boost)
2762 ("desktop-file-utils" ,desktop-file-utils)
2763 ("ffms2" ,ffms2)
2764 ("fftw" ,fftw)
2765 ("hunspell" ,hunspell)
2766 ("mesa" ,mesa)
2767 ("libass" ,libass)
2768 ("alsa-lib" ,alsa-lib)
2769 ("pulseaudio" ,pulseaudio)
2770 ("libx11" ,libx11)
2771 ("freetype" ,freetype)
2772 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2773 (native-inputs
2774 `(("intltool" ,intltool)
2775 ("pkg-config" ,pkg-config)))
2776 (home-page "http://www.aegisub.org/")
2777 (synopsis "Subtitle engine")
2778 (description
2779 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
2780it quick and easy to time subtitles to audio, and features many powerful
2781tools for styling them, including a built-in real-time video preview.")
2782 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
2783 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
2784 license:expat)))) ; and src/gl that is under a license similar
2785 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
2786 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
2787 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
2788
635f981b 2789(define-public gst-transcoder
2790 (package
2791 (name "gst-transcoder")
2792 (version "1.12.2")
2793 (source
2794 (origin
2795 (method url-fetch)
2796 (uri (string-append "https://github.com/pitivi/gst-transcoder/"
2797 "archive/" version ".tar.gz"))
2798 (file-name (string-append name "-" version ".tar.gz"))
2799 (sha256
2800 (base32
2801 "0cnwmrsd321s02ff91m3j27ydj7f8wks0jvmp5admlhka6z7zxm9"))))
2802 (build-system meson-build-system)
2803 (inputs
2804 `(("gobject-introspection" ,gobject-introspection)
2805 ("glib" ,glib)
2806 ("gstreamer" ,gstreamer)
2807 ("gst-plugins-base" ,gst-plugins-base)))
2808 (native-inputs
2809 `(("python" ,python)
2810 ("pkg-config" ,pkg-config)))
2811 (home-page "https://github.com/pitivi/gst-transcoder/")
2812 (synopsis "GStreamer Transcoding API")
2813 (description "GStreamer Transcoding API")
2814 (license license:lgpl2.1)))
e37bdc0f 2815
2816(define-public gavl
2817 (package
2818 (name "gavl")
2819 (version "1.4.0")
2820 (source
2821 (origin
2822 (method url-fetch)
2823 (uri (string-append "mirror://sourceforge/gmerlin/"
2824 name "/" version "/"
2825 name "-" version ".tar.gz"))
2826 (file-name (string-append name "-" version ".tar.gz"))
2827 (sha256
2828 (base32
2829 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
2830 (build-system gnu-build-system)
c178aa34
EF
2831 (arguments
2832 '(#:configure-flags '("LIBS=-lm")))
e37bdc0f 2833 (native-inputs
2834 `(("pkg-config" ,pkg-config)
2835 ("doxygen" ,doxygen)))
2836 (home-page "http://gmerlin.sourceforge.net")
2837 (synopsis "Low level library for multimedia API building")
2838 (description
2839 "Gavl is short for Gmerlin Audio Video Library. It is a low level
2840library, upon which multimedia APIs can be built. Gavl handles all the
2841details of audio and video formats like colorspaces, sample rates,
2842multichannel configurations, etc. It provides standardized definitions for
2843those formats as well as container structures for carrying audio samples or
2844video images inside an application.
2845
2846In addition, it handles the sometimes ugly task of converting between all
2847these formats and provides some elementary operations (copying, scaling,
2848alpha blending etc).")
2849 (license license:gpl3)))
49e1d76d 2850
2851(define-public frei0r-plugins
2852 (package
2853 (name "frei0r-plugins")
2854 (version "1.6.1")
2855 (source
2856 (origin
2857 (method url-fetch)
2858 (uri (string-append "https://files.dyne.org/frei0r/"
2859 "frei0r-plugins-" version ".tar.gz"))
2860 (sha256
2861 (base32
2862 "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0"))))
2863 (build-system gnu-build-system)
2864 (arguments
2865 `(#:phases
2866 (modify-phases %standard-phases
2867 (add-after 'unpack 'autotools
2868 (lambda _
63181c85
TGR
2869 (invoke "sh" "autogen.sh"))))))
2870 ;; TODO: opencv for additional face detection filters.
49e1d76d 2871 (inputs
2872 `(("gavl" ,gavl)
2873 ("cairo" ,cairo)))
2874 (native-inputs
2875 `(("pkg-config" ,pkg-config)
2876 ("libtool" ,libtool)
2877 ("automake" ,automake)
2878 ("autoconf" ,autoconf)))
2879 (home-page "https://www.dyne.org/software/frei0r/")
2880 (synopsis "Minimalistic plugin API for video effects")
2881 (description
2882 "Frei0r is a minimalistic plugin API for video effects.
2883The main emphasis is on simplicity for an API that will round up
2884the most common video effects into simple filters, sources and
2885mixers that can be controlled by parameters. Frei0r wants to
2886provide a way to share these simple effects between many
2887applications, avoiding their reimplementation by different projects.
2888It counts more than 100 plugins.")
2889 (license (list license:gpl2+
2890 ;; The following files are licensed as LGPL2.1+:
2891 ;; src/generator/ising0r/ising0r.c
2892 ;; src/generator/onecol0r/onecol0r.cpp
2893 ;; src/generator/nois0r/nois0r.cpp
2894 ;; src/generator/lissajous0r/lissajous0r.cpp
2895 ;; src/filter/ndvi/gradientlut.hpp
2896 ;; src/filter/ndvi/ndvi.cpp
2897 ;; src/filter/facedetect/facedetect.cpp
2898 license:lgpl2.1+))))
eb3e41c9
LC
2899
2900(define-public motion
2901 (package
2902 (name "motion")
2903 (version "4.1.1")
2904 (home-page "https://motion-project.github.io/")
2905 (source (origin
2906 (method url-fetch)
2907 (uri (string-append
2908 "https://github.com/Motion-Project/motion/archive/"
2909 "release-" version ".tar.gz"))
2910 (sha256
2911 (base32
2912 "1qm4i8zrqafl60sv2frhixvkd0wh0r5jfcrj5i6gha7yplsvjx10"))
2913 (file-name (string-append name "-" version ".tar.gz"))))
2914 (build-system gnu-build-system)
2915 (native-inputs
464f5447 2916 `(("autoconf" ,autoconf-wrapper)
eb3e41c9
LC
2917 ("automake" ,automake)
2918 ("pkg-config" ,pkg-config)))
2919 (inputs
2920 `(("libjpeg" ,libjpeg)
bb5c508c 2921 ("ffmpeg" ,ffmpeg-3.4)
eb3e41c9
LC
2922 ("sqlite" ,sqlite)))
2923 (arguments
2924 '(#:phases (modify-phases %standard-phases
189be331 2925 (replace 'bootstrap
eb3e41c9
LC
2926 (lambda _
2927 (patch-shebang "version.sh")
2928 (invoke "autoreconf" "-vfi"))))
2929 #:configure-flags '("--sysconfdir=/etc")
2930 #:make-flags (list (string-append "sysconfdir="
2931 (assoc-ref %outputs "out")
2932 "/etc"))
2933
2934 #:tests? #f)) ;no 'check' target
2935 (synopsis "Detect motion from video signals")
2936 (description
2937 "Motion is a program that monitors the video signal from one or more
2938cameras and is able to detect if a significant part of the picture has
2939changed. Or in other words, it can detect motion.")
2940
2941 ;; Some files say "version 2" and others "version 2 or later".
2942 (license license:gpl2)))
f27f264e
PN
2943
2944(define-public subdl
2945 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
2946 (revision "1"))
2947 (package
2948 (name "subdl")
2949 (version (git-version "1.0.3" revision commit))
2950 (source (origin
2951 (method git-fetch)
2952 (uri (git-reference
2953 (url "https://github.com/alexanderwink/subdl.git")
2954 (commit commit)))
2955 (file-name (git-file-name name version))
2956 (sha256
2957 (base32
2958 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
2959 (build-system trivial-build-system)
2960 (arguments
2961 `(#:modules ((guix build utils))
2962 #:builder (begin
2963 (use-modules (guix build utils))
2964 (let* ((out (assoc-ref %outputs "out"))
2965 (bin (string-append out "/bin"))
2966 (source (assoc-ref %build-inputs "source"))
2967 (python (assoc-ref %build-inputs "python")))
2968 (install-file (string-append source "/subdl") bin)
2969 (patch-shebang (string-append bin "/subdl")
2970 (list (string-append python "/bin")))))))
2971 (inputs `(("python" ,python)))
2972 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
2973 (description "Subdl is a command-line tool for downloading subtitles from
2974opensubtitles.org. By default, it will search for English subtitles, display
2975the results, download the highest-rated result in the requested language and
2976save it to the appropriate filename.")
2977 (license license:gpl3+)
2978 (home-page "https://github.com/alexanderwink/subdl"))))
eb88e2c1
CL
2979
2980(define-public l-smash
2981 (package
2982 (name "l-smash")
2983 (version "2.14.5")
2984 (source (origin
2985 (method url-fetch)
2986 (uri (string-append
2987 "https://github.com/" name "/" name "/archive/v"
2988 version ".tar.gz"))
2989 (file-name (string-append name "-" version ".tar.gz"))
2990 (sha256
2991 (base32
2992 "0dary0h65kq6sv93iabv25djlvzr5ckdcp3ywagbix44wqfw7xz6"))))
2993 (build-system gnu-build-system)
2994 (arguments
2995 `(#:tests? #f ;no tests
2996 #:make-flags
2997 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
2998 (assoc-ref %outputs "out") "/lib"))
2999 #:phases
3000 (modify-phases %standard-phases
3001 ;; configure fails if it is followed by CONFIG_SHELL
3002 (replace 'configure
3003 (lambda* (#:key outputs #:allow-other-keys)
3004 (let ((out (assoc-ref outputs "out")))
3005 (invoke "./configure" (string-append "--prefix=" out)
3006 "--disable-static")))))))
3007 (native-inputs
3008 `(("which" ,which)))
3009 (home-page "https://l-smash.github.io/l-smash/")
3010 (synopsis "MP4 multiplexer and demultiplexer library")
3011 (description
3012 "L-SMASH is a cross-platform library that handles the ISO base media file
3013format and some of its derived file formats, including MP4. It operates as a
3014multiplexer and demultiplexer, and can mux video and audio in several formats
3015using standalone executable files.")
3016 (license license:isc)))
a0135eee
LF
3017
3018(define-public qtfaststart
3019 (package
3020 (name "qtfaststart")
3021 (version "1.8")
3022 (source (origin
3023 (method url-fetch)
3024 (uri (pypi-uri "qtfaststart" version))
3025 (sha256
3026 (base32
3027 "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h"))))
3028 (build-system python-build-system)
3029 (arguments
3030 '(#:tests? #f)) ; no test suite
3031 (synopsis "Move QuickTime and MP4 metadata to the beginning of the file")
3032 (description "qtfaststart enables streaming and pseudo-streaming of
3033QuickTime and MP4 files by moving metadata and offset information to the
3034beginning of the file. It can also print some useful information about the
3035structure of the file. This program is based on qt-faststart.c from the FFmpeg
3036project, which is released into the public domain, as well as ISO 14496-12:2005
3037(the official spec for MP4), which can be obtained from the ISO or found
3038online.")
3039 (home-page "https://github.com/danielgtaylor/qtfaststart")
3040 (license license:expat)))
485638cd
LF
3041
3042(define-public vidstab
3043 (package
3044 (name "vidstab")
3045 (version "1.1.0")
3046 (source (origin
3047 (method url-fetch)
3048 (uri (string-append "https://github.com/georgmartius/vid.stab/"
3049 "archive/v" version ".tar.gz"))
3050 (sha256
3051 (base32
3052 "1fy03n343djfdi19msac81833v5iivpv635yjzrx9nkfwm9s1lhl"))))
3053 (build-system cmake-build-system)
3054 (arguments
3055 '(#:tests? #f)) ; tests are not run as part of standard build process
3056 (home-page "http://public.hronopik.de/vid.stab/")
3057 (synopsis "Video stabilization library")
3058 (description "Vidstab is a video stabilization library which can be used
3059with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a
3060vehicle typically suffers from undesirable shakes and jitters. Activities such
3061as surfing, skiing, riding and walking while shooting videos are especially
3062prone to erratic camera shakes. Vidstab targets these video contents to help
3063create smoother and stable videos.")
3064 (license license:gpl2+)))