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