gnu: Add SVT-VP9.
[jackhill/guix/guix.git] / gnu / packages / video.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 David Thompson <davet@gnu.org>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2020 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca>
8 ;;; Copyright © 2015, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Alex Vong <alexvong1995@gmail.com>
10 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
12 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
13 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
14 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
15 ;;; Copyright © 2016, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
16 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
17 ;;; Copyright © 2017 Feng Shu <tumashu@163.com>
18 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
22 ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
23 ;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
24 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
26 ;;; Copyright © 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018, 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
28 ;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
29 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
30 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
31 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
32 ;;; Copyright © 2018 Mark Meyer <mark@ofosos.org>
33 ;;; Copyright © 2018 Gábor Boskovit <boskovits@gmail.com>
34 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
35 ;;; Copyright © 2019 Timo Eisenmann <eisenmann@fn.de>
36 ;;; Copyright © 2019 Arne Babenhauserheide <arne_bab@web.de>
37 ;;; Copyright © 2019 Riku Viitanen <riku.viitanen@protonmail.com>
38 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
39 ;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
40 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
42 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
43 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
44 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
45 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
46 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
47 ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro>
48 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
49 ;;; Copyright © 2020 Antoine Côté <antoine.cote@posteo.net>
50 ;;;
51 ;;; This file is part of GNU Guix.
52 ;;;
53 ;;; GNU Guix is free software; you can redistribute it and/or modify it
54 ;;; under the terms of the GNU General Public License as published by
55 ;;; the Free Software Foundation; either version 3 of the License, or (at
56 ;;; your option) any later version.
57 ;;;
58 ;;; GNU Guix is distributed in the hope that it will be useful, but
59 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
60 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61 ;;; GNU General Public License for more details.
62 ;;;
63 ;;; You should have received a copy of the GNU General Public License
64 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
65
66 (define-module (gnu packages video)
67 #:use-module (ice-9 match)
68 #:use-module ((srfi srfi-1) #:hide (zip))
69 #:use-module (srfi srfi-26)
70 #:use-module ((guix licenses) #:prefix license:)
71 #:use-module (guix utils)
72 #:use-module (guix packages)
73 #:use-module (guix download)
74 #:use-module (guix git-download)
75 #:use-module (guix svn-download)
76 #:use-module (guix build-system cargo)
77 #:use-module (guix build-system cmake)
78 #:use-module (guix build-system copy)
79 #:use-module (guix build-system gnu)
80 #:use-module (guix build-system glib-or-gtk)
81 #:use-module (guix build-system meson)
82 #:use-module (guix build-system perl)
83 #:use-module (guix build-system python)
84 #:use-module (guix build-system waf)
85 #:use-module (guix build-system trivial)
86 #:use-module (gnu packages)
87 #:use-module (gnu packages algebra)
88 #:use-module (gnu packages assembly)
89 #:use-module (gnu packages audio)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages avahi)
92 #:use-module (gnu packages backup)
93 #:use-module (gnu packages base)
94 #:use-module (gnu packages bison)
95 #:use-module (gnu packages boost)
96 #:use-module (gnu packages cdrom)
97 #:use-module (gnu packages check)
98 #:use-module (gnu packages cmake)
99 #:use-module (gnu packages compression)
100 #:use-module (gnu packages cpp)
101 #:use-module (gnu packages crates-io)
102 #:use-module (gnu packages crates-graphics)
103 #:use-module (gnu packages curl)
104 #:use-module (gnu packages dejagnu)
105 #:use-module (gnu packages dns)
106 #:use-module (gnu packages docbook)
107 #:use-module (gnu packages documentation)
108 #:use-module (gnu packages elf)
109 #:use-module (gnu packages file)
110 #:use-module (gnu packages flex)
111 #:use-module (gnu packages fonts)
112 #:use-module (gnu packages fontutils)
113 #:use-module (gnu packages freedesktop)
114 #:use-module (gnu packages fribidi)
115 #:use-module (gnu packages gettext)
116 #:use-module (gnu packages ghostscript)
117 #:use-module (gnu packages gl)
118 #:use-module (gnu packages glib)
119 #:use-module (gnu packages guile)
120 #:use-module (gnu packages gnome)
121 #:use-module (gnu packages gnunet)
122 #:use-module (gnu packages gnupg)
123 #:use-module (gnu packages gstreamer)
124 #:use-module (gnu packages gtk)
125 #:use-module (gnu packages image)
126 #:use-module (gnu packages imagemagick)
127 #:use-module (gnu packages iso-codes)
128 #:use-module (gnu packages libidn)
129 #:use-module (gnu packages libreoffice)
130 #:use-module (gnu packages libusb)
131 #:use-module (gnu packages linux)
132 #:use-module (gnu packages lua)
133 #:use-module (gnu packages m4)
134 #:use-module (gnu packages man)
135 #:use-module (gnu packages markup)
136 #:use-module (gnu packages maths)
137 #:use-module (gnu packages mp3)
138 #:use-module (gnu packages ncurses)
139 #:use-module (gnu packages networking)
140 #:use-module (gnu packages ocr)
141 #:use-module (gnu packages pcre)
142 #:use-module (gnu packages perl)
143 #:use-module (gnu packages perl-check)
144 #:use-module (gnu packages perl-web)
145 #:use-module (gnu packages photo)
146 #:use-module (gnu packages pkg-config)
147 #:use-module (gnu packages popt)
148 #:use-module (gnu packages pretty-print)
149 #:use-module (gnu packages protobuf)
150 #:use-module (gnu packages pulseaudio)
151 #:use-module (gnu packages python)
152 #:use-module (gnu packages python-crypto)
153 #:use-module (gnu packages python-web)
154 #:use-module (gnu packages python-xyz)
155 #:use-module (gnu packages qt)
156 #:use-module (gnu packages rdesktop)
157 #:use-module (gnu packages re2c)
158 #:use-module (gnu packages ruby)
159 #:use-module (gnu packages rust-apps)
160 #:use-module (gnu packages samba)
161 #:use-module (gnu packages sdl)
162 #:use-module (gnu packages serialization)
163 #:use-module (gnu packages shells)
164 #:use-module (gnu packages sqlite)
165 #:use-module (gnu packages ssh)
166 #:use-module (gnu packages swig)
167 #:use-module (gnu packages texinfo)
168 #:use-module (gnu packages textutils)
169 #:use-module (gnu packages tls)
170 #:use-module (gnu packages time)
171 #:use-module (gnu packages upnp)
172 #:use-module (gnu packages vulkan)
173 #:use-module (gnu packages web)
174 #:use-module (gnu packages webkit)
175 #:use-module (gnu packages wxwidgets)
176 #:use-module (gnu packages xdisorg)
177 #:use-module (gnu packages xiph)
178 #:use-module (gnu packages xml)
179 #:use-module (gnu packages xorg))
180
181 (define-public transcode
182 (package
183 (name "transcode")
184 (version "1.1.7")
185 (source
186 (origin
187 (method url-fetch)
188 (uri
189 (string-append "https://sources.archlinux.org/other/community/"
190 name "/" name "-" version ".tar.bz2"))
191 (sha256
192 (base32 "14ha9xjsjrj131f35jd56z5v1jb4rbsrj1nril5shqnxw3c74khy"))
193 (patches
194 (search-patches "transcode-ffmpeg.patch"))))
195 (build-system gnu-build-system)
196 (arguments
197 `(#:configure-flags
198 (list
199 "--enable-libv4l2"
200 "--enable-libmpeg2"
201 "--enable-libmpeg2convert"
202 "--enable-v4l"
203 ;;; XXX: Not available.
204 ;"--enable-bktr"
205 ;"--enable-sunau"
206 "--enable-oss"
207 "--enable-alsa"
208 ;;; XXX: Not available.
209 ;"--enable-libpostproc"
210 "--enable-freetype2"
211 "--enable-xvid"
212 "--enable-x264"
213 "--enable-ogg"
214 "--enable-vorbis"
215 "--enable-theora"
216 ;;; XXX: Not available.
217 ;"--enable-pvm3"
218 "--enable-libdv"
219 "--enable-libquicktime"
220 "--enable-lzo"
221 "--enable-a52"
222 "--enable-faac"
223 "--enable-libxml2"
224 ;;; XXX: Not available.
225 ;"--enable-ibp"
226 ;;"--enable-mjpegtools"
227 "--enable-sdl"
228 "--enable-imagemagick"
229 ;;; XXX: Not available.
230 ;"--enable-libjpegmmx"
231 "--enable-libjpeg")))
232 ;;; XXX: Not available.
233 ;"--enable-bsdav"
234 ;"--enable-pv3"
235 ;"--enable-nuv"
236 (native-inputs
237 `(("autoconf" ,autoconf)
238 ("automake" ,automake)
239 ("iconv" ,libiconv)
240 ("libtool" ,libtool)
241 ("libxml2" ,libxml2)
242 ("perl" ,perl)
243 ("pkg-config" ,pkg-config)
244 ("python" ,python-wrapper)))
245 (inputs
246 `(("alsa-lib" ,alsa-lib)
247 ("faac" ,faac)
248 ("ffmpeg" ,ffmpeg)
249 ("freetype" ,freetype)
250 ("imagemagick" ,imagemagick-next)
251 ("lame" ,lame)
252 ("liba52" ,liba52)
253 ("libdv" ,libdv)
254 ("libdvdread" ,libdvdread)
255 ("libjpeg" ,libjpeg-turbo)
256 ("libmpeg2" ,libmpeg2)
257 ("libogg" ,libogg)
258 ("libquicktime" ,libquicktime)
259 ("libtheora" ,libtheora)
260 ("libvorbis" ,libvorbis)
261 ("lzo" ,lzo)
262 ("mjepgtools" ,mjpegtools)
263 ("sdl" ,sdl)
264 ("v4l-utils" ,v4l-utils)
265 ("x11" ,libx11)
266 ("x264" ,libx264)
267 ("xaw" ,libxaw)
268 ("xext" ,libxext)
269 ("xpm" ,libxpm)
270 ("xv" ,libxv)
271 ("xvid" ,xvid)
272 ("zlib" ,zlib)))
273 (synopsis "Audio/Video Transcoder")
274 (description "Transcode is a fast, versatile and command-line based
275 audio/video everything to everything converter primarily focussed on producing
276 AVI video files with MP3 audio, but also including a program to read all the
277 video and audio streams from a DVD.")
278 (home-page
279 "http://linuxfromscratch.org/blfs/view/svn/multimedia/transcode.html")
280 (license license:gpl2+)))
281
282 (define-public svt-hevc
283 (package
284 (name "svt-hevc")
285 (version "1.4.3")
286 (source
287 (origin
288 (method git-fetch)
289 (uri
290 (git-reference
291 (url "https://github.com/OpenVisualCloud/SVT-HEVC")
292 (commit (string-append "v" version))))
293 (file-name (git-file-name name version))
294 (sha256
295 (base32 "1sqh3dciqm2p1b66kngcpxqy5fx3ramxlxy8gfcbdwn2i3rsqhs7"))))
296 (build-system cmake-build-system)
297 (arguments
298 `(#:tests? #f)) ; Test script is stand-alone
299 (native-inputs
300 `(("yasm" ,yasm)))
301 (synopsis "SVT HEVC encoder")
302 (description "Scalable Video Technology (SVT) is a software-based video
303 coding technology that is highly optimized for Intel's Xeon processors. Using
304 the SVT-HEVC encoder, it is possible to spread video encoding processing across
305 multiple Intel's Xeon processors to achieve a real advantage of processing
306 efficiency.")
307 (home-page "https://01.org/svt")
308 (license (license:non-copyleft "file:///LICENSE.md"))))
309
310 (define-public mediasdk
311 (package
312 (name "mediasdk")
313 (version "20.1.1")
314 (source
315 (origin
316 (method git-fetch)
317 (uri
318 (git-reference
319 (url "https://github.com/Intel-Media-SDK/MediaSDK")
320 (commit (string-append "intel-" name "-" version))))
321 (file-name (git-file-name name version))
322 (sha256
323 (base32 "0blwcxr5j8762nylx2cxrq0h53bpgnk859dbs6crq4wr9fcxlx9z"))))
324 (build-system cmake-build-system)
325 (arguments
326 `(#:configure-flags
327 (list
328 "-DENABLE_X11=ON"
329 "-DENABLE_X11_DRI3=ON"
330 "-DENABLE_WAYLAND=ON"
331 "-DENABLE_TEXTLOG=ON"
332 "-DENABLE_STAT=ON"
333 "-DBUILD_TESTS=ON"
334 "-DBUILD_TOOLS=ON"
335 (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
336 (assoc-ref %outputs "out") "/lib"))))
337 (native-inputs
338 `(("pkg-config" ,pkg-config)
339 ("python" ,python-wrapper)))
340 (inputs
341 `(("libdrm" ,libdrm)
342 ("libva" ,libva)
343 ("pciaccess" ,libpciaccess)
344 ("wayland" ,wayland)
345 ("x11" ,libx11)))
346 (synopsis "Intel Media SDK")
347 (description "MediaSDK provides a plain C API to access hardware-accelerated
348 video decode, encode and filtering on Intel's Gen graphics hardware platforms.")
349 (home-page "http://mediasdk.intel.com/")
350 (license (license:non-copyleft "file:///LICENSE"))))
351
352 (define-public schroedinger
353 (package
354 (name "schroedinger")
355 (version "1.0.11")
356 (source
357 (origin
358 (method url-fetch)
359 (uri
360 (string-append "https://launchpad.net/" name "/trunk/" version
361 "/+download/" name "-" version ".tar.gz"))
362 (sha256
363 (base32 "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy"))))
364 (build-system gnu-build-system)
365 (outputs '("out" "doc"))
366 (arguments
367 `(#:phases
368 (modify-phases %standard-phases
369 (add-after 'install 'move-docs
370 (lambda* (#:key outputs #:allow-other-keys)
371 (let* ((out (assoc-ref outputs "out"))
372 (doc (assoc-ref outputs "doc")))
373 (mkdir-p (string-append doc "/share"))
374 (rename-file
375 (string-append out "/share/gtk-doc")
376 (string-append doc "/share/gtk-doc"))
377 #t))))))
378 (native-inputs
379 `(("dash" ,dash)
380 ("gtk-doc" ,gtk-doc)
381 ("pkg-config" ,pkg-config)))
382 (inputs
383 `(("glew" ,glew)
384 ("opengl" ,mesa)))
385 (propagated-inputs
386 `(("orc" ,orc)))
387 (synopsis "Dirac video codec")
388 (description "Schroedinger is a project implementing the Dirac video codec in
389 ANSI C code. It is meant to be highly optimized and portable. It is developed
390 as a joint effort between the BBC and Fluendo.")
391 (home-page "https://launchpad.net/schroedinger")
392 (license
393 ;; This library is licensed under 4 different licenses,
394 ;; and you can choose to use it under the terms of any one of them.
395 (list
396 license:gpl2+
397 license:lgpl2.0+
398 license:expat
399 license:mpl1.1))))
400
401 (define-public libquicktime
402 (package
403 (name "libquicktime")
404 (version "1.2.4")
405 (source
406 (origin
407 (method url-fetch)
408 (uri
409 (string-append "https://sourceforge.net/projects/" name "/files/"
410 name "/" version "/" name "-" version ".tar.gz"))
411 (sha256
412 (base32 "0s3kshzl3zfjw3phzv73r91fkr9z8q8kc3dhsys4f4xk6ff3alqw"))
413 (patches
414 (search-patches "libquicktime-ffmpeg.patch"))))
415 (build-system gnu-build-system)
416 (native-inputs
417 `(("gettext" ,gettext-minimal)
418 ("doxygen" ,doxygen)
419 ("pkg-config" ,pkg-config)))
420 (inputs
421 `(("alsa" ,alsa-lib)
422 ("ffmpeg" ,ffmpeg)
423 ("gtk+-2" ,gtk+-2)
424 ("lame" ,lame)
425 ("libdv" ,libdv)
426 ("libjpeg" ,libjpeg-turbo)
427 ("libpng" ,libpng)
428 ("libvorbis" ,libvorbis)
429 ("opengl" ,mesa)
430 ("schroedinger" ,schroedinger)
431 ("x11" ,libx11)
432 ("x264" ,libx264)
433 ("xaw" ,libxaw)
434 ("xv" ,libxv)))
435 (synopsis "Quick Time Library")
436 (description "The goal of this project is to enhance the quicktime4linux
437 library.")
438 (home-page "http://libquicktime.sourceforge.net/")
439 (license license:lgpl2.1+)))
440
441 (define-public mjpegtools
442 (package
443 (name "mjpegtools")
444 (version "2.1.0")
445 (source
446 (origin
447 (method url-fetch)
448 (uri
449 (string-append "https://sourceforge.net/projects/" name "/files/"
450 name "/" version "/" name "-" version ".tar.gz"))
451 (sha256
452 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
453 (build-system gnu-build-system)
454 (inputs
455 `(("gtk+-2" ,gtk+-2)
456 ("libdv" ,libdv)
457 ("libpng" ,libpng)
458 ("libquicktime" ,libquicktime)
459 ("sdl" ,sdl)))
460 (synopsis "Tools for handling MPEG")
461 (description "Mjpeg tools is a suite of programs which support video capture,
462 editing, playback, and compression to MPEG of MJPEG video. Edit, play and
463 compression software is hardware independent.")
464 (home-page "http://mjpeg.sourceforge.net/")
465 (license license:gpl2+)))
466
467 (define-public libmms
468 (package
469 (name "libmms")
470 (version "0.6.4")
471 (source
472 (origin
473 (method url-fetch)
474 (uri
475 (string-append "https://sourceforge.net/projects/" name "/files/"
476 name "/" version "/" name "-" version ".tar.gz"))
477 (sha256
478 (base32 "0kvhxr5hkabj9v7ah2rzkbirndfqdijd9hp8v52c1z6bxddf019w"))))
479 (build-system gnu-build-system)
480 (synopsis "MMS stream protocol library")
481 (description "Libmms is a library for streaming media files using the mmst
482 and mmsh protocols.")
483 (home-page "https://sourceforge.net/projects/libmms/")
484 (license license:lgpl2.1+)))
485
486 (define-public libvideogfx
487 (package
488 (name "libvideogfx")
489 (version "1.0.9")
490 (source
491 (origin
492 (method git-fetch)
493 (uri
494 (git-reference
495 (url "https://github.com/farindk/libvideogfx")
496 (commit (string-append "v" version))))
497 (file-name (git-file-name name version))
498 (sha256
499 (base32 "154b0j8cfg879pg08xcbwvbz8z9nrfnyj31i48vxir1psas70ynq"))))
500 (build-system gnu-build-system)
501 (arguments
502 `(#:phases
503 (modify-phases %standard-phases
504 (add-after 'unpack 'fix-build-errors
505 (lambda _
506 (substitute* "libvideogfx/graphics/fileio/ffmpeg.cc"
507 (("av_close_input_file\\(")
508 "avformat_close_input(&"))
509 (substitute* "libvideogfx/graphics/fileio/png.cc"
510 (("is != NULL") "is.good()"))
511 #t)))))
512 (native-inputs
513 `(("autoconf" ,autoconf)
514 ("automake" ,automake)
515 ("libtool" ,libtool)
516 ("pkg-config" ,pkg-config)))
517 (inputs
518 `(("ffmpeg" ,ffmpeg-2.8)
519 ("jpeg" ,libjpeg-turbo)
520 ("png" ,libpng)
521 ("x11" ,libx11)
522 ("xext" ,libxext)))
523 (synopsis "Video processing library")
524 (description "LibVideoGfx is a C++ library for low-level video processing.
525 It aims at speeding up the development process for image and video processing
526 applications by providing high-level classes for commonly required tasks.")
527 (home-page "https://dirk-farin.net/software/libvideogfx/index.html")
528 (license license:lgpl2.1+)))
529
530 (define-public libde265
531 (package
532 (name "libde265")
533 (version "1.0.8")
534 (source
535 (origin
536 (method git-fetch)
537 (uri
538 (git-reference
539 (url "https://github.com/strukturag/libde265")
540 (commit (string-append "v" version))))
541 (file-name (git-file-name name version))
542 (sha256
543 (base32 "1dzflqbk248lz5ws0ni5acmf32b3rmnq5gsfaz7691qqjxkl1zml"))))
544 (build-system gnu-build-system)
545 (arguments
546 `(#:configure-flags
547 (list "--disable-static")))
548 (native-inputs
549 `(("autoconf" ,autoconf)
550 ("automake" ,automake)
551 ("libtool" ,libtool)
552 ("pkg-config" ,pkg-config)
553 ("python" ,python-wrapper)))
554 (inputs
555 `(;; XXX: Build fails with libvideogfx.
556 ;; ("libvideogfx" ,libvideogfx)
557 ("qt" ,qtbase)
558 ("sdl" ,sdl)))
559 (synopsis "H.265 video codec implementation")
560 (description "Libde265 is an implementation of the h.265 video codec. It is
561 written from scratch and has a plain C API to enable a simple integration into
562 other software.")
563 (home-page "https://www.libde265.org/")
564 (license
565 (list
566 ;; Applications.
567 license:expat
568 ;; Library.
569 license:lgpl3+))))
570
571 (define-public tslib
572 (package
573 (name "tslib")
574 (version "1.22")
575 (source
576 (origin
577 (method git-fetch)
578 (uri
579 (git-reference
580 (url "https://github.com/libts/tslib")
581 (commit version)))
582 (file-name (git-file-name name version))
583 (sha256
584 (base32 "197p6vy539wvfrv23agbvmay4rjya1jnisi46llm0nx4cvqh48by"))))
585 (build-system gnu-build-system)
586 (arguments
587 `(#:test-target "tests"
588 #:configure-flags
589 (list "--with-sdl2")))
590 (native-inputs
591 `(("autoconf" ,autoconf)
592 ("automake" ,automake)
593 ("libtool" ,libtool)
594 ("pkg-config" ,pkg-config)))
595 (inputs
596 `(("linux-headers" ,linux-libre-headers)
597 ("sdl2" ,sdl2)))
598 (synopsis "Touchscreen access library")
599 (description "TSLib is a cross-platform library that provides access to
600 touchscreen devices and the ability to apply filters to their input events.")
601 (home-page "http://www.tslib.org/")
602 (license license:lgpl2.1+)))
603
604 (define-public libmpeg3
605 (package
606 (name "libmpeg3")
607 (version "1.8")
608 (source
609 (origin
610 (method url-fetch)
611 (uri
612 (string-append "https://sourceforge.net/projects/heroines/files/"
613 "releases/081108/" name "-" version "-src.tar.bz2"))
614 (sha256
615 (base32 "1i53vv0wm5qfwgg1z7j9g14s6c7gxxkiy4vbdkq3lijjyyz50vv5"))))
616 (build-system gnu-build-system)
617 (arguments
618 `(#:test-target "test"
619 #:make-flags
620 (list
621 (string-append "A52DIR=" (assoc-ref %build-inputs "liba52"))
622 (string-append "DST=" (assoc-ref %outputs "out") "/bin"))
623 #:phases
624 (modify-phases %standard-phases
625 (add-after 'unpack 'delete-bundled-a52dec
626 (lambda _
627 (delete-file-recursively "a52dec-0.7.3")
628 (substitute* "Makefile"
629 (("include Makefile\\.a52")
630 "")
631 (("\\(A52DIR\\)/include")
632 "(A52DIR)/include/a52dec")
633 (("LIBS = " match)
634 (string-append match "-la52 ")))
635 #t))
636 (add-before 'install 'create-destination-directory
637 (lambda* (#:key outputs #:allow-other-keys)
638 (let* ((out (string-append (assoc-ref outputs "out"))))
639 (mkdir-p (string-append out "/bin"))
640 #t))))))
641 (native-inputs
642 `(("nasm" ,nasm)))
643 (inputs
644 `(("liba52" ,liba52)))
645 (synopsis "Advanced MPEG editing and manipulation library")
646 (description "Libmpeg3 decodes MP2, MP3, AC3, MPEG-1 video, MPEG-2 video,
647 and DVD footage in a single library. It supports many esoteric features like
648 parallel video decoding, frame-accurate editing, YUV 4:2:2, and ATSC transport
649 stream decoding")
650 (home-page "http://heroinewarrior.com/libmpeg3.php")
651 (license license:gpl2+)))
652
653 (define-public aalib
654 (package
655 (name "aalib")
656 (version "1.4rc5")
657 (source (origin
658 (method url-fetch)
659 (uri (string-append "mirror://sourceforge/aa-project/aa-lib/"
660 version "/" name "-" version ".tar.gz"))
661 (sha256
662 (base32
663 "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"))))
664 (build-system gnu-build-system)
665 (native-inputs
666 `(("makeinfo" ,texinfo)))
667 (inputs
668 `(("ncurses" ,ncurses)))
669 (arguments
670 `(#:phases
671 (modify-phases %standard-phases
672 (replace 'configure
673 (lambda* (#:key build inputs outputs #:allow-other-keys)
674 ;; This old `configure' script doesn't support
675 ;; variables passed as arguments.
676 (let ((out (assoc-ref outputs "out"))
677 (ncurses (assoc-ref inputs "ncurses")))
678 (setenv "CONFIG_SHELL" (which "bash"))
679 (invoke "./configure"
680 (string-append "--prefix=" out)
681 (string-append "--build=" build)
682 ;; The ancient config.guess is unable to
683 ;; guess the host triplet on mips64el.
684 ,@(if (string=? "mips64el-linux"
685 (%current-system))
686 '("--host=mips64el-unknown-linux-gnu")
687 '())
688 ;; The same is also true with aarch64.
689 ,@(if (string=? "aarch64-linux"
690 (%current-system))
691 '("--host=aarch64-unknown-linux-gnu")
692 '())
693 (string-append "--with-ncurses="
694 ncurses))))))))
695 (home-page "http://aa-project.sourceforge.net/aalib/")
696 (synopsis "ASCII-art library")
697 (description
698 "AA-lib is a low level gfx library which does not require graphics device.
699 In fact, there is no graphical output possible. AA-lib replaces those
700 old-fashioned output methods with powerful ascii-art renderer.")
701 (license license:lgpl2.0+)))
702
703 (define-public celluloid
704 (package
705 (name "celluloid")
706 (version "0.20")
707 (source
708 (origin
709 (method url-fetch)
710 (uri (string-append "https://github.com/celluloid-player/celluloid"
711 "/releases/download/v" version
712 "/celluloid-" version ".tar.xz"))
713 (sha256
714 (base32 "0kjjv2pcdvwcn4yi8kbpsca7pnx6cx6xdznv7ppqm0fssx68qyb3"))))
715 (build-system glib-or-gtk-build-system)
716 (native-inputs
717 `(("intltool" ,intltool)
718 ("pkg-config" ,pkg-config)))
719 (inputs
720 `(("gtk+" ,gtk+)
721 ("libepoxy" ,libepoxy)
722 ("mpv" ,mpv)))
723 (home-page "https://github.com/celluloid-player/celluloid")
724 (synopsis "GTK+ frontend for the mpv media player")
725 (description "Celluloid is a simple GTK+ frontend for the mpv media player.
726 It interacts with mpv via the client API exported by libmpv, allowing access to
727 mpv's powerful playback capabilities.")
728 (license license:gpl3+)))
729
730 (define-public liba52
731 (package
732 (name "liba52")
733 (version "0.7.4")
734 (source (origin
735 (method url-fetch)
736 (uri (string-append
737 ;; A mirror://sourceforge URI doesn't work, presumably
738 ;; because the SourceForge project is misconfigured.
739 "http://liba52.sourceforge.net/files/a52dec-" version
740 ".tar.gz"))
741 (sha256
742 (base32
743 "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"))
744 (patches (search-patches "liba52-enable-pic.patch"
745 "liba52-set-soname.patch"
746 "liba52-use-mtune-not-mcpu.patch"
747 "liba52-link-with-libm.patch"))))
748 (build-system gnu-build-system)
749 ;; XXX We need to run ./bootstrap because of the build system fixes above.
750 (native-inputs
751 `(("autoconf" ,autoconf)
752 ("automake" ,automake)
753 ("libtool" ,libtool)))
754 (arguments `(#:configure-flags '("--enable-shared")
755 #:phases
756 (modify-phases %standard-phases
757 ;; XXX We need to run ./bootstrap because of the build
758 ;; system fixes above.
759 (replace 'bootstrap
760 (lambda _ (invoke "sh" "bootstrap"))))))
761 (home-page "http://liba52.sourceforge.net/")
762 (synopsis "ATSC A/52 stream decoder")
763 (description "liba52 is a library for decoding ATSC A/52 streams. The
764 A/52 standard is used in a variety of applications, including digital
765 television and DVD. It is also known as AC-3.")
766 (license license:gpl2+)))
767
768 (define-public libaom
769 (package
770 (name "libaom")
771 (version "2.0.1")
772 (source (origin
773 (method git-fetch)
774 (uri (git-reference
775 (url "https://aomedia.googlesource.com/aom/")
776 (commit (string-append "v" version))))
777 (file-name (git-file-name name version))
778 (sha256
779 (base32
780 "1vakwmcwvmmrdw7460m8hzq96y71lxqix8b2g07c6s12br0rrdhl"))))
781 (build-system cmake-build-system)
782 (native-inputs
783 `(("perl" ,perl)
784 ("pkg-config" ,pkg-config)
785 ("python" ,python))) ; to detect the version
786 (arguments
787 `(#:tests? #f ;no check target
788 #:configure-flags
789 ;; build dynamic library
790 (list "-DBUILD_SHARED_LIBS=YES"
791 "-DENABLE_PIC=TRUE"
792 "-DAOM_TARGET_CPU=generic"
793 (string-append "-DCMAKE_INSTALL_PREFIX="
794 (assoc-ref %outputs "out")))))
795 (home-page "https://aomedia.googlesource.com/aom/")
796 (synopsis "AV1 video codec")
797 (description "Libaom is the reference implementation of AV1. It includes a
798 shared library and encoder and decoder command-line executables.")
799 (license license:bsd-2)))
800
801 (define-public libmpeg2
802 (package
803 (name "libmpeg2")
804 (version "0.5.1")
805 (source (origin
806 (method url-fetch)
807 ;; A mirror://sourceforge URI doesn't work, presumably
808 ;; because the SourceForge project is misconfigured.
809 (uri (string-append "http://libmpeg2.sourceforge.net/files/"
810 name "-" version ".tar.gz"))
811 (patches (search-patches "libmpeg2-arm-private-symbols.patch"
812 "libmpeg2-global-symbol-test.patch"))
813 (sha256
814 (base32
815 "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"))))
816 (inputs
817 `(("libx11" ,libx11)
818 ("libxext" ,libxext)
819 ("libxv" ,libxv)
820 ("libsm" ,libsm)
821 ("libice" ,libice)
822 ("sdl" ,sdl)))
823 (build-system gnu-build-system)
824 (home-page "http://libmpeg2.sourceforge.net/")
825 (synopsis "MPEG1 and MPEG2 video decoder library")
826 (description
827 "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
828 (license license:gpl2+)))
829
830 (define-public libx264
831 ;; There are no tags in the repository, so we take the version number from
832 ;; the X264_BUILD variable defined in x264.h.
833 (let ((version "161")
834 (commit "4c2aafd864dd201832ec2be0fef4484925146650")
835 (revision "0"))
836 (package
837 (name "libx264")
838 (version (git-version version revision commit))
839 (source (origin
840 (method git-fetch)
841 (uri (git-reference
842 (url "https://code.videolan.org/videolan/x264.git")
843 (commit commit)))
844 (file-name (git-file-name name version))
845 (sha256
846 (base32
847 "1i6v9h3xx9pi0zmlj3anwwjxqa63sbhy9crrif8dphipwfn9hyg5"))))
848 (build-system gnu-build-system)
849 (native-inputs
850 `(("pkg-config" ,pkg-config)
851 ("nasm" ,nasm)))
852 ;; TODO: Add gpac input
853 (arguments
854 `(#:tests? #f ;no check target
855 #:configure-flags '("--enable-shared"
856 ;; Don't build the command-line program. If we
857 ;; want it later, we should do so in a different
858 ;; package to avoid a circular dependency (the x264
859 ;; program depends on ffmpeg and ffmpeg depends on
860 ;; libx264).
861 "--disable-cli"
862
863 ;; On MIPS, we must pass "--disable-asm" or else
864 ;; configure fails after printing: "You specified a
865 ;; pre-MSA CPU in your CFLAGS. If you really want
866 ;; to run on such a CPU, configure with
867 ;; --disable-asm."
868 ,@(if (string-prefix? "mips"
869 (or (%current-target-system)
870 (%current-system)))
871 '("--disable-asm")
872 '()))))
873 (home-page "https://www.videolan.org/developers/x264.html")
874 (synopsis "H.264 video coding library")
875 (description "libx264 is an advanced encoding library for creating
876 H.264 (MPEG-4 AVC) video streams.")
877 (license (list license:gpl2+ ;most files
878 license:isc ;common/x86/x86inc.asm
879 license:lgpl2.1+ ;extras/getopt.c
880 license:bsd-3 ;extras/inttypes.h
881 (license:non-copyleft ;extras/cl*.h
882 "file://extras/cl.h"
883 "See extras/cl.h in the distribution."))))))
884
885 (define-public mkvtoolnix
886 (package
887 (name "mkvtoolnix")
888 (version "51.0.0")
889 (source
890 (origin
891 (method url-fetch)
892 (uri (string-append "https://mkvtoolnix.download/sources/"
893 "mkvtoolnix-" version ".tar.xz"))
894 (sha256
895 (base32 "0w2crz6wnfw18m9m4zrij1yplcq5drzhz8n58w9kp51wl48a0yn1"))
896 (modules '((guix build utils)))
897 (snippet '(begin
898 ;; Delete bundled libraries.
899 (for-each delete-file-recursively
900 '("lib/fmt"
901 "lib/libebml"
902 "lib/libmatroska"
903 "lib/nlohmann-json"
904 "lib/pugixml"
905 "lib/utf8-cpp"))
906 #t))))
907 (build-system gnu-build-system)
908 (outputs '("out" "gui")) ; "mkvtoolnix-gui" brings the closure size from ~300 MB to 1.5+ GB.
909 (inputs
910 `(("boost" ,boost)
911 ("bzip2" ,bzip2)
912 ("cmark" ,cmark)
913 ("libebml" ,libebml)
914 ("file" ,file)
915 ("flac" ,flac)
916 ("fmt" ,fmt)
917 ("libmatroska" ,libmatroska)
918 ("libogg" ,libogg)
919 ("libvorbis" ,libvorbis)
920 ("lzo" ,lzo)
921 ("pcre2" ,pcre2)
922 ("pugixml" ,pugixml)
923 ("qtbase" ,qtbase)
924 ("qtmultimedia" ,qtmultimedia)
925 ("utfcpp" ,utfcpp)
926 ("zlib" ,zlib)))
927 (native-inputs
928 `(("docbook-xsl" ,docbook-xsl)
929 ("gettext" ,gettext-minimal)
930 ("googletest" ,googletest)
931 ("libxslt" ,libxslt)
932 ("json-modern-cxx" ,json-modern-cxx)
933 ("perl" ,perl)
934 ("pkg-config" ,pkg-config)
935 ("po4a" ,po4a)
936 ("qttools" ,qttools)
937 ("ruby" ,ruby)))
938 (arguments
939 `(#:configure-flags
940 (list (string-append "--with-boost="
941 (assoc-ref %build-inputs "boost"))
942 (string-append "--with-docbook-xsl-root="
943 (assoc-ref %build-inputs "docbook-xsl")
944 "/xml/xsl/docbook-xsl-"
945 ,(package-version docbook-xsl))
946 "--enable-update-check=no"
947 "--enable-precompiled-headers=no")
948 #:phases
949 (modify-phases %standard-phases
950 (add-after 'unpack 'patch-relative-file-names
951 (lambda* (#:key outputs #:allow-other-keys)
952 (let ((out (assoc-ref outputs "out")))
953 (substitute* "src/mkvtoolnix-gui/util/settings.cpp"
954 (("mkvmerge" match)
955 (string-append out "/bin/" match)))
956 #t)))
957 (add-before 'configure 'add-googletest
958 (lambda* (#:key inputs #:allow-other-keys)
959 (symlink
960 (string-append (assoc-ref inputs "googletest")
961 "/include/gtest") "lib/gtest")
962 #t))
963 (replace 'build
964 (lambda _
965 (let ((-j (list "-j" (number->string (parallel-job-count)))))
966 (apply invoke "rake" -j))))
967 (replace 'check
968 (lambda _
969 (invoke "rake" "tests/unit")))
970 (replace 'install
971 (lambda _
972 (invoke "rake" "install")))
973 (add-after 'install 'post-install
974 (lambda* (#:key outputs #:allow-other-keys)
975 ;; Move the Qt interface to "gui".
976 (let* ((out (assoc-ref outputs "out"))
977 (gui (assoc-ref outputs "gui"))
978 (strip-store-dir (lambda (path)
979 (substring path (string-prefix-length out path)))))
980 (for-each
981 (lambda (file)
982 (mkdir-p (string-append gui (dirname file)))
983 (rename-file (string-append out file)
984 (string-append gui file)))
985 (append '("/bin/mkvtoolnix-gui"
986 "/share/applications/org.bunkus.mkvtoolnix-gui.desktop"
987 "/share/metainfo/org.bunkus.mkvtoolnix-gui.appdata.xml"
988 "/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml")
989 (map strip-store-dir (find-files out "\\.ogg$"))
990 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.png$"))
991 (map strip-store-dir (find-files out "mkvtoolnix-gui\\.1"))))
992 (for-each
993 (lambda (file)
994 (delete-file-recursively (string-append out file)))
995 '("/share/applications"
996 "/share/metainfo"
997 "/share/mime"
998 "/share/mkvtoolnix")))
999 #t)))))
1000 (home-page "https://mkvtoolnix.download")
1001 (synopsis "Tools to create, alter and inspect Matroska files")
1002 (description
1003 "MKVToolNix provides tools for getting information about Matroska files
1004 (@command{mkvinfo}), extracting tracks/data from Matroska files
1005 (@command{mkvextract}), and creating Matroska files from other media files
1006 (@command{mkvmerge}).")
1007 (license license:gpl2)))
1008
1009 (define-public straw-viewer
1010 (package
1011 (name "straw-viewer")
1012 (version "0.1.2")
1013 (source
1014 (origin
1015 (method git-fetch)
1016 (uri (git-reference
1017 (url "https://github.com/trizen/straw-viewer")
1018 (commit version)))
1019 (file-name (git-file-name name version))
1020 (sha256
1021 (base32 "1s6w8m9377ajy21x7lf6mbgp5yk5i70nhzmqscibjnarr3xfg9zs"))))
1022 (build-system perl-build-system)
1023 (native-inputs
1024 `(("perl-module-build" ,perl-module-build)
1025 ("perl-test-pod" ,perl-test-pod)))
1026 (inputs
1027 `(("perl-data-dump" ,perl-data-dump)
1028 ("perl-json" ,perl-json)
1029 ("perl-libwww" ,perl-libwww)
1030 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1031 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
1032 ("perl-mozilla-ca" ,perl-mozilla-ca)
1033 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
1034 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
1035 ("xdg-utils" ,xdg-utils)))
1036 ;; Required only when building the graphical interface (--gtk).
1037 ;;("perl-file-sharedir" ,perl-file-sharedir)
1038
1039 ;; Some videos play without youtube-dl, but others silently fail to.
1040 (propagated-inputs
1041 `(("youtube-dl" ,youtube-dl)))
1042 (arguments
1043 `(#:modules ((guix build perl-build-system)
1044 (guix build utils)
1045 (srfi srfi-26))
1046 #:phases
1047 (modify-phases %standard-phases
1048 (add-after 'unpack 'refer-to-inputs
1049 (lambda* (#:key inputs #:allow-other-keys)
1050 (substitute* "lib/WWW/StrawViewer.pm"
1051 (("'youtube-dl'")
1052 (format #f "'~a/bin/youtube-dl'"
1053 (assoc-ref inputs "youtube-dl"))))
1054 (substitute* "bin/gtk-straw-viewer"
1055 (("'xdg-open'")
1056 (format #f "'~a/bin/xdg-open'"
1057 (assoc-ref inputs "xdg-utils"))))
1058 #t))
1059 ;; (add-after 'install 'install-desktop
1060 ;; (lambda* (#:key outputs #:allow-other-keys)
1061 ;; (let* ((out (assoc-ref outputs "out"))
1062 ;; (sharedir (string-append out "/share")))
1063 ;; (install-file "share/gtk-straw-viewer.desktop"
1064 ;; (string-append sharedir "/applications"))
1065 ;; (install-file "share/icons/gtk-straw-viewer.png"
1066 ;; (string-append sharedir "/pixmaps"))
1067 ;; #t)))
1068 (add-after 'install 'wrap-program
1069 (lambda* (#:key outputs #:allow-other-keys)
1070 (let* ((out (assoc-ref outputs "out"))
1071 (bin-dir (string-append out "/bin/"))
1072 (site-dir (string-append out "/lib/perl5/site_perl/"))
1073 (lib-path (getenv "PERL5LIB")))
1074 (for-each (cut wrap-program <>
1075 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
1076 (find-files bin-dir))
1077 #t))))))
1078 (synopsis
1079 "Light-weight application for searching and streaming videos from YouTube")
1080 (description
1081 "Straw-viewer searches for YouTube videos using @uref{https://invidio.us/,
1082 invidio.us} and plays them locally in a native media player like @command{vlc}
1083 or @command{mpv}.
1084
1085 You can search for videos, playlists, and/or channels. The videos are streamed
1086 directly to the player at the best chosen resolution and with closed captions if
1087 available.")
1088 ;; XXX Add #:module-build-flags '("--gtk") dependencies and this sentence.
1089 ;; Both a command-line and a graphical interface are available.
1090 (home-page "https://github.com/trizen/youtube-viewer")
1091 (license license:perl-license)))
1092
1093 (define-public x265
1094 (package
1095 (name "x265")
1096 (version "3.4")
1097 (outputs '("out" "static"))
1098 (source
1099 (origin
1100 (method url-fetch)
1101 (uri (list (string-append "https://bitbucket.org/multicoreware/x265"
1102 "/downloads/x265_" version ".tar.gz")
1103 (string-append "https://download.videolan.org/videolan/x265/"
1104 "x265_" version ".tar.gz")))
1105 (sha256
1106 (base32 "0wl62hfsdqpf3r3z3s6l9bz7pdb1rcik5ll00b3yaadplqipy162"))
1107 (patches (search-patches "x265-arm-flags.patch"))
1108 (modules '((guix build utils)))
1109 (snippet '(begin
1110 (delete-file-recursively "source/compat/getopt")
1111 #t))))
1112 (build-system cmake-build-system)
1113 (native-inputs
1114 ;; XXX: ASM optimization fails on i686-linux, see <https://bugs.gnu.org/41768>.
1115 (if (string-prefix? "i686" (%current-system))
1116 '()
1117 `(("nasm" ,nasm))))
1118 (arguments
1119 `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
1120 #:configure-flags
1121 ;; Ensure position independent code for everyone.
1122 (list "-DENABLE_PIC=TRUE"
1123 ,@(if (target-arm?)
1124 '("-DENABLE_ASSEMBLY=OFF")
1125 '())
1126 (string-append "-DCMAKE_INSTALL_PREFIX="
1127 (assoc-ref %outputs "out")))
1128 #:phases
1129 (modify-phases %standard-phases
1130 (add-after 'unpack 'prepare-build
1131 (lambda _
1132 (delete-file-recursively "build")
1133 (chdir "source")
1134 #t))
1135 (add-before 'configure 'build-12-bit
1136 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1137 (mkdir "../build-12bit")
1138 (with-directory-excursion "../build-12bit"
1139 (apply invoke
1140 "cmake" "../source"
1141 "-DHIGH_BIT_DEPTH=ON"
1142 "-DEXPORT_C_API=OFF"
1143 "-DENABLE_CLI=OFF"
1144 "-DMAIN12=ON"
1145 configure-flags)
1146 (substitute* (cons "cmake_install.cmake"
1147 (append
1148 (find-files "CMakeFiles/x265-shared.dir" ".")
1149 (find-files "CMakeFiles/x265-static.dir" ".")))
1150 (("libx265") "libx265_main12"))
1151 (invoke "make"))))
1152 (add-before 'configure 'build-10-bit
1153 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
1154 (mkdir "../build-10bit")
1155 (with-directory-excursion "../build-10bit"
1156 (apply invoke
1157 "cmake" "../source"
1158 "-DHIGH_BIT_DEPTH=ON"
1159 "-DEXPORT_C_API=OFF"
1160 "-DENABLE_CLI=OFF"
1161 configure-flags)
1162 (substitute* (cons "cmake_install.cmake"
1163 (append
1164 (find-files "CMakeFiles/x265-shared.dir" ".")
1165 (find-files "CMakeFiles/x265-static.dir" ".")))
1166 (("libx265") "libx265_main10"))
1167 (invoke "make"))))
1168 (add-after 'install 'install-more-libs
1169 (lambda _
1170 (with-directory-excursion "../build-12bit"
1171 (invoke "make" "install"))
1172 (with-directory-excursion "../build-10bit"
1173 (invoke "make" "install"))))
1174 (add-before 'strip 'move-static-libs
1175 (lambda* (#:key outputs #:allow-other-keys)
1176 (let ((out (assoc-ref outputs "out"))
1177 (static (assoc-ref outputs "static")))
1178 (mkdir-p (string-append static "/lib"))
1179 (with-directory-excursion
1180 (string-append out "/lib")
1181 (for-each
1182 (lambda (file)
1183 (rename-file file
1184 (string-append static "/lib/" file)))
1185 (find-files "." "\\.a$"))))
1186 #t)))))
1187 (home-page "http://x265.org/")
1188 (synopsis "Library for encoding h.265/HEVC video streams")
1189 (description "x265 is a H.265 / HEVC video encoder application library,
1190 designed to encode video or images into an H.265 / HEVC encoded bitstream.")
1191 (license license:gpl2+)))
1192
1193 (define-public libass
1194 (package
1195 (name "libass")
1196 (version "0.15.0")
1197 (source (origin
1198 (method url-fetch)
1199 (uri (string-append
1200 "https://github.com/libass/libass/releases/download/"
1201 version "/libass-" version ".tar.xz"))
1202 (sha256
1203 (base32
1204 "0cz8v6kh3f2j5rdjrra2z0h715fa16vjm7kambvqx9hak86262cz"))))
1205 (build-system gnu-build-system)
1206 (arguments
1207 '(#:configure-flags '("--disable-static")))
1208 (native-inputs
1209 `(("pkg-config" ,pkg-config)
1210 ("nasm" ,nasm)))
1211 (propagated-inputs
1212 `(("freetype" ,freetype)
1213 ("fribidi" ,fribidi)
1214 ("fontconfig" ,fontconfig)
1215 ("harfbuzz" ,harfbuzz)))
1216 (home-page "https://github.com/libass/libass")
1217 (synopsis "Subtitle rendering library for the ASS/SSA format")
1218 (description "libass is a subtitle rendering library for the
1219 ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.")
1220 (license license:isc)))
1221
1222 (define-public libcaca
1223 (package
1224 (name "libcaca")
1225 (version "0.99.beta19")
1226 (source (origin
1227 (method url-fetch)
1228 (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-"
1229 version ".tar.gz"))
1230 (sha256
1231 (base32
1232 "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"))))
1233 (build-system gnu-build-system)
1234 (arguments
1235 '(#:configure-flags '("--disable-static")))
1236 (native-inputs `(("pkg-config" ,pkg-config)))
1237 (inputs
1238 `(("freeglut" ,freeglut)
1239 ("ftgl" ,ftgl)
1240 ("imlib2" ,imlib2)
1241 ("libx11" ,libx11)
1242 ("mesa" ,mesa)
1243 ("ncurses" ,ncurses)
1244 ("zlib" ,zlib)))
1245 (home-page "http://caca.zoy.org/wiki/libcaca")
1246 (synopsis "Colour ASCII-art library")
1247 (description "libcaca is a graphics library that outputs text instead of
1248 pixels, so that it can work on older video cards or text terminals. It
1249 supports Unicode, 2048 colors, dithering of color images, and advanced text
1250 canvas operations.")
1251 (license license:wtfpl2)))
1252
1253 (define-public libdca
1254 (package
1255 (name "libdca")
1256 (version "0.0.7")
1257 (source (origin
1258 (method url-fetch)
1259 (uri (string-append
1260 "https://download.videolan.org/pub/videolan/libdca/"
1261 version "/libdca-" version ".tar.bz2"))
1262 (sha256
1263 (base32
1264 "0sjz0s0nrv7jcpvh1i432x3jza0y5yycmzw84cfncb2qby0i62rs"))))
1265 (build-system gnu-build-system)
1266 (native-inputs
1267 `(("autoconf" ,autoconf)
1268 ("automake" ,automake)
1269 ("libtool" ,libtool)))
1270 (home-page "https://www.videolan.org/developers/libdca.html")
1271 (synopsis "DTS Coherent Acoustics decoder")
1272 (description "libdca is a library for decoding DTS Coherent Acoustics
1273 streams.")
1274 (license license:gpl2+)))
1275
1276 (define-public libdv
1277 (package
1278 (name "libdv")
1279 (version "1.0.0")
1280 (source (origin
1281 (method url-fetch)
1282 (uri (string-append
1283 "mirror://sourceforge/libdv/libdv/"
1284 version "/libdv-" version ".tar.gz"))
1285 (sha256
1286 (base32
1287 "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"))))
1288 (build-system gnu-build-system)
1289 (native-inputs `(("pkg-config" ,pkg-config)))
1290 (inputs `(("libxv" ,libxv)))
1291 (home-page "http://libdv.sourceforge.net/")
1292 (synopsis "DV video (IEC 61834 and SMPTE 314M) codec")
1293 (description "The Quasar DV codec (libdv) is a software codec for DV
1294 video, the encoding format used by most digital camcorders, typically those
1295 that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was
1296 developed according to the official standards for DV video: IEC 61834 and
1297 SMPTE 314M.")
1298 (license license:lgpl2.1+)))
1299
1300 (define-public libmatroska
1301 (package
1302 (name "libmatroska")
1303 (version "1.6.2")
1304 (source
1305 (origin
1306 (method url-fetch)
1307 (uri (string-append "https://dl.matroska.org/downloads/"
1308 "libmatroska/libmatroska-" version ".tar.xz"))
1309 (sha256
1310 (base32 "140r3q6n4a0n11zaf76lvyxd9gp435dgm8gn7mj0gar2hjm7ji5w"))))
1311 (build-system cmake-build-system)
1312 (inputs
1313 `(("libebml" ,libebml)))
1314 (arguments
1315 `(#:configure-flags
1316 (list "-DBUILD_SHARED_LIBS=YES")
1317 #:tests? #f)) ; no test suite
1318 (home-page "https://www.matroska.org")
1319 (synopsis "C++ library to parse Matroska files (.mkv and .mka)")
1320 (description
1321 "Matroska aims to become the standard of multimedia container formats.
1322 It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative
1323 of XML. EBML enables the Matroska Development Team to gain significant
1324 advantages in terms of future format extensibility, without breaking file
1325 support in old parsers.
1326 libebml is a C++ library to read and write EBML files.")
1327 (license license:lgpl2.1)))
1328
1329 (define-public libva
1330 (package
1331 (name "libva")
1332 (version "2.9.0")
1333 (source
1334 (origin
1335 (method url-fetch)
1336 (uri (list
1337 ;; Newer releases are only available on GitHub.
1338 (string-append "https://github.com/01org/libva/releases/download/"
1339 version "/libva-" version ".tar.bz2")
1340 ;; Keep the old URL around for compatibility.
1341 (string-append "https://www.freedesktop.org/software/vaapi/releases/"
1342 "libva/libva-" version "/libva-" version ".tar.bz2")))
1343 (sha256
1344 (base32 "0jsq6ia3fzyzvq7lxsrn4a8kn2kx4z3v777xkxn6k4ny5lww2i73"))))
1345 (build-system gnu-build-system)
1346 (native-inputs
1347 `(("pkg-config" ,pkg-config)))
1348 (inputs
1349 `(("libdrm" ,libdrm)
1350 ("libx11" ,libx11)
1351 ("libxext" ,libxext)
1352 ("libxfixes" ,libxfixes)
1353 ("mesa" ,mesa)
1354 ("wayland" ,wayland)))
1355 (arguments
1356 `(#:phases
1357 (modify-phases %standard-phases
1358 (add-before
1359 'build 'fix-dlopen-paths
1360 (lambda* (#:key outputs #:allow-other-keys)
1361 (let ((out (assoc-ref outputs "out")))
1362 (substitute* "va/drm/va_drm_auth_x11.c"
1363 (("\"libva-x11\\.so\\.%d\"")
1364 (string-append "\"" out "/lib/libva-x11.so.%d\"")))
1365 #t))))
1366 ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be
1367 ;; overridden at run-time via LIBVA_DRIVERS_PATH.)
1368 #:configure-flags
1369 (list (string-append "--with-drivers-path="
1370 (assoc-ref %build-inputs "mesa") "/lib/dri"))
1371 ;; However, we can't write to mesa's store directory, so override the
1372 ;; following make variable to install the dummy driver to libva's
1373 ;; $prefix/lib/dri directory.
1374 #:make-flags
1375 (list (string-append "dummy_drv_video_ladir="
1376 (assoc-ref %outputs "out") "/lib/dri"))))
1377 (home-page "https://www.freedesktop.org/wiki/Software/vaapi/")
1378 (synopsis "Video acceleration library")
1379 (description "The main motivation for VA-API (Video Acceleration API) is
1380 to enable hardware accelerated video decode/encode at various
1381 entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding
1382 standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
1383 (license license:expat)))
1384
1385 (define-public libva-utils
1386 (package
1387 (name "libva-utils")
1388 (version "2.5.0")
1389 (source
1390 (origin
1391 (method url-fetch)
1392 (uri (string-append "https://github.com/intel/libva-utils/releases/download/"
1393 version "/libva-utils-" version ".tar.bz2"))
1394 (sha256
1395 (base32 "05rasyqnsg522zqxak1q8rrm1hys7wwbi41kd0szjq0d27awjf4j"))))
1396 (build-system gnu-build-system)
1397 (arguments
1398 `(#:configure-flags
1399 (list "--enable-wayland"
1400 "--enable-x11")))
1401 (native-inputs
1402 `(("pkg-config" ,pkg-config)))
1403 (inputs
1404 `(("libdrm" ,libdrm)
1405 ("libva" ,libva)
1406 ("libx11" ,libx11)
1407 ("mesa" ,mesa)
1408 ("wayland" ,wayland)))
1409 (home-page "https://01.org/linuxmedia/vaapi")
1410 (synopsis "Collection of testing utilities for VA-API")
1411 (description
1412 "This is a collection of utilities to query and test the @acronym{VA-API,
1413 Video Acceleration API} implemented by the libva library.
1414
1415 These tools require a supported graphics chip, driver, and VA-API back end to
1416 operate properly.")
1417 (license license:expat)))
1418
1419 (define-public ffmpeg
1420 (package
1421 (name "ffmpeg")
1422 (version "4.3.1")
1423 (source (origin
1424 (method url-fetch)
1425 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1426 version ".tar.xz"))
1427 (sha256
1428 (base32
1429 "1yrg9nri54iav86vxy5i8pj51dhikksa04x20d77nc3fsi09405d"))))
1430 (build-system gnu-build-system)
1431 (inputs
1432 `(("dav1d" ,dav1d)
1433 ("fontconfig" ,fontconfig)
1434 ("freetype" ,freetype)
1435 ("frei0r-plugins" ,frei0r-plugins)
1436 ("gnutls" ,gnutls)
1437 ("opus" ,opus)
1438 ("ladspa" ,ladspa)
1439 ("lame" ,lame)
1440 ("libaom" ,libaom)
1441 ("libass" ,libass)
1442 ("libbluray" ,libbluray)
1443 ("libcaca" ,libcaca)
1444 ("libcdio-paranoia" ,libcdio-paranoia)
1445 ("libdrm" ,libdrm)
1446 ("libtheora" ,libtheora)
1447 ("libva" ,libva)
1448 ("libvdpau" ,libvdpau)
1449 ("libvorbis" ,libvorbis)
1450 ("libvpx" ,libvpx)
1451 ("libx11" ,libx11)
1452 ("libx264" ,libx264)
1453 ("mesa" ,mesa)
1454 ("openal" ,openal)
1455 ("pulseaudio" ,pulseaudio)
1456 ;; XXX: rav1e depends on rust, which currently only works on x86_64.
1457 ;; See also the related configure flag when changing this.
1458 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1459 (%current-system)))
1460 `(("rav1e" ,rav1e))
1461 '())
1462 ("sdl" ,sdl2)
1463 ("soxr" ,soxr)
1464 ("speex" ,speex)
1465 ;; FFmpeg is not yet compatible with SRT > 1.4.1.
1466 ("srt" ,srt-1.4.1)
1467 ("twolame" ,twolame)
1468 ("vidstab" ,vidstab)
1469 ("x265" ,x265)
1470 ("xvid" ,xvid)
1471 ("zlib" ,zlib)))
1472 (native-inputs
1473 `(("bc" ,bc)
1474 ("perl" ,perl)
1475 ("pkg-config" ,pkg-config)
1476 ("texinfo" ,texinfo)
1477 ("speex" ,speex)
1478 ("yasm" ,yasm)))
1479 (arguments
1480 `(#:test-target "fate"
1481 #:configure-flags
1482 ;; possible additional inputs:
1483 ;; --enable-avisynth enable reading of AviSynth script
1484 ;; files [no]
1485 ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
1486 ;; --enable-libcelt enable CELT decoding via libcelt [no]
1487 ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
1488 ;; and libraw1394 [no]
1489 ;; --enable-libfaac enable AAC encoding via libfaac [no]
1490 ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
1491 ;; --enable-libflite enable flite (voice synthesis) support via
1492 ;; libflite [no]
1493 ;; --enable-libgme enable Game Music Emu via libgme [no]
1494 ;; --enable-libgsm enable GSM de/encoding via libgsm [no]
1495 ;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
1496 ;; --enable-libilbc enable iLBC de/encoding via libilbc [no]
1497 ;; --enable-libmodplug enable ModPlug via libmodplug [no]
1498 ;; --enable-libnut enable NUT (de)muxing via libnut,
1499 ;; native (de)muxer exists [no]
1500 ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
1501 ;; libopencore-amrnb [no]
1502 ;; --enable-libopencore-amrwb enable AMR-WB decoding via
1503 ;; libopencore-amrwb [no]
1504 ;; --enable-libopencv enable video filtering via libopencv [no]
1505 ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
1506 ;; OpenJPEG [no]
1507 ;; --enable-librtmp enable RTMP[E] support via librtmp [no]
1508 ;; --enable-libschroedinger enable Dirac de/encoding via
1509 ;; libschroedinger [no]
1510 ;; --enable-libshine enable fixed-point MP3 encoding via
1511 ;; libshine [no]
1512 ;; --enable-libssh enable SFTP protocol via libssh [no]
1513 ;; (libssh2 does not work)
1514 ;; --enable-libstagefright-h264 enable H.264 decoding via
1515 ;; libstagefright [no]
1516 ;; --enable-libutvideo enable Ut Video encoding and decoding via
1517 ;; libutvideo [no]
1518 ;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
1519 ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
1520 ;; --enable-libvo-amrwbenc enable AMR-WB encoding via
1521 ;; libvo-amrwbenc [no]
1522 ;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
1523 ;; --enable-libxavs enable AVS encoding via xavs [no]
1524 ;; --enable-libzmq enable message passing via libzmq [no]
1525 ;; --enable-libzvbi enable teletext support via libzvbi [no]
1526 ;; --enable-opencl enable OpenCL code
1527 '("--enable-avresample"
1528 "--enable-gpl" ; enable optional gpl licensed parts
1529 "--enable-shared"
1530 "--enable-frei0r"
1531 "--enable-fontconfig"
1532 "--enable-gnutls"
1533 "--enable-ladspa"
1534 "--enable-libaom"
1535 "--enable-libass"
1536 "--enable-libbluray"
1537 "--enable-libcaca"
1538 "--enable-libcdio"
1539 "--enable-libdav1d"
1540 "--enable-libfreetype"
1541 "--enable-libmp3lame"
1542 "--enable-libopus"
1543 "--enable-libpulse"
1544 ,@(if (string-prefix? "x86_64" (or (%current-target-system)
1545 (%current-system)))
1546 '("--enable-librav1e")
1547 '())
1548 "--enable-libsoxr"
1549 "--enable-libspeex"
1550 "--enable-libsrt"
1551 "--enable-libtheora"
1552 "--enable-libtwolame"
1553 "--enable-libvidstab"
1554 "--enable-libvorbis"
1555 "--enable-libvpx"
1556 "--enable-libxvid"
1557 "--enable-libx264"
1558 "--enable-libx265"
1559 "--enable-openal"
1560 "--enable-opengl"
1561 "--enable-libdrm"
1562
1563 "--enable-runtime-cpudetect"
1564
1565 ;; The HTML pages take 7.2 MiB
1566 "--disable-htmlpages"
1567
1568 ;; The static libraries are 23 MiB
1569 "--disable-static"
1570
1571 ;; Runtime cpu detection is not implemented on
1572 ;; MIPS, so we disable some features.
1573 "--disable-mips32r2"
1574 "--disable-mipsdsp"
1575 "--disable-mipsdspr2"
1576 "--disable-mipsfpu")
1577 #:phases
1578 (modify-phases %standard-phases
1579 (replace
1580 'configure
1581 ;; configure does not work followed by "SHELL=..." and
1582 ;; "CONFIG_SHELL=..."; set environment variables instead
1583 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1584 (let ((out (assoc-ref outputs "out")))
1585 (substitute* "configure"
1586 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1587 (setenv "SHELL" (which "bash"))
1588 (setenv "CONFIG_SHELL" (which "bash"))
1589 (apply invoke
1590 "./configure"
1591 (string-append "--prefix=" out)
1592 ;; Add $libdir to the RUNPATH of all the binaries.
1593 (string-append "--extra-ldflags=-Wl,-rpath="
1594 out "/lib")
1595 configure-flags))))
1596 (add-before
1597 'check 'set-ld-library-path
1598 (lambda _
1599 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1600 ;; running tests.
1601 (let* ((dso (find-files "." "\\.so$"))
1602 (path (string-join (map dirname dso) ":")))
1603 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1604 (setenv "LD_LIBRARY_PATH" path)
1605 #t))))))
1606 (home-page "https://www.ffmpeg.org/")
1607 (synopsis "Audio and video framework")
1608 (description "FFmpeg is a complete, cross-platform solution to record,
1609 convert and stream audio and video. It includes the libavcodec
1610 audio/video codec library.")
1611 (license license:gpl2+)))
1612
1613 ;; ungoogled-chromium crashes with ffmpeg 4.3, so stick with this version for
1614 ;; now. See <https://issues.guix.gnu.org/41987>.
1615 (define-public ffmpeg-4.2
1616 (package
1617 (inherit ffmpeg)
1618 (version "4.2.3")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1622 version ".tar.xz"))
1623 (sha256
1624 (base32
1625 "0cddkb5sma9dzy8i59sfls19rhjlq40zn9mh3x666dqkxl5ckxlx"))))
1626 (arguments
1627 (substitute-keyword-arguments (package-arguments ffmpeg)
1628 ((#:configure-flags flags)
1629 `(delete "--enable-librav1e" ,flags))))
1630 (inputs (fold alist-delete
1631 (package-inputs ffmpeg)
1632 '("rav1e")))))
1633
1634 (define-public ffmpeg-3.4
1635 (package
1636 (inherit ffmpeg)
1637 (version "3.4.7")
1638 (source (origin
1639 (method url-fetch)
1640 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1641 version ".tar.xz"))
1642 (sha256
1643 (base32
1644 "1j7mdk9szrljgv4sdx69bm1pnbb3cldbdxbkr42jbdi9zn11gl7g"))))
1645 (arguments
1646 (substitute-keyword-arguments (package-arguments ffmpeg)
1647 ((#:modules modules %gnu-build-system-modules)
1648 `((srfi srfi-1)
1649 ,@modules))
1650 ((#:configure-flags flags)
1651 `(fold delete
1652 ,flags
1653 '("--enable-libdav1d"
1654 "--enable-libaom"
1655 "--enable-librav1e"
1656 "--enable-libsrt")))))
1657 (inputs (fold alist-delete
1658 (package-inputs ffmpeg)
1659 '("dav1d" "libaom" "rav1e" "srt")))))
1660
1661 (define-public ffmpeg-2.8
1662 (package
1663 (inherit ffmpeg)
1664 (version "2.8.16")
1665 (source (origin
1666 (method url-fetch)
1667 (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
1668 version ".tar.xz"))
1669 (sha256
1670 (base32
1671 "14n0xg22yz1r4apif2idm91s3avcmkz4sl8gyj5763gcy415k2bb"))))
1672 (arguments
1673 `(#:tests? #f ; XXX: Enable them later, if required
1674 #:configure-flags
1675 (list
1676 "--disable-static"
1677 "--enable-shared"
1678 "--extra-cflags=-DFF_API_OLD_ENCODE_VIDEO -DFF_API_OLD_ENCODE_AUDIO")
1679 #:phases
1680 (modify-phases %standard-phases
1681 (replace 'configure
1682 (lambda* (#:key outputs configure-flags #:allow-other-keys)
1683 (let ((out (assoc-ref outputs "out")))
1684 (substitute* "configure"
1685 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1686 ;; configure does not work followed by "SHELL=..." and
1687 ;; "CONFIG_SHELL=..."; set environment variables instead.
1688 (setenv "SHELL" (which "bash"))
1689 (setenv "CONFIG_SHELL" (which "bash"))
1690 (apply invoke
1691 "./configure"
1692 (string-append "--prefix=" out)
1693 ;; Add $libdir to the RUNPATH of all the binaries.
1694 (string-append "--extra-ldflags=-Wl,-rpath="
1695 out "/lib")
1696 configure-flags))))
1697 (add-before
1698 'check 'set-ld-library-path
1699 (lambda _
1700 ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
1701 ;; running tests.
1702 (let* ((dso (find-files "." "\\.so$"))
1703 (path (string-join (map dirname dso) ":")))
1704 (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
1705 (setenv "LD_LIBRARY_PATH" path)
1706 #t))))))
1707 (inputs (fold alist-delete
1708 (package-inputs ffmpeg)
1709 '("dav1d" "libaom" "rav1e" "srt")))))
1710
1711 (define-public ffmpeg-for-stepmania
1712 (hidden-package
1713 (package
1714 (inherit ffmpeg)
1715 (version "2.1.3")
1716 (source
1717 (origin
1718 (method git-fetch)
1719 (uri (git-reference
1720 (url "https://github.com/stepmania/ffmpeg")
1721 (commit "eda6effcabcf9c238e4635eb058d72371336e09b")))
1722 (sha256
1723 (base32 "1by8rmbva8mfrivdbbkr2gx4kga89zqygkd4cfjl76nr8mdcdamb"))
1724 (file-name (git-file-name "ffmpeg" version))))
1725 (arguments
1726 (substitute-keyword-arguments (package-arguments ffmpeg)
1727 ((#:configure-flags flags)
1728 '(list "--disable-programs"
1729 "--disable-doc"
1730 "--disable-debug"
1731 "--disable-avdevice"
1732 "--disable-swresample"
1733 "--disable-postproc"
1734 "--disable-avfilter"
1735 "--disable-shared"
1736 "--enable-static"))))
1737 (inputs '()))))
1738
1739 (define-public ffmpegthumbnailer
1740 (package
1741 (name "ffmpegthumbnailer")
1742 (version "2.2.2")
1743 (source (origin
1744 (method git-fetch)
1745 (uri (git-reference
1746 (url "https://github.com/dirkvdb/ffmpegthumbnailer")
1747 (commit version)))
1748 (file-name (git-file-name name version))
1749 (sha256
1750 (base32
1751 "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich"))))
1752 (build-system cmake-build-system)
1753 (native-inputs
1754 `(("pkg-config" ,pkg-config)))
1755 (inputs
1756 `(("ffmpeg" ,ffmpeg)
1757 ("libjpeg-turbo" ,libjpeg-turbo)
1758 ("libpng" ,libpng)
1759 ("gvfs" ,gvfs)))
1760 (arguments
1761 `(#:configure-flags (list "-DENABLE_GIO=ON" "-DENABLE_THUMBNAILER=ON")))
1762 (home-page "https://github.com/dirkvdb/ffmpegthumbnailer")
1763 (synopsis "Create thumbnails from video files")
1764 (description "FFmpegthumbnailer is a lightweight video thumbnailer that
1765 can be used by file managers to create thumbnails for your video files. The
1766 thumbnailer uses ffmpeg to decode frames from the video files, so supported
1767 videoformats depend on the configuration flags of ffmpeg.")
1768 (license license:gpl2+)))
1769
1770 (define-public vlc
1771 (package
1772 (name "vlc")
1773 (version "3.0.11.1")
1774 (source (origin
1775 (method url-fetch)
1776 (uri (string-append
1777 "https://download.videolan.org/pub/videolan/vlc/"
1778 (car (string-split version #\-))
1779 "/vlc-" version ".tar.xz"))
1780 (sha256
1781 (base32
1782 "1f46h0hv7fk35zg4iczlp7ib7h2jmh8m4r5klw3g2558ib9134qq"))))
1783 (build-system gnu-build-system)
1784 (native-inputs
1785 `(("flex" ,flex)
1786 ("bison" ,bison)
1787 ("gettext" ,gettext-minimal)
1788 ("pkg-config" ,pkg-config)))
1789 ;; FIXME: Add optional inputs once available.
1790 (inputs
1791 `(("alsa-lib" ,alsa-lib)
1792 ("avahi" ,avahi)
1793 ("dbus" ,dbus)
1794 ("eudev" ,eudev)
1795 ("flac" ,flac)
1796 ("ffmpeg" ,ffmpeg)
1797 ("fontconfig" ,fontconfig)
1798 ("freetype" ,freetype)
1799 ("fribidi" ,fribidi)
1800 ("gnutls" ,gnutls)
1801 ("liba52" ,liba52)
1802 ("libarchive" ,libarchive)
1803 ("libass" ,libass)
1804 ("libavc1394" ,libavc1394)
1805 ("libbluray" ,libbluray)
1806 ("libcaca" ,libcaca)
1807 ("libcddb" ,libcddb)
1808 ("libdca" ,libdca)
1809 ("libdvbpsi" ,libdvbpsi)
1810 ("libdvdnav" ,libdvdnav)
1811 ("libdvdread" ,libdvdread)
1812 ("libebml" ,libebml)
1813 ("libgcrypt" ,libgcrypt)
1814 ("libidn" ,libidn)
1815 ("libkate" ,libkate)
1816 ("libmad" ,libmad)
1817 ("libmatroska" ,libmatroska)
1818 ("libmicrodns" ,libmicrodns)
1819 ("libmodplug" ,libmodplug)
1820 ("libmpeg2" ,libmpeg2)
1821 ("libogg" ,libogg)
1822 ("libpng" ,libpng)
1823 ("libraw1394" ,libraw1394)
1824 ("librsvg" ,librsvg)
1825 ("libsamplerate" ,libsamplerate)
1826 ("libsecret" ,libsecret)
1827 ("libssh2" ,libssh2)
1828 ("libupnp" ,libupnp)
1829 ("libva" ,libva)
1830 ("libvdpau" ,libvdpau)
1831 ("libvorbis" ,libvorbis)
1832 ("libvpx" ,libvpx)
1833 ("libtheora" ,libtheora)
1834 ("libx264" ,libx264)
1835 ("libxext" ,libxext)
1836 ("libxi" ,libxi)
1837 ("libxinerama" ,libxinerama)
1838 ("libxml2" ,libxml2)
1839 ("libxpm" ,libxpm)
1840 ("livemedia-utils" ,livemedia-utils)
1841 ("lua" ,lua-5.2)
1842 ("mesa" ,mesa)
1843 ("opus" ,opus)
1844 ("perl" ,perl)
1845 ("pulseaudio" ,pulseaudio)
1846 ("protobuf" ,protobuf)
1847 ("python" ,python-wrapper)
1848 ("qtbase" ,qtbase)
1849 ("qtsvg" ,qtsvg)
1850 ("qtx11extras" ,qtx11extras)
1851 ("samba" ,samba)
1852 ("sdl" ,sdl)
1853 ("sdl-image" ,sdl-image)
1854 ("speex" ,speex)
1855 ("speexdsp" ,speexdsp)
1856 ;; VLC is not yet compatible with SRT > 1.4.1.
1857 ("srt" ,srt-1.4.1)
1858 ("taglib" ,taglib)
1859 ("twolame" ,twolame)
1860 ("unzip" ,unzip)
1861 ("wayland" ,wayland)
1862 ("wayland-protocols" ,wayland-protocols)
1863 ("x265" ,x265)
1864 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1865 (arguments
1866 `(#:configure-flags
1867 `("BUILDCC=gcc"
1868 ,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
1869 (assoc-ref %build-inputs "ffmpeg")
1870 "/lib")) ;needed for the tests
1871
1872 #:phases
1873 (modify-phases %standard-phases
1874 (add-after 'unpack 'patch-source
1875 (lambda* (#:key inputs #:allow-other-keys)
1876 (let ((livemedia-utils (assoc-ref inputs "livemedia-utils")))
1877 (substitute* "configure"
1878 (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}")
1879 (string-append "LIVE555_PREFIX=" livemedia-utils)))
1880 ;; Some of the tests require using the display to test out VLC,
1881 ;; which fails in our sandboxed build system
1882 (substitute* "test/run_vlc.sh"
1883 (("./vlc --ignore-config") "echo"))
1884 #t)))
1885 (add-after 'strip 'regenerate-plugin-cache
1886 (lambda* (#:key outputs #:allow-other-keys)
1887 ;; The 'install-exec-hook' rule in the top-level Makefile.am
1888 ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using
1889 ;; 'vlc-cache-gen'. This file includes the mtime of the plugins
1890 ;; it references. Thus, we first reset the timestamps of all
1891 ;; these files, and then regenerate the cache such that the
1892 ;; mtimes it includes are always zero instead of being dependent
1893 ;; on the build time.
1894 (let* ((out (assoc-ref outputs "out"))
1895 (pkglibdir (string-append out "/lib/vlc"))
1896 (plugindir (string-append pkglibdir "/plugins"))
1897 (cachegen (string-append pkglibdir "/vlc-cache-gen")))
1898 ;; TODO: Factorize 'reset-timestamps'.
1899 (for-each (lambda (file)
1900 (let ((s (lstat file)))
1901 (unless (eq? (stat:type s) 'symlink)
1902 (utime file 1 1))))
1903 (find-files plugindir))
1904 (invoke cachegen plugindir))))
1905 (add-after 'install 'wrap-executable
1906 (lambda* (#:key outputs #:allow-other-keys)
1907 (let ((out (assoc-ref outputs "out"))
1908 (plugin-path (getenv "QT_PLUGIN_PATH")))
1909 (wrap-program (string-append out "/bin/vlc")
1910 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
1911 #t)))))
1912 (home-page "https://www.videolan.org/")
1913 (synopsis "Audio and video framework")
1914 (description "VLC is a cross-platform multimedia player and framework
1915 that plays most multimedia files as well as DVD, Audio CD, VCD, and various
1916 streaming protocols.")
1917 (license license:gpl2+)))
1918
1919 (define-public mplayer
1920 (package
1921 (name "mplayer")
1922 (version "1.4")
1923 (source (origin
1924 (method url-fetch)
1925 (uri (string-append
1926 "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-"
1927 version ".tar.xz"))
1928 (sha256
1929 (base32
1930 "0j5mflr0wnklxsvnpmxvk704hscyn2785hvvihj2i3a7b3anwnc2"))))
1931 (build-system gnu-build-system)
1932 ;; FIXME: Add additional inputs once available.
1933 (native-inputs
1934 `(("pkg-config" ,pkg-config)
1935 ("yasm" ,yasm)))
1936 (inputs
1937 `(("alsa-lib" ,alsa-lib)
1938 ("cdparanoia" ,cdparanoia)
1939 ("ffmpeg" ,ffmpeg)
1940 ("fontconfig" ,fontconfig)
1941 ("freetype" ,freetype)
1942 ("giflib" ,giflib)
1943 ("lame" ,lame)
1944 ("libass" ,libass)
1945 ("libdvdcss" ,libdvdcss)
1946 ("libdvdnav" ,libdvdnav) ; ignored without libdvdread
1947 ("libdvdread" ,libdvdread) ; ignored without libdvdnav
1948 ("libjpeg" ,libjpeg-turbo)
1949 ("libmpeg2" ,libmpeg2)
1950 ("libmpg123" ,mpg123) ; audio codec for MP3
1951 ("libpng" ,libpng)
1952 ("libtheora" ,libtheora)
1953 ("libvdpau" ,libvdpau)
1954 ("libvorbis" ,libvorbis)
1955 ("libx11" ,libx11)
1956 ("libx264" ,libx264)
1957 ("libxinerama" ,libxinerama)
1958 ("libxv" ,libxv)
1959 ("libxxf86dga" ,libxxf86dga)
1960 ("mesa" ,mesa)
1961 ("opus" ,opus)
1962 ("perl" ,perl)
1963 ("pulseaudio" ,pulseaudio)
1964 ("python" ,python-wrapper)
1965 ("sdl" ,sdl)
1966 ("speex" ,speex)
1967 ("zlib" ,zlib)))
1968 (arguments
1969 `(#:tests? #f ; no test target
1970 #:phases
1971 (modify-phases %standard-phases
1972 (replace 'configure
1973 ;; configure does not work followed by "SHELL=..." and
1974 ;; "CONFIG_SHELL=..."; set environment variables instead
1975 (lambda* (#:key inputs outputs #:allow-other-keys)
1976 (let ((out (assoc-ref outputs "out"))
1977 (libx11 (assoc-ref inputs "libx11")))
1978 (substitute* "configure"
1979 (("#! /bin/sh") (string-append "#!" (which "sh"))))
1980 (setenv "SHELL" (which "bash"))
1981 (setenv "CONFIG_SHELL" (which "bash"))
1982 (invoke "./configure"
1983 (string-append "--extra-cflags=-I"
1984 libx11 "/include") ; to detect libx11
1985 "--disable-ffmpeg_a" ; disables bundled ffmpeg
1986 (string-append "--prefix=" out)
1987 ;; Enable runtime cpu detection where supported,
1988 ;; and choose a suitable target.
1989 ,@(match (or (%current-target-system)
1990 (%current-system))
1991 ("x86_64-linux"
1992 '("--enable-runtime-cpudetection"
1993 "--target=x86_64-linux"))
1994 ("i686-linux"
1995 '("--enable-runtime-cpudetection"
1996 "--target=i686-linux"))
1997 ("mips64el-linux"
1998 '("--target=mips3-linux"))
1999 (_ (list (string-append
2000 "--target="
2001 (or (%current-target-system)
2002 (nix-system->gnu-triplet
2003 (%current-system)))))))
2004 "--disable-iwmmxt")))))))
2005 (home-page "https://www.mplayerhq.hu")
2006 (synopsis "Audio and video player")
2007 (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
2008 Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT,
2009 NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
2010 SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
2011 (license license:gpl2)))
2012
2013 (define-public mpv
2014 (package
2015 (name "mpv")
2016 (version "0.33.0")
2017 (source (origin
2018 (method git-fetch)
2019 (uri (git-reference
2020 (url "https://github.com/mpv-player/mpv")
2021 (commit (string-append "v" version))))
2022 (file-name (git-file-name name version))
2023 (sha256
2024 (base32
2025 "06cmycd2gb826kf2zv470w6nhzyk9sdhjydsdiinbgb902lzcpfy"))))
2026 (build-system waf-build-system)
2027 (native-inputs
2028 `(("perl" ,perl) ; for zsh completion file
2029 ("pkg-config" ,pkg-config)
2030 ("python-docutils" ,python-docutils)))
2031 ;; Missing features: libguess, V4L2
2032 (inputs
2033 `(("alsa-lib" ,alsa-lib)
2034 ("enca" ,enca)
2035 ("ffmpeg" ,ffmpeg)
2036 ("jack" ,jack-1)
2037 ("ladspa" ,ladspa)
2038 ("lcms" ,lcms)
2039 ("libass" ,libass)
2040 ("libbluray" ,libbluray)
2041 ("libcaca" ,libcaca)
2042 ("libbs2b" ,libbs2b)
2043 ("libcdio-paranoia" ,libcdio-paranoia)
2044 ("libdvdread" ,libdvdread)
2045 ("libdvdnav" ,libdvdnav)
2046 ("libjpeg" ,libjpeg-turbo)
2047 ("libva" ,libva)
2048 ("libvdpau" ,libvdpau)
2049 ("libx11" ,libx11)
2050 ("libxext" ,libxext)
2051 ("libxinerama" ,libxinerama)
2052 ("libxrandr" ,libxrandr)
2053 ("libxscrnsaver" ,libxscrnsaver)
2054 ("libxv" ,libxv)
2055 ;; XXX: lua > 5.2 is not currently supported; see
2056 ;; waftools/checks/custom.py
2057 ("lua" ,lua-5.2)
2058 ("mesa" ,mesa)
2059 ("mpg123" ,mpg123)
2060 ("pulseaudio" ,pulseaudio)
2061 ("rsound" ,rsound)
2062 ("shaderc" ,shaderc)
2063 ("vulkan-headers" ,vulkan-headers)
2064 ("vulkan-loader" ,vulkan-loader)
2065 ("waf" ,python-waf)
2066 ("wayland" ,wayland)
2067 ("wayland-protocols" ,wayland-protocols)
2068 ("libxkbcommon" ,libxkbcommon)
2069 ("youtube-dl" ,youtube-dl)
2070 ("zlib" ,zlib)))
2071 (arguments
2072 '(#:phases
2073 (modify-phases %standard-phases
2074 (add-after
2075 'unpack 'patch-paths
2076 (lambda* (#:key inputs #:allow-other-keys)
2077 (let ((ytdl (assoc-ref inputs "youtube-dl")))
2078 (substitute* "player/lua/ytdl_hook.lua"
2079 (("\"youtube-dl\",")
2080 (string-append "\"" ytdl "/bin/youtube-dl\",")))
2081 #t)))
2082 (add-before 'configure 'build-reproducibly
2083 (lambda _
2084 ;; Somewhere in the build system library dependencies are enumerated
2085 ;; and passed as linker flags, but the order in which they are added
2086 ;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
2087 ;; Set PYTHONHASHSEED as a workaround for deterministic results.
2088 (setenv "PYTHONHASHSEED" "1")
2089 #t))
2090 (add-before
2091 'configure 'setup-waf
2092 (lambda* (#:key inputs #:allow-other-keys)
2093 (let ((waf (assoc-ref inputs "waf")))
2094 (copy-file (string-append waf "/bin/waf") "waf"))
2095 (setenv "CC" "gcc")
2096 #t)))
2097 #:configure-flags (list "--enable-libmpv-shared"
2098 "--enable-cdda"
2099 "--enable-dvdnav"
2100 "--disable-build-date")
2101 ;; No check function defined.
2102 #:tests? #f))
2103 (home-page "https://mpv.io/")
2104 (synopsis "Audio and video player")
2105 (description "mpv is a general-purpose audio and video player. It is a
2106 fork of mplayer2 and MPlayer. It shares some features with the former
2107 projects while introducing many more.")
2108 (license license:gpl2+)))
2109
2110 (define-public gnome-mpv
2111 (deprecated-package "gnome-mpv" celluloid))
2112
2113 (define-public mpv-mpris
2114 (package
2115 (name "mpv-mpris")
2116 (version "0.5")
2117 (source
2118 (origin
2119 (method git-fetch)
2120 (uri (git-reference
2121 (url "https://github.com/hoyon/mpv-mpris")
2122 (commit version)))
2123 (file-name (git-file-name name version))
2124 (sha256
2125 (base32
2126 "07p6li5z38pkfd40029ag2jqx917vyl3ng5p2i4v5a0af14slcnk"))))
2127 (build-system copy-build-system)
2128 (arguments
2129 '(#:install-plan
2130 '(("mpris.so" "lib/"))
2131 #:phases
2132 (modify-phases %standard-phases
2133 (add-before 'install 'build
2134 (lambda _
2135 (setenv "CC" (which "gcc"))
2136 (invoke "make"))))))
2137 (native-inputs
2138 `(("pkg-config" ,pkg-config)))
2139 (inputs
2140 `(("glib" ,glib)
2141 ("mpv" ,mpv)))
2142 (home-page "https://github.com/hoyon/mpv-mpris")
2143 (synopsis "MPRIS plugin for mpv")
2144 (description "This package provides an @dfn{MPRIS} (Media Player Remote
2145 Interfacing Specification) plugin for the @code{mpv} media player. It implements
2146 @code{org.mpris.MediaPlayer2} and @code{org.mpris.MediaPlayer2.Player} D-Bus
2147 interfaces.
2148
2149 To load this plugin, specify the following option when starting mpv:
2150 @code{--script $GUIX_PROFILE/lib/mpris.so} or link it into
2151 @file{$HOME/.config/mpv/scripts}.")
2152 (license license:expat)))
2153
2154 (define-public libvpx
2155 (package
2156 (name "libvpx")
2157 (version "1.9.0")
2158 (source (origin
2159 (method git-fetch)
2160 (uri (git-reference
2161 (url "https://chromium.googlesource.com/webm/libvpx")
2162 (commit (string-append "v" version))))
2163 (file-name (git-file-name name version))
2164 (sha256
2165 (base32
2166 "16xv6ambc82g14h1y0q1vyy57wp6j9fbp0nk0wd5csnrw407rhry"))
2167 (patches (search-patches "libvpx-CVE-2016-2818.patch"))))
2168 (build-system gnu-build-system)
2169 (arguments
2170 `(#:configure-flags (list "--enable-shared"
2171 "--disable-static"
2172 "--as=yasm"
2173 ;; Limit size to avoid CVE-2015-1258
2174 "--size-limit=16384x16384"
2175 (string-append "--prefix=" (assoc-ref %outputs "out")))
2176 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2177 (assoc-ref %outputs "out") "/lib"))
2178 #:phases (modify-phases %standard-phases
2179 (replace 'configure
2180 (lambda* (#:key configure-flags #:allow-other-keys)
2181 ;; The configure script does not understand some of the GNU
2182 ;; options, so we only add the flags specified above.
2183 (apply invoke "./configure" configure-flags))))
2184
2185 ;; XXX: The test suite wants to download 871 files from a cloud storage
2186 ;; service (see test/test-data.sha1). It is possible to specify a
2187 ;; custom directory, but there seems to be no tarball with all files.
2188 #:tests? #f))
2189 (native-inputs
2190 `(("perl" ,perl)
2191 ("yasm" ,yasm)))
2192 (synopsis "VP8/VP9 video codec")
2193 (description "libvpx is a codec for the VP8/VP9 video compression format.")
2194 (license license:bsd-3)
2195 (home-page "https://www.webmproject.org/")))
2196
2197 (define-public youtube-dl
2198 (package
2199 (name "youtube-dl")
2200 (version "2020.12.14")
2201 (source (origin
2202 (method url-fetch)
2203 (uri (string-append "https://youtube-dl.org/downloads/latest/"
2204 "youtube-dl-" version ".tar.gz"))
2205 (sha256
2206 (base32
2207 "0ws2nsvn0qlnnyxz9g95ffygscfmg5npzmwbq8iyyi6b2njsb0cn"))
2208 (snippet
2209 '(begin
2210 ;; Delete the pre-generated files, except for the man page
2211 ;; which requires 'pandoc' to build.
2212 (for-each delete-file '("youtube-dl"
2213 ;;pandoc is needed to generate
2214 ;;"youtube-dl.1"
2215 "youtube-dl.bash-completion"
2216 "youtube-dl.fish"
2217 "youtube-dl.zsh"))
2218 #t))))
2219 (build-system python-build-system)
2220 (arguments
2221 ;; The problem here is that the directory for the man page and completion
2222 ;; files is relative, and for some reason, setup.py uses the
2223 ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO".
2224 ;; So, we need pass the prefix directly. In addition, make sure the Bash
2225 ;; completion file is called 'youtube-dl' rather than
2226 ;; 'youtube-dl.bash-completion'.
2227 `(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
2228 #:phases (modify-phases %standard-phases
2229 (add-after 'unpack 'default-to-the-ffmpeg-input
2230 (lambda _
2231 ;; See <https://issues.guix.gnu.org/43418#5>.
2232 ;; ffmpeg is big but required to request free formats
2233 ;; from, e.g., YouTube so pull it in unconditionally.
2234 ;; Continue respecting the --ffmpeg-location argument.
2235 (substitute* "youtube_dl/postprocessor/ffmpeg.py"
2236 (("\\.get\\('ffmpeg_location'\\)" match)
2237 (format #f "~a or '~a'" match (which "ffmpeg"))))
2238 #t))
2239 (add-before 'build 'build-generated-files
2240 (lambda _
2241 ;; Avoid the make targets that require pandoc.
2242 (invoke "make"
2243 "PYTHON=python"
2244 "youtube-dl"
2245 ;;"youtube-dl.1" ; needs pandoc
2246 "youtube-dl.bash-completion"
2247 "youtube-dl.zsh"
2248 "youtube-dl.fish")))
2249 (add-before 'install 'fix-the-data-directories
2250 (lambda* (#:key outputs #:allow-other-keys)
2251 (let ((prefix (assoc-ref outputs "out")))
2252 (mkdir "bash-completion")
2253 (rename-file "youtube-dl.bash-completion"
2254 "bash-completion/youtube-dl")
2255 (substitute* "setup.py"
2256 (("youtube-dl\\.bash-completion")
2257 "bash-completion/youtube-dl")
2258 (("'etc/")
2259 (string-append "'" prefix "/etc/"))
2260 (("'share/")
2261 (string-append "'" prefix "/share/")))
2262 #t)))
2263 (add-after 'install 'install-completion
2264 (lambda* (#:key outputs #:allow-other-keys)
2265 (let* ((out (assoc-ref outputs "out"))
2266 (zsh (string-append out
2267 "/share/zsh/site-functions")))
2268 (mkdir-p zsh)
2269 (copy-file "youtube-dl.zsh"
2270 (string-append zsh "/_youtube-dl"))
2271 #t))))))
2272 (native-inputs
2273 `(("zip" ,zip)))
2274 (inputs
2275 `(("ffmpeg" ,ffmpeg)))
2276 (synopsis "Download videos from YouTube.com and other sites")
2277 (description
2278 "Youtube-dl is a small command-line program to download videos from
2279 YouTube.com and many more sites.")
2280 (home-page "https://yt-dl.org")
2281 (license license:public-domain)))
2282
2283 (define-public youtube-dl-gui
2284 (package
2285 (name "youtube-dl-gui")
2286 (version "0.3.8")
2287 (source
2288 (origin
2289 (method url-fetch)
2290 (uri (pypi-uri "Youtube-DLG" version))
2291 (sha256
2292 (base32
2293 "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb"))))
2294 (build-system python-build-system)
2295 (arguments
2296 ;; In Guix, wxpython has not yet been packaged for Python 3.
2297 `(#:python ,python-2
2298 ;; This package has no tests.
2299 #:tests? #f
2300 #:phases
2301 (modify-phases %standard-phases
2302 (add-before 'build 'patch-source
2303 (lambda* (#:key inputs #:allow-other-keys)
2304 ;; The youtube-dl-gui program lets you configure options. Some of
2305 ;; them are problematic, so we change their defaults.
2306 (substitute* "youtube_dl_gui/optionsmanager.py"
2307 ;; When this is true, the builder process will try (and fail) to
2308 ;; write logs to the builder user's home directory.
2309 (("'enable_log': True") "'enable_log': False")
2310 ;; This determines which youtube-dl program youtube-dl-gui will
2311 ;; run. If we don't set this, then youtube-dl-gui might download
2312 ;; an arbitrary copy from the Internet into the user's home
2313 ;; directory and run it, so let's make sure youtube-dl-gui uses
2314 ;; the youtube-dl from the inputs by default.
2315 (("'youtubedl_path': self.config_path")
2316 (string-append "'youtubedl_path': '"
2317 (assoc-ref inputs "youtube-dl")
2318 "/bin'"))
2319 ;; When this is True, when youtube-dl-gui is finished downloading
2320 ;; a file, it will try (and possibly fail) to open the directory
2321 ;; containing the downloaded file. This can fail because it
2322 ;; assumes that xdg-open is in PATH. Unfortunately, simply
2323 ;; adding xdg-utils to the propagated inputs is not enough to
2324 ;; make this work, so for now we set the default to False.
2325 (("'open_dl_dir': True") "'open_dl_dir': False"))
2326 ;; The youtube-dl program from the inputs is actually a wrapper
2327 ;; script written in bash, so attempting to invoke it as a python
2328 ;; script will fail.
2329 (substitute* "youtube_dl_gui/downloaders.py"
2330 (("cmd = \\['python', self\\.youtubedl_path\\]")
2331 "cmd = [self.youtubedl_path]"))
2332 ;; Use relative paths for installing data files so youtube-dl-gui
2333 ;; installs the files relative to its prefix in the store, rather
2334 ;; than relative to /. Also, instead of installing data files into
2335 ;; $prefix/usr/share, install them into $prefix/share for
2336 ;; consistency (see: (standards) Directory Variables).
2337 (substitute* "setup.py"
2338 (("= '/usr/share") "= 'share"))
2339 ;; Update get_locale_file() so it finds the installed localization
2340 ;; files.
2341 (substitute* "youtube_dl_gui/utils.py"
2342 (("os\\.path\\.join\\('/usr', 'share'")
2343 (string-append "os.path.join('"
2344 (assoc-ref %outputs "out")
2345 "', 'share'")))
2346 #t))
2347 (add-after 'install 'create-desktop-file
2348 (lambda* (#:key outputs #:allow-other-keys)
2349 (let* ((out (assoc-ref outputs "out"))
2350 (applications (string-append out "/share/applications")))
2351 (mkdir-p applications)
2352 (call-with-output-file
2353 (string-append applications "/youtube-dl-gui.desktop")
2354 (lambda (file)
2355 (format
2356 file
2357 "[Desktop Entry]~@
2358 Name=Youtube-dl GUI~@
2359 Comment=Graphical interface to download video with youtube-dl~@
2360 Exec=youtube-dl-gui~@
2361 TryExec=youtube-dl-gui~@
2362 Terminal=false~@
2363 Icon=youtube-dl-gui~@
2364 Type=Application~@
2365 Categories=AudioVideo;Audio;Video;Network~%")))
2366 #t))))))
2367 (inputs
2368 `(("python2-wxpython" ,python2-wxpython)
2369 ("youtube-dl" ,youtube-dl)))
2370 (home-page "https://github.com/MrS0m30n3/youtube-dl-gui")
2371 (synopsis
2372 "GUI (Graphical User Interface) for @command{youtube-dl}")
2373 (description
2374 "Youtube-dlG is a GUI (Graphical User Interface) for
2375 @command{youtube-dl}. You can use it to download videos from YouTube and any
2376 other site that youtube-dl supports.")
2377 (license license:unlicense)))
2378
2379 (define-public you-get
2380 (package
2381 (name "you-get")
2382 (version "0.4.1488")
2383 (source (origin
2384 (method git-fetch)
2385 (uri (git-reference
2386 (url "https://github.com/soimort/you-get")
2387 (commit (string-append "v" version))))
2388 (file-name (git-file-name name version))
2389 (sha256
2390 (base32
2391 "10dx1gka92m42f8ah1mzylbd71apzrphfa48r5ci7g1j8ysdcs7q"))))
2392 (build-system python-build-system)
2393 (inputs
2394 `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos
2395 (arguments
2396 `(#:phases
2397 (modify-phases %standard-phases
2398 (add-after 'unpack 'qualify-input-references
2399 ;; Explicitly invoke the input ffmpeg, instead of whichever one
2400 ;; happens to be in the user's $PATH at run time.
2401 (lambda* (#:key inputs #:allow-other-keys)
2402 (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg")
2403 "/bin/ffmpeg")))
2404 (substitute* "src/you_get/processor/ffmpeg.py"
2405 ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the
2406 ;; same string is also used when sniffing ffmpeg's output.
2407 (("(FFMPEG == |\\()'ffmpeg'" _ prefix)
2408 (string-append prefix "'" ffmpeg "'")))
2409 #t))))
2410 #:tests? #f)) ; XXX some tests need Internet access
2411 (synopsis "Download videos, audio, or images from Web sites")
2412 (description
2413 "You-Get is a command-line utility to download media contents (videos,
2414 audio, images) from the Web. It can use either mpv or vlc for playback.")
2415 (home-page "https://you-get.org/")
2416 (license license:expat)))
2417
2418 (define-public youtube-viewer
2419 (package
2420 (name "youtube-viewer")
2421 (version "3.8.0")
2422 (source (origin
2423 (method git-fetch)
2424 (uri (git-reference
2425 (url "https://github.com/trizen/youtube-viewer")
2426 (commit version)))
2427 (file-name (git-file-name name version))
2428 (sha256
2429 (base32
2430 "16gskhzkvgzhfb89zqfmvz7kmhjsyc38f2dl86ksal4p69kn8j3g"))))
2431 (build-system perl-build-system)
2432 (native-inputs
2433 `(("perl-module-build" ,perl-module-build)))
2434 (inputs
2435 `(("perl-data-dump" ,perl-data-dump)
2436 ("perl-file-sharedir" ,perl-file-sharedir)
2437 ("perl-gtk2" ,perl-gtk2)
2438 ("perl-json" ,perl-json)
2439 ("perl-json-xs" ,perl-json-xs)
2440 ("perl-libwww" ,perl-libwww)
2441 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2442 ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached)
2443 ("perl-memoize" ,perl-memoize)
2444 ("perl-mozilla-ca" ,perl-mozilla-ca)
2445 ("perl-term-readline-gnu" ,perl-term-readline-gnu)
2446 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
2447 ("xdg-utils" ,xdg-utils)
2448
2449 ;; Some videos play without youtube-dl, but others silently fail to.
2450 ("youtube-dl" ,youtube-dl)))
2451 (arguments
2452 `(#:modules ((guix build perl-build-system)
2453 (guix build utils)
2454 (srfi srfi-26))
2455 ;; gtk-2/3 variants are both installed by default but the gtk3 variant
2456 ;; is broken without perl-gtk3.
2457 #:module-build-flags '("--gtk2")
2458 #:phases
2459 (modify-phases %standard-phases
2460 (add-after 'unpack 'refer-to-inputs
2461 (lambda* (#:key inputs #:allow-other-keys)
2462 (substitute* "lib/WWW/YoutubeViewer.pm"
2463 (("'youtube-dl'")
2464 (format #f "'~a/bin/youtube-dl'"
2465 (assoc-ref inputs "youtube-dl"))))
2466 (substitute* '("bin/gtk2-youtube-viewer"
2467 "bin/gtk3-youtube-viewer")
2468 (("'xdg-open'")
2469 (format #f "'~a/bin/xdg-open'"
2470 (assoc-ref inputs "xdg-utils"))))
2471 #t))
2472 (add-after 'install 'install-desktop
2473 (lambda* (#:key outputs #:allow-other-keys)
2474 (let* ((out (assoc-ref outputs "out"))
2475 (sharedir (string-append out "/share")))
2476 (install-file "share/gtk-youtube-viewer.desktop"
2477 (string-append sharedir "/applications"))
2478 (install-file "share/icons/gtk-youtube-viewer.png"
2479 (string-append sharedir "/pixmaps"))
2480 #t)))
2481 (add-after 'install 'wrap-program
2482 (lambda* (#:key outputs #:allow-other-keys)
2483 (let* ((out (assoc-ref outputs "out"))
2484 (bin-dir (string-append out "/bin/"))
2485 (site-dir (string-append out "/lib/perl5/site_perl/"))
2486 (lib-path (getenv "PERL5LIB")))
2487 (for-each (cut wrap-program <>
2488 `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
2489 (find-files bin-dir))
2490 #t))))))
2491 (synopsis
2492 "Lightweight application for searching and streaming videos from YouTube")
2493 (description
2494 "Youtube-viewer searches and plays YouTube videos in a native player.
2495 It comes with various search options; it can search for videos, playlists
2496 and/or channels. The videos are streamed directly in a selected video player
2497 at the best resolution (customizable) and with closed-captions (if available).
2498 Both command-line and GTK2 interface are available.")
2499 (home-page "https://github.com/trizen/youtube-viewer")
2500 (license license:perl-license)))
2501
2502 (define-public libbluray
2503 (package
2504 (name "libbluray")
2505 (version "1.0.2")
2506 (source (origin
2507 (method url-fetch)
2508 (uri (string-append "https://download.videolan.org/videolan/"
2509 name "/" version "/"
2510 name "-" version ".tar.bz2"))
2511 (sha256
2512 (base32
2513 "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd"))))
2514 (build-system gnu-build-system)
2515 (arguments
2516 `(#:configure-flags '("--disable-bdjava-jar"
2517 "--disable-static")
2518 #:phases
2519 (modify-phases %standard-phases
2520 (add-after 'unpack 'refer-to-libxml2-in-.pc-file
2521 ;; Avoid the need to propagate libxml2 by referring to it
2522 ;; directly, as is already done for fontconfig & freetype.
2523 (lambda* (#:key inputs #:allow-other-keys)
2524 (let ((libxml2 (assoc-ref inputs "libxml2")))
2525 (substitute* "configure"
2526 ((" libxml-2.0") ""))
2527 (substitute* "src/libbluray.pc.in"
2528 (("^Libs.private:" field)
2529 (string-append field " -L" libxml2 "/lib -lxml2")))
2530 #t)))
2531 (add-before 'build 'fix-dlopen-paths
2532 (lambda* (#:key inputs #:allow-other-keys)
2533 (let ((libaacs (assoc-ref inputs "libaacs"))
2534 (libbdplus (assoc-ref inputs "libbdplus")))
2535 (substitute* "src/libbluray/disc/aacs.c"
2536 (("\"libaacs\"")
2537 (string-append "\"" libaacs "/lib/libaacs\"")))
2538 (substitute* "src/libbluray/disc/bdplus.c"
2539 (("\"libbdplus\"")
2540 (string-append "\"" libbdplus "/lib/libbdplus\"")))
2541 #t))))))
2542 (native-inputs `(("pkg-config" ,pkg-config)))
2543 (inputs
2544 `(("fontconfig" ,fontconfig)
2545 ("freetype" ,freetype)
2546 ("libaacs" ,libaacs)
2547 ("libbdplus" ,libbdplus)
2548 ("libxml2" ,libxml2)))
2549 (home-page "https://www.videolan.org/developers/libbluray.html")
2550 (synopsis "Blu-Ray Disc playback library")
2551 (description
2552 "libbluray is a library designed for Blu-Ray Disc playback for media
2553 players, like VLC or MPlayer.")
2554 (license license:lgpl2.1+)))
2555
2556 (define-public libdvdread
2557 (package
2558 (name "libdvdread")
2559 (version "6.0.2")
2560 (source (origin
2561 (method url-fetch)
2562 (uri (string-append "https://download.videolan.org/videolan/"
2563 "libdvdread/" version "/"
2564 "libdvdread-" version ".tar.bz2"))
2565 (sha256
2566 (base32
2567 "1c7yqqn67m3y3n7nfrgrnzz034zjaw5caijbwbfrq89v46ph257r"))))
2568 (build-system gnu-build-system)
2569 (arguments
2570 `(#:configure-flags '("--with-libdvdcss=yes")))
2571 (native-inputs
2572 `(("pkg-config" ,pkg-config)))
2573 (propagated-inputs
2574 `(("libdvdcss" ,libdvdcss)))
2575 (home-page "http://dvdnav.mplayerhq.hu/")
2576 (synopsis "Library for reading video DVDs")
2577 (description
2578 "Libdvdread provides a simple foundation for reading DVD video
2579 disks. It provides the functionality that is required to access many
2580 DVDs. It parses IFO files, reads NAV-blocks, and performs CSS
2581 authentication and descrambling (if an external libdvdcss library is
2582 installed).")
2583 (license license:gpl2+)))
2584
2585 (define-public dvdauthor
2586 (package
2587 (name "dvdauthor")
2588 (version "0.7.2")
2589 (source
2590 (origin
2591 (method url-fetch)
2592 (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-"
2593 version ".tar.gz"))
2594 (sha256
2595 (base32
2596 "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h"))))
2597 (build-system gnu-build-system)
2598 (inputs
2599 `(("libdvdread" ,libdvdread)
2600 ("libpng" ,libpng)
2601 ("imagemagick" ,imagemagick)
2602 ("libxml2" ,libxml2)
2603 ("freetype" ,freetype)))
2604 (native-inputs
2605 `(("pkg-config" ,pkg-config)))
2606 (synopsis "Generates a DVD-Video movie from a MPEG-2 stream")
2607 (description "@command{dvdauthor} will generate a DVD-Video movie from a
2608 MPEG-2 stream containing VOB packets.")
2609 (home-page "http://dvdauthor.sourceforge.net")
2610 (license license:gpl3+)))
2611
2612 (define-public libdvdnav
2613 (package
2614 (name "libdvdnav")
2615 (version "6.0.1")
2616 (source (origin
2617 (method url-fetch)
2618 (uri (string-append "https://download.videolan.org/videolan/"
2619 "libdvdnav/" version "/"
2620 "libdvdnav-" version ".tar.bz2"))
2621 (sha256
2622 (base32
2623 "0cv7j8irsv1n2dadlnhr6i1b8pann2ah6xpxic41f04my6ba6rp5"))))
2624 (build-system gnu-build-system)
2625 (native-inputs
2626 `(("pkg-config" ,pkg-config)))
2627 (inputs
2628 `(("libdvdread" ,libdvdread)))
2629 (home-page "http://dvdnav.mplayerhq.hu/")
2630 (synopsis "Library for video DVD navigation features")
2631 (description
2632 "Libdvdnav is a library for developers of multimedia
2633 applications. It allows easy use of sophisticated DVD navigation features
2634 such as DVD menus, multiangle playback and even interactive DVD games. All
2635 this functionality is provided through a simple API which provides the DVD
2636 playback as a single logical stream of blocks, intermitted by special
2637 dvdnav events to report certain conditions. The main usage of libdvdnav is
2638 a loop regularly calling a function to get the next block, surrounded by
2639 additional calls to tell the library of user interaction. The whole
2640 DVD virtual machine and internal playback states are completely
2641 encapsulated.")
2642 (license license:gpl2+)))
2643
2644 (define-public libdvdcss
2645 (package
2646 (name "libdvdcss")
2647 (version "1.4.2")
2648 (source (origin
2649 (method url-fetch)
2650 (uri (string-append "https://download.videolan.org/pub/"
2651 name "/" version "/"
2652 name "-" version ".tar.bz2"))
2653 (sha256
2654 (base32
2655 "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq"))))
2656 (build-system gnu-build-system)
2657 (home-page "https://www.videolan.org/developers/libdvdcss.html")
2658 (synopsis "Library for accessing DVDs as block devices")
2659 (description
2660 "libdvdcss is a simple library designed for accessing DVDs like a block
2661 device without having to bother about the decryption.")
2662 (license license:gpl2+)))
2663
2664 (define-public srt2vtt
2665 (package
2666 (name "srt2vtt")
2667 (version "0.1")
2668 (source (origin
2669 (method url-fetch)
2670 (uri (string-append
2671 "https://files.dthompson.us/srt2vtt/srt2vtt-"
2672 version ".tar.gz"))
2673 (sha256
2674 (base32
2675 "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif"))))
2676 (build-system gnu-build-system)
2677 (inputs
2678 `(("guile" ,guile-2.0)))
2679 (synopsis "SubRip to WebVTT subtitle converter")
2680 (description "srt2vtt converts SubRip formatted subtitles to WebVTT format
2681 for use with HTML5 video.")
2682 (home-page "https://dthompson.us/projects/srt2vtt.html")
2683 (license license:gpl3+)))
2684
2685 (define-public avidemux
2686 (package
2687 (name "avidemux")
2688 (version "2.7.6")
2689 (source (origin
2690 (method url-fetch)
2691 (uri (string-append
2692 "mirror://sourceforge/avidemux/avidemux/" version "/"
2693 "avidemux_" version ".tar.gz"))
2694 (sha256
2695 (base32
2696 "1kwkn976ppahrcr74bnv6sqx75pzl9y21m1mvr5ksi1m6lgp924s"))
2697 (patches (search-patches "avidemux-install-to-lib.patch"))))
2698 (build-system cmake-build-system)
2699 (native-inputs
2700 `(("perl" ,perl)
2701 ("pkg-config" ,pkg-config)
2702 ("python" ,python-wrapper)
2703 ("qttools" ,qttools)
2704 ("yasm" ,yasm)))
2705 ;; FIXME: Once packaged, add libraries not found during the build.
2706 (inputs
2707 `(("alsa-lib" ,alsa-lib)
2708 ("fontconfig" ,fontconfig)
2709 ("freetype" ,freetype)
2710 ("fribidi" ,fribidi)
2711 ("glu" ,glu)
2712 ("jack" ,jack-1)
2713 ("lame" ,lame)
2714 ("libaom" ,libaom)
2715 ("libva" ,libva)
2716 ("libvdpau" ,libvdpau)
2717 ("libvorbis" ,libvorbis)
2718 ("libvpx" ,libvpx)
2719 ("libxv" ,libxv)
2720 ("pulseaudio" ,pulseaudio)
2721 ("qtbase" ,qtbase)
2722 ("sqlite" ,sqlite)
2723 ("zlib" ,zlib)))
2724 (arguments
2725 `(#:tests? #f ; no check target
2726 #:phases
2727 ;; Make sure files inside the included ffmpeg tarball are
2728 ;; patch-shebanged.
2729 (let ((ffmpeg "ffmpeg-4.2.3"))
2730 (modify-phases %standard-phases
2731 (add-before 'patch-source-shebangs 'unpack-ffmpeg
2732 (lambda _
2733 (with-directory-excursion "avidemux_core/ffmpeg_package"
2734 (invoke "tar" "xf" (string-append ffmpeg ".tar.bz2"))
2735 (delete-file (string-append ffmpeg ".tar.bz2")))
2736 #t))
2737 (add-after 'patch-source-shebangs 'repack-ffmpeg
2738 (lambda _
2739 (with-directory-excursion "avidemux_core/ffmpeg_package"
2740 (substitute* (string-append ffmpeg "/configure")
2741 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2742 (invoke "tar" "cjf" (string-append ffmpeg ".tar.bz2") ffmpeg
2743 ;; avoid non-determinism in the archive
2744 "--sort=name" "--mtime=@0"
2745 "--owner=root:0" "--group=root:0")
2746 (delete-file-recursively ffmpeg))
2747 #t))
2748 (replace 'configure
2749 (lambda _
2750 ;; Copy-paste settings from the cmake build system.
2751 (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2752 (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2753 #t))
2754 (replace 'build
2755 (lambda* (#:key inputs outputs #:allow-other-keys)
2756 (let* ((out (assoc-ref outputs "out"))
2757 (lib (string-append out "/lib"))
2758 (top (getcwd))
2759 (build_component
2760 (lambda* (component srcdir #:optional (args '()))
2761 (let ((builddir (string-append "build_" component)))
2762 (mkdir builddir)
2763 (with-directory-excursion builddir
2764 (apply invoke "cmake"
2765 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
2766 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
2767 (string-append "-DCMAKE_INSTALL_RPATH=" lib)
2768 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
2769 "\"-Wl,-rpath=" lib "\"")
2770 (string-append "-DAVIDEMUX_SOURCE_DIR=" top)
2771 (string-append "../" srcdir)
2772 "-DENABLE_QT5=True"
2773 args)
2774 (invoke "make" "-j"
2775 (number->string (parallel-job-count)))
2776 (invoke "make" "install"))))))
2777 (mkdir out)
2778 (build_component "core" "avidemux_core")
2779 (build_component "cli" "avidemux/cli")
2780 (build_component "qt4" "avidemux/qt4")
2781 (build_component "plugins_common" "avidemux_plugins"
2782 '("-DPLUGIN_UI=COMMON"))
2783 (build_component "plugins_cli" "avidemux_plugins"
2784 '("-DPLUGIN_UI=CLI"))
2785 (build_component "plugins_qt4" "avidemux_plugins"
2786 '("-DPLUGIN_UI=QT4"))
2787 (build_component "plugins_settings" "avidemux_plugins"
2788 '("-DPLUGIN_UI=SETTINGS"))
2789 ;; Remove .exe and .dll file.
2790 (delete-file-recursively
2791 (string-append out "/share/ADM6_addons"))
2792 #t)))
2793 (delete 'install)))))
2794 (home-page "http://fixounet.free.fr/avidemux/")
2795 (synopsis "Video editor")
2796 (description "Avidemux is a video editor designed for simple cutting,
2797 filtering and encoding tasks. It supports many file types, including AVI,
2798 DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
2799 can be automated using projects, job queue and powerful scripting
2800 capabilities.")
2801 (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
2802 ;; Software with various licenses is included, see License.txt.
2803 (license license:gpl2+)))
2804
2805 (define-public vapoursynth
2806 (package
2807 (name "vapoursynth")
2808 (version "52")
2809 (source (origin
2810 (method git-fetch)
2811 (uri (git-reference
2812 (url "https://github.com/vapoursynth/vapoursynth")
2813 (commit (string-append "R" version))))
2814 (file-name (git-file-name name version))
2815 (sha256
2816 (base32
2817 "1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
2818 (build-system gnu-build-system)
2819 (native-inputs
2820 `(("autoconf" ,autoconf)
2821 ("automake" ,automake)
2822 ("cython" ,python-cython)
2823 ("libtool" ,libtool)
2824 ("pkg-config" ,pkg-config)
2825 ("python" ,python)
2826 ("yasm" ,yasm)))
2827 (inputs
2828 `(("ffmpeg" ,ffmpeg)
2829 ("libass" ,libass)
2830 ("tesseract-ocr" ,tesseract-ocr)
2831 ("zimg" ,zimg)))
2832 (home-page "http://www.vapoursynth.com/")
2833 (synopsis "Video processing framework")
2834 (description "VapourSynth is a C++ library and Python module for video
2835 manipulation. It aims to be a modern rewrite of Avisynth, supporting
2836 multithreading, generalized colorspaces, per frame properties, and videos with
2837 format changes.")
2838 ;; src/core/cpufeatures only allows x86, ARM or PPC
2839 (supported-systems (fold delete %supported-systems
2840 '("mips64el-linux" "aarch64-linux")))
2841 ;; As seen from the source files.
2842 (license license:lgpl2.1+)))
2843
2844 (define-public xvid
2845 (package
2846 (name "xvid")
2847 (version "1.3.7")
2848 (source (origin
2849 (method url-fetch)
2850 (uri (string-append
2851 "http://downloads.xvid.com/downloads/xvidcore-"
2852 version ".tar.bz2"))
2853 (sha256
2854 (base32
2855 "1xyg3amgg27zf7188kss7y248s0xhh1vv8rrk0j9bcsd5nasxsmf"))))
2856 (build-system gnu-build-system)
2857 (native-inputs `(("yasm" ,yasm)))
2858 (arguments
2859 '(#:phases
2860 (modify-phases %standard-phases
2861 (add-before 'configure 'pre-configure
2862 (lambda _
2863 (chdir "build/generic")
2864 (substitute* "configure"
2865 (("#! /bin/sh") (string-append "#!" (which "sh"))))
2866 #t)))
2867 #:tests? #f)) ; no test suite
2868 (home-page "https://www.xvid.com/")
2869 (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec")
2870 (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video
2871 codec library. It uses ASP features such as b-frames, global and quarter
2872 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
2873 and custom quantization matrices.")
2874 (license license:gpl2+)))
2875
2876 (define-public streamlink
2877 (package
2878 (name "streamlink")
2879 (version "1.7.0")
2880 (source
2881 (origin
2882 (method url-fetch)
2883 (uri (pypi-uri "streamlink" version))
2884 (sha256
2885 (base32
2886 "0ymqxzpwk7mr77w0dnnv7dj63d46q7cl1l4vj9llgn8jfaj64ypq"))))
2887 (build-system python-build-system)
2888 (home-page "https://github.com/streamlink/streamlink")
2889 (native-inputs
2890 `(("python-freezegun" ,python-freezegun)
2891 ("python-pytest" ,python-pytest)
2892 ("python-mock" ,python-mock)
2893 ("python-requests-mock" ,python-requests-mock)))
2894 (propagated-inputs
2895 `(("python-pysocks" ,python-pysocks)
2896 ("python-websocket-client" ,python-websocket-client)
2897 ("python-iso3166" ,python-iso3166)
2898 ("python-iso639" ,python-iso639)
2899 ("python-isodate" ,python-isodate)
2900 ("python-pycryptodome" ,python-pycryptodome)
2901 ("python-requests" ,python-requests)
2902 ("python-urllib3" ,python-urllib3)))
2903 (synopsis "Extract streams from various services")
2904 (description "Streamlink is command-line utility that extracts streams
2905 from sites like Twitch.tv and pipes them into a video player of choice.")
2906 (license license:bsd-2)))
2907
2908 (define-public twitchy
2909 (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag
2910 (package
2911 (name "twitchy")
2912 (version (git-version "3.4" "1" commit))
2913 (source
2914 (origin
2915 (method git-fetch)
2916 (uri (git-reference
2917 (url "https://github.com/BasioMeusPuga/twitchy")
2918 (commit commit)))
2919 (file-name (git-file-name name version))
2920 (sha256
2921 (base32
2922 "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7"))))
2923 (build-system python-build-system)
2924 (arguments
2925 '(#:phases
2926 (modify-phases %standard-phases
2927 (add-after 'unpack 'patch-paths
2928 (lambda* (#:key inputs #:allow-other-keys)
2929 (substitute* "twitchy/twitchy_play.py"
2930 (("\"streamlink ")
2931 (string-append "\"" (assoc-ref inputs "streamlink")
2932 "/bin/streamlink ")))
2933 #t))
2934 (add-before 'check 'check-setup
2935 (lambda _
2936 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’.
2937 #t))
2938 (add-after 'install 'install-rofi-plugin
2939 (lambda* (#:key outputs #:allow-other-keys)
2940 (install-file "plugins/rofi-twitchy"
2941 (string-append (assoc-ref outputs "out")
2942 "/bin"))
2943 #t)))))
2944 (inputs
2945 `(("python-requests" ,python-requests)
2946 ("streamlink" ,streamlink)))
2947 (home-page "https://github.com/BasioMeusPuga/twitchy")
2948 (synopsis "Command-line interface for Twitch.tv")
2949 (description
2950 "This package provides a command-line interface for Twitch.tv")
2951 (license license:gpl3+))))
2952
2953 (define-public mlt
2954 (package
2955 (name "mlt")
2956 (version "6.22.1")
2957 (source (origin
2958 (method git-fetch)
2959 (uri (git-reference
2960 (url "https://github.com/mltframework/mlt")
2961 (commit (string-append "v" version))))
2962 (file-name (git-file-name name version))
2963 (sha256
2964 (base32
2965 "0jxv848ykw0csbnayrd710ylw46m0picfv7rpzsxz1vh4jzs395k"))))
2966 (build-system gnu-build-system)
2967 (arguments
2968 `(#:tests? #f ; no tests
2969 #:make-flags '("CC=gcc" "CXX=g++")
2970 #:configure-flags
2971 (list "--enable-gpl3"
2972 "--enable-gpl")
2973 #:phases
2974 (modify-phases %standard-phases
2975 (add-after
2976 'configure 'override-LDFLAGS
2977 (lambda* (#:key outputs #:allow-other-keys)
2978 (substitute* "config.mak"
2979 (("LDFLAGS\\+=")
2980 (string-append "LDFLAGS+=-Wl,-rpath="
2981 (assoc-ref outputs "out")
2982 "/lib ")))
2983 #t)))))
2984 (inputs
2985 `(("alsa-lib" ,alsa-lib)
2986 ("ffmpeg" ,ffmpeg)
2987 ("fftw" ,fftw)
2988 ("frei0r-plugins" ,frei0r-plugins)
2989 ("gdk-pixbuf" ,gdk-pixbuf)
2990 ("gtk+" ,gtk+-2)
2991 ("libxml2" ,libxml2)
2992 ("jack" ,jack-1)
2993 ("ladspa" ,ladspa)
2994 ("libexif" ,libexif)
2995 ("libvorbis" ,libvorbis)
2996 ("rubberband" ,rubberband)
2997 ("libsamplerate" ,libsamplerate)
2998 ("pulseaudio" ,pulseaudio)
2999 ("qtbase" ,qtbase)
3000 ("qtsvg" ,qtsvg)
3001 ("sdl" ,sdl)
3002 ("sox" ,sox)))
3003 (native-inputs
3004 `(("pkg-config" ,pkg-config)))
3005 (home-page "https://www.mltframework.org/")
3006 (synopsis "Author, manage, and run multitrack audio/video compositions")
3007 (description
3008 "MLT is a multimedia framework, designed and developed for television
3009 broadcasting. It provides a toolkit for broadcasters, video editors, media
3010 players, transcoders, web streamers and many more types of applications. The
3011 functionality of the system is provided via an assortment of ready to use
3012 tools, XML authoring components, and an extensible plug-in based API.")
3013 (license license:gpl3)))
3014
3015 (define-public v4l-utils
3016 (package
3017 (name "v4l-utils")
3018 (version "1.20.0")
3019 (source (origin
3020 (method url-fetch)
3021 (uri (string-append "https://linuxtv.org/downloads/v4l-utils"
3022 "/v4l-utils-" version ".tar.bz2"))
3023 (sha256
3024 (base32
3025 "1xr66y6w422hil6s7n8d61a2vhwh4im8l267amf41jvw7xqihqcm"))))
3026 (build-system gnu-build-system)
3027 ;; Separate graphical tools in order to save almost 1 GiB on the closure
3028 ;; for the common case.
3029 (outputs '("out" "gui"))
3030 (arguments
3031 '(#:configure-flags
3032 (list "--disable-static"
3033 (string-append "--with-udevdir="
3034 (assoc-ref %outputs "out")
3035 "/lib/udev"))
3036 #:phases
3037 (modify-phases %standard-phases
3038 (add-after 'install 'split
3039 (lambda* (#:key outputs #:allow-other-keys)
3040 (let ((out (assoc-ref outputs "out"))
3041 (gui (assoc-ref outputs "gui")))
3042 (mkdir-p (string-append gui "/bin"))
3043 (mkdir-p (string-append gui "/share/man/man1"))
3044 (mkdir-p (string-append gui "/share/applications"))
3045 (for-each
3046 (lambda (prog)
3047 (for-each
3048 (lambda (file)
3049 (rename-file (string-append out file)
3050 (string-append gui file)))
3051 (list
3052 (string-append "/bin/" prog)
3053 (string-append "/share/man/man1/" prog ".1")
3054 (string-append "/share/applications/" prog ".desktop"))))
3055 '("qv4l2" "qvidcap"))
3056 (copy-recursively (string-append out "/share/icons")
3057 (string-append gui "/share/icons"))
3058 (delete-file-recursively (string-append out "/share/icons"))
3059 (rmdir (string-append out "/share/applications"))
3060 #t))))))
3061 (native-inputs
3062 `(("perl" ,perl)
3063 ("pkg-config" ,pkg-config)))
3064 (inputs
3065 `(("alsa-lib" ,alsa-lib)
3066 ("glu" ,glu)
3067 ("libjpeg" ,libjpeg-turbo)
3068 ("libx11" ,libx11)
3069 ("qtbase" ,qtbase)
3070 ("eudev" ,eudev)))
3071 (synopsis "Realtime video capture utilities for Linux")
3072 (description "The v4l-utils provide a series of libraries and utilities to
3073 be used for realtime video capture via Linux-specific APIs.")
3074 (home-page "https://linuxtv.org/wiki/index.php/V4l-utils")
3075 ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only.
3076 (license (list license:lgpl2.1+ license:gpl2))))
3077
3078 (define-public obs
3079 (package
3080 (name "obs")
3081 (version "26.1.0")
3082 (source (origin
3083 (method git-fetch)
3084 (uri (git-reference
3085 (url "https://github.com/obsproject/obs-studio")
3086 (commit version)))
3087 (file-name (git-file-name name version))
3088 (sha256
3089 (base32
3090 "0p8wdzm9imn3s17arr206sz92g4pkacfcpfbwvhvgkrrs4w000bx"))))
3091 (build-system cmake-build-system)
3092 (arguments
3093 `(#:configure-flags
3094 (list (string-append "-DOBS_VERSION_OVERRIDE=" ,version)
3095 "-DENABLE_UNIT_TESTS=TRUE")
3096 #:phases
3097 (modify-phases %standard-phases
3098 (add-after 'install 'wrap-executable
3099 (lambda* (#:key outputs #:allow-other-keys)
3100 (let ((out (assoc-ref outputs "out"))
3101 (plugin-path (getenv "QT_PLUGIN_PATH")))
3102 (wrap-program (string-append out "/bin/obs")
3103 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
3104 #t)))))
3105 (native-inputs
3106 `(("cmocka" ,cmocka)
3107 ("pkg-config" ,pkg-config)))
3108 (inputs
3109 `(("alsa-lib" ,alsa-lib)
3110 ("curl" ,curl)
3111 ("eudev" ,eudev)
3112 ("ffmpeg" ,ffmpeg)
3113 ("fontconfig" ,fontconfig)
3114 ("freetype" ,freetype)
3115 ("jack" ,jack-1)
3116 ("jansson" ,jansson)
3117 ("libx264" ,libx264)
3118 ("libxcomposite" ,libxcomposite)
3119 ("mbedtls" ,mbedtls-apache)
3120 ("mesa" ,mesa)
3121 ("pulseaudio" ,pulseaudio)
3122 ("qtbase" ,qtbase)
3123 ("qtsvg" ,qtsvg)
3124 ("qtx11extras" ,qtx11extras)
3125 ("speexdsp" ,speexdsp)
3126 ("v4l-utils" ,v4l-utils)
3127 ("zlib" ,zlib)))
3128 (synopsis "Live streaming software")
3129 (description "Open Broadcaster Software provides a graphical interface for
3130 video recording and live streaming. OBS supports capturing audio and video
3131 from many input sources such as webcams, X11 (for screencasting), PulseAudio,
3132 and JACK.")
3133 (home-page "https://obsproject.com")
3134 (license license:gpl2+)))
3135
3136 (define-public libvdpau
3137 (package
3138 (name "libvdpau")
3139 (version "1.4")
3140 (source
3141 (origin
3142 (method git-fetch)
3143 (uri (git-reference
3144 (url "https://gitlab.freedesktop.org/vdpau/libvdpau.git")
3145 (commit version)))
3146 (file-name (git-file-name name version))
3147 (sha256
3148 (base32
3149 "1hc4mcrbr1yhfiy4zfd8wc2iiqbp90z6jswap0jia20vmyk5lqld"))))
3150 (build-system meson-build-system)
3151 (native-inputs
3152 `(("pkg-config" ,pkg-config)))
3153 (inputs
3154 `(("libx11" ,libx11 "out")
3155 ("libxext" ,libxext)
3156 ("xorgproto" ,xorgproto)))
3157 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3158 (synopsis "Video Decode and Presentation API")
3159 (description "VDPAU is the Video Decode and Presentation API for UNIX. It
3160 provides an interface to video decode acceleration and presentation hardware
3161 present in modern GPUs.")
3162 (license (license:x11-style "file://COPYING"))))
3163
3164 (define-public vdpauinfo
3165 (package
3166 (name "vdpauinfo")
3167 (version "1.4")
3168 (source
3169 (origin
3170 (method git-fetch)
3171 (uri (git-reference
3172 (url "https://gitlab.freedesktop.org/vdpau/vdpauinfo")
3173 (commit version)))
3174 (file-name (git-file-name name version))
3175 (sha256
3176 (base32 "0s84bavxr39w0r7zfaac7kpbfsg88hgymqyzcr0yvbj1yry3liz2"))))
3177 (build-system gnu-build-system)
3178 (arguments
3179 `(#:phases
3180 (modify-phases %standard-phases
3181 (replace 'bootstrap
3182 ;; ./autogen.sh runs ./configure too soon.
3183 (lambda _
3184 (invoke "autoreconf" "-fiv"))))))
3185 (native-inputs
3186 `(("autoconf" ,autoconf)
3187 ("automake" ,automake)
3188 ("libx11" ,libx11)
3189 ("pkg-config" ,pkg-config)))
3190 (propagated-inputs
3191 `(("libvdpau" ,libvdpau)))
3192 (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")
3193 (synopsis "Tool to query the capabilities of a VDPAU implementation")
3194 (description "Vdpauinfo is a tool to query the capabilities of a VDPAU
3195 implementation.")
3196 (license (license:x11-style "file://COPYING"))))
3197
3198 (define-public libvdpau-va-gl
3199 (package
3200 (name "libvdpau-va-gl")
3201 (version "0.4.2")
3202 (source
3203 (origin
3204 (method url-fetch)
3205 (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/"
3206 "releases/download/v" version "/libvdpau-va-gl-"
3207 version ".tar.gz"))
3208 (sha256
3209 (base32
3210 "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx"))
3211 (patches (search-patches "libvdpau-va-gl-unbundle.patch"))
3212 (modules '((guix build utils)))
3213 (snippet '(begin (delete-file-recursively "3rdparty")
3214 #t))))
3215 (build-system cmake-build-system)
3216 (arguments
3217 '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support.
3218 (native-inputs
3219 `(("libvdpau" ,libvdpau)
3220 ("pkg-config" ,pkg-config)))
3221 (inputs
3222 `(("libva" ,libva)
3223 ("mesa" ,mesa)))
3224 (home-page "https://github.com/i-rinat/libvdpau-va-gl")
3225 (synopsis "VDPAU driver with VA-API/OpenGL backend")
3226 (description
3227 "Many applications can use VDPAU to accelerate portions of the video
3228 decoding process and video post-processing to the GPU video hardware. Since
3229 there is no VDPAU available on Intel chips, they fall back to different drawing
3230 techniques. This driver uses OpenGL under the hood to accelerate drawing and
3231 scaling and VA-API (if available) to accelerate video decoding.")
3232 (license license:expat)))
3233
3234 (define-public recordmydesktop
3235 (package
3236 (name "recordmydesktop")
3237 (version "0.3.8.1")
3238 (source (origin
3239 (method url-fetch)
3240 (uri (string-append "mirror://sourceforge/" name "/" name "/"
3241 version "/recordmydesktop-" version ".tar.gz"))
3242 (sha256
3243 (base32
3244 "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik"))))
3245 (build-system gnu-build-system)
3246 (inputs `(("popt" ,popt)
3247 ("zlib" ,zlib)
3248 ("libx11" ,libx11)
3249 ("libice" ,libice)
3250 ("libsm" ,libsm)
3251 ("libxfixes" ,libxfixes)
3252 ("libxdamage" ,libxdamage)
3253 ("libxext" ,libxext)
3254 ("alsa-lib" ,alsa-lib)
3255 ("libvorbis" ,libvorbis)
3256 ("libtheora" ,libtheora)))
3257 (home-page "http://recordmydesktop.sourceforge.net/")
3258 (synopsis "Desktop session video recorder")
3259 (description
3260 "recordMyDesktop is a command-line tool that captures the activity in
3261 your graphical desktop and encodes it as a video. This is a useful tool for
3262 making @dfn{screencasts}.")
3263 (license license:gpl2+)))
3264
3265 (define-public simplescreenrecorder
3266 (package
3267 (name "simplescreenrecorder")
3268 (version "0.4.2")
3269 (source
3270 (origin
3271 (method git-fetch)
3272 (uri (git-reference
3273 (url "https://github.com/MaartenBaert/ssr")
3274 (commit version)))
3275 (file-name (git-file-name name version))
3276 (sha256
3277 (base32
3278 "1dzp5yzqlha65crzklx2qlan6ssw1diwzfpc4svd7gnr858q2292"))))
3279 (build-system cmake-build-system)
3280 ;; Although libx11, libxfixes, libxext are listed as build dependencies in
3281 ;; README.md, the program builds and functions properly without them.
3282 ;; As a result, they are omitted. Please add them back if problems appear.
3283 (inputs
3284 `(("alsa-lib" ,alsa-lib)
3285 ("ffmpeg" ,ffmpeg)
3286 ("glu" ,glu)
3287 ("jack" ,jack-1)
3288 ("libxi" ,libxi)
3289 ("libxinerama" ,libxinerama)
3290 ("pulseaudio" ,pulseaudio)
3291 ("qtbase" ,qtbase)
3292 ("qtx11extras" ,qtx11extras)))
3293 (native-inputs `(("pkg-config" ,pkg-config)))
3294 (arguments
3295 `(#:configure-flags
3296 (list "-DWITH_QT5=TRUE")
3297 #:tests? #f)) ; no test suite
3298 ;; Using HTTPS causes part of the page to be displayed improperly.
3299 (home-page "https://www.maartenbaert.be/simplescreenrecorder/")
3300 (synopsis "Screen recorder")
3301 (description "SimpleScreenRecorder is an easy to use screen recorder with
3302 a graphical user interface. It supports recording the entire screen, or a
3303 part of it, and allows encoding in many different codecs and file formats.
3304 Other features include a live preview and live streaming.")
3305 (license (list license:gpl3+ ; most files
3306 license:zlib ; glinject/elfhacks.*
3307 license:isc ; glinject/*
3308 license:x11)))) ; build-aux/install-sh
3309
3310 (define-public libsmpeg
3311 (package
3312 (name "libsmpeg")
3313 (version "0.4.5-401")
3314 (source (origin
3315 (method svn-fetch)
3316 (uri (svn-reference
3317 (url "svn://svn.icculus.org/smpeg/trunk/")
3318 (revision 401))) ; last revision before smpeg2 (for SDL 2.0)
3319 (file-name (string-append name "-" version "-checkout"))
3320 (sha256
3321 (base32
3322 "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
3323 (build-system gnu-build-system)
3324 (arguments
3325 ;; libsmpeg fails to build with -std=c++11, which is the default with
3326 ;; GCC 7. Also, 'configure' does CXXFLAGS=$CFLAGS, hence this hack.
3327 '(#:configure-flags '("CFLAGS=-O2 -g -std=c++03")))
3328 (native-inputs
3329 `(("autoconf" ,autoconf)
3330 ("automake" ,automake)))
3331 (inputs
3332 `(("sdl" ,sdl2)))
3333 (home-page "https://icculus.org/smpeg/")
3334 (synopsis "SDL MPEG decoding library")
3335 (description
3336 "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library
3337 with sound support. Video playback is based on the ubiquitous Berkeley MPEG
3338 player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound
3339 library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video,
3340 and MPEG system streams.")
3341 (license (list license:expat
3342 license:lgpl2.1
3343 license:lgpl2.1+
3344 license:gpl2))))
3345
3346 ;; for btanks
3347 (define-public libsmpeg-with-sdl1
3348 (package (inherit libsmpeg)
3349 (name "libsmpeg")
3350 (version "0.4.5-399")
3351 (source (origin
3352 (method svn-fetch)
3353 (uri (svn-reference
3354 (url "svn://svn.icculus.org/smpeg/trunk/")
3355 (revision 399))) ; tagged release 0.4.5
3356 (file-name (string-append name "-" version "-checkout"))
3357 (sha256
3358 (base32
3359 "0jfi085rf3fa5xsn0vd3nqf32my8ph9c6a9445y7a8lrlz4dms64"))))
3360 (inputs
3361 `(("sdl" ,sdl)))))
3362
3363 (define-public libbdplus
3364 (package
3365 (name "libbdplus")
3366 (version "0.1.2")
3367 (source
3368 (origin
3369 (method url-fetch)
3370 (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/"
3371 version "/" name "-" version ".tar.bz2"))
3372 (sha256
3373 (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"))))
3374 (inputs
3375 `(("libgcrypt" ,libgcrypt)))
3376 (build-system gnu-build-system)
3377 (home-page "https://www.videolan.org/developers/libbdplus.html")
3378 (synopsis "Library for decrypting certain Blu-Ray discs")
3379 (description "libbdplus is a library which implements the BD+ System
3380 specifications.")
3381 (license license:lgpl2.1+)))
3382
3383 (define-public libaacs
3384 (package
3385 (name "libaacs")
3386 (version "0.11.0")
3387 (source
3388 (origin
3389 (method url-fetch)
3390 (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/"
3391 version "/libaacs-" version ".tar.bz2"))
3392 (sha256
3393 (base32 "11skjqjlldmbjkyxdcz4fmcn6y4p95r1xagbcnjy4ndnzf0l723d"))))
3394 (inputs
3395 `(("libgcrypt" ,libgcrypt)))
3396 (native-inputs
3397 `(("bison" ,bison)
3398 ("flex" ,flex)))
3399 (build-system gnu-build-system)
3400 (home-page "https://www.videolan.org/developers/libaacs.html")
3401 (synopsis "Library for decrypting certain Blu-Ray discs")
3402 (description "libaacs is a library which implements the Advanced Access
3403 Content System specification.")
3404 (license license:lgpl2.1+)))
3405
3406 (define-public mps-youtube
3407 (package
3408 (name "mps-youtube")
3409 (version "0.2.8")
3410 (source
3411 (origin
3412 (method git-fetch)
3413 (uri (git-reference
3414 (url "https://github.com/mps-youtube/mps-youtube")
3415 (commit (string-append "v" version))))
3416 (file-name (git-file-name name version))
3417 (sha256
3418 (base32
3419 "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y"))))
3420 (build-system python-build-system)
3421 (arguments
3422 ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the
3423 ;; test suite results differ depending on the country and also introduce
3424 ;; non-determinism in the tests.
3425 ;; https://github.com/mps-youtube/mps-youtube/issues/556
3426 `(#:tests? #f))
3427 (propagated-inputs
3428 `(("python-pafy" ,python-pafy)
3429 ("python-pygobject" ,python-pygobject))) ; For mpris2 support
3430 (home-page "https://github.com/mps-youtube/mps-youtube")
3431 (synopsis "Terminal based YouTube player and downloader")
3432 (description
3433 "@code{mps-youtube} is based on mps, a terminal based program to
3434 search, stream and download music. This implementation uses YouTube as
3435 a source of content and can play and download video as well as audio.
3436 It can use either mpv or mplayer for playback, and for conversion of
3437 formats ffmpeg or libav is used. Users should install one of the
3438 supported players in addition to this package.")
3439 (license license:gpl3+)))
3440
3441 (define-public handbrake
3442 (package
3443 (name "handbrake")
3444 (version "1.3.3")
3445 (source (origin
3446 (method url-fetch)
3447 (uri (string-append "https://github.com/HandBrake/HandBrake/"
3448 "releases/download/" version "/"
3449 "HandBrake-" version "-source.tar.bz2"))
3450 (sha256
3451 (base32
3452 "11bzhyp052bmng5119x74xvdj5632smx6qsk537ygda8bzckg2i1"))
3453 (modules '((guix build utils)))
3454 (snippet
3455 ;; Remove "contrib" and source not necessary for
3456 ;; building/running under a GNU environment.
3457 '(begin
3458 (for-each delete-file-recursively
3459 '("contrib" "macosx" "win")) ; 540KiB, 11MiB, 5.9MiB resp.
3460 (substitute* "make/include/main.defs"
3461 ;; Disable unconditional inclusion of "contrib" libraries
3462 ;; (ffmpeg, libvpx, libdvdread, libdvdnav, and libbluray),
3463 ;; which would lead to fetching and building of these
3464 ;; libraries. Use our own instead.
3465 (("MODULES \\+= contrib") "# MODULES += contrib"))
3466 #t))))
3467 (build-system glib-or-gtk-build-system)
3468 (native-inputs
3469 `(("automake" ,automake) ; GUI subpackage must be bootstrapped
3470 ("autoconf" ,autoconf)
3471 ("intltool" ,intltool)
3472 ("libtool" ,libtool)
3473 ("pkg-config" ,pkg-config)
3474 ("python" ,python-2))) ; For configuration
3475 (inputs
3476 `(("bzip2" ,bzip2)
3477 ("dbus-glib" ,dbus-glib)
3478 ("ffmpeg" ,ffmpeg)
3479 ("fontconfig" ,fontconfig)
3480 ("freetype" ,freetype)
3481 ("glib" ,glib)
3482 ("gstreamer" ,gstreamer)
3483 ("gst-plugins-base" ,gst-plugins-base)
3484 ("gtk+" ,gtk+)
3485 ("jansson" ,jansson)
3486 ("lame" ,lame)
3487 ("libass" ,libass)
3488 ("libbluray" ,libbluray)
3489 ("libdav1d" ,dav1d)
3490 ("libdvdnav" ,libdvdnav)
3491 ("libdvdread" ,libdvdread)
3492 ("libgudev" ,libgudev)
3493 ("libmpeg2" ,libmpeg2)
3494 ("libnotify" ,libnotify)
3495 ("libnuma" ,numactl)
3496 ("libogg" ,libogg)
3497 ("libopus" ,opus)
3498 ("libsamplerate" ,libsamplerate)
3499 ("libtheora" ,libtheora)
3500 ("libvorbis" ,libvorbis)
3501 ("libvpx" ,libvpx)
3502 ("libxml2" ,libxml2)
3503 ("libx264" ,libx264)
3504 ("speex" ,speex)
3505 ("x265" ,x265)
3506 ("zlib" ,zlib)))
3507 (arguments
3508 `(#:tests? #f ;tests require Ruby and claim to be unsupported
3509 #:configure-flags
3510 (list "--disable-gtk-update-checks"
3511 "--disable-nvenc"
3512 (string-append "CPPFLAGS=-I"
3513 (assoc-ref %build-inputs "libxml2")
3514 "/include/libxml2")
3515 "LDFLAGS=-lx265")
3516 #:phases
3517 (modify-phases %standard-phases
3518 (replace 'bootstrap
3519 ;; Run bootstrap ahead of time so that shebangs get patched.
3520 (lambda _
3521 (setenv "CONFIG_SHELL" (which "sh"))
3522 ;; Patch the Makefile so that it doesn't bootstrap again.
3523 (substitute* "gtk/module.rules"
3524 ((".*autoreconf.*") ""))
3525 (with-directory-excursion "gtk"
3526 (invoke "autoreconf" "-fiv"))))
3527 (add-before 'configure 'patch-SHELL
3528 (lambda _
3529 (substitute* "gtk/po/Makefile.in.in"
3530 (("SHELL = /bin/sh") "SHELL = @SHELL@"))
3531 #t))
3532 (add-before 'configure 'relax-reqs
3533 (lambda _
3534 (substitute* "make/configure.py"
3535 ;; cmake is checked for so that it can be used to build
3536 ;; contrib/harfbuzz and contrib/x265, but we get these as
3537 ;; inputs, so don't abort if it's not found. Similarly, meson
3538 ;; and ninja are only needed for contrib/libdav1d, and nasm
3539 ;; only for libvpx
3540 (("((cmake|meson|ninja|nasm) *=.*abort=)True" _ &)
3541 (string-append & "False")))
3542 #t))
3543 (replace 'configure
3544 (lambda* (#:key outputs configure-flags #:allow-other-keys)
3545 ;; 'configure' is not an autoconf-generated script, and
3546 ;; errors on unrecognized arguments,
3547 ;; e.g. --enable-fast-install
3548 (let ((out (assoc-ref outputs "out")))
3549 (apply invoke "./configure"
3550 (string-append "--prefix=" out)
3551 (or configure-flags '())))))
3552 (add-after 'configure 'chdir-build
3553 (lambda _ (chdir "./build") #t)))))
3554 (home-page "https://handbrake.fr")
3555 (synopsis "Video transcoder")
3556 (description
3557 "HandBrake is a tool for converting video from any format to a selection
3558 of modern, widely supported codecs.")
3559 ;; Some under GPLv2+, some under LGPLv2.1+, and portions under BSD3.
3560 ;; Combination under GPLv2. See LICENSE.
3561 (license license:gpl2)))
3562
3563 (define-public intel-vaapi-driver
3564 (package
3565 (name "intel-vaapi-driver")
3566 (version "2.4.1")
3567 (source
3568 (origin
3569 (method git-fetch)
3570 (uri (git-reference
3571 (url "https://github.com/intel/intel-vaapi-driver")
3572 (commit version)))
3573 (sha256
3574 (base32 "1cidki3av9wnkgwi7fklxbg3bh6kysf8w3fk2qadjr05a92mx3zp"))
3575 (file-name (git-file-name name version))))
3576 (build-system gnu-build-system)
3577 (native-inputs
3578 `(("autoconf" ,autoconf)
3579 ("automake" ,automake)
3580 ("libtool" ,libtool)
3581 ("pkg-config" ,pkg-config)))
3582 (inputs
3583 `(("libdrm" ,libdrm)
3584 ("libva" ,libva)
3585 ("libx11" ,libx11)))
3586 (arguments
3587 `(#:phases
3588 (modify-phases %standard-phases
3589 (add-before 'configure 'set-target-directory
3590 (lambda* (#:key outputs #:allow-other-keys)
3591 (let ((out (assoc-ref outputs "out")))
3592 (setenv "LIBVA_DRIVERS_PATH" (string-append out "/lib/dri"))
3593 #t))))))
3594 ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add
3595 ;; this to all VA-API back ends instead of once to libva.
3596 (native-search-paths
3597 (list (search-path-specification
3598 (variable "LIBVA_DRIVERS_PATH")
3599 (files '("lib/dri")))))
3600 (supported-systems '("i686-linux" "x86_64-linux"))
3601 (home-page "https://01.org/linuxmedia/vaapi")
3602 (synopsis "VA-API video acceleration driver for Intel GEN Graphics devices")
3603 (description
3604 "This is the @acronym{VA-API, Video Acceleration API} back end required for
3605 hardware-accelerated video processing on Intel GEN Graphics devices supported by
3606 the i915 driver, such as integrated Intel HD Graphics. It provides access to
3607 both hardware and shader functionality for faster encoding, decoding, and
3608 post-processing of video formats like MPEG2, H.264/AVC, and VC-1.")
3609 (license (list license:bsd-2 ; src/gen9_vp9_const_def.c
3610 license:expat)))) ; the rest, excluding the test suite
3611
3612 (define-public openh264
3613 (package
3614 (name "openh264")
3615 (version "2.1.1")
3616 (source (origin
3617 (method git-fetch)
3618 (uri (git-reference
3619 (url "https://github.com/cisco/openh264")
3620 (commit (string-append "v" version))))
3621 (file-name (git-file-name name version))
3622 (sha256
3623 (base32
3624 "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s"))))
3625 (build-system gnu-build-system)
3626 (native-inputs
3627 `(("nasm" ,nasm)
3628 ("python" ,python)))
3629 (arguments
3630 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3631 "CC=gcc")
3632 #:test-target "test"
3633 #:phases (modify-phases %standard-phases
3634 ;; no configure script
3635 (delete 'configure))))
3636 (home-page "https://www.openh264.org/")
3637 (synopsis "H264 decoder library")
3638 (description
3639 "Openh264 is a library which can decode H264 video streams.")
3640 (license license:bsd-2)))
3641
3642 (define-public libmp4v2
3643 (package
3644 (name "libmp4v2")
3645 (version "2.0.0")
3646 (source
3647 (origin
3648 (method url-fetch)
3649 ;; XXX: The new location of upstream is uncertain and will become relevant the
3650 ;; moment when the googlecode archive shuts down. It is past the date it
3651 ;; should've been turned off. I tried to communicate with upstream, but this
3652 ;; wasn't very responsive and not very helpful. The short summary is, it is
3653 ;; chaos when it comes to the amount of forks and only time will tell where
3654 ;; the new upstream location is.
3655 (uri (string-append "https://storage.googleapis.com/google-"
3656 "code-archive-downloads/v2/"
3657 "code.google.com/mp4v2/mp4v2-" version ".tar.bz2"))
3658 (file-name (string-append name "-" version ".tar.bz2"))
3659 (patches (search-patches "libmp4v2-c++11.patch"))
3660 (sha256
3661 (base32
3662 "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"))))
3663 (build-system gnu-build-system)
3664 (outputs '("out"
3665 "static")) ; 3.7MiB .a file
3666 (arguments
3667 `(#:phases
3668 (modify-phases %standard-phases
3669 (add-after 'unpack 'remove-dates
3670 (lambda _
3671 ;; Make the build reproducible.
3672 (substitute* "configure"
3673 (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"")
3674 (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\""))
3675 #t))
3676 (add-after 'install 'move-static-libraries
3677 (lambda* (#:key outputs #:allow-other-keys)
3678 ;; Move static libraries to the "static" output.
3679 (let* ((out (assoc-ref outputs "out"))
3680 (lib (string-append out "/lib"))
3681 (static (assoc-ref outputs "static"))
3682 (slib (string-append static "/lib")))
3683 (mkdir-p slib)
3684 (for-each (lambda (file)
3685 (install-file file slib)
3686 (delete-file file))
3687 (find-files lib "\\.a$"))
3688 #t))))))
3689 (native-inputs
3690 `(("help2man" ,help2man)
3691 ("dejagnu" ,dejagnu)))
3692 (home-page "https://code.google.com/archive/p/mp4v2/")
3693 (synopsis "API to create and modify mp4 files")
3694 (description
3695 "The MP4v2 library provides an API to create and modify mp4 files as defined by
3696 ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime
3697 file format that has been used as a multimedia file format in a variety of platforms and
3698 applications. It is a very powerful and extensible format that can accommodate
3699 practically any type of media.")
3700 (license license:mpl1.1)))
3701
3702 (define-public libmediainfo
3703 (package
3704 (name "libmediainfo")
3705 (version "20.09")
3706 (source (origin
3707 (method url-fetch)
3708 (uri (string-append "https://mediaarea.net/download/source/"
3709 name "/" version "/"
3710 name "_" version ".tar.xz"))
3711 (sha256
3712 (base32
3713 "15ni9pnch6688m72swwax109a7mg4a08yx75qknrx7qa6dbyhz6h"))))
3714 ;; TODO add a Big Buck Bunny webm for tests.
3715 (native-inputs
3716 `(("autoconf" ,autoconf)
3717 ("automake" ,automake)
3718 ("libtool" ,libtool)
3719 ("pkg-config" ,pkg-config)
3720 ("zlib" ,zlib)
3721 ("tinyxml2" ,tinyxml2)
3722 ("curl" ,curl)
3723 ("libzen" ,libzen)))
3724 (build-system gnu-build-system)
3725 (arguments
3726 '(#:tests? #f ; see above TODO
3727 #:phases
3728 ;; build scripts not in root of archive
3729 (modify-phases %standard-phases
3730 (add-after 'unpack 'change-to-build-dir
3731 (lambda _
3732 (chdir "Project/GNU/Library")
3733 #t)))))
3734 (home-page "https://mediaarea.net/en/MediaInfo")
3735 (synopsis "Library for retrieving media metadata")
3736 (description "MediaInfo is a library used for retrieving technical
3737 information and other metadata about audio or video files. A non-exhaustive
3738 list of the information MediaInfo can retrieve from media files include:
3739
3740 @itemize
3741 @item General: title, author, director, album, track number, date, duration...
3742 @item Video: codec, aspect, fps, bitrate...
3743 @item Audio: codec, sample rate, channels, language, bitrate...
3744 @item Text: language of subtitle
3745 @item Chapters: number of chapters, list of chapters
3746 @end itemize
3747
3748 MediaInfo supports the following formats:
3749
3750 @itemize
3751 @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
3752 MPEG-2, MPEG-4, DVD (VOB)...
3753 @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
3754 @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
3755 @item Subtitles: SRT, SSA, ASS, SAMI...
3756 @end itemize\n")
3757 (license license:bsd-2)))
3758
3759 ;; TODO also have a GUI version available
3760 (define-public mediainfo
3761 (package
3762 (name "mediainfo")
3763 (version "20.09")
3764 (source (origin
3765 (method url-fetch)
3766 ;; Warning: This source has proved unreliable 1 time at least.
3767 ;; Consider an alternate source or report upstream if this
3768 ;; happens again.
3769 (uri (string-append "https://mediaarea.net/download/source/"
3770 name "/" version "/"
3771 name "_" version ".tar.xz"))
3772 (sha256
3773 (base32
3774 "0rqg9z7s5bk7vlvjrs4gackzg7ib05a0dffi2ihsjf5a7kw7wcir"))))
3775 (native-inputs
3776 `(("autoconf" ,autoconf)
3777 ("automake" ,automake)
3778 ("libtool" ,libtool)
3779 ("pkg-config" ,pkg-config)
3780 ("zlib" ,zlib)
3781 ("libmediainfo" ,libmediainfo)
3782 ("libzen" ,libzen)))
3783 (build-system gnu-build-system)
3784 (arguments
3785 '(#:tests? #f ; lacks tests
3786 #:phases
3787 ;; build scripts not in root of archive
3788 (modify-phases %standard-phases
3789 (add-after 'unpack 'change-to-build-dir
3790 (lambda _
3791 (chdir "Project/GNU/CLI")
3792 #t)))))
3793 (home-page "https://mediaarea.net/en/MediaInfo")
3794 (synopsis "Utility for reading media metadata")
3795 (description "MediaInfo is a utility used for retrieving technical
3796 information and other metadata about audio or video files. It supports the
3797 many codecs and formats supported by libmediainfo.")
3798 (license license:bsd-2)))
3799
3800 (define-public atomicparsley
3801 (package
3802 (name "atomicparsley")
3803 (version "20200701.154658.b0d6223")
3804 (source (origin
3805 (method git-fetch)
3806 (uri (git-reference
3807 (url "https://github.com/wez/atomicparsley")
3808 (commit version)))
3809 (file-name (git-file-name name version))
3810 (sha256
3811 (base32
3812 "1kym2l5y34nmbrrlkfmxsf1cwrvch64kb34jp0hpa0b89idbhwqh"))))
3813 (build-system cmake-build-system)
3814 (arguments
3815 `(#:tests? #f ;; no tests included
3816 #:phases
3817 (modify-phases %standard-phases
3818 (add-before 'configure 'set-cmake-version
3819 (lambda* _
3820 (substitute* "CMakeLists.txt"
3821 ;; At the time of writing, Guix has CMake at 3.16, but
3822 ;; AtomicParsley uses 3.17. This brings the required CMake
3823 ;; version down to what Guix can afford.
3824 (("VERSION 3.17") "VERSION 3.16"))
3825 #t))
3826 (replace 'install
3827 (lambda* (#:key outputs #:allow-other-keys)
3828 (let* ((out (assoc-ref outputs "out"))
3829 (bin (string-append out "/bin")))
3830 (install-file "AtomicParsley" bin))
3831 #t)))))
3832 (inputs
3833 `(("zlib" ,zlib)))
3834 (synopsis "Metadata editor for MPEG-4 files")
3835 (description "AtomicParsley is a lightweight command line program for
3836 reading, parsing and setting metadata into MPEG-4 files, in particular,
3837 iTunes-style metadata.")
3838 (home-page "https://github.com/wez/atomicparsley")
3839 (license license:gpl2+)))
3840
3841 (define-public livemedia-utils
3842 (package
3843 (name "livemedia-utils")
3844 (version "2020.11.19")
3845 (source (origin
3846 (method url-fetch)
3847 (uri (string-append
3848 "https://download.videolan.org/contrib/live555/live."
3849 version ".tar.gz"))
3850 (sha256
3851 (base32
3852 "16w6yxdbmjdhvffnrb752dn4llf3l0wb00dgdkyia0vqsv2qqyn7"))))
3853 (build-system gnu-build-system)
3854 (arguments
3855 `(#:tests? #f ; no tests
3856 #:make-flags (list (string-append "CC=" ,(cc-for-target))
3857 (string-append "CXX=" ,(cxx-for-target))
3858 (string-append "LDFLAGS=-Wl,-rpath="
3859 (assoc-ref %outputs "out") "/lib")
3860 (string-append "PREFIX="
3861 (assoc-ref %outputs "out")))
3862 #:phases (modify-phases %standard-phases
3863 (add-before 'configure 'fix-makefiles-generation
3864 (lambda _
3865 (substitute* "genMakefiles"
3866 (("/bin/rm") "rm"))
3867 #t))
3868 (replace 'configure
3869 (lambda _
3870 (invoke "./genMakefiles"
3871 "linux-with-shared-libraries"))))))
3872 (inputs
3873 `(("openssl" ,openssl)))
3874 (home-page "http://www.live555.com/liveMedia/")
3875 (synopsis "Set of C++ libraries for multimedia streaming")
3876 (description "This code forms a set of C++ libraries for multimedia
3877 streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries
3878 can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or
3879 JPEG video, and several audio codecs. They can easily be extended to support
3880 additional (audio and/or video) codecs, and can also be used to build basic
3881 RTSP or SIP clients and servers.")
3882 (license license:lgpl3+)))
3883
3884 (define-public libdvbpsi
3885 (package
3886 (name "libdvbpsi")
3887 (version "1.3.3")
3888 (source (origin
3889 (method url-fetch)
3890 (uri (string-append
3891 "https://download.videolan.org/pub/libdvbpsi/"
3892 version "/libdvbpsi-" version ".tar.bz2"))
3893 (sha256
3894 (base32
3895 "04h1l3vrkrdsrvkgzcr51adk10g6hxcxvgjphyyxz718ry5rkd82"))))
3896 (build-system gnu-build-system)
3897 (home-page "https://www.videolan.org/developers/libdvbpsi.html")
3898 (synopsis "Library for decoding and generation of MPEG TS and DVB PSI
3899 tables")
3900 (description "libdvbpsi is a simple library designed for decoding and
3901 generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s
3902 and ITU-T H.222.0.")
3903 (license license:lgpl2.1)))
3904
3905 (define-public ffms2
3906 (package
3907 (name "ffms2")
3908 (version "2.23")
3909 (home-page "https://github.com/FFMS/ffms2")
3910 (source (origin
3911 (method git-fetch)
3912 (uri (git-reference
3913 (url "https://github.com/FFMS/ffms2")
3914 (commit version)))
3915 (file-name (git-file-name name version))
3916 (sha256
3917 (base32
3918 "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5"))))
3919 (build-system gnu-build-system)
3920 (arguments
3921 '(#:configure-flags
3922 (list "--enable-avresample")))
3923 (inputs
3924 `(("zlib" ,zlib)))
3925 (propagated-inputs
3926 `(("ffmpeg" ,ffmpeg)))
3927 (native-inputs
3928 `(("pkg-config" ,pkg-config)))
3929 (synopsis "Cross-platform wrapper around ffmpeg/libav")
3930 (description
3931 "FFMpegSource is a wrapper library around ffmpeg/libav that allows
3932 programmers to access a standard API to open and decompress media files.")
3933 ;; sources are distributed under a different license that the binary.
3934 ;; see https://github.com/FFMS/ffms2/blob/master/COPYING
3935 (license license:gpl2+))); inherits from ffmpeg
3936
3937 (define-public aegisub
3938 (package
3939 (name "aegisub")
3940 (version "3.2.2")
3941 (source (origin
3942 (method url-fetch)
3943 (uri (string-append
3944 "http://ftp.aegisub.org/pub/archives/releases/source/"
3945 name "-" version ".tar.xz"))
3946 (sha256
3947 (base32
3948 "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"))
3949 (patches (search-patches "aegisub-icu59-include-unistr.patch"
3950 "aegisub-make43.patch"
3951 "aegisub-boost68.patch"))))
3952 (build-system gnu-build-system)
3953 (arguments
3954 `(#:configure-flags
3955 (list "--disable-update-checker"
3956 "--without-portaudio"
3957 "--without-openal"
3958 "--without-oss"
3959 "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1")
3960 ;; tests require busted, a lua package we don't have yet
3961 #:tests? #f
3962 #:phases
3963 (modify-phases %standard-phases
3964 (add-before 'configure 'fix-ldflags
3965 (lambda _
3966 (setenv "LDFLAGS" "-pthread")
3967 #t))
3968 (add-after 'unpack 'fix-boost-headers
3969 (lambda _
3970 (substitute*
3971 '("src/subtitles_provider_libass.cpp"
3972 "src/colour_button.cpp"
3973 "src/video_provider_dummy.cpp"
3974 "./src/video_frame.cpp")
3975 (("#include <boost/gil/gil_all.hpp>")
3976 "#include <boost/gil.hpp>"))
3977 #t)))))
3978 (inputs
3979 `(("boost" ,boost)
3980 ("ffms2" ,ffms2)
3981 ("fftw" ,fftw)
3982 ("hunspell" ,hunspell)
3983 ("mesa" ,mesa)
3984 ("libass" ,libass)
3985 ("alsa-lib" ,alsa-lib)
3986 ("pulseaudio" ,pulseaudio)
3987 ("libx11" ,libx11)
3988 ("freetype" ,freetype)
3989 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
3990 (native-inputs
3991 `(("intltool" ,intltool)
3992 ("desktop-file-utils" ,desktop-file-utils)
3993 ("pkg-config" ,pkg-config)))
3994 (home-page "http://www.aegisub.org/")
3995 (synopsis "Subtitle engine")
3996 (description
3997 "Aegisub is a tool for creating and modifying subtitles. Aegisub makes
3998 it quick and easy to time subtitles to audio, and features many powerful
3999 tools for styling them, including a built-in real-time video preview.")
4000 (license (list license:bsd-3 ; the package is licensed under the bsd-3, except
4001 license:mpl1.1 ; for vendor/universalchardet under the mpl1.1
4002 license:expat)))) ; and src/gl that is under a license similar
4003 ; the the Expat license, with a rewording (Software -> Materials). (called MIT
4004 ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE
4005 ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author
4006
4007 (define-public pitivi
4008 ;; Pitivi switched to a non-semantic versioning scheme close before 1.0
4009 (let ((latest-semver "0.999.0")
4010 (%version "2020.09.2"))
4011 (package
4012 (name "pitivi")
4013 (version (string-append latest-semver "-" %version))
4014 (source (origin
4015 (method url-fetch)
4016 (uri (string-append "mirror://gnome/sources/" name "/"
4017 (version-major+minor %version) "/"
4018 name "-" %version ".tar.xz"))
4019 (sha256
4020 (base32
4021 "0hzvv4wia4rk0kvq16y27imq2qd4q5lg3vx99hdcjdb1x3zqqfg0"))))
4022 (build-system meson-build-system)
4023 (inputs
4024 `(("glib" ,glib)
4025 ("gst-editing-services" ,gst-editing-services)
4026 ("gstreamer" ,gstreamer)
4027 ("gst-plugins-base" ,gst-plugins-base)
4028 ("gst-plugins-good" ,gst-plugins-good)
4029 ("gst-plugins-bad"
4030 ,(gst-plugins/selection gst-plugins-bad
4031 #:plugins '("debugutils" "transcoder")
4032 #:configure-flags '("-Dintrospection=enabled")))
4033 ("gst-libav" ,gst-libav)
4034 ("gsound" ,gsound)
4035 ("gtk+" ,gtk+)
4036 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
4037 ("libpeas" ,libpeas)
4038 ("libnotify" ,libnotify)
4039 ("pango" ,pango)
4040 ("python-gst" ,python-gst)
4041 ("python-numpy" ,python-numpy)
4042 ("python-matplotlib" ,python-matplotlib)
4043 ("python-pycairo" ,python-pycairo)
4044 ("python-pygobject" ,python-pygobject)))
4045 (native-inputs
4046 `(("gettext" ,gettext-minimal)
4047 ("glib:bin" ,glib "bin")
4048 ("itstool" ,itstool)
4049 ("pkg-config" ,pkg-config)))
4050 (arguments
4051 `(#:glib-or-gtk? #t
4052 #:phases
4053 (modify-phases %standard-phases
4054 (add-after 'glib-or-gtk-wrap 'wrap-other-dependencies
4055 (lambda* (#:key outputs #:allow-other-keys)
4056 (let ((prog (string-append (assoc-ref outputs "out")
4057 "/bin/pitivi")))
4058 (wrap-program prog
4059 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
4060 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
4061 ;; We've only added inputs for what Pitivi deems either
4062 ;; necessary or optional. Let the user's packages take
4063 ;; precedence in case they have e.g. the full gst-plugins-bad.
4064 `("GST_PLUGIN_SYSTEM_PATH" suffix
4065 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))))
4066 #t)))))
4067 (home-page "http://www.pitivi.org")
4068 (synopsis "Video editor based on GStreamer Editing Services")
4069 (description "Pitivi is a video editor built upon the GStreamer Editing
4070 Services. It aims to be an intuitive and flexible application that can appeal
4071 to newbies and professionals alike.")
4072 (license license:lgpl2.1+))))
4073
4074 (define-public gavl
4075 (package
4076 (name "gavl")
4077 (version "1.4.0")
4078 (source
4079 (origin
4080 (method url-fetch)
4081 (uri (string-append "mirror://sourceforge/gmerlin/"
4082 name "/" version "/"
4083 name "-" version ".tar.gz"))
4084 (file-name (string-append name "-" version ".tar.gz"))
4085 (sha256
4086 (base32
4087 "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji"))))
4088 (build-system gnu-build-system)
4089 (arguments
4090 '(#:configure-flags '("LIBS=-lm")))
4091 (native-inputs
4092 `(("pkg-config" ,pkg-config)
4093 ("doxygen" ,doxygen)))
4094 (home-page "http://gmerlin.sourceforge.net")
4095 (synopsis "Low level library for multimedia API building")
4096 (description
4097 "Gavl is short for Gmerlin Audio Video Library. It is a low level
4098 library, upon which multimedia APIs can be built. Gavl handles all the
4099 details of audio and video formats like colorspaces, sample rates,
4100 multichannel configurations, etc. It provides standardized definitions for
4101 those formats as well as container structures for carrying audio samples or
4102 video images inside an application.
4103
4104 In addition, it handles the sometimes ugly task of converting between all
4105 these formats and provides some elementary operations (copying, scaling,
4106 alpha blending etc).")
4107 (license license:gpl3)))
4108
4109 (define-public frei0r-plugins
4110 (package
4111 (name "frei0r-plugins")
4112 (version "1.7.0")
4113 (source
4114 (origin
4115 (method url-fetch)
4116 (uri (string-append "https://files.dyne.org/frei0r/"
4117 "frei0r-plugins-" version ".tar.gz"))
4118 (sha256
4119 (base32
4120 "0fjji3060r4fwr7vn91lwfzl80lg3my9lkp94kbyw8xwz7qgh7qv"))))
4121 (build-system gnu-build-system)
4122 (arguments
4123 `(#:phases
4124 (modify-phases %standard-phases
4125 (add-after 'unpack 'patch-Makefile
4126 (lambda _
4127 ;; XXX: The 1.7.0 Makefile looks for files that have slightly different
4128 ;; names in the tarball. Try removing this for future versions.
4129 (substitute* "Makefile.in"
4130 (("README\\.md ChangeLog TODO AUTHORS")
4131 "README.txt ChangeLog.txt TODO.txt AUTHORS.txt"))
4132 #t)))))
4133 ;; TODO: opencv for additional face detection filters.
4134 (inputs
4135 `(("gavl" ,gavl)
4136 ("cairo" ,cairo)))
4137 (native-inputs
4138 `(("pkg-config" ,pkg-config)))
4139 (home-page "https://www.dyne.org/software/frei0r/")
4140 (synopsis "Minimalistic plugin API for video effects")
4141 (description
4142 "Frei0r is a minimalistic plugin API for video effects.
4143 The main emphasis is on simplicity for an API that will round up
4144 the most common video effects into simple filters, sources and
4145 mixers that can be controlled by parameters. Frei0r wants to
4146 provide a way to share these simple effects between many
4147 applications, avoiding their reimplementation by different projects.
4148 It counts more than 100 plugins.")
4149 (license (list license:gpl2+
4150 ;; The following files are licensed as LGPL2.1+:
4151 ;; src/generator/ising0r/ising0r.c
4152 ;; src/generator/onecol0r/onecol0r.cpp
4153 ;; src/generator/nois0r/nois0r.cpp
4154 ;; src/generator/lissajous0r/lissajous0r.cpp
4155 ;; src/filter/ndvi/gradientlut.hpp
4156 ;; src/filter/ndvi/ndvi.cpp
4157 ;; src/filter/facedetect/facedetect.cpp
4158 license:lgpl2.1+))))
4159
4160 (define-public motion
4161 (package
4162 (name "motion")
4163 (version "4.2.2")
4164 (home-page "https://motion-project.github.io/")
4165 (source (origin
4166 (method git-fetch)
4167 (uri (git-reference
4168 (url "https://github.com/Motion-Project/motion")
4169 (commit (string-append "release-" version))))
4170 (sha256
4171 (base32
4172 "05c1gx75xy2hw49x6vkydvwxbr80kipsc3nr906k3hq8735svx6f"))
4173 (file-name (git-file-name name version))))
4174 (build-system gnu-build-system)
4175 (native-inputs
4176 `(("autoconf" ,autoconf-wrapper)
4177 ("automake" ,automake)
4178 ("gettext" ,gettext-minimal)
4179 ("pkg-config" ,pkg-config)))
4180 (inputs
4181 `(("libjpeg" ,libjpeg-turbo)
4182 ("ffmpeg" ,ffmpeg)
4183 ("libmicrohttpd" ,libmicrohttpd)
4184 ("sqlite" ,sqlite)))
4185 (arguments
4186 '(#:phases (modify-phases %standard-phases
4187 (replace 'bootstrap
4188 (lambda _
4189 (patch-shebang "version.sh")
4190 (invoke "autoreconf" "-vfi"))))
4191 #:configure-flags '("--sysconfdir=/etc")
4192 #:make-flags (list (string-append "sysconfdir="
4193 (assoc-ref %outputs "out")
4194 "/etc"))
4195
4196 #:tests? #f)) ; no 'check' target
4197 (synopsis "Detect motion from video signals")
4198 (description
4199 "Motion is a program that monitors the video signal from one or more
4200 cameras and is able to detect if a significant part of the picture has
4201 changed. Or in other words, it can detect motion.")
4202
4203 ;; Some files say "version 2" and others "version 2 or later".
4204 (license license:gpl2)))
4205
4206 (define-public subdl
4207 (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
4208 (revision "1"))
4209 (package
4210 (name "subdl")
4211 (version (git-version "1.0.3" revision commit))
4212 (source (origin
4213 (method git-fetch)
4214 (uri (git-reference
4215 (url "https://github.com/alexanderwink/subdl")
4216 (commit commit)))
4217 (file-name (git-file-name name version))
4218 (sha256
4219 (base32
4220 "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
4221 (build-system trivial-build-system)
4222 (arguments
4223 `(#:modules ((guix build utils))
4224 #:builder (begin
4225 (use-modules (guix build utils))
4226 (let* ((out (assoc-ref %outputs "out"))
4227 (bin (string-append out "/bin"))
4228 (source (assoc-ref %build-inputs "source"))
4229 (python (assoc-ref %build-inputs "python")))
4230 (install-file (string-append source "/subdl") bin)
4231 (patch-shebang (string-append bin "/subdl")
4232 (list (string-append python "/bin")))))))
4233 (inputs `(("python" ,python)))
4234 (synopsis "Command-line tool for downloading subtitles from opensubtitles.org")
4235 (description "Subdl is a command-line tool for downloading subtitles from
4236 opensubtitles.org. By default, it will search for English subtitles, display
4237 the results, download the highest-rated result in the requested language and
4238 save it to the appropriate filename.")
4239 (license license:gpl3+)
4240 (home-page "https://github.com/alexanderwink/subdl"))))
4241
4242 (define-public l-smash
4243 (package
4244 (name "l-smash")
4245 (version "2.14.5")
4246 (source (origin
4247 (method git-fetch)
4248 (uri (git-reference
4249 (url "https://github.com/l-smash/l-smash")
4250 (commit (string-append "v" version))))
4251 (file-name (git-file-name name version))
4252 (sha256
4253 (base32
4254 "0rcq9727im6kd8da8b7kzzbzxdldvmh5nsljj9pvr4m3lj484b02"))))
4255 (build-system gnu-build-system)
4256 (arguments
4257 `(#:tests? #f ;no tests
4258 #:make-flags
4259 (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
4260 (assoc-ref %outputs "out") "/lib"))
4261 #:phases
4262 (modify-phases %standard-phases
4263 ;; configure fails if it is followed by CONFIG_SHELL
4264 (replace 'configure
4265 (lambda* (#:key outputs #:allow-other-keys)
4266 (let ((out (assoc-ref outputs "out")))
4267 (invoke "./configure" (string-append "--prefix=" out)
4268 "--disable-static")))))))
4269 (native-inputs
4270 `(("which" ,which)))
4271 (home-page "https://l-smash.github.io/l-smash/")
4272 (synopsis "MP4 multiplexer and demultiplexer library")
4273 (description
4274 "L-SMASH is a cross-platform library that handles the ISO base media file
4275 format and some of its derived file formats, including MP4. It operates as a
4276 multiplexer and demultiplexer, and can mux video and audio in several formats
4277 using standalone executable files.")
4278 (license license:isc)))
4279
4280 (define-public qtfaststart
4281 (package
4282 (name "qtfaststart")
4283 (version "1.8")
4284 (source (origin
4285 (method url-fetch)
4286 (uri (pypi-uri "qtfaststart" version))
4287 (sha256
4288 (base32
4289 "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h"))))
4290 (build-system python-build-system)
4291 (arguments
4292 '(#:tests? #f)) ; no test suite
4293 (synopsis "Move QuickTime and MP4 metadata to the beginning of the file")
4294 (description "qtfaststart enables streaming and pseudo-streaming of
4295 QuickTime and MP4 files by moving metadata and offset information to the
4296 beginning of the file. It can also print some useful information about the
4297 structure of the file. This program is based on qt-faststart.c from the FFmpeg
4298 project, which is released into the public domain, as well as ISO 14496-12:2005
4299 (the official spec for MP4), which can be obtained from the ISO or found
4300 online.")
4301 (home-page "https://github.com/danielgtaylor/qtfaststart")
4302 (license license:expat)))
4303
4304 (define-public vidstab
4305 (let ((commit "aeabc8daa7904f9edf7441a11f293965a5ef53b8")
4306 (revision "0"))
4307 (package
4308 (name "vidstab")
4309 (version (git-version "1.1.0" revision commit))
4310 (source (origin
4311 (method git-fetch)
4312 (uri (git-reference
4313 (url "https://github.com/georgmartius/vid.stab")
4314 (commit commit)))
4315 (file-name (git-file-name name version))
4316 (sha256
4317 (base32
4318 "042iy0f3khwzr68djzvqgn301sy21ljvkf52rnc2c73q7ircnzzn"))))
4319 (build-system cmake-build-system)
4320 (arguments
4321 '(#:tests? #f)) ; tests are not run as part of standard build process
4322 (home-page "http://public.hronopik.de/vid.stab/")
4323 (synopsis "Video stabilization library")
4324 (description "Vidstab is a video stabilization library which can be used
4325 with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a
4326 vehicle typically suffers from undesirable shakes and jitters. Activities such
4327 as surfing, skiing, riding and walking while shooting videos are especially
4328 prone to erratic camera shakes. Vidstab targets these video contents to help
4329 create smoother and stable videos.")
4330 (license license:gpl2+))))
4331
4332 (define-public libopenshot
4333 (package
4334 (name "libopenshot")
4335 (version "0.2.5")
4336 (source (origin
4337 (method git-fetch)
4338 (uri (git-reference
4339 (url "https://github.com/OpenShot/libopenshot")
4340 (commit (string-append "v" version))))
4341 (file-name (git-file-name name version))
4342 (sha256
4343 (base32
4344 "1mxjkgjmjzgf628y3rscc6rqf55hxgjpmvwxlncfk1216i5xskwp"))
4345 (modules '((guix build utils)))
4346 (snippet '(begin
4347 ;; Allow overriding of the python installation dir
4348 (substitute* "src/bindings/python/CMakeLists.txt"
4349 (("(SET\\(PYTHON_MODULE_PATH.*)\\)" _ set)
4350 (string-append set " CACHE PATH "
4351 "\"Python bindings directory\")")))
4352 (delete-file-recursively "thirdparty")
4353 #t))))
4354 (build-system cmake-build-system)
4355 (native-inputs
4356 `(("pkg-config" ,pkg-config)
4357 ("python" ,python)
4358 ("swig" ,swig)
4359 ("unittest++" ,unittest-cpp)))
4360 (propagated-inputs ;all referenced in installed headers
4361 `(("cppzmq" ,cppzmq)
4362 ("ffmpeg" ,ffmpeg)
4363 ("imagemagick" ,imagemagick)
4364 ("jsoncpp" ,jsoncpp)
4365 ("libopenshot-audio" ,libopenshot-audio)
4366 ("qtbase" ,qtbase)
4367 ("qtmultimedia" ,qtmultimedia)
4368 ("zeromq" ,zeromq)))
4369 (arguments
4370 `(#:configure-flags
4371 (list (string-append "-DPYTHON_MODULE_PATH:PATH=" %output "/lib/python"
4372 ,(version-major+minor (package-version python))
4373 "/site-packages")
4374 "-DUSE_SYSTEM_JSONCPP:BOOL=ON")
4375 #:phases
4376 (modify-phases %standard-phases
4377 (add-before 'configure 'set-vars
4378 (lambda* (#:key inputs #:allow-other-keys)
4379 (setenv "LIBOPENSHOT_AUDIO_DIR"
4380 (assoc-ref inputs "libopenshot-audio"))
4381 (setenv "ZMQDIR"
4382 (assoc-ref inputs "zeromq"))
4383 (setenv "UNITTEST_DIR"
4384 (string-append (assoc-ref inputs "unittest++")
4385 "/include/UnitTest++"))
4386 #t)))))
4387 (home-page "https://openshot.org")
4388 (synopsis "Video-editing, animation, and playback library")
4389 (description "OpenShot Library (libopenshot) is a powerful C++ video
4390 editing library with a multi-threaded and feature rich video editing
4391 API. It includes bindings for Python, Ruby, and other languages.")
4392 (license license:lgpl3+)))
4393
4394 (define-public openshot
4395 (package
4396 (name "openshot")
4397 (version "2.5.1")
4398 (source (origin
4399 (method git-fetch)
4400 (uri (git-reference
4401 (url "https://github.com/OpenShot/openshot-qt")
4402 (commit (string-append "v" version))))
4403 (file-name (git-file-name name version))
4404 (sha256
4405 (base32
4406 "0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq"))
4407 (modules '((guix build utils)))
4408 (snippet
4409 '(begin
4410 ;; TODO: Unbundle jquery and others from src/timeline/media
4411 (delete-file-recursively "src/images/fonts") #t))))
4412 (build-system python-build-system)
4413 (inputs
4414 `(("ffmpeg" ,ffmpeg)
4415 ("font-ubuntu" ,font-ubuntu)
4416 ("libopenshot" ,libopenshot)
4417 ("python" ,python)
4418 ("python-pyqt" ,python-pyqt)
4419 ("python-pyzmq" ,python-pyzmq)
4420 ("python-requests" ,python-requests)
4421 ("qtsvg" ,qtsvg)))
4422 (arguments
4423 `(#:modules ((guix build python-build-system)
4424 (guix build qt-utils)
4425 (guix build utils))
4426 #:imported-modules (,@%python-build-system-modules
4427 (guix build qt-utils))
4428 #:phases (modify-phases %standard-phases
4429 (delete 'build) ;install phase does all the work
4430 (replace 'check
4431 (lambda _
4432 (setenv "QT_QPA_PLATFORM" "offscreen")
4433 (invoke "python" "src/tests/query_tests.py")))
4434 (add-after 'unpack 'patch-font-location
4435 (lambda* (#:key inputs #:allow-other-keys)
4436 (let ((font (assoc-ref inputs "font-ubuntu")))
4437 (substitute* "src/classes/app.py"
4438 (("info.IMAGES_PATH") (string-append "\"" font "\""))
4439 (("fonts") "share/fonts/truetype")))
4440 #t))
4441 (add-before 'install 'set-tmp-home
4442 (lambda _
4443 ;; src/classes/info.py "needs" to create several
4444 ;; directories in $HOME when loaded during build
4445 (setenv "HOME" "/tmp")
4446 #t))
4447 (add-after 'install 'wrap-program
4448 (lambda* (#:key outputs #:allow-other-keys)
4449 (let ((out (assoc-ref outputs "out")))
4450 (wrap-qt-program out "openshot-qt"))
4451 #t)))))
4452 (home-page "https://www.openshot.org/")
4453 (synopsis "Video editor")
4454 (description "OpenShot takes your videos, photos, and music files and
4455 helps you create the film you have always dreamed of. Easily add sub-titles,
4456 transitions, and effects and then export your film to many common formats.")
4457 (license license:gpl3+)))
4458
4459 (define-public dav1d
4460 (package
4461 (name "dav1d")
4462 (version "0.8.0")
4463 (source
4464 (origin
4465 (method git-fetch)
4466 (uri (git-reference
4467 (url "https://code.videolan.org/videolan/dav1d.git")
4468 (commit version)))
4469 (file-name (git-file-name name version))
4470 (sha256
4471 (base32
4472 "0mjn87xjdqv0q1gj4s4f6fdmsj504mhk4qmqiyrhq2rs7yqj4csv"))))
4473 (build-system meson-build-system)
4474 (native-inputs `(("nasm" ,nasm)))
4475 (home-page "https://code.videolan.org/videolan/dav1d")
4476 (synopsis "AV1 decoder")
4477 (description "dav1d is a new AV1 cross-platform decoder, and focused on
4478 speed and correctness.")
4479 (license license:bsd-2)))
4480
4481 (define-public wlstream
4482 (let ((commit "182076a94562b128c3a97ecc53cc68905ea86838")
4483 (revision "1"))
4484 (package
4485 (name "wlstream")
4486 (version (git-version "0.0" revision commit))
4487 (source
4488 (origin
4489 (method git-fetch)
4490 (uri (git-reference
4491 (url "https://github.com/atomnuker/wlstream")
4492 (commit commit)))
4493 (file-name (git-file-name name version))
4494 (sha256
4495 (base32
4496 "01qbcgfl3g9kfwn1jf1z9pdj3bvf5lmg71d1vwkcllc2az24bjqp"))))
4497 (build-system meson-build-system)
4498 (native-inputs `(("libdrm" ,libdrm)
4499 ("pkg-config" ,pkg-config)))
4500 (inputs `(("ffmpeg" ,ffmpeg)
4501 ("pulseaudio" ,pulseaudio)
4502 ("wayland" ,wayland)
4503 ("wayland-protocols" ,wayland-protocols)))
4504 (home-page "https://github.com/atomnuker/wlstream")
4505 (synopsis "Screen capture tool for Wayland sessions")
4506 (description "Wlstream is a screen capture tool for recording audio and
4507 video from a Wayland session.")
4508 (license license:lgpl2.1+))))
4509
4510 (define-public gaupol
4511 (package
4512 (name "gaupol")
4513 (version "1.8")
4514 (source (origin
4515 (method git-fetch)
4516 (uri (git-reference
4517 (url "https://github.com/otsaloma/gaupol/")
4518 (commit version)))
4519 (file-name (git-file-name name version))
4520 (sha256
4521 (base32
4522 "00wxdyja0m6l3yrynjgapa010lkwxpkv1xnnjbmrwi4ayhh5l3gg"))))
4523 (build-system python-build-system)
4524 (native-inputs
4525 `(("gettext" ,gettext-minimal)
4526 ("pkg-config" ,pkg-config)))
4527 (inputs
4528 `(("python-pygobject" ,python-pygobject)
4529 ("gtk+" ,gtk+)
4530 ("python-pycairo" ,python-pycairo) ; Required or else clicking on a subtitle line fails.
4531 ("python-chardet" ,python-chardet) ; Optional: Character encoding detection.
4532 ("gtkspell3" ,gtkspell3) ; Optional: Inline spell-checking.
4533 ("iso-codes" ,iso-codes) ; Optional: Translations.
4534 ("gstreamer" ,gstreamer)
4535 ("gst-libav" ,gst-libav)
4536 ("gst-plugins-base" ,gst-plugins-base)
4537 ("gst-plugins-good" ,gst-plugins-good)
4538 ("gst-plugins-bad" ,gst-plugins-bad)
4539 ("gst-plugins-ugly" ,gst-plugins-ugly)))
4540 (arguments
4541 `(#:tests? #f ; Tests seem to require networking.
4542 #:phases
4543 (modify-phases %standard-phases
4544 ;; gaupol's setup.py script does not support one of the Python build
4545 ;; system's default flags, "--single-version-externally-managed".
4546 (replace 'install
4547 (lambda* (#:key outputs #:allow-other-keys)
4548 (invoke "python" "setup.py" "install"
4549 (string-append "--prefix=" (assoc-ref outputs "out"))
4550 "--root=/")))
4551 (add-after 'install 'wrap-gaupol
4552 (lambda* (#:key outputs #:allow-other-keys)
4553 (let ((out (assoc-ref outputs "out"))
4554 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4555 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4556 (wrap-program (string-append out "/bin/gaupol")
4557 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
4558 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4559 #t))
4560 (add-after 'unpack 'patch-data-dir
4561 ;; Fix some path variables that setup.py seems to garble.
4562 (lambda* (#:key outputs #:allow-other-keys)
4563 (let ((out (assoc-ref outputs "out")))
4564 (substitute* "setup.py"
4565 (("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
4566 (string-append "DATA_DIR = '" out "/share/gaupol'\""))
4567 (("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
4568 (string-append "LOCALE_DIR = '" out "/share/locale'\"")))
4569 #t))))))
4570 (synopsis "Editor for text-based subtitles")
4571 (description
4572 "Gaupol supports multiple subtitle file formats and provides means of
4573 creating subtitles, editing texts and timing subtitles to match video. The
4574 user interface features a builtin video player and is designed with attention
4575 to convenience of translating and batch processing of multiple documents.")
4576 (home-page "https://otsaloma.io/gaupol/")
4577 (license license:gpl3+)))
4578
4579 (define-public theorafile
4580 (let ((commit "404b14d7602b5918d117eaa64e8aa6601ede8593"))
4581 (package
4582 (name "theorafile")
4583 (version (git-version "0.0.0" "1" commit))
4584 (source
4585 (origin
4586 (method git-fetch)
4587 (uri (git-reference
4588 (url "https://github.com/FNA-XNA/Theorafile")
4589 (commit commit)))
4590 (file-name (git-file-name name version))
4591 (sha256
4592 (base32 "128c3pjzqbgrj020glm5jd6ss18vl19471lj615w2brjwb7c1f0z"))))
4593 (build-system gnu-build-system)
4594 (arguments
4595 '(#:make-flags '("CC=gcc")
4596 #:phases
4597 (modify-phases %standard-phases
4598 (delete 'configure)
4599 (replace 'check
4600 (lambda _
4601 (setenv "CC" "gcc")
4602 (invoke "make" "test")))
4603 (replace 'install
4604 (lambda* (#:key outputs #:allow-other-keys)
4605 (let ((out (assoc-ref outputs "out")))
4606 (install-file "libtheorafile.so" (string-append out "/lib"))
4607 (install-file "theorafile.h" (string-append out "/include")))
4608 #t)))))
4609 (native-inputs
4610 ;; For tests.
4611 `(("sdl2" ,sdl2)))
4612 (home-page "https://github.com/FNA-XNA/Theorafile")
4613 (synopsis "Ogg Theora Video Decoder Library")
4614 (description "Theorafile is a library for quickly and easily decoding Ogg
4615 Theora videos. Theorafile was written to be used for FNA's VideoPlayer.")
4616 (license license:zlib))))
4617
4618 (define-public dvdbackup
4619 (package
4620 (name "dvdbackup")
4621 (version "0.4.2")
4622 (source
4623 (origin
4624 (method url-fetch)
4625 (uri (string-append "mirror://sourceforge/dvdbackup/dvdbackup/"
4626 "dvdbackup-" version "/"
4627 "dvdbackup-" version ".tar.xz"))
4628 (sha256
4629 (base32 "1rl3h7waqja8blmbpmwy01q9fgr5r0c32b8dy3pbf59bp3xmd37g"))))
4630 (build-system gnu-build-system)
4631 (inputs
4632 `(("libdvdcss" ,libdvdcss)
4633 ("libdvdread" ,libdvdread)))
4634 (home-page "http://dvdbackup.sourceforge.net")
4635 (synopsis "DVD video ripper")
4636 (description
4637 "A simple command line tool to backup video from a DVD. Decrypts the
4638 DVD using @command{libdvdcss}, but does @strong{not} demux, remux,
4639 transcode or reformat the videos in any way, producing perfect backups.")
4640 (license license:gpl3+)))
4641
4642 (define-public svt-av1
4643 (package
4644 (name "svt-av1")
4645 (version "0.8.6")
4646 (source
4647 (origin
4648 (method git-fetch)
4649 (uri (git-reference
4650 (url "https://github.com/OpenVisualCloud/SVT-AV1")
4651 (commit (string-append "v" version))))
4652 (file-name (git-file-name name version))
4653 (sha256
4654 (base32 "1wzamg89azi1f93wxvdy7silsgklckc754ca066k33drvyacicyw"))))
4655 (build-system cmake-build-system)
4656 ;; SVT-AV1 only supports Intel-compatible CPUs.
4657 (supported-systems '("x86_64-linux" "i686-linux"))
4658 (arguments
4659 ;; The test suite tries to download test data and git clone a 3rd-party
4660 ;; fork of libaom. Skip it.
4661 `(#:tests? #f
4662 #:phases
4663 (modify-phases %standard-phases
4664 (add-after 'install 'install-documentation
4665 (lambda* (#:key outputs #:allow-other-keys)
4666 (let* ((out (assoc-ref %outputs "out"))
4667 (doc (string-append out "/share/doc/svt-av1-" ,version)))
4668 (copy-recursively "../source/Docs" doc)
4669 #t))))))
4670 (native-inputs
4671 `(("yasm" ,yasm)))
4672 (synopsis "AV1 video codec")
4673 (description "SVT-AV1 is an AV1 codec implementation. The encoder is a
4674 work-in-progress, aiming to support video-on-demand and live streaming
4675 applications. It only supports Intel-compatible CPUs (x86).")
4676 (home-page "https://github.com/OpenVisualCloud/SVT-AV1")
4677 (license license:bsd-2)))
4678
4679 (define-public svt-vp9
4680 (package
4681 (name "svt-vp9")
4682 (version "0.3.0")
4683 (source (origin
4684 (method git-fetch)
4685 (uri (git-reference
4686 (url "https://github.com/OpenVisualCloud/SVT-VP9")
4687 (commit (string-append "v" version))))
4688 (file-name (git-file-name name version))
4689 (sha256
4690 (base32
4691 "1ypdiw4cq22llvm8jyszxdq6r1aydkj80dsxjarjn5b7c1f2q3ar"))))
4692 ;; SVT-AV1 only supports 64-bit Intel-compatible CPUs.
4693 (supported-systems '("x86_64-linux"))
4694 (build-system cmake-build-system)
4695 (arguments
4696 `(#:tests? #f ; No test suite
4697 #:phases
4698 (modify-phases %standard-phases
4699 (add-after 'install 'install-documentation
4700 (lambda* (#:key outputs #:allow-other-keys)
4701 (let* ((out (assoc-ref %outputs "out"))
4702 (doc (string-append out "/share/doc/" ,name "-" ,version)))
4703 (copy-recursively "../source/Docs" doc)
4704 #t))))))
4705 (native-inputs
4706 `(("yasm" ,yasm)))
4707 (home-page "https://github.com/OpenVisualCloud/SVT-VP9")
4708 (synopsis "VP9 video encoder")
4709 (description "SVT-VP9 is a VP9 video encoder implementation. It is focused
4710 on supporting video-on-demand and live encoding on Intel Xeon processors.")
4711 (license license:bsd-2)))
4712
4713 (define-public w-scan
4714 (package
4715 (name "w-scan")
4716 (version "20170107")
4717 (source
4718 (origin
4719 (method url-fetch)
4720 (uri (string-append "https://www.gen2vdr.de/wirbel/w_scan/w_scan-"
4721 version ".tar.bz2"))
4722 (sha256
4723 (base32 "1zkgnj2sfvckix360wwk1v5s43g69snm45m0drnzyv7hgf5g7q1q"))))
4724 (build-system gnu-build-system)
4725 (synopsis "Scan ATSC/DVB-C/DVB-S/DVB-T channels")
4726 (description
4727 "This is a small command line utility used to perform frequency scans for
4728 DVB and ATSC transmissions without initial tuning data. It can print the
4729 result in several formats:
4730 @itemize
4731 @item VDR channels.conf,
4732 @item czap/tzap/xine/mplayer channels.conf,
4733 @item Gstreamer dvbsrc plugin,
4734 @item VLC xspf playlist,
4735 @item XML,
4736 @item initial tuning data for scan or dvbv5-scan.
4737 @end itemize\n")
4738 (home-page "https://www.gen2vdr.de/wirbel/w_scan/index2.html")
4739 (license license:gpl2+)))
4740
4741 (define-public rav1e
4742 (package
4743 (name "rav1e")
4744 (version "0.3.4")
4745 (source
4746 (origin
4747 (method url-fetch)
4748 (uri (crate-uri "rav1e" version))
4749 (file-name
4750 (string-append name "-" version ".tar.gz"))
4751 (sha256
4752 (base32
4753 "1mx6jlx2rdhmyh68h9h34kn9ssa7lv0y97j8fd9qm7qhs2q1n0cj"))))
4754 (build-system cargo-build-system)
4755 (arguments
4756 `(#:cargo-inputs
4757 (("rust-aom-sys" ,rust-aom-sys-0.2)
4758 ("rust-arbitrary" ,rust-arbitrary-0.2)
4759 ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3)
4760 ("rust-arrayvec" ,rust-arrayvec-0.5)
4761 ("rust-backtrace" ,rust-backtrace-0.3)
4762 ("rust-bitstream-io" ,rust-bitstream-io-0.8)
4763 ("rust-byteorder" ,rust-byteorder-1)
4764 ("rust-cc" ,rust-cc-1)
4765 ("rust-cfg-if" ,rust-cfg-if-0.1)
4766 ("rust-clap" ,rust-clap-2)
4767 ("rust-console" ,rust-console-0.11)
4768 ("rust-dav1d-sys" ,rust-dav1d-sys-0.3)
4769 ("rust-fern" ,rust-fern-0.6)
4770 ("rust-image" ,rust-image-0.23)
4771 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4772 ("rust-itertools" ,rust-itertools-0.9)
4773 ("rust-ivf" ,rust-ivf-0.1)
4774 ("rust-libc" ,rust-libc-0.2)
4775 ("rust-log" ,rust-log-0.4)
4776 ("rust-nasm-rs" ,rust-nasm-rs-0.2)
4777 ("rust-noop-proc-macro" ,rust-noop-proc-macro-0.2)
4778 ("rust-num-derive" ,rust-num-derive-0.3)
4779 ("rust-num-traits" ,rust-num-traits-0.2)
4780 ("rust-paste" ,rust-paste-0.1)
4781 ("rust-rand" ,rust-rand-0.7)
4782 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4783 ("rust-rayon" ,rust-rayon-1)
4784 ("rust-rust-hawktracer" ,rust-rust-hawktracer-0.7)
4785 ("rust-rustc-version" ,rust-rustc-version-0.2)
4786 ("rust-scan-fmt" ,rust-scan-fmt-0.2)
4787 ("rust-serde" ,rust-serde-1)
4788 ("rust-signal-hook" ,rust-signal-hook-0.1)
4789 ("rust-simd-helpers" ,rust-simd-helpers-0.1)
4790 ("rust-thiserror" ,rust-thiserror-1)
4791 ("rust-toml" ,rust-toml-0.5)
4792 ("rust-vergen" ,rust-vergen-3.1)
4793 ("rust-y4m" ,rust-y4m-0.5))
4794 #:cargo-development-inputs
4795 (("rust-assert-cmd" ,rust-assert-cmd-1)
4796 ("rust-criterion" ,rust-criterion-0.3)
4797 ("rust-interpolate-name" ,rust-interpolate-name-0.2)
4798 ("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
4799 ("rust-rand" ,rust-rand-0.7)
4800 ("rust-rand-chacha" ,rust-rand-chacha-0.2)
4801 ("rust-semver" ,rust-semver-0.9))
4802 #:phases
4803 (modify-phases %standard-phases
4804 (replace 'build
4805 (lambda* (#:key outputs #:allow-other-keys)
4806 (let ((out (assoc-ref outputs "out")))
4807 (invoke "cargo" "cinstall" "--release"
4808 (string-append "--prefix=" out))))))))
4809 (native-inputs
4810 `(("cargo-c" ,rust-cargo-c)))
4811 (inputs
4812 `(("nasm" ,nasm)))
4813 (home-page "https://github.com/xiph/rav1e/")
4814 (synopsis "The fastest and safest AV1 encoder")
4815 (description
4816 "The fastest and safest AV1 encoder.")
4817 (license license:bsd-2)))
4818
4819 (define-public peek
4820 (package
4821 (name "peek")
4822 (version "1.5.1")
4823 (source
4824 (origin
4825 (method git-fetch)
4826 (uri (git-reference
4827 (url "https://github.com/phw/peek")
4828 (commit version)))
4829 (file-name (git-file-name name version))
4830 (sha256
4831 (base32 "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x"))))
4832 (build-system meson-build-system)
4833 (arguments '(#:glib-or-gtk? #t))
4834 (inputs
4835 `(("gtk+" ,gtk+)))
4836 (native-inputs
4837 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4838 ("gettext" ,gettext-minimal)
4839 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4840 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
4841 ("pkg-config" ,pkg-config)
4842 ("vala" ,vala)))
4843 (home-page "https://github.com/phw/peek")
4844 (synopsis "Simple animated GIF screen recorder")
4845 (description
4846 "Peek makes it easy to create short screencasts of a screen area. It was
4847 built for the specific use case of recording screen areas, e.g. for easily
4848 showing UI features of your own apps or for showing a bug in bug reports.
4849 With Peek, you simply place the Peek window over the area you want to record
4850 and press \"Record\". Peek is optimized for generating animated GIFs, but you
4851 can also directly record to WebM or MP4 if you prefer.")
4852 (license license:gpl3+)))
4853
4854 (define-public wf-recorder
4855 (package
4856 (name "wf-recorder")
4857 (version "0.2.1")
4858 (source (origin
4859 (method git-fetch)
4860 (uri (git-reference
4861 (url "https://github.com/ammen99/wf-recorder")
4862 (commit (string-append "v" version))))
4863 (file-name (git-file-name name version))
4864 (sha256
4865 (base32
4866 "1cw6kpcbl33wh95pvy32xrsrm6kkk1awccr3phyh885xjs3b3iim"))))
4867 (build-system meson-build-system)
4868 (native-inputs
4869 `(("pkg-config" ,pkg-config)))
4870 (inputs
4871 `(("ffmpeg" ,ffmpeg)
4872 ("pulseaudio" ,pulseaudio)
4873 ("wayland" ,wayland)
4874 ("wayland-protocols" ,wayland-protocols)
4875 ("libx264" ,libx264)))
4876 (home-page "https://github.com/ammen99/wf-recorder")
4877 (synopsis "Screen recorder for wlroots-based compositors")
4878 (description
4879 "@code{wf-recorder} is a utility program for screen recording of
4880 wlroots-based compositors. More specifically, those that support
4881 @code{wlr-screencopy-v1} and @code{xdg-output}.")
4882 (license license:expat)))
4883
4884 (define-public guvcview
4885 (package
4886 (name "guvcview")
4887 (version "2.0.6")
4888 (source (origin
4889 (method url-fetch)
4890 (uri (string-append "mirror://sourceforge/guvcview/source/guvcview-"
4891 "src-" version ".tar.gz"))
4892 (sha256
4893 (base32
4894 "11byyfpkcik7wvf2qic77zjamfr2rhji97dpj1gy2fg1bvpiqf4m"))))
4895 (build-system gnu-build-system)
4896 (arguments
4897 ;; There are no tests and "make check" would fail on an intltool error.
4898 '(#:tests? #f))
4899 (native-inputs
4900 `(("pkg-config" ,pkg-config)
4901 ("intltool" ,intltool)))
4902 (inputs
4903 `(("gtk+" ,gtk+)
4904 ("eudev" ,eudev)
4905 ("libusb" ,libusb)
4906 ("v4l-utils" ,v4l-utils) ;libv4l2
4907 ("ffmpeg" ,ffmpeg) ;libavcodec, libavutil
4908 ("sdl2" ,sdl2)
4909 ("gsl" ,gsl)
4910 ("portaudio" ,portaudio)
4911 ("alsa-lib" ,alsa-lib)))
4912 (home-page "http://guvcview.sourceforge.net/")
4913 (synopsis "Control your webcam and capture videos and images")
4914 (description
4915 "GTK+ UVC Viewer (guvcview) is a graphical application to control a
4916 webcam accessible with Video4Linux (V4L2) and to capture videos and images.
4917 It provides control over precise settings of the webcam such as exposure,
4918 brightness, contrast, and frame rate.")
4919
4920 ;; 'COPYING' is GPLv3 but source headers say GPLv2+.
4921 (license license:gpl2+)))
4922
4923 (define-public get-iplayer
4924 (package
4925 (name "get-iplayer")
4926 (version "3.26")
4927 (source
4928 (origin
4929 (method git-fetch)
4930 (uri (git-reference
4931 (url "https://github.com/get-iplayer/get_iplayer")
4932 (commit (string-append "v" version))))
4933 (file-name (git-file-name name version))
4934 (sha256
4935 (base32
4936 "0lsz5hz1ia5j612540rb0f31y7j2k5gf7x5i43l8k06b90wi73d6"))))
4937 (build-system perl-build-system)
4938 (arguments
4939 `(#:tests? #f ; no tests
4940 #:phases
4941 (modify-phases %standard-phases
4942 (delete 'configure)
4943 (delete 'build)
4944 (replace 'install
4945 (lambda* (#:key outputs #:allow-other-keys)
4946 (let* ((out (assoc-ref outputs "out"))
4947 (bin (string-append out "/bin"))
4948 (man (string-append out "/share/man/man1")))
4949 (install-file "get_iplayer" bin)
4950 (install-file "get_iplayer.cgi" bin)
4951 (install-file "get_iplayer.1" man))
4952 #t))
4953 (add-after 'install 'wrap-program
4954 (lambda* (#:key inputs outputs #:allow-other-keys)
4955 (let* ((out (assoc-ref outputs "out"))
4956 (perllib (string-append out "/lib/perl5/site_perl/"
4957 ,(package-version perl))))
4958 (wrap-program (string-append out "/bin/get_iplayer")
4959 `("PERL5LIB" ":"
4960 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
4961 (wrap-program (string-append out "/bin/get_iplayer.cgi")
4962 `("PERL5LIB" ":"
4963 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
4964 #t))))))
4965 (inputs
4966 `(("perl-mojolicious" ,perl-mojolicious)
4967 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4968 ("perl-xml-libxml" ,perl-xml-libxml)))
4969 (home-page "https://github.com/get-iplayer/get_iplayer")
4970 (synopsis "Download or stream available BBC iPlayer TV and radio programmes")
4971 (description "@code{get_iplayer} lists, searches and records BBC iPlayer
4972 TV/Radio, BBC Podcast programmes. Other third-party plugins may be available.
4973 @code{get_iplayer} has three modes: recording a complete programme for later
4974 playback, streaming a programme directly to a playback application, such as
4975 mplayer; and as a @dfn{Personal Video Recorder} (PVR), subscribing to search
4976 terms and recording programmes automatically. It can also stream or record live
4977 BBC iPlayer output.")
4978 (license license:gpl3+)))
4979
4980 (define-public ogmtools
4981 (package
4982 (name "ogmtools")
4983 (version "1.5")
4984 (source (origin
4985 (method url-fetch)
4986 (uri (string-append "https://www.bunkus.org/videotools/ogmtools/ogmtools-"
4987 version
4988 ".tar.bz2"))
4989 (sha256
4990 (base32
4991 "1spx81p5wf59ksl3r3gvf78d77sh7gj8a6lw773iv67bphfivmn8"))))
4992 (build-system gnu-build-system)
4993 (inputs
4994 `(("libvorbis" ,libvorbis)
4995 ("libdvdread" ,libdvdread)))
4996 (synopsis "Information, extraction or creation for OGG media streams")
4997 (description
4998 "These tools allow information about (@code{ogminfo}) or extraction from
4999 \(@code{ogmdemux}) or creation of (@code{ogmmerge}) OGG media streams. It
5000 includes @code{dvdxchap} tool for extracting chapter information from DVD.")
5001 (license license:gpl2)
5002 (home-page "https://www.bunkus.org/videotools/ogmtools/")))
5003
5004 (define-public libcaption
5005 (package
5006 (name "libcaption")
5007 (version "0.7")
5008 (source (origin
5009 (method git-fetch)
5010 (uri (git-reference
5011 (url "https://github.com/szatmary/libcaption")
5012 (commit version)))
5013 (file-name (git-file-name name version))
5014 (sha256
5015 (base32
5016 "16mhw8wpl7wdjj4n7rd1c294p1r8r322plj7z91crla5aah726rq"))))
5017 (build-system cmake-build-system)
5018 (arguments
5019 `(#:tests? #f ; Cannot figure out how to run the unit tests
5020 #:configure-flags '("-DENABLE_RE2C=ON")))
5021 (native-inputs
5022 `(("re2c" ,re2c)))
5023 (synopsis "CEA608 / CEA708 closed-caption codec")
5024 (description "Libcaption creates and parses closed-caption data,
5025 providing an encoder / decoder for the EIA608 and CEA708 closed-caption
5026 standards.
5027
5028 608 support is currently limited to encoding and decoding the necessary control
5029 and preamble codes as well as support for the Basic North American, Special
5030 North American and Extended Western European character sets.
5031
5032 708 support is limited to encoding the 608 data in NTSC field 1 user data type
5033 structure.
5034
5035 In addition, utility functions to create h.264 SEI (Supplementary enhancement
5036 information) NALUs (Network Abstraction Layer Unit) for inclusion into an h.264
5037 elementary stream are provided.")
5038 (home-page "https://github.com/szatmary/libcaption")
5039 (license license:expat)))