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