| 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 Mark H Weaver <mhw@netris.org> |
| 5 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
| 6 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| 7 | ;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca> |
| 8 | ;;; Copyright © 2015, 2018, 2019 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 ng0 <ng0@n0.is> |
| 15 | ;;; Copyright © 2016, 2018, 2019 Eric Bavier <bavier@member.fsf.org> |
| 16 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> |
| 17 | ;;; Copyright © 2017 Feng Shu <tumashu@163.com> |
| 18 | ;;; Copyright © 2017, 2018, 2019 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 Marius Bakke <mbakke@fastmail.com> |
| 27 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
| 28 | ;;; Copyright © 2018, 2019 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 | ;;; |
| 38 | ;;; This file is part of GNU Guix. |
| 39 | ;;; |
| 40 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 41 | ;;; under the terms of the GNU General Public License as published by |
| 42 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 43 | ;;; your option) any later version. |
| 44 | ;;; |
| 45 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 46 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 47 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 48 | ;;; GNU General Public License for more details. |
| 49 | ;;; |
| 50 | ;;; You should have received a copy of the GNU General Public License |
| 51 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 52 | |
| 53 | (define-module (gnu packages video) |
| 54 | #:use-module (ice-9 match) |
| 55 | #:use-module (srfi srfi-1) |
| 56 | #:use-module (srfi srfi-26) |
| 57 | #:use-module ((guix licenses) #:prefix license:) |
| 58 | #:use-module (guix utils) |
| 59 | #:use-module (guix packages) |
| 60 | #:use-module (guix download) |
| 61 | #:use-module (guix git-download) |
| 62 | #:use-module (guix svn-download) |
| 63 | #:use-module (guix build-system cmake) |
| 64 | #:use-module (guix build-system gnu) |
| 65 | #:use-module (guix build-system glib-or-gtk) |
| 66 | #:use-module (guix build-system meson) |
| 67 | #:use-module (guix build-system perl) |
| 68 | #:use-module (guix build-system python) |
| 69 | #:use-module (guix build-system waf) |
| 70 | #:use-module (guix build-system trivial) |
| 71 | #:use-module (gnu packages) |
| 72 | #:use-module (gnu packages algebra) |
| 73 | #:use-module (gnu packages assembly) |
| 74 | #:use-module (gnu packages audio) |
| 75 | #:use-module (gnu packages autotools) |
| 76 | #:use-module (gnu packages avahi) |
| 77 | #:use-module (gnu packages backup) |
| 78 | #:use-module (gnu packages base) |
| 79 | #:use-module (gnu packages bison) |
| 80 | #:use-module (gnu packages boost) |
| 81 | #:use-module (gnu packages cdrom) |
| 82 | #:use-module (gnu packages check) |
| 83 | #:use-module (gnu packages cmake) |
| 84 | #:use-module (gnu packages compression) |
| 85 | #:use-module (gnu packages cpp) |
| 86 | #:use-module (gnu packages curl) |
| 87 | #:use-module (gnu packages dejagnu) |
| 88 | #:use-module (gnu packages dns) |
| 89 | #:use-module (gnu packages docbook) |
| 90 | #:use-module (gnu packages documentation) |
| 91 | #:use-module (gnu packages elf) |
| 92 | #:use-module (gnu packages file) |
| 93 | #:use-module (gnu packages flex) |
| 94 | #:use-module (gnu packages fonts) |
| 95 | #:use-module (gnu packages fontutils) |
| 96 | #:use-module (gnu packages freedesktop) |
| 97 | #:use-module (gnu packages fribidi) |
| 98 | #:use-module (gnu packages gettext) |
| 99 | #:use-module (gnu packages ghostscript) |
| 100 | #:use-module (gnu packages gl) |
| 101 | #:use-module (gnu packages glib) |
| 102 | #:use-module (gnu packages guile) |
| 103 | #:use-module (gnu packages gnome) |
| 104 | #:use-module (gnu packages gnunet) |
| 105 | #:use-module (gnu packages gnupg) |
| 106 | #:use-module (gnu packages gstreamer) |
| 107 | #:use-module (gnu packages gtk) |
| 108 | #:use-module (gnu packages image) |
| 109 | #:use-module (gnu packages imagemagick) |
| 110 | #:use-module (gnu packages iso-codes) |
| 111 | #:use-module (gnu packages libidn) |
| 112 | #:use-module (gnu packages libreoffice) |
| 113 | #:use-module (gnu packages linux) |
| 114 | #:use-module (gnu packages lua) |
| 115 | #:use-module (gnu packages m4) |
| 116 | #:use-module (gnu packages man) |
| 117 | #:use-module (gnu packages markup) |
| 118 | #:use-module (gnu packages mp3) |
| 119 | #:use-module (gnu packages ncurses) |
| 120 | #:use-module (gnu packages networking) |
| 121 | #:use-module (gnu packages ocr) |
| 122 | #:use-module (gnu packages perl) |
| 123 | #:use-module (gnu packages pkg-config) |
| 124 | #:use-module (gnu packages popt) |
| 125 | #:use-module (gnu packages pretty-print) |
| 126 | #:use-module (gnu packages protobuf) |
| 127 | #:use-module (gnu packages pulseaudio) |
| 128 | #:use-module (gnu packages python) |
| 129 | #:use-module (gnu packages python-crypto) |
| 130 | #:use-module (gnu packages python-web) |
| 131 | #:use-module (gnu packages python-xyz) |
| 132 | #:use-module (gnu packages qt) |
| 133 | #:use-module (gnu packages rdesktop) |
| 134 | #:use-module (gnu packages ruby) |
| 135 | #:use-module (gnu packages samba) |
| 136 | #:use-module (gnu packages sdl) |
| 137 | #:use-module (gnu packages serialization) |
| 138 | #:use-module (gnu packages shells) |
| 139 | #:use-module (gnu packages sqlite) |
| 140 | #:use-module (gnu packages ssh) |
| 141 | #:use-module (gnu packages swig) |
| 142 | #:use-module (gnu packages texinfo) |
| 143 | #:use-module (gnu packages textutils) |
| 144 | #:use-module (gnu packages tls) |
| 145 | #:use-module (gnu packages time) |
| 146 | #:use-module (gnu packages upnp) |
| 147 | #:use-module (gnu packages version-control) |
| 148 | #:use-module (gnu packages vulkan) |
| 149 | #:use-module (gnu packages web) |
| 150 | #:use-module (gnu packages webkit) |
| 151 | #:use-module (gnu packages wxwidgets) |
| 152 | #:use-module (gnu packages xdisorg) |
| 153 | #:use-module (gnu packages xiph) |
| 154 | #:use-module (gnu packages xml) |
| 155 | #:use-module (gnu packages xorg)) |
| 156 | |
| 157 | (define-public aalib |
| 158 | (package |
| 159 | (name "aalib") |
| 160 | (version "1.4rc5") |
| 161 | (source (origin |
| 162 | (method url-fetch) |
| 163 | (uri (string-append "mirror://sourceforge/aa-project/aa-lib/" |
| 164 | version "/" name "-" version ".tar.gz")) |
| 165 | (sha256 |
| 166 | (base32 |
| 167 | "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv")))) |
| 168 | (build-system gnu-build-system) |
| 169 | (native-inputs |
| 170 | `(("makeinfo" ,texinfo))) |
| 171 | (inputs |
| 172 | `(("ncurses" ,ncurses))) |
| 173 | (arguments |
| 174 | `(#:phases |
| 175 | (modify-phases %standard-phases |
| 176 | (replace 'configure |
| 177 | (lambda* (#:key build inputs outputs #:allow-other-keys) |
| 178 | ;; This old `configure' script doesn't support |
| 179 | ;; variables passed as arguments. |
| 180 | (let ((out (assoc-ref outputs "out")) |
| 181 | (ncurses (assoc-ref inputs "ncurses"))) |
| 182 | (setenv "CONFIG_SHELL" (which "bash")) |
| 183 | (invoke "./configure" |
| 184 | (string-append "--prefix=" out) |
| 185 | (string-append "--build=" build) |
| 186 | ;; The ancient config.guess is unable to |
| 187 | ;; guess the host triplet on mips64el. |
| 188 | ,@(if (string=? "mips64el-linux" |
| 189 | (%current-system)) |
| 190 | '("--host=mips64el-unknown-linux-gnu") |
| 191 | '()) |
| 192 | ;; The same is also true with aarch64. |
| 193 | ,@(if (string=? "aarch64-linux" |
| 194 | (%current-system)) |
| 195 | '("--host=aarch64-unknown-linux-gnu") |
| 196 | '()) |
| 197 | (string-append "--with-ncurses=" |
| 198 | ncurses)))))))) |
| 199 | (home-page "http://aa-project.sourceforge.net/aalib/") |
| 200 | (synopsis "ASCII-art library") |
| 201 | (description |
| 202 | "AA-lib is a low level gfx library which does not require graphics device. |
| 203 | In fact, there is no graphical output possible. AA-lib replaces those |
| 204 | old-fashioned output methods with powerful ascii-art renderer.") |
| 205 | (license license:lgpl2.0+))) |
| 206 | |
| 207 | (define-public liba52 |
| 208 | (package |
| 209 | (name "liba52") |
| 210 | (version "0.7.4") |
| 211 | (source (origin |
| 212 | (method url-fetch) |
| 213 | (uri (string-append |
| 214 | ;; A mirror://sourceforge URI doesn't work, presumably |
| 215 | ;; because the SourceForge project is misconfigured. |
| 216 | "http://liba52.sourceforge.net/files/a52dec-" version |
| 217 | ".tar.gz")) |
| 218 | (sha256 |
| 219 | (base32 |
| 220 | "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2")) |
| 221 | (patches (search-patches "liba52-enable-pic.patch" |
| 222 | "liba52-set-soname.patch" |
| 223 | "liba52-use-mtune-not-mcpu.patch" |
| 224 | "liba52-link-with-libm.patch")))) |
| 225 | (build-system gnu-build-system) |
| 226 | ;; XXX We need to run ./bootstrap because of the build system fixes above. |
| 227 | (native-inputs |
| 228 | `(("autoconf" ,autoconf) |
| 229 | ("automake" ,automake) |
| 230 | ("libtool" ,libtool))) |
| 231 | (arguments `(#:configure-flags '("--enable-shared") |
| 232 | #:phases |
| 233 | (modify-phases %standard-phases |
| 234 | ;; XXX We need to run ./bootstrap because of the build |
| 235 | ;; system fixes above. |
| 236 | (replace 'bootstrap |
| 237 | (lambda _ (invoke "sh" "bootstrap")))))) |
| 238 | (home-page "http://liba52.sourceforge.net/") |
| 239 | (synopsis "ATSC A/52 stream decoder") |
| 240 | (description "liba52 is a library for decoding ATSC A/52 streams. The |
| 241 | A/52 standard is used in a variety of applications, including digital |
| 242 | television and DVD. It is also known as AC-3.") |
| 243 | (license license:gpl2+))) |
| 244 | |
| 245 | (define-public libaom |
| 246 | ;; The 1.0.0-errata1 release installs a broken pkg-config .pc file. This |
| 247 | ;; is fixed in libaom commit 0ddc150, but we use an even later commit. |
| 248 | (let ((commit "22b150bf040608028a56d8bf39e72f771383d836") |
| 249 | (revision "0")) |
| 250 | (package |
| 251 | (name "libaom") |
| 252 | (version (git-version "1.0.0-errata1" revision commit)) |
| 253 | (source (origin |
| 254 | (method git-fetch) |
| 255 | (uri (git-reference |
| 256 | (url "https://aomedia.googlesource.com/aom/") |
| 257 | (commit commit))) |
| 258 | (file-name (git-file-name name version)) |
| 259 | (sha256 |
| 260 | (base32 |
| 261 | "1pdd5h3n42607n6qmggz4yv8izhjr2kl6knb3kh7gh4v0vy47h1r")))) |
| 262 | (build-system cmake-build-system) |
| 263 | (native-inputs |
| 264 | `(("perl" ,perl) |
| 265 | ("pkg-config" ,pkg-config) |
| 266 | ("python" ,python))) ; to detect the version |
| 267 | (arguments |
| 268 | `(#:tests? #f ;no check target |
| 269 | #:configure-flags |
| 270 | ;; build dynamic library |
| 271 | (list "-DBUILD_SHARED_LIBS=YES" |
| 272 | "-DENABLE_PIC=TRUE" |
| 273 | "-DAOM_TARGET_CPU=generic" |
| 274 | (string-append "-DCMAKE_INSTALL_PREFIX=" |
| 275 | (assoc-ref %outputs "out"))))) |
| 276 | (home-page "https://aomedia.googlesource.com/aom/") |
| 277 | (synopsis "AV1 video codec") |
| 278 | (description "Libaom is the reference implementation of AV1. It includes |
| 279 | a shared library and encoder and decoder command-line executables.") |
| 280 | (license license:bsd-2)))) |
| 281 | |
| 282 | (define-public libmpeg2 |
| 283 | (package |
| 284 | (name "libmpeg2") |
| 285 | (version "0.5.1") |
| 286 | (source (origin |
| 287 | (method url-fetch) |
| 288 | ;; A mirror://sourceforge URI doesn't work, presumably |
| 289 | ;; because the SourceForge project is misconfigured. |
| 290 | (uri (string-append "http://libmpeg2.sourceforge.net/files/" |
| 291 | name "-" version ".tar.gz")) |
| 292 | (sha256 |
| 293 | (base32 |
| 294 | "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny")))) |
| 295 | (inputs |
| 296 | `(("libx11" ,libx11) |
| 297 | ("libxext" ,libxext) |
| 298 | ("libxv" ,libxv) |
| 299 | ("libsm" ,libsm) |
| 300 | ("libice" ,libice) |
| 301 | ("sdl" ,sdl))) |
| 302 | (build-system gnu-build-system) |
| 303 | (home-page "http://libmpeg2.sourceforge.net/") |
| 304 | (synopsis "MPEG1 and MPEG2 video decoder library") |
| 305 | (description |
| 306 | "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.") |
| 307 | (license license:gpl2+))) |
| 308 | |
| 309 | (define-public libx264 |
| 310 | (package |
| 311 | (name "libx264") |
| 312 | (version "20180810-2245") |
| 313 | (source (origin |
| 314 | (method url-fetch) |
| 315 | (uri (string-append "https://download.videolan.org/pub/x264/snapshots/" |
| 316 | "x264-snapshot-" version "-stable.tar.bz2")) |
| 317 | (sha256 |
| 318 | (base32 |
| 319 | "0f25f39imas9pcqm7lnaa0shhjmf42hdx7jxzcnvxc7qsb7lh1bv")))) |
| 320 | (build-system gnu-build-system) |
| 321 | (native-inputs |
| 322 | `(("pkg-config" ,pkg-config) |
| 323 | ("nasm" ,nasm))) |
| 324 | ;; TODO: Add gpac input |
| 325 | (arguments |
| 326 | `(#:tests? #f ;no check target |
| 327 | #:configure-flags '("--enable-shared" |
| 328 | ;; Don't build the command-line program. If we |
| 329 | ;; want it later, we should do so in a different |
| 330 | ;; package to avoid a circular dependency (the x264 |
| 331 | ;; program depends on ffmpeg and ffmpeg depends on |
| 332 | ;; libx264). |
| 333 | "--disable-cli" |
| 334 | |
| 335 | ;; On MIPS, we must pass "--disable-asm" or else |
| 336 | ;; configure fails after printing: "You specified a |
| 337 | ;; pre-MSA CPU in your CFLAGS. If you really want |
| 338 | ;; to run on such a CPU, configure with |
| 339 | ;; --disable-asm." |
| 340 | ,@(if (string-prefix? "mips" |
| 341 | (or (%current-target-system) |
| 342 | (%current-system))) |
| 343 | '("--disable-asm") |
| 344 | '())))) |
| 345 | (home-page "https://www.videolan.org/developers/x264.html") |
| 346 | (synopsis "H.264 video coding library") |
| 347 | (description "libx264 is an advanced encoding library for creating |
| 348 | H.264 (MPEG-4 AVC) video streams.") |
| 349 | (license (list license:gpl2+ ;most files |
| 350 | license:isc ;common/x86/x86inc.asm |
| 351 | license:lgpl2.1+ ;extras/getopt.c |
| 352 | license:bsd-3 ;extras/inttypes.h |
| 353 | (license:non-copyleft ;extras/cl*.h |
| 354 | "file://extras/cl.h" |
| 355 | "See extras/cl.h in the distribution."))))) |
| 356 | |
| 357 | (define-public mkvtoolnix |
| 358 | (package |
| 359 | (name "mkvtoolnix") |
| 360 | (version "37.0.0") |
| 361 | (source |
| 362 | (origin |
| 363 | (method url-fetch) |
| 364 | (uri (string-append "https://mkvtoolnix.download/sources/" |
| 365 | "mkvtoolnix-" version ".tar.xz")) |
| 366 | (sha256 |
| 367 | (base32 "0r4d9318ymb9a0mkc0shi9p4kjy3m70s49v4f8dmjhvj63silhix")) |
| 368 | (modules '((guix build utils))) |
| 369 | (snippet '(begin |
| 370 | ;; Delete bundled libraries. |
| 371 | (for-each delete-file-recursively |
| 372 | '("lib/fmt" |
| 373 | "lib/libebml" |
| 374 | "lib/libmatroska" |
| 375 | "lib/nlohmann-json" |
| 376 | "lib/pugixml" |
| 377 | "lib/utf8-cpp")) |
| 378 | #t)))) |
| 379 | (build-system gnu-build-system) |
| 380 | (outputs '("out" "gui")) ; "mkvtoolnix-gui" brings the closure size from ~300 MB to 1.5+ GB. |
| 381 | (inputs |
| 382 | `(("boost" ,boost) |
| 383 | ("bzip2" ,bzip2) |
| 384 | ("cmark" ,cmark) |
| 385 | ("libebml" ,libebml) |
| 386 | ("file" ,file) |
| 387 | ("flac" ,flac) |
| 388 | ("fmt" ,fmt) |
| 389 | ("libmatroska" ,libmatroska) |
| 390 | ("libogg" ,libogg) |
| 391 | ("libvorbis" ,libvorbis) |
| 392 | ("lzo" ,lzo) |
| 393 | ("pugixml" ,pugixml) |
| 394 | ("qtbase" ,qtbase) |
| 395 | ("qtmultimedia" ,qtmultimedia) |
| 396 | ("utfcpp" ,utfcpp) |
| 397 | ("zlib" ,zlib))) |
| 398 | (native-inputs |
| 399 | `(("docbook-xsl" ,docbook-xsl) |
| 400 | ("gettext" ,gettext-minimal) |
| 401 | ("googletest" ,googletest) |
| 402 | ("libxslt" ,libxslt) |
| 403 | ("nlohmann-json-cpp" ,nlohmann-json-cpp) |
| 404 | ("perl" ,perl) |
| 405 | ("pkg-config" ,pkg-config) |
| 406 | ("po4a" ,po4a) |
| 407 | ("qttools" ,qttools) |
| 408 | ("ruby" ,ruby))) |
| 409 | (arguments |
| 410 | `(#:configure-flags |
| 411 | (list (string-append "--with-boost=" |
| 412 | (assoc-ref %build-inputs "boost")) |
| 413 | (string-append "--with-docbook-xsl-root=" |
| 414 | (assoc-ref %build-inputs "docbook-xsl") |
| 415 | "/xml/xsl/docbook-xsl-" |
| 416 | ,(package-version docbook-xsl)) |
| 417 | "--enable-update-check=no" |
| 418 | "--enable-precompiled-headers=no") |
| 419 | #:phases |
| 420 | (modify-phases %standard-phases |
| 421 | (add-after 'unpack 'patch-relative-file-names |
| 422 | (lambda* (#:key outputs #:allow-other-keys) |
| 423 | (let ((out (assoc-ref outputs "out"))) |
| 424 | (substitute* "src/mkvtoolnix-gui/util/settings.cpp" |
| 425 | (("mkvmerge" match) |
| 426 | (string-append out "/bin/" match))) |
| 427 | #t))) |
| 428 | (add-before 'configure 'add-googletest |
| 429 | (lambda* (#:key inputs #:allow-other-keys) |
| 430 | (symlink |
| 431 | (string-append (assoc-ref inputs "googletest") |
| 432 | "/include/gtest") "lib/gtest") |
| 433 | #t)) |
| 434 | (replace 'build |
| 435 | (lambda _ |
| 436 | (let ((-j (list "-j" (number->string (parallel-job-count))))) |
| 437 | (apply invoke "rake" -j)))) |
| 438 | (replace 'check |
| 439 | (lambda _ |
| 440 | (invoke "rake" "tests/unit"))) |
| 441 | (replace 'install |
| 442 | (lambda _ |
| 443 | (invoke "rake" "install"))) |
| 444 | (add-after 'install 'post-install |
| 445 | (lambda* (#:key outputs #:allow-other-keys) |
| 446 | ;; Move the Qt interface to "gui". |
| 447 | (let* ((out (assoc-ref outputs "out")) |
| 448 | (gui (assoc-ref outputs "gui")) |
| 449 | (strip-store-dir (lambda (path) |
| 450 | (substring path (string-prefix-length out path))))) |
| 451 | (for-each |
| 452 | (lambda (file) |
| 453 | (mkdir-p (string-append gui (dirname file))) |
| 454 | (rename-file (string-append out file) |
| 455 | (string-append gui file))) |
| 456 | (append '("/bin/mkvtoolnix-gui" |
| 457 | "/share/applications/org.bunkus.mkvtoolnix-gui.desktop" |
| 458 | "/share/metainfo/org.bunkus.mkvtoolnix-gui.appdata.xml" |
| 459 | "/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml") |
| 460 | (map strip-store-dir (find-files out "\\.ogg$")) |
| 461 | (map strip-store-dir (find-files out "mkvtoolnix-gui\\.png$")) |
| 462 | (map strip-store-dir (find-files out "mkvtoolnix-gui\\.1")))) |
| 463 | (for-each |
| 464 | (lambda (file) |
| 465 | (delete-file-recursively (string-append out file))) |
| 466 | '("/share/applications" |
| 467 | "/share/metainfo" |
| 468 | "/share/mime" |
| 469 | "/share/mkvtoolnix"))) |
| 470 | #t))))) |
| 471 | (home-page "https://mkvtoolnix.download") |
| 472 | (synopsis "Tools to create, alter and inspect Matroska files") |
| 473 | (description |
| 474 | "MKVToolNix provides tools for getting information about Matroska files |
| 475 | (@command{mkvinfo}), extracting tracks/data from Matroska files |
| 476 | (@command{mkvextract}), and creating Matroska files from other media files |
| 477 | (@command{mkvmerge}).") |
| 478 | (license license:gpl2))) |
| 479 | |
| 480 | (define-public x265 |
| 481 | (package |
| 482 | (name "x265") |
| 483 | (version "3.1.2") |
| 484 | (outputs '("out" "static")) |
| 485 | (source |
| 486 | (origin |
| 487 | (method url-fetch) |
| 488 | (uri (list (string-append "https://bitbucket.org/multicoreware/x265" |
| 489 | "/downloads/x265_" version ".tar.gz") |
| 490 | (string-append "https://download.videolan.org/videolan/x265/" |
| 491 | "x265_" version ".tar.gz"))) |
| 492 | (sha256 |
| 493 | (base32 |
| 494 | "1ajr59gjj47gnczfb2qhmzclj746pdiq9a1d81b0mq22k8f5yy3g")) |
| 495 | (patches (search-patches "x265-arm-flags.patch")) |
| 496 | (modules '((guix build utils))) |
| 497 | (snippet '(begin |
| 498 | (delete-file-recursively "source/compat/getopt") |
| 499 | #t)))) |
| 500 | (build-system cmake-build-system) |
| 501 | (arguments |
| 502 | `(#:tests? #f ; tests are skipped if cpu-optimized code isn't built |
| 503 | #:configure-flags |
| 504 | ;; Ensure position independent code for everyone. |
| 505 | (list "-DENABLE_PIC=TRUE" |
| 506 | ,@(if (string-prefix? "armhf" (or (%current-system) |
| 507 | (%current-target-system))) |
| 508 | '("-DENABLE_ASSEMBLY=OFF") |
| 509 | '()) |
| 510 | (string-append "-DCMAKE_INSTALL_PREFIX=" |
| 511 | (assoc-ref %outputs "out"))) |
| 512 | #:phases |
| 513 | (modify-phases %standard-phases |
| 514 | (add-after 'unpack 'prepare-build |
| 515 | (lambda _ |
| 516 | (delete-file-recursively "build") |
| 517 | (chdir "source") |
| 518 | ;; recognize armv8 in 32-bit mode as ARM |
| 519 | (substitute* "CMakeLists.txt" |
| 520 | (("armv6l") "armv8l")) |
| 521 | #t)) |
| 522 | (add-before 'configure 'build-12-bit |
| 523 | (lambda* (#:key (configure-flags '()) #:allow-other-keys) |
| 524 | (mkdir "../build-12bit") |
| 525 | (with-directory-excursion "../build-12bit" |
| 526 | (apply invoke |
| 527 | "cmake" "../source" |
| 528 | "-DHIGH_BIT_DEPTH=ON" |
| 529 | "-DEXPORT_C_API=OFF" |
| 530 | "-DENABLE_CLI=OFF" |
| 531 | "-DMAIN12=ON" |
| 532 | configure-flags) |
| 533 | (substitute* (cons "cmake_install.cmake" |
| 534 | (append |
| 535 | (find-files "CMakeFiles/x265-shared.dir" ".") |
| 536 | (find-files "CMakeFiles/x265-static.dir" "."))) |
| 537 | (("libx265") "libx265_main12")) |
| 538 | (invoke "make")))) |
| 539 | (add-before 'configure 'build-10-bit |
| 540 | (lambda* (#:key (configure-flags '()) #:allow-other-keys) |
| 541 | (mkdir "../build-10bit") |
| 542 | (with-directory-excursion "../build-10bit" |
| 543 | (apply invoke |
| 544 | "cmake" "../source" |
| 545 | "-DHIGH_BIT_DEPTH=ON" |
| 546 | "-DEXPORT_C_API=OFF" |
| 547 | "-DENABLE_CLI=OFF" |
| 548 | configure-flags) |
| 549 | (substitute* (cons "cmake_install.cmake" |
| 550 | (append |
| 551 | (find-files "CMakeFiles/x265-shared.dir" ".") |
| 552 | (find-files "CMakeFiles/x265-static.dir" "."))) |
| 553 | (("libx265") "libx265_main10")) |
| 554 | (invoke "make")))) |
| 555 | (add-after 'install 'install-more-libs |
| 556 | (lambda _ |
| 557 | (with-directory-excursion "../build-12bit" |
| 558 | (invoke "make" "install")) |
| 559 | (with-directory-excursion "../build-10bit" |
| 560 | (invoke "make" "install")))) |
| 561 | (add-before 'strip 'move-static-libs |
| 562 | (lambda* (#:key outputs #:allow-other-keys) |
| 563 | (let ((out (assoc-ref outputs "out")) |
| 564 | (static (assoc-ref outputs "static"))) |
| 565 | (mkdir-p (string-append static "/lib")) |
| 566 | (with-directory-excursion |
| 567 | (string-append out "/lib") |
| 568 | (for-each |
| 569 | (lambda (file) |
| 570 | (rename-file file |
| 571 | (string-append static "/lib/" file))) |
| 572 | (find-files "." "\\.a$")))) |
| 573 | #t))))) |
| 574 | (home-page "http://x265.org/") |
| 575 | (synopsis "Library for encoding h.265/HEVC video streams") |
| 576 | (description "x265 is a H.265 / HEVC video encoder application library, |
| 577 | designed to encode video or images into an H.265 / HEVC encoded bitstream.") |
| 578 | (license license:gpl2+))) |
| 579 | |
| 580 | (define-public libass |
| 581 | (package |
| 582 | (name "libass") |
| 583 | (version "0.14.0") |
| 584 | (source (origin |
| 585 | (method url-fetch) |
| 586 | (uri (string-append |
| 587 | "https://github.com/libass/libass/releases/download/" |
| 588 | version "/libass-" version ".tar.xz")) |
| 589 | (sha256 |
| 590 | (base32 |
| 591 | "18iqznl4mabhj9ywfsz4kwvbsplcv1jjxq50nxssvbj8my1267w8")))) |
| 592 | (build-system gnu-build-system) |
| 593 | (native-inputs |
| 594 | `(("pkg-config" ,pkg-config) |
| 595 | ("nasm" ,nasm))) |
| 596 | (propagated-inputs |
| 597 | `(("freetype" ,freetype) |
| 598 | ("fribidi" ,fribidi) |
| 599 | ("fontconfig" ,fontconfig) |
| 600 | ("harfbuzz" ,harfbuzz) |
| 601 | ("enca" ,enca))) |
| 602 | (home-page "https://github.com/libass/libass") |
| 603 | (synopsis "Subtitle rendering library for the ASS/SSA format") |
| 604 | (description "libass is a subtitle rendering library for the |
| 605 | ASS/SSA (Advanced Substation Alpha/SubStation Alpha) subtitle format.") |
| 606 | (license license:isc))) |
| 607 | |
| 608 | (define-public libcaca |
| 609 | (package |
| 610 | (name "libcaca") |
| 611 | (version "0.99.beta19") |
| 612 | (source (origin |
| 613 | (method url-fetch) |
| 614 | (uri (string-append "http://caca.zoy.org/files/libcaca/libcaca-" |
| 615 | version ".tar.gz")) |
| 616 | (sha256 |
| 617 | (base32 |
| 618 | "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj")))) |
| 619 | (build-system gnu-build-system) |
| 620 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 621 | (inputs |
| 622 | `(("freeglut" ,freeglut) |
| 623 | ("ftgl" ,ftgl) |
| 624 | ("imlib2" ,imlib2) |
| 625 | ("libx11" ,libx11) |
| 626 | ("mesa" ,mesa) |
| 627 | ("ncurses" ,ncurses) |
| 628 | ("zlib" ,zlib))) |
| 629 | (home-page "http://caca.zoy.org/wiki/libcaca") |
| 630 | (synopsis "Colour ASCII-art library") |
| 631 | (description "libcaca is a graphics library that outputs text instead of |
| 632 | pixels, so that it can work on older video cards or text terminals. It |
| 633 | supports Unicode, 2048 colors, dithering of color images, and advanced text |
| 634 | canvas operations.") |
| 635 | (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2 |
| 636 | |
| 637 | (define-public libdca |
| 638 | (package |
| 639 | (name "libdca") |
| 640 | (version "0.0.6") |
| 641 | (source (origin |
| 642 | (method url-fetch) |
| 643 | (uri (string-append |
| 644 | "https://download.videolan.org/pub/videolan/libdca/" |
| 645 | version "/libdca-" version ".tar.bz2")) |
| 646 | (sha256 |
| 647 | (base32 |
| 648 | "0h0zvcn97i9kyljdpifzi8in9xnw31fx3b3ggj96p8h0l2d8mycq")))) |
| 649 | (build-system gnu-build-system) |
| 650 | (home-page "https://www.videolan.org/developers/libdca.html") |
| 651 | (synopsis "DTS Coherent Acoustics decoder") |
| 652 | (description "libdca is a library for decoding DTS Coherent Acoustics |
| 653 | streams.") |
| 654 | (license license:gpl2+))) |
| 655 | |
| 656 | (define-public libdv |
| 657 | (package |
| 658 | (name "libdv") |
| 659 | (version "1.0.0") |
| 660 | (source (origin |
| 661 | (method url-fetch) |
| 662 | (uri (string-append |
| 663 | "mirror://sourceforge/" name "/" name "/" |
| 664 | version "/" name "-" version ".tar.gz")) |
| 665 | (sha256 |
| 666 | (base32 |
| 667 | "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3")))) |
| 668 | (build-system gnu-build-system) |
| 669 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 670 | (inputs `(("libxv" ,libxv))) |
| 671 | (home-page "http://libdv.sourceforge.net/") |
| 672 | (synopsis "DV video (IEC 61834 and SMPTE 314M) codec") |
| 673 | (description "The Quasar DV codec (libdv) is a software codec for DV |
| 674 | video, the encoding format used by most digital camcorders, typically those |
| 675 | that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv was |
| 676 | developed according to the official standards for DV video: IEC 61834 and |
| 677 | SMPTE 314M.") |
| 678 | (license license:lgpl2.1+))) |
| 679 | |
| 680 | (define-public libmatroska |
| 681 | (package |
| 682 | (name "libmatroska") |
| 683 | (version "1.5.2") |
| 684 | (source |
| 685 | (origin |
| 686 | (method url-fetch) |
| 687 | (uri (string-append "https://dl.matroska.org/downloads/" |
| 688 | "libmatroska/libmatroska-" version ".tar.xz")) |
| 689 | (sha256 |
| 690 | (base32 "0qn9lfs0877wbv581yxw2gywxywxpvwslc5q07q4f7bqpyzxxiha")))) |
| 691 | (build-system cmake-build-system) |
| 692 | (inputs |
| 693 | `(("libebml" ,libebml))) |
| 694 | (arguments |
| 695 | `(#:configure-flags |
| 696 | (list "-DBUILD_SHARED_LIBS=YES") |
| 697 | #:tests? #f)) ; no test suite |
| 698 | (home-page "https://www.matroska.org") |
| 699 | (synopsis "C++ library to parse Matroska files (.mkv and .mka)") |
| 700 | (description |
| 701 | "Matroska aims to become the standard of multimedia container formats. |
| 702 | It is based on @dfn{EBML} (Extensible Binary Meta Language), a binary derivative |
| 703 | of XML. EBML enables the Matroska Development Team to gain significant |
| 704 | advantages in terms of future format extensibility, without breaking file |
| 705 | support in old parsers. |
| 706 | libebml is a C++ library to read and write EBML files.") |
| 707 | (license license:lgpl2.1))) |
| 708 | |
| 709 | (define-public libva |
| 710 | (package |
| 711 | (name "libva") |
| 712 | (version "2.5.0") |
| 713 | (source |
| 714 | (origin |
| 715 | (method url-fetch) |
| 716 | (uri (list |
| 717 | ;; Newer releases are only available on GitHub. |
| 718 | (string-append "https://github.com/01org/libva/releases/download/" |
| 719 | version "/libva-" version ".tar.bz2") |
| 720 | ;; Keep the old URL around for compatibility. |
| 721 | (string-append "https://www.freedesktop.org/software/vaapi/releases/" |
| 722 | "libva/libva-" version "/libva-" version ".tar.bz2"))) |
| 723 | (sha256 |
| 724 | (base32 "0y38mw1ggxm15zq06r4qpwhd5wx4bppw1rsxpr6sq1m5d79rra1s")))) |
| 725 | (build-system gnu-build-system) |
| 726 | (native-inputs |
| 727 | `(("pkg-config" ,pkg-config))) |
| 728 | (inputs |
| 729 | `(("libdrm" ,libdrm) |
| 730 | ("libx11" ,libx11) |
| 731 | ("libxext" ,libxext) |
| 732 | ("libxfixes" ,libxfixes) |
| 733 | ("mesa" ,mesa) |
| 734 | ("wayland" ,wayland))) |
| 735 | (arguments |
| 736 | `(#:phases |
| 737 | (modify-phases %standard-phases |
| 738 | (add-before |
| 739 | 'build 'fix-dlopen-paths |
| 740 | (lambda* (#:key outputs #:allow-other-keys) |
| 741 | (let ((out (assoc-ref outputs "out"))) |
| 742 | (substitute* "va/drm/va_drm_auth_x11.c" |
| 743 | (("\"libva-x11\\.so\\.%d\"") |
| 744 | (string-append "\"" out "/lib/libva-x11.so.%d\""))) |
| 745 | #t)))) |
| 746 | ;; Most drivers are in mesa's $prefix/lib/dri, so use that. (Can be |
| 747 | ;; overridden at run-time via LIBVA_DRIVERS_PATH.) |
| 748 | #:configure-flags |
| 749 | (list (string-append "--with-drivers-path=" |
| 750 | (assoc-ref %build-inputs "mesa") "/lib/dri")) |
| 751 | ;; However, we can't write to mesa's store directory, so override the |
| 752 | ;; following make variable to install the dummy driver to libva's |
| 753 | ;; $prefix/lib/dri directory. |
| 754 | #:make-flags |
| 755 | (list (string-append "dummy_drv_video_ladir=" |
| 756 | (assoc-ref %outputs "out") "/lib/dri")))) |
| 757 | (home-page "https://www.freedesktop.org/wiki/Software/vaapi/") |
| 758 | (synopsis "Video acceleration library") |
| 759 | (description "The main motivation for VA-API (Video Acceleration API) is |
| 760 | to enable hardware accelerated video decode/encode at various |
| 761 | entry-points (VLD, IDCT, Motion Compensation etc.) for prevailing coding |
| 762 | standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).") |
| 763 | (license license:expat))) |
| 764 | |
| 765 | (define-public libva-utils |
| 766 | (package |
| 767 | (name "libva-utils") |
| 768 | (version "2.5.0") |
| 769 | (source |
| 770 | (origin |
| 771 | (method url-fetch) |
| 772 | (uri (string-append "https://github.com/intel/libva-utils/releases/download/" |
| 773 | version "/libva-utils-" version ".tar.bz2")) |
| 774 | (sha256 |
| 775 | (base32 "05rasyqnsg522zqxak1q8rrm1hys7wwbi41kd0szjq0d27awjf4j")))) |
| 776 | (build-system gnu-build-system) |
| 777 | (arguments |
| 778 | `(#:configure-flags |
| 779 | (list "--enable-wayland" |
| 780 | "--enable-x11"))) |
| 781 | (native-inputs |
| 782 | `(("pkg-config" ,pkg-config))) |
| 783 | (inputs |
| 784 | `(("libdrm" ,libdrm) |
| 785 | ("libva" ,libva) |
| 786 | ("libx11" ,libx11) |
| 787 | ("mesa" ,mesa) |
| 788 | ("wayland" ,wayland))) |
| 789 | (home-page "https://01.org/linuxmedia/vaapi") |
| 790 | (synopsis "Collection of testing utilities for VA-API") |
| 791 | (description |
| 792 | "This is a collection of utilities to query and test the @acronym{VA-API, |
| 793 | Video Acceleration API} implemented by the libva library. |
| 794 | |
| 795 | These tools require a supported graphics chip, driver, and VA-API back end to |
| 796 | operate properly.") |
| 797 | (license license:expat))) |
| 798 | |
| 799 | (define-public ffmpeg |
| 800 | (package |
| 801 | (name "ffmpeg") |
| 802 | (version "4.2") |
| 803 | (source (origin |
| 804 | (method url-fetch) |
| 805 | (uri (string-append "https://ffmpeg.org/releases/ffmpeg-" |
| 806 | version ".tar.xz")) |
| 807 | (sha256 |
| 808 | (base32 |
| 809 | "1mgcxm7sqkajx35px05szsmn9mawwm03cfpmk3br7bcp3a1i0gq2")))) |
| 810 | (build-system gnu-build-system) |
| 811 | (inputs |
| 812 | `(("dav1d" ,dav1d) |
| 813 | ("fontconfig" ,fontconfig) |
| 814 | ("freetype" ,freetype) |
| 815 | ("frei0r-plugins" ,frei0r-plugins) |
| 816 | ("gnutls" ,gnutls) |
| 817 | ("opus" ,opus) |
| 818 | ("ladspa" ,ladspa) |
| 819 | ("lame" ,lame) |
| 820 | ("libaom" ,libaom) |
| 821 | ("libass" ,libass) |
| 822 | ("libbluray" ,libbluray) |
| 823 | ("libcaca" ,libcaca) |
| 824 | ("libcdio-paranoia" ,libcdio-paranoia) |
| 825 | ("libdrm" ,libdrm) |
| 826 | ("libtheora" ,libtheora) |
| 827 | ("libva" ,libva) |
| 828 | ("libvdpau" ,libvdpau) |
| 829 | ("libvorbis" ,libvorbis) |
| 830 | ("libvpx" ,libvpx) |
| 831 | ("libx11" ,libx11) |
| 832 | ("libx264" ,libx264) |
| 833 | ("mesa" ,mesa) |
| 834 | ("openal" ,openal) |
| 835 | ("pulseaudio" ,pulseaudio) |
| 836 | ("sdl" ,sdl2) |
| 837 | ("soxr" ,soxr) |
| 838 | ("speex" ,speex) |
| 839 | ("twolame" ,twolame) |
| 840 | ("vidstab" ,vidstab) |
| 841 | ("x265" ,x265) |
| 842 | ("xvid" ,xvid) |
| 843 | ("zlib" ,zlib))) |
| 844 | (native-inputs |
| 845 | `(("bc" ,bc) |
| 846 | ("perl" ,perl) |
| 847 | ("pkg-config" ,pkg-config) |
| 848 | ("texinfo" ,texinfo) |
| 849 | ("python" ,python-2) ; scripts use interpreter python2 |
| 850 | ("speex" ,speex) |
| 851 | ("yasm" ,yasm))) |
| 852 | (arguments |
| 853 | `(#:test-target "fate" |
| 854 | #:configure-flags |
| 855 | ;; possible additional inputs: |
| 856 | ;; --enable-avisynth enable reading of AviSynth script |
| 857 | ;; files [no] |
| 858 | ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no] |
| 859 | ;; --enable-libcelt enable CELT decoding via libcelt [no] |
| 860 | ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 |
| 861 | ;; and libraw1394 [no] |
| 862 | ;; --enable-libfaac enable AAC encoding via libfaac [no] |
| 863 | ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] |
| 864 | ;; --enable-libflite enable flite (voice synthesis) support via |
| 865 | ;; libflite [no] |
| 866 | ;; --enable-libgme enable Game Music Emu via libgme [no] |
| 867 | ;; --enable-libgsm enable GSM de/encoding via libgsm [no] |
| 868 | ;; --enable-libiec61883 enable iec61883 via libiec61883 [no] |
| 869 | ;; --enable-libilbc enable iLBC de/encoding via libilbc [no] |
| 870 | ;; --enable-libmodplug enable ModPlug via libmodplug [no] |
| 871 | ;; --enable-libnut enable NUT (de)muxing via libnut, |
| 872 | ;; native (de)muxer exists [no] |
| 873 | ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via |
| 874 | ;; libopencore-amrnb [no] |
| 875 | ;; --enable-libopencore-amrwb enable AMR-WB decoding via |
| 876 | ;; libopencore-amrwb [no] |
| 877 | ;; --enable-libopencv enable video filtering via libopencv [no] |
| 878 | ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via |
| 879 | ;; OpenJPEG [no] |
| 880 | ;; --enable-librtmp enable RTMP[E] support via librtmp [no] |
| 881 | ;; --enable-libschroedinger enable Dirac de/encoding via |
| 882 | ;; libschroedinger [no] |
| 883 | ;; --enable-libshine enable fixed-point MP3 encoding via |
| 884 | ;; libshine [no] |
| 885 | ;; --enable-libssh enable SFTP protocol via libssh [no] |
| 886 | ;; (libssh2 does not work) |
| 887 | ;; --enable-libstagefright-h264 enable H.264 decoding via |
| 888 | ;; libstagefright [no] |
| 889 | ;; --enable-libutvideo enable Ut Video encoding and decoding via |
| 890 | ;; libutvideo [no] |
| 891 | ;; --enable-libv4l2 enable libv4l2/v4l-utils [no] |
| 892 | ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no] |
| 893 | ;; --enable-libvo-amrwbenc enable AMR-WB encoding via |
| 894 | ;; libvo-amrwbenc [no] |
| 895 | ;; --enable-libwavpack enable wavpack encoding via libwavpack [no] |
| 896 | ;; --enable-libxavs enable AVS encoding via xavs [no] |
| 897 | ;; --enable-libzmq enable message passing via libzmq [no] |
| 898 | ;; --enable-libzvbi enable teletext support via libzvbi [no] |
| 899 | ;; --enable-opencl enable OpenCL code |
| 900 | '("--enable-avresample" |
| 901 | "--enable-gpl" ; enable optional gpl licensed parts |
| 902 | "--enable-shared" |
| 903 | "--enable-frei0r" |
| 904 | "--enable-fontconfig" |
| 905 | "--enable-gnutls" |
| 906 | "--enable-ladspa" |
| 907 | "--enable-libaom" |
| 908 | "--enable-libass" |
| 909 | "--enable-libbluray" |
| 910 | "--enable-libcaca" |
| 911 | "--enable-libcdio" |
| 912 | "--enable-libdav1d" |
| 913 | "--enable-libfreetype" |
| 914 | "--enable-libmp3lame" |
| 915 | "--enable-libopus" |
| 916 | "--enable-libpulse" |
| 917 | "--enable-libsoxr" |
| 918 | "--enable-libspeex" |
| 919 | "--enable-libtheora" |
| 920 | "--enable-libtwolame" |
| 921 | "--enable-libvidstab" |
| 922 | "--enable-libvorbis" |
| 923 | "--enable-libvpx" |
| 924 | "--enable-libxvid" |
| 925 | "--enable-libx264" |
| 926 | "--enable-libx265" |
| 927 | "--enable-openal" |
| 928 | "--enable-opengl" |
| 929 | "--enable-libdrm" |
| 930 | |
| 931 | "--enable-runtime-cpudetect" |
| 932 | |
| 933 | ;; The HTML pages take 7.2 MiB |
| 934 | "--disable-htmlpages" |
| 935 | |
| 936 | ;; The static libraries are 23 MiB |
| 937 | "--disable-static" |
| 938 | |
| 939 | ;; Runtime cpu detection is not implemented on |
| 940 | ;; MIPS, so we disable some features. |
| 941 | "--disable-mips32r2" |
| 942 | "--disable-mipsdsp" |
| 943 | "--disable-mipsdspr2" |
| 944 | "--disable-mipsfpu") |
| 945 | #:phases |
| 946 | (modify-phases %standard-phases |
| 947 | (replace |
| 948 | 'configure |
| 949 | ;; configure does not work followed by "SHELL=..." and |
| 950 | ;; "CONFIG_SHELL=..."; set environment variables instead |
| 951 | (lambda* (#:key outputs configure-flags #:allow-other-keys) |
| 952 | (let ((out (assoc-ref outputs "out"))) |
| 953 | (substitute* "configure" |
| 954 | (("#! /bin/sh") (string-append "#!" (which "sh")))) |
| 955 | (setenv "SHELL" (which "bash")) |
| 956 | (setenv "CONFIG_SHELL" (which "bash")) |
| 957 | (apply invoke |
| 958 | "./configure" |
| 959 | (string-append "--prefix=" out) |
| 960 | ;; Add $libdir to the RUNPATH of all the binaries. |
| 961 | (string-append "--extra-ldflags=-Wl,-rpath=" |
| 962 | out "/lib") |
| 963 | configure-flags)))) |
| 964 | (add-before |
| 965 | 'check 'set-ld-library-path |
| 966 | (lambda _ |
| 967 | ;; Allow $(top_builddir)/ffmpeg to find its dependencies when |
| 968 | ;; running tests. |
| 969 | (let* ((dso (find-files "." "\\.so$")) |
| 970 | (path (string-join (map dirname dso) ":"))) |
| 971 | (format #t "setting LD_LIBRARY_PATH to ~s~%" path) |
| 972 | (setenv "LD_LIBRARY_PATH" path) |
| 973 | #t)))))) |
| 974 | (home-page "https://www.ffmpeg.org/") |
| 975 | (synopsis "Audio and video framework") |
| 976 | (description "FFmpeg is a complete, cross-platform solution to record, |
| 977 | convert and stream audio and video. It includes the libavcodec |
| 978 | audio/video codec library.") |
| 979 | (license license:gpl2+))) |
| 980 | |
| 981 | (define-public ffmpeg-3.4 |
| 982 | (package |
| 983 | (inherit ffmpeg) |
| 984 | (version "3.4.6") |
| 985 | (source (origin |
| 986 | (method url-fetch) |
| 987 | (uri (string-append "https://ffmpeg.org/releases/ffmpeg-" |
| 988 | version ".tar.xz")) |
| 989 | (sha256 |
| 990 | (base32 |
| 991 | "0gmqbhg5jjcfanrxrl657zn12lzz73sfs8xwryfy7n9rn6f2fwim")))) |
| 992 | (arguments |
| 993 | (substitute-keyword-arguments (package-arguments ffmpeg) |
| 994 | ((#:configure-flags flags) |
| 995 | `(delete "--enable-libdav1d" (delete "--enable-libaom" |
| 996 | ,flags))))) |
| 997 | (inputs (alist-delete "dav1d" (alist-delete "libaom" |
| 998 | (package-inputs ffmpeg)))))) |
| 999 | |
| 1000 | (define-public ffmpeg-for-stepmania |
| 1001 | (hidden-package |
| 1002 | (package |
| 1003 | (inherit ffmpeg) |
| 1004 | (version "2.1.3") |
| 1005 | (source |
| 1006 | (origin |
| 1007 | (method git-fetch) |
| 1008 | (uri (git-reference |
| 1009 | (url "https://github.com/stepmania/ffmpeg.git") |
| 1010 | (commit "eda6effcabcf9c238e4635eb058d72371336e09b"))) |
| 1011 | (sha256 |
| 1012 | (base32 "1by8rmbva8mfrivdbbkr2gx4kga89zqygkd4cfjl76nr8mdcdamb")) |
| 1013 | (file-name (git-file-name "ffmpeg" version)))) |
| 1014 | (arguments |
| 1015 | (substitute-keyword-arguments (package-arguments ffmpeg) |
| 1016 | ((#:configure-flags flags) |
| 1017 | '(list "--disable-programs" |
| 1018 | "--disable-doc" |
| 1019 | "--disable-debug" |
| 1020 | "--disable-avdevice" |
| 1021 | "--disable-swresample" |
| 1022 | "--disable-postproc" |
| 1023 | "--disable-avfilter" |
| 1024 | "--disable-shared" |
| 1025 | "--enable-static")))) |
| 1026 | (inputs '())))) |
| 1027 | |
| 1028 | (define-public ffmpegthumbnailer |
| 1029 | (package |
| 1030 | (name "ffmpegthumbnailer") |
| 1031 | (version "2.2.0") |
| 1032 | (source (origin |
| 1033 | (method git-fetch) |
| 1034 | (uri (git-reference |
| 1035 | (url "https://github.com/dirkvdb/ffmpegthumbnailer.git") |
| 1036 | (commit version))) |
| 1037 | (file-name (git-file-name name version)) |
| 1038 | (sha256 |
| 1039 | (base32 |
| 1040 | "0kl8aa547icy9b05njps02a8sw4yn4f8fzs228kig247sn09s4cp")))) |
| 1041 | (build-system cmake-build-system) |
| 1042 | (native-inputs |
| 1043 | `(("pkg-config" ,pkg-config))) |
| 1044 | (inputs |
| 1045 | `(("ffmpeg" ,ffmpeg) |
| 1046 | ("libjpeg-turbo" ,libjpeg-turbo) |
| 1047 | ("libpng" ,libpng) |
| 1048 | ("gvfs" ,gvfs))) |
| 1049 | (arguments |
| 1050 | `(#:configure-flags (list "-DENABLE_GIO=ON" "-DENABLE_THUMBNAILER=ON"))) |
| 1051 | (home-page "https://github.com/dirkvdb/ffmpegthumbnailer") |
| 1052 | (synopsis "Create thumbnails from video files") |
| 1053 | (description "FFmpegthumbnailer is a lightweight video thumbnailer that |
| 1054 | can be used by file managers to create thumbnails for your video files. The |
| 1055 | thumbnailer uses ffmpeg to decode frames from the video files, so supported |
| 1056 | videoformats depend on the configuration flags of ffmpeg.") |
| 1057 | (license license:gpl2+))) |
| 1058 | |
| 1059 | (define-public vlc |
| 1060 | (package |
| 1061 | (name "vlc") |
| 1062 | (version "3.0.8") |
| 1063 | (source (origin |
| 1064 | (method url-fetch) |
| 1065 | (uri (string-append |
| 1066 | "https://download.videolan.org/pub/videolan/vlc/" |
| 1067 | (car (string-split version #\-)) |
| 1068 | "/vlc-" version ".tar.xz")) |
| 1069 | (sha256 |
| 1070 | (base32 |
| 1071 | "1xmxjpyzdhabchwncz6lvx3kzvl7fz9c42bkv3nbj68albs9w570")))) |
| 1072 | (build-system gnu-build-system) |
| 1073 | (native-inputs |
| 1074 | `(("flex" ,flex) |
| 1075 | ("bison" ,bison) |
| 1076 | ("gettext" ,gettext-minimal) |
| 1077 | ("git" ,git) ; needed for a test |
| 1078 | ("pkg-config" ,pkg-config))) |
| 1079 | ;; FIXME: Add optional inputs once available. |
| 1080 | (inputs |
| 1081 | `(("alsa-lib" ,alsa-lib) |
| 1082 | ("avahi" ,avahi) |
| 1083 | ("dbus" ,dbus) |
| 1084 | ("eudev" ,eudev) |
| 1085 | ("flac" ,flac) |
| 1086 | ("ffmpeg" ,ffmpeg) |
| 1087 | ("fontconfig" ,fontconfig) |
| 1088 | ("freetype" ,freetype) |
| 1089 | ("fribidi" ,fribidi) |
| 1090 | ("gnutls" ,gnutls) |
| 1091 | ("liba52" ,liba52) |
| 1092 | ("libarchive" ,libarchive) |
| 1093 | ("libass" ,libass) |
| 1094 | ("libavc1394" ,libavc1394) |
| 1095 | ("libbluray" ,libbluray) |
| 1096 | ("libcaca" ,libcaca) |
| 1097 | ("libcddb" ,libcddb) |
| 1098 | ("libdca" ,libdca) |
| 1099 | ("libdvbpsi" ,libdvbpsi) |
| 1100 | ("libdvdnav" ,libdvdnav) |
| 1101 | ("libdvdread" ,libdvdread) |
| 1102 | ("libebml" ,libebml) |
| 1103 | ("libgcrypt" ,libgcrypt) |
| 1104 | ("libidn" ,libidn) |
| 1105 | ("libkate" ,libkate) |
| 1106 | ("libmad" ,libmad) |
| 1107 | ("libmatroska" ,libmatroska) |
| 1108 | ("libmicrodns" ,libmicrodns) |
| 1109 | ("libmodplug" ,libmodplug) |
| 1110 | ("libmpeg2" ,libmpeg2) |
| 1111 | ("libogg" ,libogg) |
| 1112 | ("libpng" ,libpng) |
| 1113 | ("libraw1394" ,libraw1394) |
| 1114 | ("librsvg" ,librsvg) |
| 1115 | ("libsamplerate" ,libsamplerate) |
| 1116 | ("libsecret" ,libsecret) |
| 1117 | ("libssh2" ,libssh2) |
| 1118 | ("libupnp" ,libupnp) |
| 1119 | ("libva" ,libva) |
| 1120 | ("libvdpau" ,libvdpau) |
| 1121 | ("libvorbis" ,libvorbis) |
| 1122 | ("libvpx" ,libvpx) |
| 1123 | ("libtheora" ,libtheora) |
| 1124 | ("libx264" ,libx264) |
| 1125 | ("libxext" ,libxext) |
| 1126 | ("libxi" ,libxi) |
| 1127 | ("libxinerama" ,libxinerama) |
| 1128 | ("libxml2" ,libxml2) |
| 1129 | ("libxpm" ,libxpm) |
| 1130 | ("livemedia-utils" ,livemedia-utils) |
| 1131 | ("lua" ,lua-5.2) |
| 1132 | ("mesa" ,mesa) |
| 1133 | ("opus" ,opus) |
| 1134 | ("perl" ,perl) |
| 1135 | ("pulseaudio" ,pulseaudio) |
| 1136 | ("protobuf" ,protobuf) |
| 1137 | ("python" ,python-wrapper) |
| 1138 | ("qtbase" ,qtbase) |
| 1139 | ("qtsvg" ,qtsvg) |
| 1140 | ("qtx11extras" ,qtx11extras) |
| 1141 | ("samba" ,samba) |
| 1142 | ("sdl" ,sdl) |
| 1143 | ("sdl-image" ,sdl-image) |
| 1144 | ("speex" ,speex) |
| 1145 | ("speexdsp" ,speexdsp) |
| 1146 | ("taglib" ,taglib) |
| 1147 | ("twolame" ,twolame) |
| 1148 | ("unzip" ,unzip) |
| 1149 | ("wayland" ,wayland) |
| 1150 | ("wayland-protocols" ,wayland-protocols) |
| 1151 | ("x265" ,x265) |
| 1152 | ("xcb-util-keysyms" ,xcb-util-keysyms))) |
| 1153 | (arguments |
| 1154 | `(#:configure-flags |
| 1155 | `("CXXFLAGS=-std=gnu++11" |
| 1156 | "BUILDCC=gcc" |
| 1157 | ,(string-append "LDFLAGS=-Wl,-rpath -Wl," |
| 1158 | (assoc-ref %build-inputs "ffmpeg") |
| 1159 | "/lib")) ;needed for the tests |
| 1160 | |
| 1161 | #:phases |
| 1162 | (modify-phases %standard-phases |
| 1163 | (add-after 'unpack 'patch-source |
| 1164 | (lambda* (#:key inputs #:allow-other-keys) |
| 1165 | (let ((livemedia-utils (assoc-ref inputs "livemedia-utils"))) |
| 1166 | (substitute* "configure" |
| 1167 | (("LIVE555_PREFIX=\\$\\{LIVE555_PREFIX-\"/usr\"\\}") |
| 1168 | (string-append "LIVE555_PREFIX=" livemedia-utils))) |
| 1169 | ;; Some of the tests require using the display to test out VLC, |
| 1170 | ;; which fails in our sandboxed build system |
| 1171 | (substitute* "test/run_vlc.sh" |
| 1172 | (("./vlc --ignore-config") "echo")) |
| 1173 | |
| 1174 | ;; modules/text_renderer/freetype/text_layout.c uses a |
| 1175 | ;; now-deprecated interface 'fribidi_get_par_embedding_levels' |
| 1176 | ;; from fribidi.h, so for now we enable the use of deprecated |
| 1177 | ;; fribidi interfaces from this file. |
| 1178 | ;; FIXME: Try removing this for vlc >= 3.0.3. |
| 1179 | (substitute* "modules/text_renderer/freetype/text_layout.c" |
| 1180 | (("# define FRIBIDI_NO_DEPRECATED 1") "")) |
| 1181 | |
| 1182 | ;; Fix build with libssh2 > 1.8.0: |
| 1183 | ;; <https://trac.videolan.org/vlc/ticket/22060> |
| 1184 | ;; <https://git.videolan.org/?p=vlc.git;a=commit;h=11449b5cd8b415768e010d9b7c1d6ba3cea21f82> |
| 1185 | (substitute* "modules/access/sftp.c" |
| 1186 | (("010801") "010900")) |
| 1187 | #t))) |
| 1188 | (add-after 'strip 'regenerate-plugin-cache |
| 1189 | (lambda* (#:key outputs #:allow-other-keys) |
| 1190 | ;; The 'install-exec-hook' rule in the top-level Makefile.am |
| 1191 | ;; generates 'lib/vlc/plugins/plugins.dat', a plugin cache, using |
| 1192 | ;; 'vlc-cache-gen'. This file includes the mtime of the plugins |
| 1193 | ;; it references. Thus, we first reset the timestamps of all |
| 1194 | ;; these files, and then regenerate the cache such that the |
| 1195 | ;; mtimes it includes are always zero instead of being dependent |
| 1196 | ;; on the build time. |
| 1197 | (let* ((out (assoc-ref outputs "out")) |
| 1198 | (pkglibdir (string-append out "/lib/vlc")) |
| 1199 | (plugindir (string-append pkglibdir "/plugins")) |
| 1200 | (cachegen (string-append pkglibdir "/vlc-cache-gen"))) |
| 1201 | ;; TODO: Factorize 'reset-timestamps'. |
| 1202 | (for-each (lambda (file) |
| 1203 | (let ((s (lstat file))) |
| 1204 | (unless (eq? (stat:type s) 'symlink) |
| 1205 | (utime file 1 1)))) |
| 1206 | (find-files plugindir)) |
| 1207 | (invoke cachegen plugindir)))) |
| 1208 | (add-after 'install 'wrap-executable |
| 1209 | (lambda* (#:key outputs #:allow-other-keys) |
| 1210 | (let ((out (assoc-ref outputs "out")) |
| 1211 | (plugin-path (getenv "QT_PLUGIN_PATH"))) |
| 1212 | (wrap-program (string-append out "/bin/vlc") |
| 1213 | `("QT_PLUGIN_PATH" ":" prefix (,plugin-path)))) |
| 1214 | #t))))) |
| 1215 | (home-page "https://www.videolan.org/") |
| 1216 | (synopsis "Audio and video framework") |
| 1217 | (description "VLC is a cross-platform multimedia player and framework |
| 1218 | that plays most multimedia files as well as DVD, Audio CD, VCD, and various |
| 1219 | streaming protocols.") |
| 1220 | (license license:gpl2+))) |
| 1221 | |
| 1222 | (define-public mplayer |
| 1223 | (package |
| 1224 | (name "mplayer") |
| 1225 | (version "1.3.0") |
| 1226 | (source (origin |
| 1227 | (method url-fetch) |
| 1228 | (uri (string-append |
| 1229 | "https://www.mplayerhq.hu/MPlayer/releases/MPlayer-" |
| 1230 | version ".tar.xz")) |
| 1231 | (sha256 |
| 1232 | (base32 |
| 1233 | "0hwqn04bdknb2ic88xd75smffxx63scvz0zvwvjb56nqj9n89l1s")))) |
| 1234 | (build-system gnu-build-system) |
| 1235 | ;; FIXME: Add additional inputs once available. |
| 1236 | (native-inputs |
| 1237 | `(("pkg-config" ,pkg-config))) |
| 1238 | (inputs |
| 1239 | `(("alsa-lib" ,alsa-lib) |
| 1240 | ("cdparanoia" ,cdparanoia) |
| 1241 | ("ffmpeg" ,ffmpeg-3.4) |
| 1242 | ("fontconfig" ,fontconfig) |
| 1243 | ("freetype" ,freetype) |
| 1244 | ;; ("giflib" ,giflib) ; uses QuantizeBuffer, requires version >= 5 |
| 1245 | ("lame" ,lame) |
| 1246 | ("libass" ,libass) |
| 1247 | ("libdvdcss" ,libdvdcss) |
| 1248 | ("libdvdnav" ,libdvdnav) |
| 1249 | ("libjpeg" ,libjpeg) |
| 1250 | ("libmpeg2" ,libmpeg2) |
| 1251 | ("libmpg123" ,mpg123) ; audio codec for MP3 |
| 1252 | ("libpng" ,libpng) |
| 1253 | ("libtheora" ,libtheora) |
| 1254 | ("libvdpau" ,libvdpau) |
| 1255 | ("libvorbis" ,libvorbis) |
| 1256 | ("libx11" ,libx11) |
| 1257 | ("libx264" ,libx264) |
| 1258 | ("libxinerama" ,libxinerama) |
| 1259 | ("libxv" ,libxv) |
| 1260 | ("libxxf86dga" ,libxxf86dga) |
| 1261 | ("mesa" ,mesa) |
| 1262 | ("opus" ,opus) |
| 1263 | ("perl" ,perl) |
| 1264 | ("pulseaudio" ,pulseaudio) |
| 1265 | ("python" ,python-wrapper) |
| 1266 | ("sdl" ,sdl) |
| 1267 | ("speex" ,speex) |
| 1268 | ("yasm" ,yasm) |
| 1269 | ("zlib" ,zlib))) |
| 1270 | (arguments |
| 1271 | `(#:tests? #f ; no test target |
| 1272 | #:phases |
| 1273 | (modify-phases %standard-phases |
| 1274 | (replace 'configure |
| 1275 | ;; configure does not work followed by "SHELL=..." and |
| 1276 | ;; "CONFIG_SHELL=..."; set environment variables instead |
| 1277 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1278 | (let ((out (assoc-ref outputs "out")) |
| 1279 | (libx11 (assoc-ref inputs "libx11"))) |
| 1280 | (substitute* "configure" |
| 1281 | (("#! /bin/sh") (string-append "#!" (which "sh")))) |
| 1282 | (setenv "SHELL" (which "bash")) |
| 1283 | (setenv "CONFIG_SHELL" (which "bash")) |
| 1284 | (invoke "./configure" |
| 1285 | (string-append "--extra-cflags=-I" |
| 1286 | libx11 "/include") ; to detect libx11 |
| 1287 | "--disable-ffmpeg_a" ; disables bundled ffmpeg |
| 1288 | (string-append "--prefix=" out) |
| 1289 | ;; Enable runtime cpu detection where supported, |
| 1290 | ;; and choose a suitable target. |
| 1291 | ,@(match (or (%current-target-system) |
| 1292 | (%current-system)) |
| 1293 | ("x86_64-linux" |
| 1294 | '("--enable-runtime-cpudetection" |
| 1295 | "--target=x86_64-linux")) |
| 1296 | ("i686-linux" |
| 1297 | '("--enable-runtime-cpudetection" |
| 1298 | "--target=i686-linux")) |
| 1299 | ("mips64el-linux" |
| 1300 | '("--target=mips3-linux")) |
| 1301 | (_ (list (string-append |
| 1302 | "--target=" |
| 1303 | (or (%current-target-system) |
| 1304 | (nix-system->gnu-triplet |
| 1305 | (%current-system))))))) |
| 1306 | "--disable-iwmmxt"))))))) |
| 1307 | (home-page "https://www.mplayerhq.hu/design7/news.html") |
| 1308 | (synopsis "Audio and video player") |
| 1309 | (description "MPlayer is a movie player. It plays most MPEG/VOB, AVI, |
| 1310 | Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, |
| 1311 | NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD, |
| 1312 | SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.") |
| 1313 | (license license:gpl2))) |
| 1314 | |
| 1315 | (define-public mpv |
| 1316 | (package |
| 1317 | (name "mpv") |
| 1318 | (version "0.29.1") |
| 1319 | (source (origin |
| 1320 | (method git-fetch) |
| 1321 | (uri (git-reference |
| 1322 | (url "https://github.com/mpv-player/mpv.git") |
| 1323 | (commit (string-append "v" version)))) |
| 1324 | (file-name (git-file-name name version)) |
| 1325 | (sha256 |
| 1326 | (base32 |
| 1327 | "138921kx8g6qprim558xin09xximjhsj9ss8b71ifg2m6kclym8m")))) |
| 1328 | (build-system waf-build-system) |
| 1329 | (native-inputs |
| 1330 | `(("perl" ,perl) ; for zsh completion file |
| 1331 | ("pkg-config" ,pkg-config) |
| 1332 | ("python-docutils" ,python-docutils))) |
| 1333 | ;; Missing features: libguess, V4L2 |
| 1334 | (inputs |
| 1335 | `(("alsa-lib" ,alsa-lib) |
| 1336 | ("enca" ,enca) |
| 1337 | ("ffmpeg" ,ffmpeg) |
| 1338 | ("jack" ,jack-1) |
| 1339 | ("ladspa" ,ladspa) |
| 1340 | ("lcms" ,lcms) |
| 1341 | ("libass" ,libass) |
| 1342 | ("libbluray" ,libbluray) |
| 1343 | ("libcaca" ,libcaca) |
| 1344 | ("libbs2b" ,libbs2b) |
| 1345 | ("libcdio-paranoia" ,libcdio-paranoia) |
| 1346 | ("libdvdread" ,libdvdread) |
| 1347 | ("libdvdnav" ,libdvdnav) |
| 1348 | ("libjpeg" ,libjpeg) |
| 1349 | ("libva" ,libva) |
| 1350 | ("libvdpau" ,libvdpau) |
| 1351 | ("libx11" ,libx11) |
| 1352 | ("libxext" ,libxext) |
| 1353 | ("libxinerama" ,libxinerama) |
| 1354 | ("libxrandr" ,libxrandr) |
| 1355 | ("libxscrnsaver" ,libxscrnsaver) |
| 1356 | ("libxv" ,libxv) |
| 1357 | ;; XXX: lua > 5.2 is not currently supported; see |
| 1358 | ;; waftools/checks/custom.py |
| 1359 | ("lua" ,lua-5.2) |
| 1360 | ("mesa" ,mesa) |
| 1361 | ("mpg123" ,mpg123) |
| 1362 | ("pulseaudio" ,pulseaudio) |
| 1363 | ("rsound" ,rsound) |
| 1364 | ("shaderc" ,shaderc) |
| 1365 | ("vulkan-headers" ,vulkan-headers) |
| 1366 | ("vulkan-loader" ,vulkan-loader) |
| 1367 | ("waf" ,python-waf) |
| 1368 | ("wayland" ,wayland) |
| 1369 | ("wayland-protocols" ,wayland-protocols) |
| 1370 | ("libxkbcommon" ,libxkbcommon) |
| 1371 | ("youtube-dl" ,youtube-dl) |
| 1372 | ("zlib" ,zlib))) |
| 1373 | (arguments |
| 1374 | '(#:phases |
| 1375 | (modify-phases %standard-phases |
| 1376 | (add-after |
| 1377 | 'unpack 'patch-paths |
| 1378 | (lambda* (#:key inputs #:allow-other-keys) |
| 1379 | (let ((ytdl (assoc-ref inputs "youtube-dl"))) |
| 1380 | (substitute* "player/lua/ytdl_hook.lua" |
| 1381 | (("\"youtube-dl\",") |
| 1382 | (string-append "\"" ytdl "/bin/youtube-dl\","))) |
| 1383 | #t))) |
| 1384 | (add-before |
| 1385 | 'configure 'setup-waf |
| 1386 | (lambda* (#:key inputs #:allow-other-keys) |
| 1387 | (let ((waf (assoc-ref inputs "waf"))) |
| 1388 | (copy-file (string-append waf "/bin/waf") "waf")) |
| 1389 | (setenv "CC" "gcc") |
| 1390 | #t))) |
| 1391 | #:configure-flags (list "--enable-libmpv-shared" |
| 1392 | "--enable-cdda" |
| 1393 | "--enable-dvdread" |
| 1394 | "--enable-dvdnav" |
| 1395 | "--enable-zsh-comp" |
| 1396 | "--disable-build-date") |
| 1397 | ;; No check function defined. |
| 1398 | #:tests? #f)) |
| 1399 | (home-page "https://mpv.io/") |
| 1400 | (synopsis "Audio and video player") |
| 1401 | (description "mpv is a general-purpose audio and video player. It is a |
| 1402 | fork of mplayer2 and MPlayer. It shares some features with the former |
| 1403 | projects while introducing many more.") |
| 1404 | (license license:gpl2+))) |
| 1405 | |
| 1406 | (define-public gnome-mpv |
| 1407 | (package |
| 1408 | (name "gnome-mpv") |
| 1409 | (version "0.16") |
| 1410 | (source |
| 1411 | (origin |
| 1412 | (method url-fetch) |
| 1413 | (uri (string-append "https://github.com/gnome-mpv/gnome-mpv/releases" |
| 1414 | "/download/v" version "/gnome-mpv-" version |
| 1415 | ".tar.xz")) |
| 1416 | (sha256 |
| 1417 | (base32 |
| 1418 | "0jzdzvhcqp5jp1inwk2466zf7r8iimk3x69066gl8mzaay98mk92")))) |
| 1419 | (native-inputs |
| 1420 | `(("intltool" ,intltool) |
| 1421 | ("pkg-config" ,pkg-config))) |
| 1422 | (inputs |
| 1423 | `(("gtk+" ,gtk+) |
| 1424 | ("libepoxy" ,libepoxy) |
| 1425 | ("mpv" ,mpv))) |
| 1426 | (build-system glib-or-gtk-build-system) |
| 1427 | (home-page "https://github.com/gnome-mpv/gnome-mpv") |
| 1428 | (synopsis "GTK+ frontend for the mpv media player") |
| 1429 | (description "GNOME MPV is a simple GTK+ frontend for the mpv media player. |
| 1430 | GNOME MPV interacts with mpv via the client API exported by libmpv, allowing |
| 1431 | access to mpv's powerful playback capabilities.") |
| 1432 | (license license:gpl3+))) |
| 1433 | |
| 1434 | (define-public libvpx |
| 1435 | (package |
| 1436 | (name "libvpx") |
| 1437 | (version "1.8.1") |
| 1438 | (source (origin |
| 1439 | ;; XXX: Upstream does not provide tarballs for > 1.6.1. |
| 1440 | (method git-fetch) |
| 1441 | (uri (git-reference |
| 1442 | (url "https://chromium.googlesource.com/webm/libvpx") |
| 1443 | (commit (string-append "v" version)))) |
| 1444 | (file-name (git-file-name name version)) |
| 1445 | (sha256 |
| 1446 | (base32 |
| 1447 | "0mm1dcfa268rwsrgzqpbbgq4lwrvdzgp90h9dxsnkhai70l7gipq")) |
| 1448 | (patches (search-patches "libvpx-CVE-2016-2818.patch")))) |
| 1449 | (build-system gnu-build-system) |
| 1450 | (arguments |
| 1451 | `(#:configure-flags (list "--enable-shared" |
| 1452 | "--as=yasm" |
| 1453 | ;; Limit size to avoid CVE-2015-1258 |
| 1454 | "--size-limit=16384x16384" |
| 1455 | (string-append "--prefix=" (assoc-ref %outputs "out"))) |
| 1456 | #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath=" |
| 1457 | (assoc-ref %outputs "out") "/lib")) |
| 1458 | #:phases (modify-phases %standard-phases |
| 1459 | (replace 'configure |
| 1460 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 1461 | ;; The configure script does not understand some of the GNU |
| 1462 | ;; options, so we only add the flags specified above. |
| 1463 | (apply invoke "./configure" configure-flags)))) |
| 1464 | #:tests? #f)) ; no check target |
| 1465 | (native-inputs |
| 1466 | `(("perl" ,perl) |
| 1467 | ("yasm" ,yasm))) |
| 1468 | (synopsis "VP8/VP9 video codec") |
| 1469 | (description "libvpx is a codec for the VP8/VP9 video compression format.") |
| 1470 | (license license:bsd-3) |
| 1471 | (home-page "https://www.webmproject.org/"))) |
| 1472 | |
| 1473 | ;; GNU IceCat fails to build against 1.8.0, so keep this version for now. |
| 1474 | (define-public libvpx-1.7 |
| 1475 | (package |
| 1476 | (inherit libvpx) |
| 1477 | (version "1.7.0") |
| 1478 | (source (origin |
| 1479 | (inherit (package-source libvpx)) |
| 1480 | (uri (git-reference |
| 1481 | (url "https://chromium.googlesource.com/webm/libvpx") |
| 1482 | (commit (string-append "v" version)))) |
| 1483 | (file-name (git-file-name "libvpx" version)) |
| 1484 | (sha256 |
| 1485 | (base32 |
| 1486 | "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6")) |
| 1487 | (patches |
| 1488 | (append |
| 1489 | (origin-patches (package-source libvpx)) |
| 1490 | (search-patches "libvpx-use-after-free-in-postproc.patch"))))))) |
| 1491 | |
| 1492 | (define-public youtube-dl |
| 1493 | (package |
| 1494 | (name "youtube-dl") |
| 1495 | (version "2019.09.12") |
| 1496 | (source (origin |
| 1497 | (method url-fetch) |
| 1498 | (uri (string-append "https://github.com/rg3/youtube-dl/releases/" |
| 1499 | "download/" version "/youtube-dl-" |
| 1500 | version ".tar.gz")) |
| 1501 | (sha256 |
| 1502 | (base32 |
| 1503 | "0wmc0rl4l08hnz3agh69ld1pcmjs7czg0d2k7mnnlxhwlwi38w56")))) |
| 1504 | (build-system python-build-system) |
| 1505 | (arguments |
| 1506 | ;; The problem here is that the directory for the man page and completion |
| 1507 | ;; files is relative, and for some reason, setup.py uses the |
| 1508 | ;; auto-detected sys.prefix instead of the user-defined "--prefix=FOO". |
| 1509 | ;; So, we need pass the prefix directly. In addition, make sure the Bash |
| 1510 | ;; completion file is called 'youtube-dl' rather than |
| 1511 | ;; 'youtube-dl.bash-completion'. |
| 1512 | `(#:tests? #f ; Many tests fail. The test suite can be run with pytest. |
| 1513 | #:phases (modify-phases %standard-phases |
| 1514 | (add-before 'install 'fix-the-data-directories |
| 1515 | (lambda* (#:key outputs #:allow-other-keys) |
| 1516 | (let ((prefix (assoc-ref outputs "out"))) |
| 1517 | (mkdir "bash-completion") |
| 1518 | (rename-file "youtube-dl.bash-completion" |
| 1519 | "bash-completion/youtube-dl") |
| 1520 | (substitute* "setup.py" |
| 1521 | (("youtube-dl\\.bash-completion") |
| 1522 | "bash-completion/youtube-dl") |
| 1523 | (("'etc/") |
| 1524 | (string-append "'" prefix "/etc/")) |
| 1525 | (("'share/") |
| 1526 | (string-append "'" prefix "/share/"))) |
| 1527 | #t)))))) |
| 1528 | (synopsis "Download videos from YouTube.com and other sites") |
| 1529 | (description |
| 1530 | "Youtube-dl is a small command-line program to download videos from |
| 1531 | YouTube.com and many more sites.") |
| 1532 | (home-page "https://yt-dl.org") |
| 1533 | (license license:public-domain))) |
| 1534 | |
| 1535 | (define-public youtube-dl-gui |
| 1536 | (package |
| 1537 | (name "youtube-dl-gui") |
| 1538 | (version "0.3.8") |
| 1539 | (source |
| 1540 | (origin |
| 1541 | (method url-fetch) |
| 1542 | (uri (pypi-uri "Youtube-DLG" version)) |
| 1543 | (sha256 |
| 1544 | (base32 |
| 1545 | "0napxwzgls5ik1bxbp99vly32l23xpc4ng5kr24hfhf21ypjyadb")))) |
| 1546 | (build-system python-build-system) |
| 1547 | (arguments |
| 1548 | ;; In Guix, wxpython has not yet been packaged for Python 3. |
| 1549 | `(#:python ,python-2 |
| 1550 | ;; This package has no tests. |
| 1551 | #:tests? #f |
| 1552 | #:phases |
| 1553 | (modify-phases %standard-phases |
| 1554 | (add-before 'build 'patch-source |
| 1555 | (lambda* (#:key inputs #:allow-other-keys) |
| 1556 | ;; The youtube-dl-gui program lets you configure options. Some of |
| 1557 | ;; them are problematic, so we change their defaults. |
| 1558 | (substitute* "youtube_dl_gui/optionsmanager.py" |
| 1559 | ;; When this is true, the builder process will try (and fail) to |
| 1560 | ;; write logs to the builder user's home directory. |
| 1561 | (("'enable_log': True") "'enable_log': False") |
| 1562 | ;; This determines which youtube-dl program youtube-dl-gui will |
| 1563 | ;; run. If we don't set this, then youtube-dl-gui might download |
| 1564 | ;; an arbitrary copy from the Internet into the user's home |
| 1565 | ;; directory and run it, so let's make sure youtube-dl-gui uses |
| 1566 | ;; the youtube-dl from the inputs by default. |
| 1567 | (("'youtubedl_path': self.config_path") |
| 1568 | (string-append "'youtubedl_path': '" |
| 1569 | (assoc-ref inputs "youtube-dl") |
| 1570 | "/bin'")) |
| 1571 | ;; When this is True, when youtube-dl-gui is finished downloading |
| 1572 | ;; a file, it will try (and possibly fail) to open the directory |
| 1573 | ;; containing the downloaded file. This can fail because it |
| 1574 | ;; assumes that xdg-open is in PATH. Unfortunately, simply |
| 1575 | ;; adding xdg-utils to the propagated inputs is not enough to |
| 1576 | ;; make this work, so for now we set the default to False. |
| 1577 | (("'open_dl_dir': True") "'open_dl_dir': False")) |
| 1578 | ;; The youtube-dl program from the inputs is actually a wrapper |
| 1579 | ;; script written in bash, so attempting to invoke it as a python |
| 1580 | ;; script will fail. |
| 1581 | (substitute* "youtube_dl_gui/downloaders.py" |
| 1582 | (("cmd = \\['python', self\\.youtubedl_path\\]") |
| 1583 | "cmd = [self.youtubedl_path]")) |
| 1584 | ;; Use relative paths for installing data files so youtube-dl-gui |
| 1585 | ;; installs the files relative to its prefix in the store, rather |
| 1586 | ;; than relative to /. Also, instead of installing data files into |
| 1587 | ;; $prefix/usr/share, install them into $prefix/share for |
| 1588 | ;; consistency (see: (standards) Directory Variables). |
| 1589 | (substitute* "setup.py" |
| 1590 | (("= '/usr/share") "= 'share")) |
| 1591 | ;; Update get_locale_file() so it finds the installed localization |
| 1592 | ;; files. |
| 1593 | (substitute* "youtube_dl_gui/utils.py" |
| 1594 | (("os\\.path\\.join\\('/usr', 'share'") |
| 1595 | (string-append "os.path.join('" |
| 1596 | (assoc-ref %outputs "out") |
| 1597 | "', 'share'"))) |
| 1598 | #t)) |
| 1599 | (add-after 'install 'create-desktop-file |
| 1600 | (lambda* (#:key outputs #:allow-other-keys) |
| 1601 | (let* ((out (assoc-ref outputs "out")) |
| 1602 | (applications (string-append out "/share/applications"))) |
| 1603 | (mkdir-p applications) |
| 1604 | (call-with-output-file |
| 1605 | (string-append applications "/youtube-dl-gui.desktop") |
| 1606 | (lambda (file) |
| 1607 | (format |
| 1608 | file |
| 1609 | "[Desktop Entry]~@ |
| 1610 | Name=Youtube-dl GUI~@ |
| 1611 | Comment=Graphical interface to download video with youtube-dl~@ |
| 1612 | Exec=youtube-dl-gui~@ |
| 1613 | TryExec=youtube-dl-gui~@ |
| 1614 | Terminal=false~@ |
| 1615 | Icon=youtube-dl-gui~@ |
| 1616 | Type=Application~@ |
| 1617 | Categories=AudioVideo;Audio;Video;Network~%"))) |
| 1618 | #t)))))) |
| 1619 | (inputs |
| 1620 | `(("python2-wxpython" ,python2-wxpython) |
| 1621 | ("youtube-dl" ,youtube-dl))) |
| 1622 | (home-page "https://github.com/MrS0m30n3/youtube-dl-gui") |
| 1623 | (synopsis |
| 1624 | "GUI (Graphical User Interface) for @command{youtube-dl}") |
| 1625 | (description |
| 1626 | "Youtube-dlG is a GUI (Graphical User Interface) for |
| 1627 | @command{youtube-dl}. You can use it to download videos from YouTube and any |
| 1628 | other site that youtube-dl supports.") |
| 1629 | (license license:unlicense))) |
| 1630 | |
| 1631 | (define-public you-get |
| 1632 | (package |
| 1633 | (name "you-get") |
| 1634 | (version "0.4.1328") |
| 1635 | (source (origin |
| 1636 | (method git-fetch) |
| 1637 | (uri (git-reference |
| 1638 | (url "https://github.com/soimort/you-get.git") |
| 1639 | (commit (string-append "v" version)))) |
| 1640 | (file-name (git-file-name name version)) |
| 1641 | (sha256 |
| 1642 | (base32 |
| 1643 | "1r9qffwvxmp74byva12h2jsn3n33vyim052sx9lykv5dygibbp65")))) |
| 1644 | (build-system python-build-system) |
| 1645 | (inputs |
| 1646 | `(("ffmpeg" ,ffmpeg))) ; for multi-part and >=1080p videos |
| 1647 | (arguments |
| 1648 | `(#:phases |
| 1649 | (modify-phases %standard-phases |
| 1650 | (add-after 'unpack 'qualify-input-references |
| 1651 | ;; Explicitly invoke the input ffmpeg, instead of whichever one |
| 1652 | ;; happens to be in the user's $PATH at run time. |
| 1653 | (lambda* (#:key inputs #:allow-other-keys) |
| 1654 | (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg") |
| 1655 | "/bin/ffmpeg"))) |
| 1656 | (substitute* "src/you_get/processor/ffmpeg.py" |
| 1657 | ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the |
| 1658 | ;; same string is also used when sniffing ffmpeg's output. |
| 1659 | (("(FFMPEG == |\\()'ffmpeg'" _ prefix) |
| 1660 | (string-append prefix "'" ffmpeg "'"))) |
| 1661 | #t)))) |
| 1662 | #:tests? #f)) ; XXX some tests need Internet access |
| 1663 | (synopsis "Download videos, audio, or images from Web sites") |
| 1664 | (description |
| 1665 | "You-Get is a command-line utility to download media contents (videos, |
| 1666 | audio, images) from the Web. It can use either mpv or vlc for playback.") |
| 1667 | (home-page "https://you-get.org/") |
| 1668 | (license license:expat))) |
| 1669 | |
| 1670 | (define-public youtube-viewer |
| 1671 | (package |
| 1672 | (name "youtube-viewer") |
| 1673 | (version "3.5.4") |
| 1674 | (source (origin |
| 1675 | (method git-fetch) |
| 1676 | (uri (git-reference |
| 1677 | (url "https://github.com/trizen/youtube-viewer.git") |
| 1678 | (commit version))) |
| 1679 | (file-name (git-file-name name version)) |
| 1680 | (sha256 |
| 1681 | (base32 |
| 1682 | "1j782m9rximybamd0qsc43hi7hgk333x9gy3ypzb61s0sifs0i6m")))) |
| 1683 | (build-system perl-build-system) |
| 1684 | (native-inputs |
| 1685 | `(("perl-module-build" ,perl-module-build))) |
| 1686 | ;; FIXME: Add optional dependencies once available: |
| 1687 | ;; perl-lwp-useragent-cached and perl-term-readline-gnu |
| 1688 | (inputs |
| 1689 | `(("perl-data-dump" ,perl-data-dump) |
| 1690 | ("perl-file-sharedir" ,perl-file-sharedir) |
| 1691 | ("perl-gtk2" ,perl-gtk2) |
| 1692 | ("perl-json" ,perl-json) |
| 1693 | ("perl-libwww" ,perl-libwww) |
| 1694 | ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) |
| 1695 | ("perl-mozilla-ca" ,perl-mozilla-ca) |
| 1696 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) |
| 1697 | |
| 1698 | ;; Some videos play without youtube-dl, but others silently fail to. |
| 1699 | ("youtube-dl" ,youtube-dl))) |
| 1700 | (arguments |
| 1701 | `(#:modules ((guix build perl-build-system) |
| 1702 | (guix build utils) |
| 1703 | (srfi srfi-26)) |
| 1704 | #:module-build-flags '("--gtk") |
| 1705 | #:phases |
| 1706 | (modify-phases %standard-phases |
| 1707 | (add-after 'unpack 'refer-to-inputs |
| 1708 | (lambda* (#:key inputs #:allow-other-keys) |
| 1709 | (substitute* "lib/WWW/YoutubeViewer.pm" |
| 1710 | (("'youtube-dl'") |
| 1711 | (format #f "'~a/bin/youtube-dl'" |
| 1712 | (assoc-ref inputs "youtube-dl")))) |
| 1713 | #t)) |
| 1714 | (add-after 'install 'install-desktop |
| 1715 | (lambda* (#:key outputs #:allow-other-keys) |
| 1716 | (let* ((out (assoc-ref outputs "out")) |
| 1717 | (sharedir (string-append out "/share"))) |
| 1718 | (install-file "share/gtk-youtube-viewer.desktop" |
| 1719 | (string-append sharedir "/applications")) |
| 1720 | (install-file "share/icons/gtk-youtube-viewer.png" |
| 1721 | (string-append sharedir "/pixmaps")) |
| 1722 | #t))) |
| 1723 | (add-after 'install 'wrap-program |
| 1724 | (lambda* (#:key outputs #:allow-other-keys) |
| 1725 | (let* ((out (assoc-ref outputs "out")) |
| 1726 | (bin-dir (string-append out "/bin/")) |
| 1727 | (site-dir (string-append out "/lib/perl5/site_perl/")) |
| 1728 | (lib-path (getenv "PERL5LIB"))) |
| 1729 | (for-each (cut wrap-program <> |
| 1730 | `("PERL5LIB" ":" prefix (,lib-path ,site-dir))) |
| 1731 | (find-files bin-dir)) |
| 1732 | #t)))))) |
| 1733 | (synopsis |
| 1734 | "Lightweight application for searching and streaming videos from YouTube") |
| 1735 | (description |
| 1736 | "Youtube-viewer searches and plays YouTube videos in a native player. |
| 1737 | It comes with various search options; it can search for videos, playlists |
| 1738 | and/or channels. The videos are streamed directly in a selected video player |
| 1739 | at the best resolution (customizable) and with closed-captions (if available). |
| 1740 | Both command-line and GTK2 interface are available.") |
| 1741 | (home-page "https://github.com/trizen/youtube-viewer") |
| 1742 | (license license:perl-license))) |
| 1743 | |
| 1744 | (define-public libbluray |
| 1745 | (package |
| 1746 | (name "libbluray") |
| 1747 | (version "1.0.2") |
| 1748 | (source (origin |
| 1749 | (method url-fetch) |
| 1750 | (uri (string-append "https://download.videolan.org/videolan/" |
| 1751 | name "/" version "/" |
| 1752 | name "-" version ".tar.bz2")) |
| 1753 | (sha256 |
| 1754 | (base32 |
| 1755 | "1zxfnw1xbghcj7b3zz5djndv6gwssxda19cz1lrlqrkg8577r7kd")))) |
| 1756 | (build-system gnu-build-system) |
| 1757 | (arguments |
| 1758 | `(#:configure-flags '("--disable-bdjava-jar") |
| 1759 | #:phases |
| 1760 | (modify-phases %standard-phases |
| 1761 | (add-after 'unpack 'refer-to-libxml2-in-.pc-file |
| 1762 | ;; Avoid the need to propagate libxml2 by referring to it |
| 1763 | ;; directly, as is already done for fontconfig & freetype. |
| 1764 | (lambda* (#:key inputs #:allow-other-keys) |
| 1765 | (let ((libxml2 (assoc-ref inputs "libxml2"))) |
| 1766 | (substitute* "configure" |
| 1767 | ((" libxml-2.0") "")) |
| 1768 | (substitute* "src/libbluray.pc.in" |
| 1769 | (("^Libs.private:" field) |
| 1770 | (string-append field " -L" libxml2 "/lib -lxml2"))) |
| 1771 | #t))) |
| 1772 | (add-before 'build 'fix-dlopen-paths |
| 1773 | (lambda* (#:key inputs #:allow-other-keys) |
| 1774 | (let ((libaacs (assoc-ref inputs "libaacs")) |
| 1775 | (libbdplus (assoc-ref inputs "libbdplus"))) |
| 1776 | (substitute* "src/libbluray/disc/aacs.c" |
| 1777 | (("\"libaacs\"") |
| 1778 | (string-append "\"" libaacs "/lib/libaacs\""))) |
| 1779 | (substitute* "src/libbluray/disc/bdplus.c" |
| 1780 | (("\"libbdplus\"") |
| 1781 | (string-append "\"" libbdplus "/lib/libbdplus\""))) |
| 1782 | #t)))))) |
| 1783 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 1784 | (inputs |
| 1785 | `(("fontconfig" ,fontconfig) |
| 1786 | ("freetype" ,freetype) |
| 1787 | ("libaacs" ,libaacs) |
| 1788 | ("libbdplus" ,libbdplus) |
| 1789 | ("libxml2" ,libxml2))) |
| 1790 | (home-page "https://www.videolan.org/developers/libbluray.html") |
| 1791 | (synopsis "Blu-Ray Disc playback library") |
| 1792 | (description |
| 1793 | "libbluray is a library designed for Blu-Ray Disc playback for media |
| 1794 | players, like VLC or MPlayer.") |
| 1795 | (license license:lgpl2.1+))) |
| 1796 | |
| 1797 | (define-public libdvdread |
| 1798 | (package |
| 1799 | (name "libdvdread") |
| 1800 | (version "6.0.1") |
| 1801 | (source (origin |
| 1802 | (method url-fetch) |
| 1803 | (uri (string-append "https://download.videolan.org/videolan/" |
| 1804 | "libdvdread/" version "/" |
| 1805 | "libdvdread-" version ".tar.bz2")) |
| 1806 | (sha256 |
| 1807 | (base32 |
| 1808 | "1gfmh8ii3s2fw1c8vn57piwxc0smd3va4h7xgp9s8g48cc04zki8")))) |
| 1809 | (build-system gnu-build-system) |
| 1810 | (arguments |
| 1811 | `(#:configure-flags '("--with-libdvdcss=yes"))) |
| 1812 | (native-inputs |
| 1813 | `(("pkg-config" ,pkg-config))) |
| 1814 | (propagated-inputs |
| 1815 | `(("libdvdcss" ,libdvdcss))) |
| 1816 | (home-page "http://dvdnav.mplayerhq.hu/") |
| 1817 | (synopsis "Library for reading video DVDs") |
| 1818 | (description |
| 1819 | "Libdvdread provides a simple foundation for reading DVD video |
| 1820 | disks. It provides the functionality that is required to access many |
| 1821 | DVDs. It parses IFO files, reads NAV-blocks, and performs CSS |
| 1822 | authentication and descrambling (if an external libdvdcss library is |
| 1823 | installed).") |
| 1824 | (license license:gpl2+))) |
| 1825 | |
| 1826 | (define-public dvdauthor |
| 1827 | (package |
| 1828 | (name "dvdauthor") |
| 1829 | (version "0.7.2") |
| 1830 | (source |
| 1831 | (origin |
| 1832 | (method url-fetch) |
| 1833 | (uri (string-append "mirror://sourceforge/dvdauthor/dvdauthor-" |
| 1834 | version ".tar.gz")) |
| 1835 | (sha256 |
| 1836 | (base32 |
| 1837 | "1drfc47hikfzc9d7hjk34rw10iqw01d2vwmn91pv73ppx4nsj81h")))) |
| 1838 | (build-system gnu-build-system) |
| 1839 | (inputs |
| 1840 | `(("libdvdread" ,libdvdread) |
| 1841 | ("libpng" ,libpng) |
| 1842 | ("imagemagick" ,imagemagick) |
| 1843 | ("libxml2" ,libxml2) |
| 1844 | ("freetype" ,freetype))) |
| 1845 | (native-inputs |
| 1846 | `(("pkg-config" ,pkg-config))) |
| 1847 | (synopsis "Generates a DVD-Video movie from a MPEG-2 stream") |
| 1848 | (description "@command{dvdauthor} will generate a DVD-Video movie from a |
| 1849 | MPEG-2 stream containing VOB packets.") |
| 1850 | (home-page "http://dvdauthor.sourceforge.net") |
| 1851 | (license license:gpl3+))) |
| 1852 | |
| 1853 | (define-public libdvdnav |
| 1854 | (package |
| 1855 | (name "libdvdnav") |
| 1856 | (version "6.0.0") |
| 1857 | (source (origin |
| 1858 | (method url-fetch) |
| 1859 | (uri (string-append "https://download.videolan.org/videolan/" |
| 1860 | name "/" version "/" |
| 1861 | name "-" version ".tar.bz2")) |
| 1862 | (sha256 |
| 1863 | (base32 |
| 1864 | "062njcksmpgw9yv3737qkf93r2pzhaxi9szqjabpa8d010dp38ph")))) |
| 1865 | (build-system gnu-build-system) |
| 1866 | (native-inputs |
| 1867 | `(("pkg-config" ,pkg-config))) |
| 1868 | (inputs |
| 1869 | `(("libdvdread" ,libdvdread))) |
| 1870 | (home-page "http://dvdnav.mplayerhq.hu/") |
| 1871 | (synopsis "Library for video DVD navigation features") |
| 1872 | (description |
| 1873 | "Libdvdnav is a library for developers of multimedia |
| 1874 | applications. It allows easy use of sophisticated DVD navigation features |
| 1875 | such as DVD menus, multiangle playback and even interactive DVD games. All |
| 1876 | this functionality is provided through a simple API which provides the DVD |
| 1877 | playback as a single logical stream of blocks, intermitted by special |
| 1878 | dvdnav events to report certain conditions. The main usage of libdvdnav is |
| 1879 | a loop regularly calling a function to get the next block, surrounded by |
| 1880 | additional calls to tell the library of user interaction. The whole |
| 1881 | DVD virtual machine and internal playback states are completely |
| 1882 | encapsulated.") |
| 1883 | (license license:gpl2+))) |
| 1884 | |
| 1885 | (define-public libdvdcss |
| 1886 | (package |
| 1887 | (name "libdvdcss") |
| 1888 | (version "1.4.2") |
| 1889 | (source (origin |
| 1890 | (method url-fetch) |
| 1891 | (uri (string-append "https://download.videolan.org/pub/" |
| 1892 | name "/" version "/" |
| 1893 | name "-" version ".tar.bz2")) |
| 1894 | (sha256 |
| 1895 | (base32 |
| 1896 | "0x957zzpf4w2cp8zlk29prj8i2q6hay3lzdzsyz8y3cwxivyvhkq")))) |
| 1897 | (build-system gnu-build-system) |
| 1898 | (home-page "https://www.videolan.org/developers/libdvdcss.html") |
| 1899 | (synopsis "Library for accessing DVDs as block devices") |
| 1900 | (description |
| 1901 | "libdvdcss is a simple library designed for accessing DVDs like a block |
| 1902 | device without having to bother about the decryption.") |
| 1903 | (license license:gpl2+))) |
| 1904 | |
| 1905 | (define-public srt2vtt |
| 1906 | (package |
| 1907 | (name "srt2vtt") |
| 1908 | (version "0.1") |
| 1909 | (source (origin |
| 1910 | (method url-fetch) |
| 1911 | (uri (string-append |
| 1912 | "https://files.dthompson.us/srt2vtt/srt2vtt-" |
| 1913 | version ".tar.gz")) |
| 1914 | (sha256 |
| 1915 | (base32 |
| 1916 | "16b377znjm6qlga5yb8aj7b7bcisa1ghcnj2lrb1d30lvxp4liif")))) |
| 1917 | (build-system gnu-build-system) |
| 1918 | (inputs |
| 1919 | `(("guile" ,guile-2.0))) |
| 1920 | (synopsis "SubRip to WebVTT subtitle converter") |
| 1921 | (description "srt2vtt converts SubRip formatted subtitles to WebVTT format |
| 1922 | for use with HTML5 video.") |
| 1923 | (home-page "https://dthompson.us/projects/srt2vtt.html") |
| 1924 | (license license:gpl3+))) |
| 1925 | |
| 1926 | (define-public avidemux |
| 1927 | (package |
| 1928 | (name "avidemux") |
| 1929 | (version "2.7.3") |
| 1930 | (source (origin |
| 1931 | (method url-fetch) |
| 1932 | (uri (string-append |
| 1933 | "mirror://sourceforge/avidemux/avidemux/" version "/" |
| 1934 | "avidemux_" version ".tar.gz")) |
| 1935 | (sha256 |
| 1936 | (base32 |
| 1937 | "17x2mnnr5h8pp764p55l1xcn2ljnzhbj8cykajlllvk4rc4qwxld")) |
| 1938 | (patches (search-patches "avidemux-install-to-lib.patch")))) |
| 1939 | (build-system cmake-build-system) |
| 1940 | (native-inputs |
| 1941 | `(("pkg-config" ,pkg-config))) |
| 1942 | ;; FIXME: Once packaged, add libraries not found during the build. |
| 1943 | (inputs |
| 1944 | `(("alsa-lib" ,alsa-lib) |
| 1945 | ("fontconfig" ,fontconfig) |
| 1946 | ("freetype" ,freetype) |
| 1947 | ("fribidi" ,fribidi) |
| 1948 | ("glu" ,glu) |
| 1949 | ("jack" ,jack-1) |
| 1950 | ("lame" ,lame) |
| 1951 | ("libva" ,libva) |
| 1952 | ("libvdpau" ,libvdpau) |
| 1953 | ("libvorbis" ,libvorbis) |
| 1954 | ("libvpx" ,libvpx) |
| 1955 | ("libxv" ,libxv) |
| 1956 | ("perl" ,perl) |
| 1957 | ("pulseaudio" ,pulseaudio) |
| 1958 | ("python" ,python-wrapper) |
| 1959 | ("qtbase" ,qtbase) |
| 1960 | ("qttools" ,qttools) |
| 1961 | ("sdl" ,sdl) |
| 1962 | ("sqlite" ,sqlite) |
| 1963 | ("yasm" ,yasm) |
| 1964 | ("zlib" ,zlib))) |
| 1965 | (arguments |
| 1966 | `(#:tests? #f ; no check target |
| 1967 | #:phases |
| 1968 | ;; Make sure files inside the included ffmpeg tarball are |
| 1969 | ;; patch-shebanged. |
| 1970 | (let ((ffmpeg "ffmpeg-4.1.1")) |
| 1971 | (modify-phases %standard-phases |
| 1972 | (add-before 'patch-source-shebangs 'unpack-ffmpeg |
| 1973 | (lambda _ |
| 1974 | (with-directory-excursion "avidemux_core/ffmpeg_package" |
| 1975 | (invoke "tar" "xf" (string-append ffmpeg ".tar.bz2")) |
| 1976 | (delete-file (string-append ffmpeg ".tar.bz2"))) |
| 1977 | #t)) |
| 1978 | (add-after 'patch-source-shebangs 'repack-ffmpeg |
| 1979 | (lambda _ |
| 1980 | (with-directory-excursion "avidemux_core/ffmpeg_package" |
| 1981 | (substitute* (string-append ffmpeg "/configure") |
| 1982 | (("#! /bin/sh") (string-append "#!" (which "sh")))) |
| 1983 | (invoke "tar" "cjf" (string-append ffmpeg ".tar.bz2") ffmpeg |
| 1984 | ;; avoid non-determinism in the archive |
| 1985 | "--sort=name" "--mtime=@0" |
| 1986 | "--owner=root:0" "--group=root:0") |
| 1987 | (delete-file-recursively ffmpeg)) |
| 1988 | #t)) |
| 1989 | (replace 'configure |
| 1990 | (lambda _ |
| 1991 | ;; Copy-paste settings from the cmake build system. |
| 1992 | (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH")) |
| 1993 | (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH")) |
| 1994 | #t)) |
| 1995 | (replace 'build |
| 1996 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1997 | (let* ((out (assoc-ref outputs "out")) |
| 1998 | (lib (string-append out "/lib")) |
| 1999 | (top (getcwd)) |
| 2000 | (sdl (assoc-ref inputs "sdl")) |
| 2001 | (build_component |
| 2002 | (lambda* (component srcdir #:optional (args '())) |
| 2003 | (let ((builddir (string-append "build_" component))) |
| 2004 | (mkdir builddir) |
| 2005 | (with-directory-excursion builddir |
| 2006 | (apply invoke "cmake" |
| 2007 | "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" |
| 2008 | (string-append "-DCMAKE_INSTALL_PREFIX=" out) |
| 2009 | (string-append "-DCMAKE_INSTALL_RPATH=" lib) |
| 2010 | (string-append "-DCMAKE_SHARED_LINKER_FLAGS=" |
| 2011 | "\"-Wl,-rpath=" lib "\"") |
| 2012 | (string-append "-DAVIDEMUX_SOURCE_DIR=" top) |
| 2013 | (string-append "-DSDL_INCLUDE_DIR=" |
| 2014 | sdl "/include/SDL") |
| 2015 | (string-append "../" srcdir) |
| 2016 | "-DENABLE_QT5=True" |
| 2017 | args) |
| 2018 | (invoke "make" "-j" |
| 2019 | (number->string (parallel-job-count))) |
| 2020 | (invoke "make" "install")))))) |
| 2021 | (mkdir out) |
| 2022 | (build_component "core" "avidemux_core") |
| 2023 | (build_component "cli" "avidemux/cli") |
| 2024 | (build_component "qt4" "avidemux/qt4") |
| 2025 | (build_component "plugins_common" "avidemux_plugins" |
| 2026 | '("-DPLUGIN_UI=COMMON")) |
| 2027 | (build_component "plugins_cli" "avidemux_plugins" |
| 2028 | '("-DPLUGIN_UI=CLI")) |
| 2029 | (build_component "plugins_qt4" "avidemux_plugins" |
| 2030 | '("-DPLUGIN_UI=QT4")) |
| 2031 | (build_component "plugins_settings" "avidemux_plugins" |
| 2032 | '("-DPLUGIN_UI=SETTINGS")) |
| 2033 | ;; Remove .exe and .dll file. |
| 2034 | (delete-file-recursively |
| 2035 | (string-append out "/share/ADM6_addons")) |
| 2036 | #t))) |
| 2037 | (delete 'install))))) |
| 2038 | (home-page "http://fixounet.free.fr/avidemux/") |
| 2039 | (synopsis "Video editor") |
| 2040 | (description "Avidemux is a video editor designed for simple cutting, |
| 2041 | filtering and encoding tasks. It supports many file types, including AVI, |
| 2042 | DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks |
| 2043 | can be automated using projects, job queue and powerful scripting |
| 2044 | capabilities.") |
| 2045 | (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux")) |
| 2046 | ;; Software with various licenses is included, see License.txt. |
| 2047 | (license license:gpl2+))) |
| 2048 | |
| 2049 | (define-public vapoursynth |
| 2050 | (package |
| 2051 | (name "vapoursynth") |
| 2052 | (version "37") |
| 2053 | (source (origin |
| 2054 | (method git-fetch) |
| 2055 | (uri (git-reference |
| 2056 | (url "https://github.com/vapoursynth/vapoursynth.git") |
| 2057 | (commit (string-append "R" version)))) |
| 2058 | (file-name (git-file-name name version)) |
| 2059 | (sha256 |
| 2060 | (base32 |
| 2061 | "1ma2s7dxk6y6l04qj1jvgwia4xj7999ny3a1yx2vbk5l83giam2p")))) |
| 2062 | (build-system gnu-build-system) |
| 2063 | (native-inputs |
| 2064 | `(("autoconf" ,autoconf) |
| 2065 | ("automake" ,automake) |
| 2066 | ("cython" ,python-cython) |
| 2067 | ("libtool" ,libtool) |
| 2068 | ("pkg-config" ,pkg-config) |
| 2069 | ("python" ,python) |
| 2070 | ("yasm" ,yasm))) |
| 2071 | (inputs |
| 2072 | `(("ffmpeg" ,ffmpeg) |
| 2073 | ("libass" ,libass) |
| 2074 | ("tesseract-ocr" ,tesseract-ocr) |
| 2075 | ("zimg" ,zimg))) |
| 2076 | (home-page "http://www.vapoursynth.com/") |
| 2077 | (synopsis "Video processing framework") |
| 2078 | (description "VapourSynth is a C++ library and Python module for video |
| 2079 | manipulation. It aims to be a modern rewrite of Avisynth, supporting |
| 2080 | multithreading, generalized colorspaces, per frame properties, and videos with |
| 2081 | format changes.") |
| 2082 | ;; src/core/cpufeatures only allows x86, ARM or PPC |
| 2083 | (supported-systems (fold delete %supported-systems |
| 2084 | '("mips64el-linux" "aarch64-linux"))) |
| 2085 | ;; As seen from the source files. |
| 2086 | (license license:lgpl2.1+))) |
| 2087 | |
| 2088 | (define-public xvid |
| 2089 | (package |
| 2090 | (name "xvid") |
| 2091 | (version "1.3.5") |
| 2092 | (source (origin |
| 2093 | (method url-fetch) |
| 2094 | (uri (string-append |
| 2095 | "http://downloads.xvid.org/downloads/xvidcore-" |
| 2096 | version ".tar.bz2")) |
| 2097 | (sha256 |
| 2098 | (base32 |
| 2099 | "1d0hy1w9sn6491a3vhyf3vmhq4xkn6yd4ralx1191s6qz5wz483w")))) |
| 2100 | (build-system gnu-build-system) |
| 2101 | (native-inputs `(("yasm" ,yasm))) |
| 2102 | (arguments |
| 2103 | '(#:phases |
| 2104 | (modify-phases %standard-phases |
| 2105 | (add-before |
| 2106 | 'configure 'pre-configure |
| 2107 | (lambda _ |
| 2108 | (chdir "build/generic") |
| 2109 | (substitute* "configure" |
| 2110 | (("#! /bin/sh") (string-append "#!" (which "sh")))) |
| 2111 | #t))) |
| 2112 | ;; No 'check' target. |
| 2113 | #:tests? #f)) |
| 2114 | (home-page "https://www.xvid.com/") |
| 2115 | (synopsis "MPEG-4 Part 2 Advanced Simple Profile video codec") |
| 2116 | (description "Xvid is an MPEG-4 Part 2 Advanced Simple Profile (ASP) video |
| 2117 | codec library. It uses ASP features such as b-frames, global and quarter |
| 2118 | pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG |
| 2119 | and custom quantization matrices.") |
| 2120 | (license license:gpl2+))) |
| 2121 | |
| 2122 | (define-public streamlink |
| 2123 | (package |
| 2124 | (name "streamlink") |
| 2125 | (version "0.14.2") |
| 2126 | (source |
| 2127 | (origin |
| 2128 | (method url-fetch) |
| 2129 | (uri (pypi-uri "streamlink" version)) |
| 2130 | (sha256 |
| 2131 | (base32 |
| 2132 | "0l2145fd60i76afjisfxd48cwhwyir07i7s3bnimdq5db2kzkix8")) |
| 2133 | (patches (search-patches "streamlink-update-test.patch")))) |
| 2134 | (build-system python-build-system) |
| 2135 | (home-page "https://github.com/streamlink/streamlink") |
| 2136 | (native-inputs |
| 2137 | `(("python-freezegun" ,python-freezegun) |
| 2138 | ("python-pytest" ,python-pytest) |
| 2139 | ("python-mock" ,python-mock) |
| 2140 | ("python-requests-mock" ,python-requests-mock))) |
| 2141 | (propagated-inputs |
| 2142 | `(("python-pysocks" ,python-pysocks) |
| 2143 | ("python-websocket-client" ,python-websocket-client) |
| 2144 | ("python-iso3166" ,python-iso3166) |
| 2145 | ("python-iso639" ,python-iso639) |
| 2146 | ("python-isodate" ,python-isodate) |
| 2147 | ("python-pycryptodome" ,python-pycryptodome) |
| 2148 | ("python-requests" ,python-requests) |
| 2149 | ("python-urllib3" ,python-urllib3))) |
| 2150 | (synopsis "Extract streams from various services") |
| 2151 | (description "Streamlink is command-line utility that extracts streams |
| 2152 | from sites like Twitch.tv and pipes them into a video player of choice.") |
| 2153 | (license license:bsd-2))) |
| 2154 | |
| 2155 | (define-public livestreamer |
| 2156 | (deprecated-package "livestreamer" streamlink)) |
| 2157 | |
| 2158 | (define-public twitchy |
| 2159 | (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag |
| 2160 | (package |
| 2161 | (name "twitchy") |
| 2162 | (version (git-version "3.4" "1" commit)) |
| 2163 | (source |
| 2164 | (origin |
| 2165 | (method git-fetch) |
| 2166 | (uri (git-reference |
| 2167 | (url "https://github.com/BasioMeusPuga/twitchy.git") |
| 2168 | (commit commit))) |
| 2169 | (file-name (git-file-name name version)) |
| 2170 | (sha256 |
| 2171 | (base32 |
| 2172 | "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7")))) |
| 2173 | (build-system python-build-system) |
| 2174 | (arguments |
| 2175 | '(#:phases |
| 2176 | (modify-phases %standard-phases |
| 2177 | (add-after 'unpack 'patch-paths |
| 2178 | (lambda* (#:key inputs #:allow-other-keys) |
| 2179 | (substitute* "twitchy/twitchy_play.py" |
| 2180 | (("\"streamlink ") |
| 2181 | (string-append "\"" (assoc-ref inputs "streamlink") |
| 2182 | "/bin/streamlink "))) |
| 2183 | #t)) |
| 2184 | (add-before 'check 'check-setup |
| 2185 | (lambda _ |
| 2186 | (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’. |
| 2187 | #t)) |
| 2188 | (add-after 'install 'install-rofi-plugin |
| 2189 | (lambda* (#:key outputs #:allow-other-keys) |
| 2190 | (install-file "plugins/rofi-twitchy" |
| 2191 | (string-append (assoc-ref outputs "out") |
| 2192 | "/bin")) |
| 2193 | #t))))) |
| 2194 | (inputs |
| 2195 | `(("python-requests" ,python-requests) |
| 2196 | ("streamlink" ,streamlink))) |
| 2197 | (home-page "https://github.com/BasioMeusPuga/twitchy") |
| 2198 | (synopsis "Command-line interface for Twitch.tv") |
| 2199 | (description |
| 2200 | "This package provides a command-line interface for Twitch.tv") |
| 2201 | (license license:gpl3+)))) |
| 2202 | |
| 2203 | (define-public mlt |
| 2204 | (package |
| 2205 | (name "mlt") |
| 2206 | (version "6.12.0") |
| 2207 | (source (origin |
| 2208 | (method git-fetch) |
| 2209 | (uri (git-reference |
| 2210 | (url "https://github.com/mltframework/mlt.git") |
| 2211 | (commit (string-append "v" version)))) |
| 2212 | (file-name (git-file-name name version)) |
| 2213 | (sha256 |
| 2214 | (base32 |
| 2215 | "0pzm3mjbbdl2rkbswgyfkx552xlxh2qrwzsi2a4dicfr92rfgq6w")))) |
| 2216 | (build-system gnu-build-system) |
| 2217 | (arguments |
| 2218 | `(#:tests? #f ; no tests |
| 2219 | #:make-flags '("CC=gcc" "CXX=g++ -std=gnu++11") |
| 2220 | #:configure-flags |
| 2221 | (list "--enable-gpl3" |
| 2222 | "--enable-gpl") |
| 2223 | #:phases |
| 2224 | (modify-phases %standard-phases |
| 2225 | (add-after |
| 2226 | 'configure 'override-LDFLAGS |
| 2227 | (lambda* (#:key outputs #:allow-other-keys) |
| 2228 | (substitute* "config.mak" |
| 2229 | (("LDFLAGS\\+=") |
| 2230 | (string-append "LDFLAGS+=-Wl,-rpath=" |
| 2231 | (assoc-ref outputs "out") |
| 2232 | "/lib "))) |
| 2233 | #t))))) |
| 2234 | (inputs |
| 2235 | `(("alsa-lib" ,alsa-lib) |
| 2236 | ("ffmpeg" ,ffmpeg-3.4) |
| 2237 | ("fftw" ,fftw) |
| 2238 | ("frei0r-plugins" ,frei0r-plugins) |
| 2239 | ("gdk-pixbuf" ,gdk-pixbuf) |
| 2240 | ("gtk+" ,gtk+-2) |
| 2241 | ("libxml2" ,libxml2) |
| 2242 | ("jack" ,jack-1) |
| 2243 | ("ladspa" ,ladspa) |
| 2244 | ("libsamplerate" ,libsamplerate) |
| 2245 | ("pulseaudio" ,pulseaudio) |
| 2246 | ("qtbase" ,qtbase) |
| 2247 | ("qtsvg" ,qtsvg) |
| 2248 | ("sdl" ,sdl) |
| 2249 | ("sox" ,sox))) |
| 2250 | (native-inputs |
| 2251 | `(("pkg-config" ,pkg-config))) |
| 2252 | (home-page "https://www.mltframework.org/") |
| 2253 | (synopsis "Author, manage, and run multitrack audio/video compositions") |
| 2254 | (description |
| 2255 | "MLT is a multimedia framework, designed and developed for television |
| 2256 | broadcasting. It provides a toolkit for broadcasters, video editors, media |
| 2257 | players, transcoders, web streamers and many more types of applications. The |
| 2258 | functionality of the system is provided via an assortment of ready to use |
| 2259 | tools, XML authoring components, and an extensible plug-in based API.") |
| 2260 | (license license:gpl3))) |
| 2261 | |
| 2262 | (define-public v4l-utils |
| 2263 | (package |
| 2264 | (name "v4l-utils") |
| 2265 | (version "1.16.6") |
| 2266 | (source (origin |
| 2267 | (method url-fetch) |
| 2268 | (uri (string-append "https://linuxtv.org/downloads/v4l-utils" |
| 2269 | "/v4l-utils-" version ".tar.bz2")) |
| 2270 | (sha256 |
| 2271 | (base32 |
| 2272 | "1bkqlrizx0j2rd6ybam2x17bjrpwzl4v4szmnzm3cmixis3w3npr")))) |
| 2273 | (build-system gnu-build-system) |
| 2274 | (arguments |
| 2275 | '(#:configure-flags |
| 2276 | (list (string-append "--with-udevdir=" |
| 2277 | (assoc-ref %outputs "out") |
| 2278 | "/lib/udev") |
| 2279 | "CXXFLAGS=-std=gnu++11"))) |
| 2280 | (native-inputs |
| 2281 | `(("perl" ,perl) |
| 2282 | ("pkg-config" ,pkg-config))) |
| 2283 | (inputs |
| 2284 | `(("alsa-lib" ,alsa-lib) |
| 2285 | ("glu" ,glu) |
| 2286 | ("libjpeg" ,libjpeg) |
| 2287 | ("libx11" ,libx11) |
| 2288 | ("qtbase" ,qtbase) |
| 2289 | ("eudev" ,eudev))) |
| 2290 | (synopsis "Realtime video capture utilities for Linux") |
| 2291 | (description "The v4l-utils provide a series of libraries and utilities to |
| 2292 | be used for realtime video capture via Linux-specific APIs.") |
| 2293 | (home-page "https://linuxtv.org/wiki/index.php/V4l-utils") |
| 2294 | ;; libv4l2 is LGPL2.1+, while utilities are GPL2 only. |
| 2295 | (license (list license:lgpl2.1+ license:gpl2)))) |
| 2296 | |
| 2297 | (define-public obs |
| 2298 | (package |
| 2299 | (name "obs") |
| 2300 | (version "23.0.2") |
| 2301 | (source (origin |
| 2302 | (method git-fetch) |
| 2303 | (uri (git-reference |
| 2304 | (url "https://github.com/obsproject/obs-studio.git") |
| 2305 | (commit version))) |
| 2306 | (file-name (git-file-name name version)) |
| 2307 | (sha256 |
| 2308 | (base32 |
| 2309 | "1c0a5vy4h3qwz69qw3bydyk7r651ib5a9jna4yj6c25p3p9isdvp")))) |
| 2310 | (build-system cmake-build-system) |
| 2311 | (arguments |
| 2312 | `(#:tests? #f)) ; no tests |
| 2313 | (native-inputs |
| 2314 | `(("pkg-config" ,pkg-config))) |
| 2315 | (inputs |
| 2316 | `(("alsa-lib" ,alsa-lib) |
| 2317 | ("curl" ,curl) |
| 2318 | ("eudev" ,eudev) |
| 2319 | ("ffmpeg" ,ffmpeg) |
| 2320 | ("fontconfig" ,fontconfig) |
| 2321 | ("freetype" ,freetype) |
| 2322 | ("jack" ,jack-1) |
| 2323 | ("jansson" ,jansson) |
| 2324 | ("libx264" ,libx264) |
| 2325 | ("libxcomposite" ,libxcomposite) |
| 2326 | ("mesa" ,mesa) |
| 2327 | ("pulseaudio" ,pulseaudio) |
| 2328 | ("qtbase" ,qtbase) |
| 2329 | ("qtx11extras" ,qtx11extras) |
| 2330 | ("speex" ,speex) |
| 2331 | ("v4l-utils" ,v4l-utils) |
| 2332 | ("zlib" ,zlib))) |
| 2333 | (synopsis "Live streaming software") |
| 2334 | (description "Open Broadcaster Software provides a graphical interface for |
| 2335 | video recording and live streaming. OBS supports capturing audio and video |
| 2336 | from many input sources such as webcams, X11 (for screencasting), PulseAudio, |
| 2337 | and JACK.") |
| 2338 | (home-page "https://obsproject.com") |
| 2339 | (supported-systems '("x86_64-linux" "i686-linux")) |
| 2340 | (license license:gpl2+))) |
| 2341 | |
| 2342 | (define-public libvdpau |
| 2343 | (package |
| 2344 | (name "libvdpau") |
| 2345 | (version "1.2") |
| 2346 | (source |
| 2347 | (origin |
| 2348 | (method url-fetch) |
| 2349 | (uri (string-append "https://gitlab.freedesktop.org/vdpau/libvdpau" |
| 2350 | "/uploads/14b620084c027d546fa0b3f083b800c6/" |
| 2351 | "libvdpau-" version ".tar.bz2")) |
| 2352 | (sha256 |
| 2353 | (base32 |
| 2354 | "01ps6g6p6q7j2mjm9vn44pmzq3g75mm7mdgmnhb1qkjjdwc9njba")))) |
| 2355 | (build-system gnu-build-system) |
| 2356 | (native-inputs |
| 2357 | `(("pkg-config" ,pkg-config))) |
| 2358 | (inputs |
| 2359 | `(("libx11" ,libx11 "out") |
| 2360 | ("libxext" ,libxext) |
| 2361 | ("xorgproto" ,xorgproto))) |
| 2362 | (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/") |
| 2363 | (synopsis "Video Decode and Presentation API") |
| 2364 | (description "VDPAU is the Video Decode and Presentation API for UNIX. It |
| 2365 | provides an interface to video decode acceleration and presentation hardware |
| 2366 | present in modern GPUs.") |
| 2367 | (license (license:x11-style "file://COPYING")))) |
| 2368 | |
| 2369 | (define-public vdpauinfo |
| 2370 | (package |
| 2371 | (name "vdpauinfo") |
| 2372 | (version "1.0") |
| 2373 | (source |
| 2374 | (origin |
| 2375 | (method url-fetch) |
| 2376 | (uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/" |
| 2377 | name "-" version ".tar.gz")) |
| 2378 | (sha256 |
| 2379 | (base32 |
| 2380 | "1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20")))) |
| 2381 | (build-system gnu-build-system) |
| 2382 | (native-inputs |
| 2383 | `(("pkg-config" ,pkg-config) |
| 2384 | ("libx11" ,libx11))) |
| 2385 | (propagated-inputs |
| 2386 | `(("libvdpau" ,libvdpau))) |
| 2387 | (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/") |
| 2388 | (synopsis "Tool to query the capabilities of a VDPAU implementation") |
| 2389 | (description "Vdpauinfo is a tool to query the capabilities of a VDPAU |
| 2390 | implementation.") |
| 2391 | (license (license:x11-style "file://COPYING")))) |
| 2392 | |
| 2393 | (define-public libvdpau-va-gl |
| 2394 | (package |
| 2395 | (name "libvdpau-va-gl") |
| 2396 | (version "0.4.2") |
| 2397 | (source |
| 2398 | (origin |
| 2399 | (method url-fetch) |
| 2400 | (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/" |
| 2401 | "releases/download/v" version "/libvdpau-va-gl-" |
| 2402 | version ".tar.gz")) |
| 2403 | (sha256 |
| 2404 | (base32 |
| 2405 | "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx")) |
| 2406 | (patches (search-patches "libvdpau-va-gl-unbundle.patch")) |
| 2407 | (modules '((guix build utils))) |
| 2408 | (snippet '(begin (delete-file-recursively "3rdparty") |
| 2409 | #t)))) |
| 2410 | (build-system cmake-build-system) |
| 2411 | (arguments |
| 2412 | '(#:tests? #f)) ; Tests require a running X11 server, with VA-API support. |
| 2413 | (native-inputs |
| 2414 | `(("libvdpau" ,libvdpau) |
| 2415 | ("pkg-config" ,pkg-config))) |
| 2416 | (inputs |
| 2417 | `(("libva" ,libva) |
| 2418 | ("mesa" ,mesa))) |
| 2419 | (home-page "https://github.com/i-rinat/libvdpau-va-gl") |
| 2420 | (synopsis "VDPAU driver with VA-API/OpenGL backend") |
| 2421 | (description |
| 2422 | "Many applications can use VDPAU to accelerate portions of the video |
| 2423 | decoding process and video post-processing to the GPU video hardware. Since |
| 2424 | there is no VDPAU available on Intel chips, they fall back to different drawing |
| 2425 | techniques. This driver uses OpenGL under the hood to accelerate drawing and |
| 2426 | scaling and VA-API (if available) to accelerate video decoding.") |
| 2427 | (license license:expat))) |
| 2428 | |
| 2429 | (define-public recordmydesktop |
| 2430 | (package |
| 2431 | (name "recordmydesktop") |
| 2432 | (version "0.3.8.1") |
| 2433 | (source (origin |
| 2434 | (method url-fetch) |
| 2435 | (uri (string-append "mirror://sourceforge/" name "/" name "/" |
| 2436 | version "/recordmydesktop-" version ".tar.gz")) |
| 2437 | (sha256 |
| 2438 | (base32 |
| 2439 | "133kkl5j0r877d41bzj7kj0vf3xm8x80yyx2n8nqxrva304f58ik")))) |
| 2440 | (build-system gnu-build-system) |
| 2441 | (inputs `(("popt" ,popt) |
| 2442 | ("zlib" ,zlib) |
| 2443 | ("libx11" ,libx11) |
| 2444 | ("libice" ,libice) |
| 2445 | ("libsm" ,libsm) |
| 2446 | ("libxfixes" ,libxfixes) |
| 2447 | ("libxdamage" ,libxdamage) |
| 2448 | ("libxext" ,libxext) |
| 2449 | ("alsa-lib" ,alsa-lib) |
| 2450 | ("libvorbis" ,libvorbis) |
| 2451 | ("libtheora" ,libtheora))) |
| 2452 | (home-page "http://recordmydesktop.sourceforge.net/") |
| 2453 | (synopsis "Desktop session video recorder") |
| 2454 | (description |
| 2455 | "recordMyDesktop is a command-line tool that captures the activity in |
| 2456 | your graphical desktop and encodes it as a video. This is a useful tool for |
| 2457 | making @dfn{screencasts}.") |
| 2458 | (license license:gpl2+))) |
| 2459 | |
| 2460 | (define-public simplescreenrecorder |
| 2461 | (package |
| 2462 | (name "simplescreenrecorder") |
| 2463 | (version "0.3.11") |
| 2464 | (source |
| 2465 | (origin |
| 2466 | (method git-fetch) |
| 2467 | (uri (git-reference |
| 2468 | (url "https://github.com/MaartenBaert/ssr.git") |
| 2469 | (commit version))) |
| 2470 | (file-name (git-file-name name version)) |
| 2471 | (sha256 |
| 2472 | (base32 |
| 2473 | "0n702dnv4qshgn3b90ixvplfafjhgz6040yir5vy8khjdpciysq4")))) |
| 2474 | (build-system cmake-build-system) |
| 2475 | ;; Although libx11, libxfixes, libxext are listed as build dependencies in |
| 2476 | ;; README.md, the program builds and functions properly without them. |
| 2477 | ;; As a result, they are omitted. Please add them back if problems appear. |
| 2478 | (inputs |
| 2479 | `(("alsa-lib" ,alsa-lib) |
| 2480 | ("ffmpeg" ,ffmpeg) |
| 2481 | ("glu" ,glu) |
| 2482 | ("jack" ,jack-1) |
| 2483 | ("libxi" ,libxi) |
| 2484 | ("pulseaudio" ,pulseaudio) |
| 2485 | ("qtbase" ,qtbase) |
| 2486 | ("qtx11extras" ,qtx11extras))) |
| 2487 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 2488 | (arguments |
| 2489 | `(#:configure-flags |
| 2490 | (list "-DWITH_QT5=TRUE") |
| 2491 | #:tests? #f)) ; no test suite |
| 2492 | ;; Using HTTPS causes part of the page to be displayed improperly. |
| 2493 | (home-page "http://www.maartenbaert.be/simplescreenrecorder/") |
| 2494 | (synopsis "Screen recorder") |
| 2495 | (description "SimpleScreenRecorder is an easy to use screen recorder with |
| 2496 | a graphical user interface. It supports recording the entire screen, or a |
| 2497 | part of it, and allows encoding in many different codecs and file formats. |
| 2498 | Other features include a live preview and live streaming.") |
| 2499 | (license (list license:gpl3+ ; most files |
| 2500 | license:zlib ; glinject/elfhacks.* |
| 2501 | license:isc ; glinject/* |
| 2502 | license:x11)))) ; build-aux/install-sh |
| 2503 | |
| 2504 | (define-public libsmpeg |
| 2505 | (package |
| 2506 | (name "libsmpeg") |
| 2507 | (version "0.4.5-401") |
| 2508 | (source (origin |
| 2509 | (method svn-fetch) |
| 2510 | (uri (svn-reference |
| 2511 | (url "svn://svn.icculus.org/smpeg/trunk/") |
| 2512 | (revision 401))) ; last revision before smpeg2 (for SDL 2.0) |
| 2513 | (file-name (string-append name "-" version "-checkout")) |
| 2514 | (sha256 |
| 2515 | (base32 |
| 2516 | "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn")))) |
| 2517 | (build-system gnu-build-system) |
| 2518 | (native-inputs |
| 2519 | `(("autoconf" ,autoconf) |
| 2520 | ("automake" ,automake))) |
| 2521 | (inputs |
| 2522 | `(("sdl" ,sdl2))) |
| 2523 | (home-page "http://icculus.org/smpeg/") |
| 2524 | (synopsis "SDL MPEG decoding library") |
| 2525 | (description |
| 2526 | "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library |
| 2527 | with sound support. Video playback is based on the ubiquitous Berkeley MPEG |
| 2528 | player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound |
| 2529 | library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video, |
| 2530 | and MPEG system streams.") |
| 2531 | (license (list license:expat |
| 2532 | license:lgpl2.1 |
| 2533 | license:lgpl2.1+ |
| 2534 | license:gpl2)))) |
| 2535 | |
| 2536 | ;; for btanks |
| 2537 | (define-public libsmpeg-with-sdl1 |
| 2538 | (package (inherit libsmpeg) |
| 2539 | (name "libsmpeg") |
| 2540 | (version "0.4.5-399") |
| 2541 | (source (origin |
| 2542 | (method svn-fetch) |
| 2543 | (uri (svn-reference |
| 2544 | (url "svn://svn.icculus.org/smpeg/trunk/") |
| 2545 | (revision 399))) ; tagged release 0.4.5 |
| 2546 | (file-name (string-append name "-" version "-checkout")) |
| 2547 | (sha256 |
| 2548 | (base32 |
| 2549 | "0jfi085rf3fa5xsn0vd3nqf32my8ph9c6a9445y7a8lrlz4dms64")))) |
| 2550 | (inputs |
| 2551 | `(("sdl" ,sdl))))) |
| 2552 | |
| 2553 | (define-public libbdplus |
| 2554 | (package |
| 2555 | (name "libbdplus") |
| 2556 | (version "0.1.2") |
| 2557 | (source |
| 2558 | (origin |
| 2559 | (method url-fetch) |
| 2560 | (uri (string-append "https://ftp.videolan.org/pub/videolan/libbdplus/" |
| 2561 | version "/" name "-" version ".tar.bz2")) |
| 2562 | (sha256 |
| 2563 | (base32 "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6")))) |
| 2564 | (inputs |
| 2565 | `(("libgcrypt" ,libgcrypt))) |
| 2566 | (build-system gnu-build-system) |
| 2567 | (home-page "https://www.videolan.org/developers/libbdplus.html") |
| 2568 | (synopsis "Library for decrypting certain Blu-Ray discs") |
| 2569 | (description "libbdplus is a library which implements the BD+ System |
| 2570 | specifications.") |
| 2571 | (license license:lgpl2.1+))) |
| 2572 | |
| 2573 | (define-public libaacs |
| 2574 | (package |
| 2575 | (name "libaacs") |
| 2576 | (version "0.9.0") |
| 2577 | (source |
| 2578 | (origin |
| 2579 | (method url-fetch) |
| 2580 | (uri (string-append "https://ftp.videolan.org/pub/videolan/libaacs/" |
| 2581 | version "/" name "-" version ".tar.bz2")) |
| 2582 | (sha256 |
| 2583 | (base32 "1kms92i0c7i1yl659kqjf19lm8172pnpik5lsxp19xphr74vvq27")))) |
| 2584 | (inputs |
| 2585 | `(("libgcrypt" ,libgcrypt))) |
| 2586 | (native-inputs |
| 2587 | `(("bison" ,bison) |
| 2588 | ("flex" ,flex))) |
| 2589 | (build-system gnu-build-system) |
| 2590 | (home-page "https://www.videolan.org/developers/libaacs.html") |
| 2591 | (synopsis "Library for decrypting certain Blu-Ray discs") |
| 2592 | (description "libaacs is a library which implements the Advanced Access |
| 2593 | Content System specification.") |
| 2594 | (license license:lgpl2.1+))) |
| 2595 | |
| 2596 | (define-public mps-youtube |
| 2597 | (package |
| 2598 | (name "mps-youtube") |
| 2599 | (version "0.2.8") |
| 2600 | (source |
| 2601 | (origin |
| 2602 | (method git-fetch) |
| 2603 | (uri (git-reference |
| 2604 | (url "https://github.com/mps-youtube/mps-youtube.git") |
| 2605 | (commit (string-append "v" version)))) |
| 2606 | (file-name (git-file-name name version)) |
| 2607 | (sha256 |
| 2608 | (base32 |
| 2609 | "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y")))) |
| 2610 | (build-system python-build-system) |
| 2611 | (arguments |
| 2612 | ;; Tests need to be disabled until #556 upstream is fixed. It reads as if the |
| 2613 | ;; test suite results differ depending on the country and also introduce |
| 2614 | ;; non-determinism in the tests. |
| 2615 | ;; https://github.com/mps-youtube/mps-youtube/issues/556 |
| 2616 | `(#:tests? #f)) |
| 2617 | (propagated-inputs |
| 2618 | `(("python-pafy" ,python-pafy) |
| 2619 | ("python-pygobject" ,python-pygobject))) ; For mpris2 support |
| 2620 | (home-page "https://github.com/mps-youtube/mps-youtube") |
| 2621 | (synopsis "Terminal based YouTube player and downloader") |
| 2622 | (description |
| 2623 | "@code{mps-youtube} is based on mps, a terminal based program to |
| 2624 | search, stream and download music. This implementation uses YouTube as |
| 2625 | a source of content and can play and download video as well as audio. |
| 2626 | It can use either mpv or mplayer for playback, and for conversion of |
| 2627 | formats ffmpeg or libav is used. Users should install one of the |
| 2628 | supported players in addition to this package.") |
| 2629 | (license license:gpl3+))) |
| 2630 | |
| 2631 | (define-public handbrake |
| 2632 | (package |
| 2633 | (name "handbrake") |
| 2634 | (version "1.1.2") |
| 2635 | (source (origin |
| 2636 | (method url-fetch) |
| 2637 | (uri (string-append "https://download.handbrake.fr/releases/" |
| 2638 | version "/HandBrake-" version "-source.tar.bz2")) |
| 2639 | (sha256 |
| 2640 | (base32 |
| 2641 | "0bny0hwlr55g2c69rsamv0xvwmfh1s4a582b9vq20xv5ly84m6ms")) |
| 2642 | (modules '((guix build utils))) |
| 2643 | (snippet |
| 2644 | ;; Remove "contrib" and source not necessary for |
| 2645 | ;; building/running under a GNU environment. |
| 2646 | '(begin |
| 2647 | (for-each delete-file-recursively |
| 2648 | '("contrib" "macosx" "win")) |
| 2649 | (substitute* "make/include/main.defs" |
| 2650 | ;; Disable unconditional inclusion of "contrib" libraries |
| 2651 | ;; (ffmpeg, libvpx, libdvdread, libdvdnav, and libbluray), |
| 2652 | ;; which would lead to fetching and building of these |
| 2653 | ;; libraries. Use our own instead. |
| 2654 | (("MODULES \\+= contrib") "# MODULES += contrib")) |
| 2655 | #t)))) |
| 2656 | (build-system glib-or-gtk-build-system) |
| 2657 | (native-inputs |
| 2658 | `(("automake" ,automake) ;gui subpackage must be bootstrapped |
| 2659 | ("autoconf" ,autoconf) |
| 2660 | ("curl" ,curl) ;not actually used, but tested for |
| 2661 | ("intltool" ,intltool) |
| 2662 | ("libtool" ,libtool) |
| 2663 | ("pkg-config" ,pkg-config) |
| 2664 | ("python" ,python-2))) ;for configuration |
| 2665 | (inputs |
| 2666 | `(("bzip2" ,bzip2) |
| 2667 | ("dbus-glib" ,dbus-glib) |
| 2668 | ("ffmpeg" ,ffmpeg) |
| 2669 | ("fontconfig" ,fontconfig) |
| 2670 | ("freetype" ,freetype) |
| 2671 | ("glib" ,glib) |
| 2672 | ("gstreamer" ,gstreamer) |
| 2673 | ("gst-plugins-base" ,gst-plugins-base) |
| 2674 | ("gtk+" ,gtk+) |
| 2675 | ("jansson" ,jansson) |
| 2676 | ("lame" ,lame) |
| 2677 | ("libass" ,libass) |
| 2678 | ("libbluray" ,libbluray) |
| 2679 | ("libdvdnav" ,libdvdnav) |
| 2680 | ("libdvdread" ,libdvdread) |
| 2681 | ("libgudev" ,libgudev) |
| 2682 | ("libmpeg2" ,libmpeg2) |
| 2683 | ("libnotify" ,libnotify) |
| 2684 | ("libogg" ,libogg) |
| 2685 | ("libopus" ,opus) |
| 2686 | ("libsamplerate" ,libsamplerate) |
| 2687 | ("libtheora" ,libtheora) |
| 2688 | ("libvorbis" ,libvorbis) |
| 2689 | ("libvpx" ,libvpx) |
| 2690 | ("libxml2" ,libxml2) |
| 2691 | ("libx264" ,libx264) |
| 2692 | ("x265" ,x265) |
| 2693 | ("zlib" ,zlib))) |
| 2694 | (arguments |
| 2695 | `(#:tests? #f ;tests require Ruby and claim to be unsupported |
| 2696 | #:configure-flags |
| 2697 | (list (string-append "CPPFLAGS=-I" |
| 2698 | (assoc-ref %build-inputs "libxml2") |
| 2699 | "/include/libxml2") |
| 2700 | "LDFLAGS=-lx265") |
| 2701 | #:phases |
| 2702 | (modify-phases %standard-phases |
| 2703 | (replace 'bootstrap |
| 2704 | ;; Run bootstrap ahead of time so that shebangs get patched. |
| 2705 | (lambda _ |
| 2706 | (setenv "CONFIG_SHELL" (which "sh")) |
| 2707 | (setenv "NOCONFIGURE" "1") |
| 2708 | ;; Patch the Makefile so that it doesn't bootstrap again. |
| 2709 | (substitute* "gtk/module.rules" |
| 2710 | ((".*autogen\\.sh.*") "")) |
| 2711 | (invoke "sh" "./gtk/autogen.sh"))) |
| 2712 | (replace 'configure |
| 2713 | (lambda* (#:key outputs configure-flags #:allow-other-keys) |
| 2714 | ;; 'configure' is not an autoconf-generated script, and |
| 2715 | ;; errors on unrecognized arguments, |
| 2716 | ;; e.g. --enable-fast-install |
| 2717 | (let ((out (assoc-ref outputs "out"))) |
| 2718 | (apply invoke "./configure" |
| 2719 | (string-append "--prefix=" out) |
| 2720 | (or configure-flags '()))))) |
| 2721 | (add-after 'configure 'chdir-build |
| 2722 | (lambda _ (chdir "./build") #t))))) |
| 2723 | (home-page "https://handbrake.fr") |
| 2724 | (synopsis "Video transcoder") |
| 2725 | (description |
| 2726 | "HandBrake is a tool for converting video from any format to a selection |
| 2727 | of modern, widely supported codecs.") |
| 2728 | ;; Some under GPLv2+, some under LGPLv2.1+, and portions under BSD3. |
| 2729 | ;; Combination under GPLv2. See LICENSE. |
| 2730 | (license license:gpl2))) |
| 2731 | |
| 2732 | (define-public intel-vaapi-driver |
| 2733 | (package |
| 2734 | (name "intel-vaapi-driver") |
| 2735 | (version "2.3.0") |
| 2736 | (source |
| 2737 | (origin |
| 2738 | (method url-fetch) |
| 2739 | (uri (string-append "https://github.com/intel/intel-vaapi-driver/" |
| 2740 | "releases/download/" version "/intel-vaapi-driver-" |
| 2741 | version ".tar.bz2")) |
| 2742 | (sha256 |
| 2743 | (base32 "1qyzxh3p8cw4fv8bz9zd4kc8hajlaps7xryzh6pad814n3m5sbjw")))) |
| 2744 | (build-system gnu-build-system) |
| 2745 | (native-inputs |
| 2746 | `(("pkg-config" ,pkg-config))) |
| 2747 | (inputs |
| 2748 | `(("libdrm" ,libdrm) |
| 2749 | ("libva" ,libva) |
| 2750 | ("libx11" ,libx11))) |
| 2751 | (arguments |
| 2752 | `(#:phases |
| 2753 | (modify-phases %standard-phases |
| 2754 | (add-before 'configure 'set-target-directory |
| 2755 | (lambda* (#:key outputs #:allow-other-keys) |
| 2756 | (let ((out (assoc-ref outputs "out"))) |
| 2757 | (setenv "LIBVA_DRIVERS_PATH" (string-append out "/lib/dri")) |
| 2758 | #t)))))) |
| 2759 | ;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add |
| 2760 | ;; this to all VA-API back ends instead of once to libva. |
| 2761 | (native-search-paths |
| 2762 | (list (search-path-specification |
| 2763 | (variable "LIBVA_DRIVERS_PATH") |
| 2764 | (files '("lib/dri"))))) |
| 2765 | (supported-systems '("i686-linux" "x86_64-linux")) |
| 2766 | (home-page "https://01.org/linuxmedia/vaapi") |
| 2767 | (synopsis "VA-API video acceleration driver for Intel GEN Graphics devices") |
| 2768 | (description |
| 2769 | "This is the @acronym{VA-API, Video Acceleration API} back end required for |
| 2770 | hardware-accelerated video processing on Intel GEN Graphics devices supported by |
| 2771 | the i915 driver, such as integrated Intel HD Graphics. It provides access to |
| 2772 | both hardware and shader functionality for faster encoding, decoding, and |
| 2773 | post-processing of video formats like MPEG2, H.264/AVC, and VC-1.") |
| 2774 | (license (list license:bsd-2 ; src/gen9_vp9_const_def.c |
| 2775 | license:expat)))) ; the rest, excluding the test suite |
| 2776 | |
| 2777 | (define-public openh264 |
| 2778 | (package |
| 2779 | (name "openh264") |
| 2780 | (version "2.0.0") |
| 2781 | (source (origin |
| 2782 | (method url-fetch) |
| 2783 | (uri (string-append "https://github.com/cisco/" |
| 2784 | name "/releases/download/v" |
| 2785 | version "/Source.Code.tar.gz")) |
| 2786 | (file-name (string-append name "-" version ".tar.gz")) |
| 2787 | (sha256 |
| 2788 | (base32 |
| 2789 | "0iq802xfsfkskg6q1j0kg90xh04vv1sxf61mrmahgynz5d7hx2ii")))) |
| 2790 | (build-system gnu-build-system) |
| 2791 | (native-inputs |
| 2792 | `(("nasm" ,nasm) |
| 2793 | ("python" ,python))) |
| 2794 | (arguments |
| 2795 | '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 2796 | "CC=gcc") |
| 2797 | #:test-target "test" |
| 2798 | #:phases (modify-phases %standard-phases |
| 2799 | ;; no configure script |
| 2800 | (delete 'configure)))) |
| 2801 | (home-page "http://www.openh264.org/") |
| 2802 | (synopsis "H264 decoder library") |
| 2803 | (description |
| 2804 | "Openh264 is a library which can decode H264 video streams.") |
| 2805 | (license license:bsd-2))) |
| 2806 | |
| 2807 | (define-public libmp4v2 |
| 2808 | (package |
| 2809 | (name "libmp4v2") |
| 2810 | (version "2.0.0") |
| 2811 | (source |
| 2812 | (origin |
| 2813 | (method url-fetch) |
| 2814 | ;; XXX: The new location of upstream is uncertain and will become relevant the |
| 2815 | ;; moment when the googlecode archive shuts down. It is past the date it |
| 2816 | ;; should've been turned off. I tried to communicate with upstream, but this |
| 2817 | ;; wasn't very responsive and not very helpful. The short summary is, it is |
| 2818 | ;; chaos when it comes to the amount of forks and only time will tell where |
| 2819 | ;; the new upstream location is. |
| 2820 | (uri (string-append "https://storage.googleapis.com/google-" |
| 2821 | "code-archive-downloads/v2/" |
| 2822 | "code.google.com/mp4v2/mp4v2-" version ".tar.bz2")) |
| 2823 | (file-name (string-append name "-" version ".tar.bz2")) |
| 2824 | (sha256 |
| 2825 | (base32 |
| 2826 | "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683")))) |
| 2827 | (build-system gnu-build-system) |
| 2828 | (outputs '("out" |
| 2829 | "static")) ; 3.7MiB .a file |
| 2830 | (arguments |
| 2831 | `(#:phases |
| 2832 | (modify-phases %standard-phases |
| 2833 | (add-after 'unpack 'remove-dates |
| 2834 | (lambda _ |
| 2835 | ;; Make the build reproducible. |
| 2836 | (substitute* "configure" |
| 2837 | (("PROJECT_build=\"`date`\"") "PROJECT_build=\"\"") |
| 2838 | (("ac_abs_top_builddir=$ac_pwd") "ac_abs_top_builddir=\"\"")) |
| 2839 | #t)) |
| 2840 | (add-after 'install 'move-static-libraries |
| 2841 | (lambda* (#:key outputs #:allow-other-keys) |
| 2842 | ;; Move static libraries to the "static" output. |
| 2843 | (let* ((out (assoc-ref outputs "out")) |
| 2844 | (lib (string-append out "/lib")) |
| 2845 | (static (assoc-ref outputs "static")) |
| 2846 | (slib (string-append static "/lib"))) |
| 2847 | (mkdir-p slib) |
| 2848 | (for-each (lambda (file) |
| 2849 | (install-file file slib) |
| 2850 | (delete-file file)) |
| 2851 | (find-files lib "\\.a$")) |
| 2852 | #t)))))) |
| 2853 | (native-inputs |
| 2854 | `(("help2man" ,help2man) |
| 2855 | ("dejagnu" ,dejagnu))) |
| 2856 | (home-page "https://code.google.com/archive/p/mp4v2/") |
| 2857 | (synopsis "API to create and modify mp4 files") |
| 2858 | (description |
| 2859 | "The MP4v2 library provides an API to create and modify mp4 files as defined by |
| 2860 | ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime |
| 2861 | file format that has been used as a multimedia file format in a variety of platforms and |
| 2862 | applications. It is a very powerful and extensible format that can accommodate |
| 2863 | practically any type of media.") |
| 2864 | (license license:mpl1.1))) |
| 2865 | |
| 2866 | (define-public libmediainfo |
| 2867 | (package |
| 2868 | (name "libmediainfo") |
| 2869 | (version "0.7.95") |
| 2870 | (source (origin |
| 2871 | (method url-fetch) |
| 2872 | (uri (string-append "https://mediaarea.net/download/source/" |
| 2873 | name "/" version"/" |
| 2874 | name "_" version ".tar.bz2")) |
| 2875 | (sha256 |
| 2876 | (base32 |
| 2877 | "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b")))) |
| 2878 | ;; TODO add a Big Buck Bunny webm for tests. |
| 2879 | (native-inputs |
| 2880 | `(("autoconf" ,autoconf) |
| 2881 | ("automake" ,automake) |
| 2882 | ("libtool" ,libtool) |
| 2883 | ("pkg-config" ,pkg-config) |
| 2884 | ("zlib" ,zlib) |
| 2885 | ("tinyxml2" ,tinyxml2) |
| 2886 | ("curl" ,curl) |
| 2887 | ("libzen" ,libzen))) |
| 2888 | (build-system gnu-build-system) |
| 2889 | (arguments |
| 2890 | '(#:tests? #f ; see above TODO |
| 2891 | #:phases |
| 2892 | ;; build scripts not in root of archive |
| 2893 | (modify-phases %standard-phases |
| 2894 | (add-after 'unpack 'change-to-build-dir |
| 2895 | (lambda _ |
| 2896 | (chdir "Project/GNU/Library") |
| 2897 | #t))))) |
| 2898 | (home-page "https://mediaarea.net/en/MediaInfo") |
| 2899 | (synopsis "Library for retrieving media metadata") |
| 2900 | (description "MediaInfo is a library used for retrieving technical |
| 2901 | information and other metadata about audio or video files. A non-exhaustive |
| 2902 | list of the information MediaInfo can retrieve from media files include: |
| 2903 | |
| 2904 | @itemize |
| 2905 | @item General: title, author, director, album, track number, date, duration... |
| 2906 | @item Video: codec, aspect, fps, bitrate... |
| 2907 | @item Audio: codec, sample rate, channels, language, bitrate... |
| 2908 | @item Text: language of subtitle |
| 2909 | @item Chapters: number of chapters, list of chapters |
| 2910 | @end itemize |
| 2911 | |
| 2912 | MediaInfo supports the following formats: |
| 2913 | |
| 2914 | @itemize |
| 2915 | @item Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
| 2916 | MPEG-2, MPEG-4, DVD (VOB)... |
| 2917 | @item Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) |
| 2918 | @item Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF... |
| 2919 | @item Subtitles: SRT, SSA, ASS, SAMI... |
| 2920 | @end itemize\n") |
| 2921 | (license license:bsd-2))) |
| 2922 | |
| 2923 | ;; TODO also have a GUI version available |
| 2924 | (define-public mediainfo |
| 2925 | (package |
| 2926 | (name "mediainfo") |
| 2927 | (version "18.12") |
| 2928 | (source (origin |
| 2929 | (method url-fetch) |
| 2930 | ;; Warning: This source has proved unreliable 1 time at least. |
| 2931 | ;; Consider an alternate source or report upstream if this |
| 2932 | ;; happens again. |
| 2933 | (uri (string-append "https://mediaarea.net/download/source/" |
| 2934 | name "/" version "/" |
| 2935 | name "_" version ".tar.bz2")) |
| 2936 | (sha256 |
| 2937 | (base32 |
| 2938 | "1ix95ilcjlawcq6phh25cgplm3riqa2ii7ql82g8yagqs4ldqp6a")))) |
| 2939 | (native-inputs |
| 2940 | `(("autoconf" ,autoconf) |
| 2941 | ("automake" ,automake) |
| 2942 | ("libtool" ,libtool) |
| 2943 | ("pkg-config" ,pkg-config) |
| 2944 | ("zlib" ,zlib) |
| 2945 | ("libmediainfo" ,libmediainfo) |
| 2946 | ("libzen" ,libzen))) |
| 2947 | (build-system gnu-build-system) |
| 2948 | (arguments |
| 2949 | '(#:tests? #f ; lacks tests |
| 2950 | #:phases |
| 2951 | ;; build scripts not in root of archive |
| 2952 | (modify-phases %standard-phases |
| 2953 | (add-after 'unpack 'change-to-build-dir |
| 2954 | (lambda _ |
| 2955 | (chdir "Project/GNU/CLI") |
| 2956 | #t))))) |
| 2957 | (home-page "https://mediaarea.net/en/MediaInfo") |
| 2958 | (synopsis "Utility for reading media metadata") |
| 2959 | (description "MediaInfo is a utility used for retrieving technical |
| 2960 | information and other metadata about audio or video files. It supports the |
| 2961 | many codecs and formats supported by libmediainfo.") |
| 2962 | (license license:bsd-2))) |
| 2963 | |
| 2964 | (define-public livemedia-utils |
| 2965 | (package |
| 2966 | (name "livemedia-utils") |
| 2967 | (version "2019.05.29") |
| 2968 | (source (origin |
| 2969 | (method url-fetch) |
| 2970 | (uri (string-append |
| 2971 | "https://download.videolan.org/contrib/live555/live." |
| 2972 | version ".tar.gz")) |
| 2973 | (sha256 |
| 2974 | (base32 |
| 2975 | "08i63jr8ihn1xiq5z5n3yls3yz6li5sg0s454l56p5bcvbrw81my")))) |
| 2976 | (build-system gnu-build-system) |
| 2977 | (arguments |
| 2978 | '(#:tests? #f ; no tests |
| 2979 | #:make-flags (list "CC=gcc" |
| 2980 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 2981 | (assoc-ref %outputs "out") "/lib") |
| 2982 | (string-append "PREFIX=" |
| 2983 | (assoc-ref %outputs "out"))) |
| 2984 | #:phases (modify-phases %standard-phases |
| 2985 | (add-before 'configure 'fix-makefiles-generation |
| 2986 | (lambda _ |
| 2987 | (substitute* "genMakefiles" |
| 2988 | (("/bin/rm") "rm")) |
| 2989 | #t)) |
| 2990 | (replace 'configure |
| 2991 | (lambda _ |
| 2992 | (invoke "./genMakefiles" |
| 2993 | "linux-with-shared-libraries")))))) |
| 2994 | (home-page "http://www.live555.com/liveMedia/") |
| 2995 | (synopsis "Set of C++ libraries for multimedia streaming") |
| 2996 | (description "This code forms a set of C++ libraries for multimedia |
| 2997 | streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). The libraries |
| 2998 | can be used to stream, receive, and process MPEG, H.265, H.264, H.263+, DV or |
| 2999 | JPEG video, and several audio codecs. They can easily be extended to support |
| 3000 | additional (audio and/or video) codecs, and can also be used to build basic |
| 3001 | RTSP or SIP clients and servers.") |
| 3002 | (license license:lgpl3+))) |
| 3003 | |
| 3004 | (define-public libdvbpsi |
| 3005 | (package |
| 3006 | (name "libdvbpsi") |
| 3007 | (version "1.3.2") |
| 3008 | (source (origin |
| 3009 | (method url-fetch) |
| 3010 | (uri (string-append |
| 3011 | "https://download.videolan.org/pub/libdvbpsi/" |
| 3012 | version "/libdvbpsi-" version ".tar.bz2")) |
| 3013 | (sha256 |
| 3014 | (base32 |
| 3015 | "1zn5hfv4qbahmydbwh59a3b480s3m5ss27r6ml35gqdip7r3jkmc")))) |
| 3016 | (build-system gnu-build-system) |
| 3017 | (home-page "https://www.videolan.org/developers/libdvbpsi.html") |
| 3018 | (synopsis "Library for decoding and generation of MPEG TS and DVB PSI |
| 3019 | tables") |
| 3020 | (description "libdvbpsi is a simple library designed for decoding and |
| 3021 | generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818s |
| 3022 | and ITU-T H.222.0.") |
| 3023 | (license license:lgpl2.1))) |
| 3024 | |
| 3025 | (define-public ffms2 |
| 3026 | (package |
| 3027 | (name "ffms2") |
| 3028 | (version "2.23") |
| 3029 | (home-page "https://github.com/FFMS/ffms2") |
| 3030 | (source (origin |
| 3031 | (method git-fetch) |
| 3032 | (uri (git-reference |
| 3033 | (url "https://github.com/FFMS/ffms2.git") |
| 3034 | (commit version))) |
| 3035 | (file-name (git-file-name name version)) |
| 3036 | (sha256 |
| 3037 | (base32 |
| 3038 | "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5")))) |
| 3039 | (build-system gnu-build-system) |
| 3040 | (arguments |
| 3041 | '(#:configure-flags |
| 3042 | (list "--enable-avresample"))) |
| 3043 | (inputs |
| 3044 | `(("zlib" ,zlib))) |
| 3045 | (propagated-inputs |
| 3046 | `(("ffmpeg" ,ffmpeg))) |
| 3047 | (native-inputs |
| 3048 | `(("pkg-config" ,pkg-config))) |
| 3049 | (synopsis "Cross-platform wrapper around ffmpeg/libav") |
| 3050 | (description |
| 3051 | "FFMpegSource is a wrapper library around ffmpeg/libav that allows |
| 3052 | programmers to access a standard API to open and decompress media files.") |
| 3053 | ;; sources are distributed under a different license that the binary. |
| 3054 | ;; see https://github.com/FFMS/ffms2/blob/master/COPYING |
| 3055 | (license license:gpl2+))); inherits from ffmpeg |
| 3056 | |
| 3057 | (define-public aegisub |
| 3058 | (package |
| 3059 | (name "aegisub") |
| 3060 | (version "3.2.2") |
| 3061 | (source (origin |
| 3062 | (method url-fetch) |
| 3063 | (uri (string-append |
| 3064 | "http://ftp.aegisub.org/pub/archives/releases/source/" |
| 3065 | name "-" version ".tar.xz")) |
| 3066 | (sha256 |
| 3067 | (base32 |
| 3068 | "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5")) |
| 3069 | (patches (search-patches "aegisub-icu59-include-unistr.patch" |
| 3070 | "aegisub-boost68.patch")))) |
| 3071 | (build-system gnu-build-system) |
| 3072 | (arguments |
| 3073 | `(#:configure-flags |
| 3074 | (list "--disable-update-checker" |
| 3075 | "--without-portaudio" |
| 3076 | "--without-openal" |
| 3077 | "--without-oss" |
| 3078 | "CXXFLAGS=-DU_USING_ICU_NAMESPACE=1") |
| 3079 | ;; tests require busted, a lua package we don't have yet |
| 3080 | #:tests? #f |
| 3081 | #:phases |
| 3082 | (modify-phases %standard-phases |
| 3083 | (add-before 'configure 'fix-ldflags |
| 3084 | (lambda _ |
| 3085 | (setenv "LDFLAGS" "-pthread") |
| 3086 | #t)) |
| 3087 | (add-after 'unpack 'fix-boost-headers |
| 3088 | (lambda _ |
| 3089 | (substitute* |
| 3090 | '("src/subtitles_provider_libass.cpp" |
| 3091 | "src/colour_button.cpp" |
| 3092 | "src/video_provider_dummy.cpp" |
| 3093 | "./src/video_frame.cpp") |
| 3094 | (("#include <boost/gil/gil_all.hpp>") |
| 3095 | "#include <boost/gil.hpp>")) |
| 3096 | #t))))) |
| 3097 | (inputs |
| 3098 | `(("boost" ,boost) |
| 3099 | ("desktop-file-utils" ,desktop-file-utils) |
| 3100 | ("ffms2" ,ffms2) |
| 3101 | ("fftw" ,fftw) |
| 3102 | ("hunspell" ,hunspell) |
| 3103 | ("mesa" ,mesa) |
| 3104 | ("libass" ,libass) |
| 3105 | ("alsa-lib" ,alsa-lib) |
| 3106 | ("pulseaudio" ,pulseaudio) |
| 3107 | ("libx11" ,libx11) |
| 3108 | ("freetype" ,freetype) |
| 3109 | ("wxwidgets-gtk2" ,wxwidgets-gtk2))) |
| 3110 | (native-inputs |
| 3111 | `(("intltool" ,intltool) |
| 3112 | ("pkg-config" ,pkg-config))) |
| 3113 | (home-page "http://www.aegisub.org/") |
| 3114 | (synopsis "Subtitle engine") |
| 3115 | (description |
| 3116 | "Aegisub is a tool for creating and modifying subtitles. Aegisub makes |
| 3117 | it quick and easy to time subtitles to audio, and features many powerful |
| 3118 | tools for styling them, including a built-in real-time video preview.") |
| 3119 | (license (list license:bsd-3 ; the package is licensed under the bsd-3, except |
| 3120 | license:mpl1.1 ; for vendor/universalchardet under the mpl1.1 |
| 3121 | license:expat)))) ; and src/gl that is under a license similar |
| 3122 | ; the the Expat license, with a rewording (Software -> Materials). (called MIT |
| 3123 | ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE |
| 3124 | ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author |
| 3125 | |
| 3126 | (define-public gst-transcoder |
| 3127 | (package |
| 3128 | (name "gst-transcoder") |
| 3129 | (version "1.12.2") |
| 3130 | (source |
| 3131 | (origin |
| 3132 | (method git-fetch) |
| 3133 | (uri (git-reference |
| 3134 | (url "https://github.com/pitivi/gst-transcoder.git") |
| 3135 | (commit version))) |
| 3136 | (file-name (git-file-name name version)) |
| 3137 | (sha256 |
| 3138 | (base32 |
| 3139 | "0nw1zykqc6c8xs3ri55pm00pwyz93z4y4nd880apfiwj7yv5p3az")))) |
| 3140 | (build-system meson-build-system) |
| 3141 | (inputs |
| 3142 | `(("gobject-introspection" ,gobject-introspection) |
| 3143 | ("glib" ,glib) |
| 3144 | ("gstreamer" ,gstreamer) |
| 3145 | ("gst-plugins-base" ,gst-plugins-base))) |
| 3146 | (native-inputs |
| 3147 | `(("python" ,python) |
| 3148 | ("pkg-config" ,pkg-config))) |
| 3149 | (home-page "https://github.com/pitivi/gst-transcoder/") |
| 3150 | (synopsis "GStreamer Transcoding API") |
| 3151 | (description "GStreamer Transcoding API") |
| 3152 | (license license:lgpl2.1))) |
| 3153 | |
| 3154 | (define-public gavl |
| 3155 | (package |
| 3156 | (name "gavl") |
| 3157 | (version "1.4.0") |
| 3158 | (source |
| 3159 | (origin |
| 3160 | (method url-fetch) |
| 3161 | (uri (string-append "mirror://sourceforge/gmerlin/" |
| 3162 | name "/" version "/" |
| 3163 | name "-" version ".tar.gz")) |
| 3164 | (file-name (string-append name "-" version ".tar.gz")) |
| 3165 | (sha256 |
| 3166 | (base32 |
| 3167 | "1kikkn971a14zzm7svi7190ldc14fjai0xyhpbcmp48s750sraji")))) |
| 3168 | (build-system gnu-build-system) |
| 3169 | (arguments |
| 3170 | '(#:configure-flags '("LIBS=-lm"))) |
| 3171 | (native-inputs |
| 3172 | `(("pkg-config" ,pkg-config) |
| 3173 | ("doxygen" ,doxygen))) |
| 3174 | (home-page "http://gmerlin.sourceforge.net") |
| 3175 | (synopsis "Low level library for multimedia API building") |
| 3176 | (description |
| 3177 | "Gavl is short for Gmerlin Audio Video Library. It is a low level |
| 3178 | library, upon which multimedia APIs can be built. Gavl handles all the |
| 3179 | details of audio and video formats like colorspaces, sample rates, |
| 3180 | multichannel configurations, etc. It provides standardized definitions for |
| 3181 | those formats as well as container structures for carrying audio samples or |
| 3182 | video images inside an application. |
| 3183 | |
| 3184 | In addition, it handles the sometimes ugly task of converting between all |
| 3185 | these formats and provides some elementary operations (copying, scaling, |
| 3186 | alpha blending etc).") |
| 3187 | (license license:gpl3))) |
| 3188 | |
| 3189 | (define-public frei0r-plugins |
| 3190 | (package |
| 3191 | (name "frei0r-plugins") |
| 3192 | (version "1.6.1") |
| 3193 | (source |
| 3194 | (origin |
| 3195 | (method url-fetch) |
| 3196 | (uri (string-append "https://files.dyne.org/frei0r/" |
| 3197 | "frei0r-plugins-" version ".tar.gz")) |
| 3198 | (sha256 |
| 3199 | (base32 |
| 3200 | "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0")))) |
| 3201 | (build-system gnu-build-system) |
| 3202 | (arguments |
| 3203 | `(#:phases |
| 3204 | (modify-phases %standard-phases |
| 3205 | (add-after 'unpack 'autotools |
| 3206 | (lambda _ |
| 3207 | (invoke "sh" "autogen.sh")))))) |
| 3208 | ;; TODO: opencv for additional face detection filters. |
| 3209 | (inputs |
| 3210 | `(("gavl" ,gavl) |
| 3211 | ("cairo" ,cairo))) |
| 3212 | (native-inputs |
| 3213 | `(("pkg-config" ,pkg-config) |
| 3214 | ("libtool" ,libtool) |
| 3215 | ("automake" ,automake) |
| 3216 | ("autoconf" ,autoconf))) |
| 3217 | (home-page "https://www.dyne.org/software/frei0r/") |
| 3218 | (synopsis "Minimalistic plugin API for video effects") |
| 3219 | (description |
| 3220 | "Frei0r is a minimalistic plugin API for video effects. |
| 3221 | The main emphasis is on simplicity for an API that will round up |
| 3222 | the most common video effects into simple filters, sources and |
| 3223 | mixers that can be controlled by parameters. Frei0r wants to |
| 3224 | provide a way to share these simple effects between many |
| 3225 | applications, avoiding their reimplementation by different projects. |
| 3226 | It counts more than 100 plugins.") |
| 3227 | (license (list license:gpl2+ |
| 3228 | ;; The following files are licensed as LGPL2.1+: |
| 3229 | ;; src/generator/ising0r/ising0r.c |
| 3230 | ;; src/generator/onecol0r/onecol0r.cpp |
| 3231 | ;; src/generator/nois0r/nois0r.cpp |
| 3232 | ;; src/generator/lissajous0r/lissajous0r.cpp |
| 3233 | ;; src/filter/ndvi/gradientlut.hpp |
| 3234 | ;; src/filter/ndvi/ndvi.cpp |
| 3235 | ;; src/filter/facedetect/facedetect.cpp |
| 3236 | license:lgpl2.1+)))) |
| 3237 | |
| 3238 | (define-public motion |
| 3239 | (package |
| 3240 | (name "motion") |
| 3241 | (version "4.2.2") |
| 3242 | (home-page "https://motion-project.github.io/") |
| 3243 | (source (origin |
| 3244 | (method git-fetch) |
| 3245 | (uri (git-reference |
| 3246 | (url "https://github.com/Motion-Project/motion.git") |
| 3247 | (commit (string-append "release-" version)))) |
| 3248 | (sha256 |
| 3249 | (base32 |
| 3250 | "05c1gx75xy2hw49x6vkydvwxbr80kipsc3nr906k3hq8735svx6f")) |
| 3251 | (file-name (git-file-name name version)))) |
| 3252 | (build-system gnu-build-system) |
| 3253 | (native-inputs |
| 3254 | `(("autoconf" ,autoconf-wrapper) |
| 3255 | ("automake" ,automake) |
| 3256 | ("gettext" ,gettext-minimal) |
| 3257 | ("pkg-config" ,pkg-config))) |
| 3258 | (inputs |
| 3259 | `(("libjpeg" ,libjpeg) |
| 3260 | ("ffmpeg" ,ffmpeg-3.4) |
| 3261 | ("libmicrohttpd" ,libmicrohttpd) |
| 3262 | ("sqlite" ,sqlite))) |
| 3263 | (arguments |
| 3264 | '(#:phases (modify-phases %standard-phases |
| 3265 | (replace 'bootstrap |
| 3266 | (lambda _ |
| 3267 | (patch-shebang "version.sh") |
| 3268 | (invoke "autoreconf" "-vfi")))) |
| 3269 | #:configure-flags '("--sysconfdir=/etc") |
| 3270 | #:make-flags (list (string-append "sysconfdir=" |
| 3271 | (assoc-ref %outputs "out") |
| 3272 | "/etc")) |
| 3273 | |
| 3274 | #:tests? #f)) ; no 'check' target |
| 3275 | (synopsis "Detect motion from video signals") |
| 3276 | (description |
| 3277 | "Motion is a program that monitors the video signal from one or more |
| 3278 | cameras and is able to detect if a significant part of the picture has |
| 3279 | changed. Or in other words, it can detect motion.") |
| 3280 | |
| 3281 | ;; Some files say "version 2" and others "version 2 or later". |
| 3282 | (license license:gpl2))) |
| 3283 | |
| 3284 | (define-public subdl |
| 3285 | (let ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471") |
| 3286 | (revision "1")) |
| 3287 | (package |
| 3288 | (name "subdl") |
| 3289 | (version (git-version "1.0.3" revision commit)) |
| 3290 | (source (origin |
| 3291 | (method git-fetch) |
| 3292 | (uri (git-reference |
| 3293 | (url "https://github.com/alexanderwink/subdl.git") |
| 3294 | (commit commit))) |
| 3295 | (file-name (git-file-name name version)) |
| 3296 | (sha256 |
| 3297 | (base32 |
| 3298 | "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8")))) |
| 3299 | (build-system trivial-build-system) |
| 3300 | (arguments |
| 3301 | `(#:modules ((guix build utils)) |
| 3302 | #:builder (begin |
| 3303 | (use-modules (guix build utils)) |
| 3304 | (let* ((out (assoc-ref %outputs "out")) |
| 3305 | (bin (string-append out "/bin")) |
| 3306 | (source (assoc-ref %build-inputs "source")) |
| 3307 | (python (assoc-ref %build-inputs "python"))) |
| 3308 | (install-file (string-append source "/subdl") bin) |
| 3309 | (patch-shebang (string-append bin "/subdl") |
| 3310 | (list (string-append python "/bin"))))))) |
| 3311 | (inputs `(("python" ,python))) |
| 3312 | (synopsis "Command-line tool for downloading subtitles from opensubtitles.org") |
| 3313 | (description "Subdl is a command-line tool for downloading subtitles from |
| 3314 | opensubtitles.org. By default, it will search for English subtitles, display |
| 3315 | the results, download the highest-rated result in the requested language and |
| 3316 | save it to the appropriate filename.") |
| 3317 | (license license:gpl3+) |
| 3318 | (home-page "https://github.com/alexanderwink/subdl")))) |
| 3319 | |
| 3320 | (define-public l-smash |
| 3321 | (package |
| 3322 | (name "l-smash") |
| 3323 | (version "2.14.5") |
| 3324 | (source (origin |
| 3325 | (method git-fetch) |
| 3326 | (uri (git-reference |
| 3327 | (url "https://github.com/l-smash/l-smash.git") |
| 3328 | (commit (string-append "v" version)))) |
| 3329 | (file-name (git-file-name name version)) |
| 3330 | (sha256 |
| 3331 | (base32 |
| 3332 | "0rcq9727im6kd8da8b7kzzbzxdldvmh5nsljj9pvr4m3lj484b02")))) |
| 3333 | (build-system gnu-build-system) |
| 3334 | (arguments |
| 3335 | `(#:tests? #f ;no tests |
| 3336 | #:make-flags |
| 3337 | (list (string-append "LDFLAGS=-Wl,-L.,-rpath=" |
| 3338 | (assoc-ref %outputs "out") "/lib")) |
| 3339 | #:phases |
| 3340 | (modify-phases %standard-phases |
| 3341 | ;; configure fails if it is followed by CONFIG_SHELL |
| 3342 | (replace 'configure |
| 3343 | (lambda* (#:key outputs #:allow-other-keys) |
| 3344 | (let ((out (assoc-ref outputs "out"))) |
| 3345 | (invoke "./configure" (string-append "--prefix=" out) |
| 3346 | "--disable-static"))))))) |
| 3347 | (native-inputs |
| 3348 | `(("which" ,which))) |
| 3349 | (home-page "https://l-smash.github.io/l-smash/") |
| 3350 | (synopsis "MP4 multiplexer and demultiplexer library") |
| 3351 | (description |
| 3352 | "L-SMASH is a cross-platform library that handles the ISO base media file |
| 3353 | format and some of its derived file formats, including MP4. It operates as a |
| 3354 | multiplexer and demultiplexer, and can mux video and audio in several formats |
| 3355 | using standalone executable files.") |
| 3356 | (license license:isc))) |
| 3357 | |
| 3358 | (define-public qtfaststart |
| 3359 | (package |
| 3360 | (name "qtfaststart") |
| 3361 | (version "1.8") |
| 3362 | (source (origin |
| 3363 | (method url-fetch) |
| 3364 | (uri (pypi-uri "qtfaststart" version)) |
| 3365 | (sha256 |
| 3366 | (base32 |
| 3367 | "0hcjfik8hhb1syqvyh5c6aillpvzal26nkjflcq1270z64aj6i5h")))) |
| 3368 | (build-system python-build-system) |
| 3369 | (arguments |
| 3370 | '(#:tests? #f)) ; no test suite |
| 3371 | (synopsis "Move QuickTime and MP4 metadata to the beginning of the file") |
| 3372 | (description "qtfaststart enables streaming and pseudo-streaming of |
| 3373 | QuickTime and MP4 files by moving metadata and offset information to the |
| 3374 | beginning of the file. It can also print some useful information about the |
| 3375 | structure of the file. This program is based on qt-faststart.c from the FFmpeg |
| 3376 | project, which is released into the public domain, as well as ISO 14496-12:2005 |
| 3377 | (the official spec for MP4), which can be obtained from the ISO or found |
| 3378 | online.") |
| 3379 | (home-page "https://github.com/danielgtaylor/qtfaststart") |
| 3380 | (license license:expat))) |
| 3381 | |
| 3382 | (define-public vidstab |
| 3383 | (let ((commit "aeabc8daa7904f9edf7441a11f293965a5ef53b8") |
| 3384 | (revision "0")) |
| 3385 | (package |
| 3386 | (name "vidstab") |
| 3387 | (version (git-version "1.1.0" revision commit)) |
| 3388 | (source (origin |
| 3389 | (method git-fetch) |
| 3390 | (uri (git-reference |
| 3391 | (url "https://github.com/georgmartius/vid.stab.git") |
| 3392 | (commit commit))) |
| 3393 | (file-name (git-file-name name version)) |
| 3394 | (sha256 |
| 3395 | (base32 |
| 3396 | "042iy0f3khwzr68djzvqgn301sy21ljvkf52rnc2c73q7ircnzzn")))) |
| 3397 | (build-system cmake-build-system) |
| 3398 | (arguments |
| 3399 | '(#:tests? #f)) ; tests are not run as part of standard build process |
| 3400 | (home-page "http://public.hronopik.de/vid.stab/") |
| 3401 | (synopsis "Video stabilization library") |
| 3402 | (description "Vidstab is a video stabilization library which can be used |
| 3403 | with FFmpeg. A video acquired using a hand-held camera or a camera mounted on a |
| 3404 | vehicle typically suffers from undesirable shakes and jitters. Activities such |
| 3405 | as surfing, skiing, riding and walking while shooting videos are especially |
| 3406 | prone to erratic camera shakes. Vidstab targets these video contents to help |
| 3407 | create smoother and stable videos.") |
| 3408 | (license license:gpl2+)))) |
| 3409 | |
| 3410 | (define-public libopenshot |
| 3411 | (package |
| 3412 | (name "libopenshot") |
| 3413 | (version "0.2.3") |
| 3414 | (source (origin |
| 3415 | (method git-fetch) |
| 3416 | (uri (git-reference |
| 3417 | (url "https://github.com/OpenShot/libopenshot") |
| 3418 | (commit (string-append "v" version)))) |
| 3419 | (file-name (git-file-name name version)) |
| 3420 | (sha256 |
| 3421 | (base32 |
| 3422 | "0r1qmr8ar5n72603xkj9h065vbpznrqsq88kxxmn9n8djyyvk03k")) |
| 3423 | (modules '((guix build utils))) |
| 3424 | (snippet '(begin |
| 3425 | ;; Allow overriding of the python installation dir |
| 3426 | (substitute* "src/bindings/python/CMakeLists.txt" |
| 3427 | (("(SET\\(PYTHON_MODULE_PATH.*)\\)" _ set) |
| 3428 | (string-append set " CACHE PATH " |
| 3429 | "\"Python bindings directory\")"))) |
| 3430 | (delete-file-recursively "thirdparty") |
| 3431 | #t)))) |
| 3432 | (build-system cmake-build-system) |
| 3433 | (native-inputs |
| 3434 | `(("pkg-config" ,pkg-config) |
| 3435 | ("python" ,python) |
| 3436 | ("swig" ,swig) |
| 3437 | ("unittest++" ,unittest-cpp))) |
| 3438 | (propagated-inputs ;all referenced in installed headers |
| 3439 | `(("cppzmq" ,cppzmq) |
| 3440 | ("ffmpeg" ,ffmpeg) |
| 3441 | ("imagemagick" ,imagemagick) |
| 3442 | ("jsoncpp" ,jsoncpp) |
| 3443 | ("libopenshot-audio" ,libopenshot-audio) |
| 3444 | ("qtbase" ,qtbase) |
| 3445 | ("qtmultimedia" ,qtmultimedia) |
| 3446 | ("zeromq" ,zeromq))) |
| 3447 | (arguments |
| 3448 | `(#:configure-flags |
| 3449 | (list (string-append "-DPYTHON_MODULE_PATH:PATH=" %output "/lib/python" |
| 3450 | ,(version-major+minor (package-version python)) |
| 3451 | "/site-packages") |
| 3452 | "-DUSE_SYSTEM_JSONCPP:BOOL=ON") |
| 3453 | #:phases |
| 3454 | (modify-phases %standard-phases |
| 3455 | (add-before 'configure 'set-vars |
| 3456 | (lambda* (#:key inputs #:allow-other-keys) |
| 3457 | (setenv "LIBOPENSHOT_AUDIO_DIR" |
| 3458 | (assoc-ref inputs "libopenshot-audio")) |
| 3459 | (setenv "ZMQDIR" |
| 3460 | (assoc-ref inputs "zeromq")) |
| 3461 | (setenv "UNITTEST_DIR" |
| 3462 | (string-append (assoc-ref inputs "unittest++") |
| 3463 | "/include/UnitTest++")) |
| 3464 | #t))))) |
| 3465 | (home-page "https://openshot.org") |
| 3466 | (synopsis "Video-editing, animation, and playback library") |
| 3467 | (description "OpenShot Library (libopenshot) is a powerful C++ video |
| 3468 | editing library with a multi-threaded and feature rich video editing |
| 3469 | API. It includes bindings for Python, Ruby, and other languages.") |
| 3470 | (license license:lgpl3+))) |
| 3471 | |
| 3472 | (define-public openshot |
| 3473 | (package |
| 3474 | (name "openshot") |
| 3475 | (version "2.4.4") |
| 3476 | (source (origin |
| 3477 | (method git-fetch) |
| 3478 | (uri (git-reference |
| 3479 | (url "https://github.com/OpenShot/openshot-qt") |
| 3480 | (commit (string-append "v" version)))) |
| 3481 | (file-name (git-file-name name version)) |
| 3482 | (sha256 |
| 3483 | (base32 |
| 3484 | "0mg63v36h7l8kv2sgf6x8c1n3ygddkqqwlciz7ccxpbm4x1idqba")) |
| 3485 | (modules '((guix build utils))) |
| 3486 | (snippet |
| 3487 | '(begin |
| 3488 | (delete-file-recursively "src/images/fonts") #t)))) |
| 3489 | (build-system python-build-system) |
| 3490 | (inputs |
| 3491 | `(("ffmpeg" ,ffmpeg) |
| 3492 | ("font-ubuntu" ,font-ubuntu) |
| 3493 | ("libopenshot" ,libopenshot) |
| 3494 | ("python" ,python) |
| 3495 | ("python-pyqt" ,python-pyqt) |
| 3496 | ("python-pyzmq" ,python-pyzmq) |
| 3497 | ("python-requests" ,python-requests) |
| 3498 | ("qtsvg" ,qtsvg))) |
| 3499 | (arguments |
| 3500 | `(#:tests? #f ;no tests |
| 3501 | #:modules ((guix build python-build-system) |
| 3502 | (guix build qt-utils) |
| 3503 | (guix build utils)) |
| 3504 | #:imported-modules (,@%python-build-system-modules |
| 3505 | (guix build qt-utils)) |
| 3506 | #:phases (modify-phases %standard-phases |
| 3507 | (delete 'build) ;install phase does all the work |
| 3508 | (add-after 'unpack 'patch-font-location |
| 3509 | (lambda* (#:key inputs #:allow-other-keys) |
| 3510 | (let ((font (assoc-ref inputs "font-ubuntu"))) |
| 3511 | (substitute* "src/classes/app.py" |
| 3512 | (("info.IMAGES_PATH") (string-append "\"" font "\"")) |
| 3513 | (("fonts") "share/fonts/truetype"))) |
| 3514 | #t)) |
| 3515 | (add-before 'install 'set-tmp-home |
| 3516 | (lambda _ |
| 3517 | ;; src/classes/info.py "needs" to create several |
| 3518 | ;; directories in $HOME when loaded during build |
| 3519 | (setenv "HOME" "/tmp") |
| 3520 | #t)) |
| 3521 | (add-after 'install 'wrap-program |
| 3522 | (lambda* (#:key outputs #:allow-other-keys) |
| 3523 | (let ((out (assoc-ref outputs "out"))) |
| 3524 | (wrap-qt-program out "openshot-qt")) |
| 3525 | #t))))) |
| 3526 | (home-page "https://openshot.org") |
| 3527 | (synopsis "Video editor") |
| 3528 | (description "OpenShot takes your videos, photos, and music files and |
| 3529 | helps you create the film you have always dreamed of. Easily add sub-titles, |
| 3530 | transitions, and effects and then export your film to many common formats.") |
| 3531 | (license license:gpl3+))) |
| 3532 | |
| 3533 | (define-public dav1d |
| 3534 | (package |
| 3535 | (name "dav1d") |
| 3536 | (version "0.4.0") |
| 3537 | (source |
| 3538 | (origin |
| 3539 | (method url-fetch) |
| 3540 | (uri (list ;; The canonical download site. |
| 3541 | (string-append "https://downloads.videolan.org/pub/videolan/" |
| 3542 | "dav1d/" version "/dav1d-" version ".tar.xz") |
| 3543 | |
| 3544 | ;; Auto-generated tarballs from the Git repo? |
| 3545 | (string-append "https://code.videolan.org/videolan/dav1d/-/" |
| 3546 | "archive/" version "/dav1d-" version ".tar.bz2"))) |
| 3547 | (sha256 |
| 3548 | (base32 |
| 3549 | "08yqml01lbcpflrshdpvn88jv3xd8gm559qikiwyrh41a3kb4lr5")))) |
| 3550 | (build-system meson-build-system) |
| 3551 | (native-inputs `(("nasm" ,nasm))) |
| 3552 | (home-page "https://code.videolan.org/videolan/dav1d") |
| 3553 | (synopsis "AV1 decoder") |
| 3554 | (description "dav1d is a new AV1 cross-platform decoder, and focused on |
| 3555 | speed and correctness.") |
| 3556 | (license license:bsd-2))) |
| 3557 | |
| 3558 | (define-public wlstream |
| 3559 | (let ((commit "182076a94562b128c3a97ecc53cc68905ea86838") |
| 3560 | (revision "1")) |
| 3561 | (package |
| 3562 | (name "wlstream") |
| 3563 | (version (git-version "0.0" revision commit)) |
| 3564 | (source |
| 3565 | (origin |
| 3566 | (method git-fetch) |
| 3567 | (uri (git-reference |
| 3568 | (url "https://github.com/atomnuker/wlstream.git") |
| 3569 | (commit commit))) |
| 3570 | (file-name (git-file-name name version)) |
| 3571 | (sha256 |
| 3572 | (base32 |
| 3573 | "01qbcgfl3g9kfwn1jf1z9pdj3bvf5lmg71d1vwkcllc2az24bjqp")))) |
| 3574 | (build-system meson-build-system) |
| 3575 | (native-inputs `(("libdrm" ,libdrm) |
| 3576 | ("pkg-config" ,pkg-config))) |
| 3577 | (inputs `(("ffmpeg" ,ffmpeg) |
| 3578 | ("pulseaudio" ,pulseaudio) |
| 3579 | ("wayland" ,wayland) |
| 3580 | ("wayland-protocols" ,wayland-protocols))) |
| 3581 | (home-page "https://github.com/atomnuker/wlstream") |
| 3582 | (synopsis "Screen capture tool for Wayland sessions") |
| 3583 | (description "Wlstream is a screen capture tool for recording audio and |
| 3584 | video from a Wayland session.") |
| 3585 | (license license:lgpl2.1+)))) |
| 3586 | |
| 3587 | (define-public gaupol |
| 3588 | (package |
| 3589 | (name "gaupol") |
| 3590 | (version "1.6") |
| 3591 | (source (origin |
| 3592 | (method git-fetch) |
| 3593 | (uri (git-reference |
| 3594 | (url "https://github.com/otsaloma/gaupol/") |
| 3595 | (commit version))) |
| 3596 | (file-name (git-file-name name version)) |
| 3597 | (sha256 |
| 3598 | (base32 |
| 3599 | "164wlxxjiqvkzbqjzvqvz2zkn0kgqmhn52294xx4vc9b9ngdnn0m")))) |
| 3600 | (build-system python-build-system) |
| 3601 | (native-inputs |
| 3602 | `(("gettext" ,gettext-minimal) |
| 3603 | ("pkg-config" ,pkg-config))) |
| 3604 | (inputs |
| 3605 | `(("python-pygobject" ,python-pygobject) |
| 3606 | ("gtk+" ,gtk+) |
| 3607 | ("python-pycairo" ,python-pycairo) ; Required or else clicking on a subtitle line fails. |
| 3608 | ("python-chardet" ,python-chardet) ; Optional: Character encoding detection. |
| 3609 | ("gtkspell3" ,gtkspell3) ; Optional: Inline spell-checking. |
| 3610 | ("iso-codes" ,iso-codes) ; Optional: Translations. |
| 3611 | ("gstreamer" ,gstreamer) |
| 3612 | ("gst-libav" ,gst-libav) |
| 3613 | ("gst-plugins-base" ,gst-plugins-base) |
| 3614 | ("gst-plugins-good" ,gst-plugins-good) |
| 3615 | ("gst-plugins-bad" ,gst-plugins-bad) |
| 3616 | ("gst-plugins-ugly" ,gst-plugins-ugly))) |
| 3617 | (arguments |
| 3618 | `(#:tests? #f ; Tests seem to require networking. |
| 3619 | #:phases |
| 3620 | (modify-phases %standard-phases |
| 3621 | ;; gaupol's setup.py script does not support one of the Python build |
| 3622 | ;; system's default flags, "--single-version-externally-managed". |
| 3623 | (replace 'install |
| 3624 | (lambda* (#:key outputs #:allow-other-keys) |
| 3625 | (invoke "python" "setup.py" "install" |
| 3626 | (string-append "--prefix=" (assoc-ref outputs "out")) |
| 3627 | "--root=/"))) |
| 3628 | (add-after 'install 'wrap-gaupol |
| 3629 | (lambda* (#:key outputs #:allow-other-keys) |
| 3630 | (let ((out (assoc-ref outputs "out")) |
| 3631 | (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")) |
| 3632 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) |
| 3633 | (wrap-program (string-append out "/bin/gaupol") |
| 3634 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)) |
| 3635 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) |
| 3636 | #t)) |
| 3637 | (add-after 'unpack 'patch-data-dir |
| 3638 | ;; Fix some path variables that setup.py seems to garble. |
| 3639 | (lambda* (#:key outputs #:allow-other-keys) |
| 3640 | (let ((out (assoc-ref outputs "out"))) |
| 3641 | (substitute* "setup.py" |
| 3642 | (("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)") |
| 3643 | (string-append "DATA_DIR = '" out "/share/gaupol'\"")) |
| 3644 | (("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)") |
| 3645 | (string-append "LOCALE_DIR = '" out "/share/locale'\""))) |
| 3646 | #t)))))) |
| 3647 | (synopsis "Editor for text-based subtitles") |
| 3648 | (description |
| 3649 | "Gaupol supports multiple subtitle file formats and provides means of |
| 3650 | creating subtitles, editing texts and timing subtitles to match video. The |
| 3651 | user interface features a builtin video player and is designed with attention |
| 3652 | to convenience of translating and batch processing of multiple documents.") |
| 3653 | (home-page "https://otsaloma.io/gaupol/") |
| 3654 | (license license:gpl3+))) |