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