Commit | Line | Data |
---|---|---|
22885fb8 | 1 | ;;; GNU Guix --- Functional package management for GNU |
71a4b2ab | 2 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
ce4a347f | 3 | ;;; Copyright © 2014 John Darrington <jmd@gnu.org> |
b3585d9b | 4 | ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com> |
0392030d | 5 | ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org> |
0d3ecf77 | 6 | ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
399c5faf | 7 | ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name> |
51895712 | 8 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
d22d7468 | 9 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
2a9d89af | 10 | ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com> |
22885fb8 AE |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages gstreamer) | |
5cde47ec | 28 | #:use-module ((guix licenses) #:prefix license:) |
22885fb8 AE |
29 | #:use-module (guix packages) |
30 | #:use-module (guix download) | |
31 | #:use-module (guix build-system gnu) | |
45b01f2e | 32 | #:use-module (guix build-system meson) |
201cfb81 | 33 | #:use-module (guix utils) |
f506ed92 | 34 | #:use-module (gnu packages) |
40f6f76e | 35 | #:use-module (gnu packages audio) |
22885fb8 | 36 | #:use-module (gnu packages bison) |
e9a0b5e7 | 37 | #:use-module (gnu packages cdrom) |
db12dac0 | 38 | #:use-module (gnu packages curl) |
1fcf67f4 | 39 | #:use-module (gnu packages compression) |
22885fb8 | 40 | #:use-module (gnu packages flex) |
db12dac0 SB |
41 | #:use-module (gnu packages freedesktop) |
42 | #:use-module (gnu packages gl) | |
22885fb8 | 43 | #:use-module (gnu packages glib) |
40f6f76e | 44 | #:use-module (gnu packages gnome) |
db12dac0 SB |
45 | #:use-module (gnu packages gnupg) |
46 | #:use-module (gnu packages graphics) | |
1fcf67f4 | 47 | #:use-module (gnu packages gtk) |
a4d89136 | 48 | #:use-module (gnu packages image) |
db12dac0 | 49 | #:use-module (gnu packages libusb) |
1fcf67f4 | 50 | #:use-module (gnu packages linux) |
40f6f76e | 51 | #:use-module (gnu packages mp3) |
51895712 | 52 | #:use-module (gnu packages ncurses) |
22885fb8 | 53 | #:use-module (gnu packages perl) |
a4d89136 | 54 | #:use-module (gnu packages pulseaudio) |
db12dac0 SB |
55 | #:use-module (gnu packages qt) |
56 | #:use-module (gnu packages rdf) | |
04a20db2 | 57 | #:use-module (gnu packages video) |
1fcf67f4 JD |
58 | #:use-module (gnu packages xorg) |
59 | #:use-module (gnu packages xiph) | |
22885fb8 | 60 | #:use-module (gnu packages pkg-config) |
f506ed92 | 61 | #:use-module (gnu packages python) |
db12dac0 SB |
62 | #:use-module (gnu packages ssh) |
63 | #:use-module (gnu packages telephony) | |
64 | #:use-module (gnu packages tls) | |
65 | #:use-module (gnu packages version-control) | |
09b87aff | 66 | #:use-module (gnu packages assembly) |
f506ed92 | 67 | #:use-module (gnu packages xml)) |
22885fb8 | 68 | |
195857b0 SB |
69 | (define-public orc |
70 | (package | |
71 | (name "orc") | |
99732a8f | 72 | (version "0.4.31") |
195857b0 SB |
73 | (source (origin |
74 | (method url-fetch) | |
5cc3096c | 75 | (uri (string-append "https://gstreamer.freedesktop.org/data/src/" |
195857b0 SB |
76 | "orc/orc-" version ".tar.xz")) |
77 | (sha256 | |
78 | (base32 | |
99732a8f | 79 | "0xb0c7q3xv1ldmz5ipybazb01gy3cijj8622dcx7rbm9lq85zax0")))) |
45b01f2e | 80 | (build-system meson-build-system) |
462b5676 EF |
81 | (arguments |
82 | `(#:phases | |
83 | (modify-phases %standard-phases | |
45b01f2e | 84 | (add-after 'unpack 'disable-faulty-test |
462b5676 EF |
85 | (lambda _ |
86 | ;; XXX Disable the 'test-limits' and 'exec_opcodes_sys' | |
87 | ;; tests, which fail on some machines. See: | |
88 | ;; https://bugzilla.gnome.org/show_bug.cgi?id=735273 | |
89 | (substitute* '("testsuite/test-limits.c" | |
90 | "testsuite/exec_opcodes_sys.c") | |
91 | (("if \\(error\\) return 1;") | |
0392030d MW |
92 | "if (error) return 77;")) |
93 | #t))))) | |
45b01f2e MB |
94 | (native-inputs |
95 | `(("gtk-doc" ,gtk-doc))) | |
57e7d748 | 96 | (home-page "https://gstreamer.freedesktop.org/modules/orc.html") |
195857b0 SB |
97 | (synopsis "Oil runtime compiler") |
98 | (description | |
99 | "Orc is a just-in-time compiler implemented as a library and set of | |
100 | associated tools for compiling and executing simple programs that operate on | |
101 | arrays of data.") | |
102 | ;; The source code implementing the Marsenne Twister algorithm is licensed | |
103 | ;; under the 3-clause BSD license, the rest is under 2-clause BSD license. | |
5cde47ec | 104 | (license (list license:bsd-2 license:bsd-3)))) |
195857b0 | 105 | |
22885fb8 AE |
106 | (define-public gstreamer |
107 | (package | |
108 | (name "gstreamer") | |
94249ba8 | 109 | (version "1.16.2") |
22885fb8 AE |
110 | (source |
111 | (origin | |
112 | (method url-fetch) | |
a124bbd2 | 113 | (uri (string-append |
5cc3096c | 114 | "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-" |
a124bbd2 | 115 | version ".tar.xz")) |
22885fb8 AE |
116 | (sha256 |
117 | (base32 | |
94249ba8 | 118 | "0kp93622y29pck8asvil1fmzf55s2gx76wv475a6izc3cwj49w73")))) |
22885fb8 | 119 | (build-system gnu-build-system) |
2fb016b8 SB |
120 | (outputs '("out" "doc")) |
121 | (arguments | |
31e021f8 | 122 | `(#:configure-flags |
2fb016b8 SB |
123 | (list (string-append "--with-html-dir=" |
124 | (assoc-ref %outputs "doc") | |
55d1d9eb | 125 | "/share/gtk-doc/html")))) |
e244dc6d | 126 | (propagated-inputs `(("glib" ,glib))) ; required by gstreamer-1.0.pc. |
c4c4cc05 | 127 | (native-inputs |
22885fb8 AE |
128 | `(("bison" ,bison) |
129 | ("flex" ,flex) | |
426adbe8 | 130 | ("glib" ,glib "bin") |
0f998a14 | 131 | ("gobject-introspection" ,gobject-introspection) |
22885fb8 AE |
132 | ("perl" ,perl) |
133 | ("pkg-config" ,pkg-config) | |
144f9f25 | 134 | ("python-wrapper" ,python-wrapper))) |
96693d1d SB |
135 | (native-search-paths |
136 | (list (search-path-specification | |
137 | (variable "GST_PLUGIN_SYSTEM_PATH") | |
138 | (files '("lib/gstreamer-1.0"))))) | |
5cc3096c | 139 | (home-page "https://gstreamer.freedesktop.org/") |
93bfe3e2 | 140 | (synopsis "Multimedia library") |
22885fb8 AE |
141 | (description |
142 | "GStreamer is a library for constructing graphs of media-handling | |
143 | components. The applications it supports range from simple Ogg/Vorbis | |
e881752c AK |
144 | playback, audio/video streaming to complex audio mixing and video |
145 | non-linear editing. | |
22885fb8 AE |
146 | |
147 | Applications can take advantage of advances in codec and filter technology | |
148 | transparently. Developers can add new codecs and filters by writing a | |
149 | simple plugin with a clean, generic interface. | |
150 | ||
151 | This package provides the core library and elements.") | |
5cde47ec | 152 | (license license:lgpl2.0+))) |
477c91ce AE |
153 | |
154 | (define-public gst-plugins-base | |
155 | (package | |
156 | (name "gst-plugins-base") | |
94249ba8 | 157 | (version "1.16.2") |
477c91ce AE |
158 | (source |
159 | (origin | |
160 | (method url-fetch) | |
8cf39f7f | 161 | (uri (string-append "https://gstreamer.freedesktop.org/src/" name "/" |
a124bbd2 | 162 | name "-" version ".tar.xz")) |
477c91ce AE |
163 | (sha256 |
164 | (base32 | |
94249ba8 | 165 | "0sl1hxlyq46r02k7z70v09vx1gi4rcypqmzra9jid93lzvi76gmi")))) |
477c91ce | 166 | (build-system gnu-build-system) |
e9a82129 | 167 | (outputs '("out" "doc")) |
34ff76fd | 168 | (propagated-inputs |
a53f4311 MB |
169 | `(("glib" ,glib) ;required by gstreamer-sdp-1.0.pc |
170 | ("gstreamer" ,gstreamer) ;required by gstreamer-plugins-base-1.0.pc | |
171 | ("orc" ,orc))) ;required by gstreamer-audio-1.0.pc | |
477c91ce | 172 | (inputs |
e9a0b5e7 | 173 | `(("cdparanoia" ,cdparanoia) |
1fcf67f4 JD |
174 | ("pango" ,pango) |
175 | ("libogg" ,libogg) | |
176 | ("libtheora" ,libtheora) | |
177 | ("libvorbis" ,libvorbis) | |
178 | ("libx11" ,libx11) | |
179 | ("zlib" ,zlib) | |
180 | ("libXext" ,libxext) | |
181 | ("libxv" ,libxv) | |
399c5faf LF |
182 | ("alsa-lib" ,alsa-lib) |
183 | ;; XXX Don't build with opus on 32-bit systems: | |
184 | ;; <https://bugs.gnu.org/32360> | |
185 | ,@(if (target-64bit?) | |
186 | `(("opus" ,opus)) | |
187 | '()))) | |
c4c4cc05 JD |
188 | (native-inputs |
189 | `(("pkg-config" ,pkg-config) | |
a53f4311 | 190 | ("glib:bin" ,glib "bin") |
4ec48644 | 191 | ("gobject-introspection" ,gobject-introspection) |
c4c4cc05 | 192 | ("python-wrapper" ,python-wrapper))) |
477c91ce | 193 | (arguments |
7bc36f8d SB |
194 | `(#:parallel-tests? #f ; 'pipelines/tcp' fails in parallel |
195 | #:configure-flags | |
e9a82129 SB |
196 | (list (string-append "--with-html-dir=" |
197 | (assoc-ref %outputs "doc") | |
198 | "/share/gtk-doc/html")) | |
199 | #:phases | |
cda6aaf0 EF |
200 | (modify-phases %standard-phases |
201 | (add-before 'configure 'patch | |
202 | (lambda _ | |
203 | (substitute* "tests/check/libs/pbutils.c" | |
de0e591a EF |
204 | (("/bin/sh") (which "sh"))) |
205 | #t))))) | |
70e863e5 | 206 | (home-page "https://gstreamer.freedesktop.org/") |
477c91ce | 207 | (synopsis |
1fcf67f4 JD |
208 | "Plugins for the GStreamer multimedia library") |
209 | (description "This package provides an essential exemplary set of plug-ins | |
210 | for the GStreamer multimedia library.") | |
5cde47ec | 211 | (license license:lgpl2.0+))) |
477c91ce | 212 | |
1fcf67f4 JD |
213 | (define-public gst-plugins-good |
214 | (package | |
215 | (name "gst-plugins-good") | |
94249ba8 | 216 | (version "1.16.2") |
1fcf67f4 JD |
217 | (source |
218 | (origin | |
219 | (method url-fetch) | |
e881752c | 220 | (uri (string-append |
48caecb7 SB |
221 | "https://gstreamer.freedesktop.org/src/" name "/" |
222 | name "-" version ".tar.xz")) | |
1fcf67f4 JD |
223 | (sha256 |
224 | (base32 | |
94249ba8 | 225 | "068k3cbv1yf3gbllfdzqsg263kzwh21y8dpwr0wvgh15vapkpfs0")))) |
1fcf67f4 JD |
226 | (build-system gnu-build-system) |
227 | (inputs | |
40f6f76e | 228 | `(("aalib" ,aalib) |
a4d89136 | 229 | ("cairo" ,cairo) |
a4d89136 | 230 | ("flac" ,flac) |
40f6f76e SB |
231 | ("gdk-pixbuf" ,gdk-pixbuf) |
232 | ("gst-plugins-base" ,gst-plugins-base) | |
b3aba78b | 233 | ("gtk+" ,gtk+) |
0dc2e348 | 234 | ("jack" ,jack-1) |
02d5ed4a | 235 | ("lame" ,lame) |
40f6f76e SB |
236 | ("libavc1394" ,libavc1394) |
237 | ("libcaca" ,libcaca) | |
238 | ("libdv" ,libdv) | |
239 | ("libiec61883" ,libiec61883) | |
a4d89136 | 240 | ("libjpeg" ,libjpeg) |
40f6f76e SB |
241 | ("libpng" ,libpng) |
242 | ("libshout" ,libshout) | |
243 | ("libsoup" ,libsoup) | |
244 | ("libvpx" ,libvpx) | |
02d5ed4a | 245 | ("mpg123" ,mpg123) |
40f6f76e | 246 | ("orc" ,orc) |
a4d89136 | 247 | ("pulseaudio" ,pulseaudio) |
40f6f76e SB |
248 | ("speex" ,speex) |
249 | ("taglib" ,taglib) | |
02d5ed4a | 250 | ("twolame" ,twolame) |
40f6f76e | 251 | ("wavpack" ,wavpack))) |
1fcf67f4 | 252 | (native-inputs |
40f6f76e SB |
253 | `(("glib:bin" ,glib "bin") |
254 | ("pkg-config" ,pkg-config) | |
255 | ("python-wrapper" ,python-wrapper))) | |
0ba652b2 | 256 | (arguments |
c9c63edb | 257 | `(#:phases |
0ba652b2 MW |
258 | (modify-phases %standard-phases |
259 | (add-after | |
d1ceedf8 | 260 | 'unpack 'disable-failing-tests |
0ba652b2 | 261 | (lambda _ |
d1ceedf8 | 262 | ;; Disable tests that fail non-deterministically. |
0d3ecf77 EF |
263 | ;; This test fails on aarch64 on 1.12.x. |
264 | (substitute* "tests/check/elements/alpha.c" | |
265 | (("tcase_add_test \\(tc_chain, test_chromakeying\\);" all) | |
0ba652b2 MW |
266 | (string-append "/* " all " */"))) |
267 | #t))))) | |
d1ceedf8 | 268 | (home-page "https://gstreamer.freedesktop.org/") |
1fcf67f4 JD |
269 | (synopsis |
270 | "Plugins for the GStreamer multimedia library") | |
271 | (description "GStreamer Good Plug-ins is a set of plug-ins for the | |
272 | GStreamer multimedia library. This set contains those plug-ins which the | |
273 | developers consider to have good quality code and correct functionality.") | |
5cde47ec | 274 | (license license:lgpl2.0+))) |
4e9b38eb | 275 | |
db12dac0 SB |
276 | (define-public gst-plugins-bad |
277 | (package | |
278 | (name "gst-plugins-bad") | |
94249ba8 | 279 | (version "1.16.2") |
db12dac0 SB |
280 | (source (origin |
281 | (method url-fetch) | |
282 | (uri (string-append "https://gstreamer.freedesktop.org/src/" | |
283 | name "/" name "-" version ".tar.xz")) | |
284 | (sha256 | |
285 | (base32 | |
94249ba8 | 286 | "0x0y0hm0ga3zqi5q4090hw5sjh59y1ry9ak16qsaascm72i7mjzi")))) |
db12dac0 SB |
287 | (outputs '("out" "doc")) |
288 | (build-system gnu-build-system) | |
289 | (arguments | |
a53f4311 | 290 | '(#:tests? #f ; XXX: 13 of 53 tests fail |
db12dac0 SB |
291 | #:configure-flags |
292 | (list (string-append "--with-html-dir=" | |
293 | (assoc-ref %outputs "doc") | |
4cb77941 | 294 | "/share/gtk-doc/html")))) |
db12dac0 SB |
295 | (propagated-inputs |
296 | `(("gst-plugins-base" ,gst-plugins-base))) | |
297 | (native-inputs | |
298 | `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc. | |
299 | ("gobject-introspection" ,gobject-introspection) | |
300 | ("pkg-config" ,pkg-config) | |
301 | ("python" ,python))) | |
302 | (inputs | |
303 | ;; XXX: The following dependencies are missing: | |
304 | ;; vo-amrwbenc, vo-aacenc, bs2b, chromaprint, directfb, daala, libdts, | |
305 | ;; faac, flite, libgsm, libde265, libmms, libmimic, mjpegtools, | |
306 | ;; mpeg2enc, libofa, opencv, openh264, openni2, libtimemmgr, wildmidi, | |
e3cb00d2 | 307 | ;; openspc, gme, sbc, schroedinger, zbar, librtmp, spandsp |
db12dac0 SB |
308 | `(("bluez" ,bluez) |
309 | ("curl" ,curl) | |
310 | ("faad2" ,faad2) | |
311 | ("fluidsynth" ,fluidsynth) | |
312 | ("gtk+" ,gtk+) | |
313 | ("ladspa" ,ladspa) | |
314 | ("libass" ,libass) | |
315 | ("libdvdnav" ,libdvdnav) | |
316 | ("libdvdread" ,libdvdread) | |
317 | ("libgcrypt" ,libgcrypt) | |
318 | ("libgudev" ,libgudev) | |
319 | ("libkate" ,libkate) | |
320 | ("libmodplug" ,libmodplug) | |
321 | ("librsvg" ,librsvg) | |
322 | ("libsndfile" ,libsndfile) | |
323 | ("libsrtp" ,libsrtp) | |
324 | ("libssh2" ,libssh2) | |
325 | ("libusb" ,libusb) | |
326 | ("libvdpau" ,libvdpau) | |
327 | ("libwebp" ,libwebp) | |
328 | ("libxml2" ,libxml2) | |
329 | ("lrdf" ,lrdf) | |
330 | ("mesa" ,mesa) | |
db12dac0 SB |
331 | ("neon" ,neon) |
332 | ("openal" ,openal) | |
333 | ("openexr" ,openexr) | |
334 | ("openjpeg" ,openjpeg) | |
335 | ("openssl" ,openssl) | |
336 | ("opus" ,opus) | |
337 | ("orc" ,orc) | |
6779b932 EF |
338 | ;("qtbase" ,qtbase) |
339 | ;("qtdeclarative" ,qtdeclarative) | |
340 | ;("qtx11extras" ,qtx11extras) | |
db12dac0 | 341 | ("soundtouch" ,soundtouch) |
e3cb00d2 | 342 | ("x265" ,x265) |
94b179c6 | 343 | ("wayland" ,wayland))) |
0cee33ac | 344 | (home-page "https://gstreamer.freedesktop.org/") |
db12dac0 SB |
345 | (synopsis "Plugins for the GStreamer multimedia library") |
346 | (description | |
347 | "GStreamer Bad Plug-ins is a set of plug-ins whose quality aren't up to | |
348 | par compared to the rest.") | |
5cde47ec | 349 | (license license:lgpl2.0+))) |
db12dac0 | 350 | |
92f1b4a5 MW |
351 | (define-public gst-plugins-ugly |
352 | (package | |
353 | (name "gst-plugins-ugly") | |
94249ba8 | 354 | (version "1.16.2") |
92f1b4a5 MW |
355 | (source |
356 | (origin | |
357 | (method url-fetch) | |
5cc3096c | 358 | (uri (string-append "https://gstreamer.freedesktop.org/src/" |
92f1b4a5 MW |
359 | name "/" name "-" version ".tar.xz")) |
360 | (sha256 | |
361 | (base32 | |
94249ba8 | 362 | "1jpvc32x6q01zjkfgh6gmq6aaikiyfwwnhj7bmvn52syhrdl202m")))) |
92f1b4a5 MW |
363 | (build-system gnu-build-system) |
364 | (inputs | |
365 | `(("gst-plugins-base" ,gst-plugins-base) | |
366 | ("liba52" ,liba52) | |
92f1b4a5 | 367 | ("libcdio" ,libcdio) |
92f1b4a5 MW |
368 | ("libmpeg2" ,libmpeg2) |
369 | ("libdvdread" ,libdvdread) | |
370 | ("libx264" ,libx264) | |
371 | ;; TODO: | |
372 | ;; * opencore-amr (for the AMR-NB decoder and encoder and the | |
373 | ;; AMR-WB decoder) <http://sourceforge.net/projects/opencore-amr/> | |
374 | ("orc" ,orc))) | |
375 | (native-inputs | |
376 | `(("glib:bin" ,glib "bin") | |
377 | ("pkg-config" ,pkg-config) | |
378 | ("python-wrapper" ,python-wrapper))) | |
40dad30c | 379 | (home-page "https://gstreamer.freedesktop.org/") |
e881752c | 380 | (synopsis "GStreamer plugins from the \"ugly\" set") |
92f1b4a5 MW |
381 | (description "GStreamer Ugly Plug-ins. This set contains those plug-ins |
382 | which the developers consider to have good quality code but that might pose | |
383 | distribution problems in some jurisdictions, e.g. due to patent threats.") | |
5cde47ec | 384 | (license license:lgpl2.0+))) |
92f1b4a5 | 385 | |
1b922590 SB |
386 | (define-public gst-libav |
387 | (package | |
388 | (name "gst-libav") | |
94249ba8 | 389 | (version "1.16.2") |
1b922590 SB |
390 | (source (origin |
391 | (method url-fetch) | |
392 | (uri (string-append | |
5cc3096c | 393 | "https://gstreamer.freedesktop.org/src/" name "/" |
1b922590 SB |
394 | name "-" version ".tar.xz")) |
395 | (sha256 | |
396 | (base32 | |
94249ba8 | 397 | "1wpfilc98bad9nsv3y1qapxp35dvn2mvwvrmqwrsj58cf09gc967")) |
4b7e861b MB |
398 | (modules '((guix build utils))) |
399 | (snippet | |
400 | '(begin | |
401 | ;; Drop bundled ffmpeg. | |
402 | (delete-file-recursively "gst-libs/ext/libav") | |
403 | #t)))) | |
1b922590 SB |
404 | (build-system gnu-build-system) |
405 | (arguments | |
4b7e861b | 406 | '(#:configure-flags '("--with-system-libav"))) |
1b922590 SB |
407 | (native-inputs |
408 | `(("pkg-config" ,pkg-config) | |
04a20db2 | 409 | ("python" ,python))) |
1b922590 SB |
410 | (inputs |
411 | `(("gst-plugins-base" ,gst-plugins-base) | |
c9c63edb | 412 | ("ffmpeg" ,ffmpeg) |
1b922590 SB |
413 | ("orc" ,orc) |
414 | ("zlib" ,zlib))) | |
57e7d748 | 415 | (home-page "https://gstreamer.freedesktop.org/") |
1b922590 SB |
416 | (synopsis "Plugins for the GStreamer multimedia library") |
417 | (description | |
418 | "This GStreamer plugin supports a large number of audio and video | |
419 | compression formats through the use of the libav library.") | |
5cde47ec | 420 | (license license:gpl2+))) |
201cfb81 SB |
421 | |
422 | (define-public python-gst | |
423 | (package | |
424 | (name "python-gst") | |
94249ba8 | 425 | (version "1.16.2") |
201cfb81 SB |
426 | (source (origin |
427 | (method url-fetch) | |
428 | (uri (string-append | |
429 | "https://gstreamer.freedesktop.org/src/gst-python/" | |
430 | "gst-python-" version ".tar.xz")) | |
431 | (sha256 | |
432 | (base32 | |
94249ba8 | 433 | "1a48ca66izmm8hnp608jv5isg3jxb0vlfmhns0bg9nbkilag7390")))) |
201cfb81 SB |
434 | (build-system gnu-build-system) |
435 | (arguments | |
a5c2e796 CB |
436 | `(#:modules ((guix build gnu-build-system) |
437 | ((guix build python-build-system) #:prefix python:)) | |
438 | #:imported-modules (,@%gnu-build-system-modules | |
201cfb81 SB |
439 | (guix build python-build-system)) |
440 | #:configure-flags | |
a5c2e796 CB |
441 | (list (string-append |
442 | "--with-pygi-overrides-dir=" | |
443 | (python:site-packages %build-inputs %outputs) "gi/overrides")))) | |
201cfb81 SB |
444 | (native-inputs |
445 | `(("pkg-config" ,pkg-config) | |
446 | ("python" ,python))) | |
447 | (propagated-inputs | |
448 | `(("gst-plugins-base" ,gst-plugins-base) | |
449 | ("python-pygobject" ,python-pygobject))) | |
d2b5dec5 | 450 | (home-page "https://gstreamer.freedesktop.org/") |
201cfb81 SB |
451 | (synopsis "GStreamer GObject Introspection overrides for Python") |
452 | (description | |
453 | "This package contains GObject Introspection overrides for Python that can | |
454 | be used by Python applications using GStreamer.") | |
5cde47ec | 455 | (license license:lgpl2.1+) |
201cfb81 SB |
456 | (properties `((python2-variant . ,(delay python2-gst)))))) |
457 | ||
458 | (define-public python2-gst | |
459 | (package (inherit python-gst) | |
460 | (name "python2-gst") | |
461 | (native-inputs | |
462 | `(("pkg-config" ,pkg-config) | |
463 | ("python" ,python-2))) | |
464 | (propagated-inputs | |
465 | `(("gst-plugins-base" ,gst-plugins-base) | |
466 | ("python-pygobject" ,python2-pygobject))))) | |
51895712 RW |
467 | |
468 | (define-public gst123 | |
469 | (package | |
470 | (name "gst123") | |
471 | (version "0.3.5") | |
472 | (source (origin | |
473 | (method url-fetch) | |
474 | (uri (string-append "http://space.twc.de/~stefan/gst123/gst123-" | |
475 | version ".tar.bz2")) | |
476 | (sha256 | |
477 | (base32 | |
478 | "0zaa117n4wkya9p903vkj8hj58lmdb66pxsdx5wwcv7nffbp5d67")))) | |
479 | (build-system gnu-build-system) | |
480 | (inputs | |
481 | `(("gtk+" ,gtk+-2) | |
482 | ("ncurses" ,ncurses) | |
483 | ("gstreamer" ,gstreamer) | |
484 | ("gst-plugins-base" ,gst-plugins-base))) | |
485 | (native-inputs | |
486 | `(("pkg-config" ,pkg-config))) | |
487 | (home-page "http://space.twc.de/~stefan/gst123.php") | |
488 | (synopsis "Flexible command line media player based on gstreamer") | |
489 | (description "The program gst123 is designed to be a more flexible command | |
490 | line player in the spirit of ogg123 and mpg123, based on the gstreamer media | |
491 | framework. It plays all file formats gstreamer supports, so if you have a | |
492 | music collection which contains different file formats, like flac, ogg and | |
493 | mp3, you can use gst123 to play all your music files.") | |
494 | (license license:lgpl2.0+))) |