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