1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
4 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
5 ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
10 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
11 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages gstreamer)
29 #:use-module ((guix licenses) #:prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix download)
32 #:use-module (guix git-download)
33 #:use-module (guix build-system cmake)
34 #:use-module (guix build-system gnu)
35 #:use-module (guix build-system meson)
36 #:use-module (guix utils)
37 #:use-module (gnu packages)
38 #:use-module (gnu packages audio)
39 #:use-module (gnu packages autotools)
40 #:use-module (gnu packages base)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages cdrom)
43 #:use-module (gnu packages curl)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages docbook)
46 #:use-module (gnu packages documentation)
47 #:use-module (gnu packages elf)
48 #:use-module (gnu packages flex)
49 #:use-module (gnu packages freedesktop)
50 #:use-module (gnu packages gettext)
51 #:use-module (gnu packages gl)
52 #:use-module (gnu packages glib)
53 #:use-module (gnu packages gnome)
54 #:use-module (gnu packages gnupg)
55 #:use-module (gnu packages graphics)
56 #:use-module (gnu packages graphviz)
57 #:use-module (gnu packages gtk)
58 #:use-module (gnu packages image)
59 #:use-module (gnu packages iso-codes)
60 #:use-module (gnu packages java)
61 #:use-module (gnu packages libunwind)
62 #:use-module (gnu packages libusb)
63 #:use-module (gnu packages linux)
64 #:use-module (gnu packages mp3)
65 #:use-module (gnu packages ncurses)
66 #:use-module (gnu packages networking)
67 #:use-module (gnu packages ocr)
68 #:use-module (gnu packages perl)
69 #:use-module (gnu packages pulseaudio)
70 #:use-module (gnu packages qt)
71 #:use-module (gnu packages rdf)
72 #:use-module (gnu packages sdl)
73 #:use-module (gnu packages shells)
74 #:use-module (gnu packages video)
75 #:use-module (gnu packages xorg)
76 #:use-module (gnu packages xdisorg)
77 #:use-module (gnu packages xiph)
78 #:use-module (gnu packages pkg-config)
79 #:use-module (gnu packages ruby)
80 #:use-module (gnu packages speech)
81 #:use-module (gnu packages python)
82 #:use-module (gnu packages ssh)
83 #:use-module (gnu packages telephony)
84 #:use-module (gnu packages tls)
85 #:use-module (gnu packages version-control)
86 #:use-module (gnu packages assembly)
87 #:use-module (gnu packages xml))
89 (define-public openni2
98 (url "https://github.com/occipital/OpenNI2.git")
99 (commit (string-append "v" version "-debian"))))
100 (file-name (git-file-name name version))
102 (base32 "0mfnyzpq53wnzgjfx91xcbx0nrl0lp1vrk1rk20a3gb3kshsr675"))))
103 (build-system gnu-build-system)
105 `(#:tests? #f ; No target
107 (modify-phases %standard-phases
108 (delete 'configure))))
110 `(("graphviz" ,graphviz)
112 ("openjdk" ,openjdk14)
113 ("openjdk:jdk" ,openjdk14 "jdk")
114 ("python" ,python-wrapper)))
116 `(("freeglut3" ,freeglut)
119 (synopsis "Framework for sensor-based 'Natural Interaction")
120 (description "OpenNI is a framework for getting data to support
121 'Natural Interaction', i.e. skeleton tracking, gesture tracking, and similar
122 ways of getting data from humans. It provides the interface for physical devices
123 and for middleware components.")
124 (home-page "https://structure.io/openni")
125 (license license:asl2.0)))
127 (define-public libdc1394
134 (string-append "https://sourceforge.net/projects/" name "/files/"
135 name "-2" "/" version "/" name "-" version ".tar.gz"))
137 (base32 "1v8gq54n1pg8izn7s15yylwjf8r1l1dmzbm2yvf6pv2fmb4mz41b"))))
138 (build-system gnu-build-system)
140 `(("doxygen" ,doxygen)
142 ("pkg-config" ,pkg-config)))
145 ("libraw1394" ,libraw1394)
148 ("linux-headers" ,linux-libre-headers)
152 (synopsis "1394-Based Digital Camera Control Library")
153 (description "LibDC1394 is a library that provides functionality to control
154 any camera that conforms to the 1394-Based Digital Camera Specification written
155 by the 1394 Trade Association. It utilizes the lowlevel functionality provided
156 by libraw1394 to communicate with the camera. It also uses the video1394 kernel
157 module for the DMA capture of the video flow.")
158 (home-page "https://damien.douxchamps.net/ieee1394/libdc1394/")
159 (license license:lgpl2.0+)))
161 (define-public ccextractor
170 (url "https://github.com/CCExtractor/ccextractor.git")
171 (commit (string-append "v" version))))
172 (file-name (git-file-name name version))
174 (base32 "1sya45hvv4d46bk7541yimmafgvgyhkpsvwfz9kv6pm4yi1lz6nb"))))
175 (build-system cmake-build-system)
177 `(#:tests? #f ; No target
183 "-DWITH_HARDSUBX=ON")
185 (modify-phases %standard-phases
186 ;; The package is in a sub-dir of this repo.
187 (add-after 'unpack 'chdir
191 (add-after 'chdir 'fix-build-errors
193 (substitute* "CMakeLists.txt"
199 ("pkg-config" ,pkg-config)
200 ("python" ,python-wrapper)))
202 `(("ffmeg" ,ffmpeg-3.4)
204 ("leptonica" ,leptonica)
205 ("ocr" ,tesseract-ocr)
207 (synopsis "Closed Caption Extractor")
208 (description "CCExtractor is a tool that analyzes video files and produces
209 independent subtitle files from the closed captions data. It is portable, small,
211 (home-page "https://www.ccextractor.org/")
212 (license license:gpl2+)))
214 (define-public libvisual
223 (url "https://github.com/Libvisual/libvisual.git")
224 (commit (string-append name "-" version))))
225 (file-name (git-file-name name version))
227 (base32 "02xwakwkqjsznc03pjlb6hcv1li1gw3r8xvyswqsm4msix5xq18a"))))
228 (build-system gnu-build-system)
231 (modify-phases %standard-phases
232 ;; The package is in a sub-dir of this repo.
233 (add-after 'unpack 'chdir
238 `(("gettext" ,gettext-minimal)
239 ("libintl" ,intltool)
241 ("pkg-config" ,pkg-config)))
246 (search-path-specification
247 (variable "LIBVISUAL_PLUGINS_BASE_DIR")
248 (files '("lib/libvisual-0.4")))))
249 ;; To load libvisual-plugins.
250 (search-paths native-search-paths)
251 (synopsis "Audio visualisation library")
252 (description "Libvisual is a library that acts as a middle layer between
253 applications that want audio visualisation and audio visualisation plugins.")
254 (home-page "http://libvisual.org/")
259 ;; Examples and Tests.
262 (define-public libvisual-plugins
264 (name "libvisual-plugins")
271 (url "https://github.com/Libvisual/libvisual.git")
272 (commit (string-append name "-" version))))
273 (file-name (git-file-name name version))
275 (base32 "02xwakwkqjsznc03pjlb6hcv1li1gw3r8xvyswqsm4msix5xq18a"))))
276 (build-system gnu-build-system)
280 "--disable-gstreamer-plugin"
283 (string-append "--with-plugins-base-dir=" (assoc-ref %outputs "out")
284 "/lib/libvisual-0.4"))
286 (modify-phases %standard-phases
287 ;; The package is in a sub-dir of this repo.
288 (add-after 'unpack 'chdir
290 (chdir "libvisual-plugins")
295 ("gettext" ,gettext-minimal)
296 ("libintl" ,intltool)
298 ("pkg-config" ,pkg-config)))
300 `(("alsa-lib" ,alsa-lib)
302 ("gdk-pixbuf" ,gdk-pixbuf+svg)
306 ("libxext" ,libxext)))
308 `(("libvisual" ,libvisual)))
309 (synopsis "Audio visualisation library")
310 (description "Libvisual is a library that acts as a middle layer between
311 applications that want audio visualisation and audio visualisation plugins.")
312 (home-page "http://libvisual.org/")
313 (license license:gpl2+)))
315 (define-public esound
324 (url "https://gitlab.gnome.org/Archive/esound.git")
325 (commit "ESOUND_0_2_41")))
326 (file-name (git-file-name name version))
328 (base32 "141jg70fim276i8k2kyypm84gy89i1k9mm4yf68mfwnybvjw1d6n"))))
329 (build-system gnu-build-system)
331 `(("autoconf" ,autoconf)
332 ("automake" ,automake)
333 ("gettext" ,gettext-minimal)
334 ("gnome-common" ,gnome-common)
336 ("pkg-config" ,pkg-config)
337 ("tcsh" ,tcsh) ; for the tests
340 `(("alsa-lib" ,alsa-lib)
341 ("pcaudiolib" ,pcaudiolib)
342 ("tcp-wrappers" ,tcp-wrappers)))
344 `(("audiofile" ,audiofile)))
345 (synopsis "Enlightened Sound Daemon")
346 (description "The Enlightened Sound Daemon mixes several audio streams for
347 playback by a single audio device. You can also pre-load samples, and play them
348 back without having to send all the data for the sound. Network transparency is
349 also built in, so you can play sounds on one machine, and listen to them on
351 (home-page "https://web.archive.org/web/20160528230227/
352 http://www.tux.org/~ricdude/overview.html")
366 (uri (string-append "https://gstreamer.freedesktop.org/data/src/"
367 "orc/orc-" version ".tar.xz"))
370 "0xb0c7q3xv1ldmz5ipybazb01gy3cijj8622dcx7rbm9lq85zax0"))))
371 (build-system meson-build-system)
374 (modify-phases %standard-phases
375 (add-after 'unpack 'disable-faulty-test
377 ;; XXX Disable the 'test-limits' and 'exec_opcodes_sys'
378 ;; tests, which fail on some machines. See:
379 ;; https://bugzilla.gnome.org/show_bug.cgi?id=735273
380 (substitute* '("testsuite/test-limits.c"
381 "testsuite/exec_opcodes_sys.c")
382 (("if \\(error\\) return 1;")
383 "if (error) return 77;"))
386 `(("gtk-doc" ,gtk-doc)))
387 (home-page "https://gstreamer.freedesktop.org/modules/orc.html")
388 (synopsis "Oil runtime compiler")
390 "Orc is a just-in-time compiler implemented as a library and set of
391 associated tools for compiling and executing simple programs that operate on
393 ;; The source code implementing the Marsenne Twister algorithm is licensed
394 ;; under the 3-clause BSD license, the rest is under 2-clause BSD license.
395 (license (list license:bsd-2 license:bsd-3))))
397 ;; Increase the test timeouts to accommodate slow or busy machines.
398 (define %common-gstreamer-phases
399 '((add-after 'unpack 'increase-test-timeout
401 (substitute* "tests/check/meson.build"
402 (("'CK_DEFAULT_TIMEOUT', '20'")
403 "'CK_DEFAULT_TIMEOUT', '60'")
404 (("timeout ?: 3 \\* 60")
408 (define-public gstreamer
416 "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-"
420 "0kp93622y29pck8asvil1fmzf55s2gx76wv475a6izc3cwj49w73"))))
421 (build-system meson-build-system)
422 (outputs '("out" "doc"))
425 (modify-phases %standard-phases
426 ,@%common-gstreamer-phases
427 ;; FIXME: Since switching to the meson-build-system, two tests
428 ;; started failing on i686. See
429 ;; <https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/499>.
430 ,@(if (string-prefix? "i686" (or (%current-target-system)
432 `((add-after 'unpack 'disable-some-tests
434 (substitute* "tests/check/gst/gstsystemclock.c"
435 (("tcase_add_test \\(tc_chain, test_stress_cleanup_unschedule.*")
437 (("tcase_add_test \\(tc_chain, test_stress_reschedule.*")
441 (add-after 'install 'move-docs
442 (lambda* (#:key outputs #:allow-other-keys)
443 (let ((out (assoc-ref outputs "out"))
444 (doc (assoc-ref outputs "doc")))
445 (mkdir-p (string-append doc "/share"))
446 (copy-recursively (string-append out "/share/gtk-doc")
447 (string-append doc "/share/gtk-doc"))
448 (delete-file-recursively (string-append out "/share/gtk-doc"))
450 (propagated-inputs `(("glib" ,glib))) ; required by gstreamer-1.0.pc.
455 ("gobject-introspection" ,gobject-introspection)
458 ("pkg-config" ,pkg-config)
459 ("python-wrapper" ,python-wrapper)))
461 (list (search-path-specification
462 (variable "GST_PLUGIN_SYSTEM_PATH")
463 (files '("lib/gstreamer-1.0")))))
464 (home-page "https://gstreamer.freedesktop.org/")
465 (synopsis "Multimedia library")
467 "GStreamer is a library for constructing graphs of media-handling
468 components. The applications it supports range from simple Ogg/Vorbis
469 playback, audio/video streaming to complex audio mixing and video
472 Applications can take advantage of advances in codec and filter technology
473 transparently. Developers can add new codecs and filters by writing a
474 simple plugin with a clean, generic interface.
476 This package provides the core library and elements.")
477 (license license:lgpl2.0+)))
479 (define-public gst-plugins-base
481 (name "gst-plugins-base")
486 (uri (string-append "https://gstreamer.freedesktop.org/src/" name "/"
487 name "-" version ".tar.xz"))
490 "0sl1hxlyq46r02k7z70v09vx1gi4rcypqmzra9jid93lzvi76gmi"))))
491 (build-system meson-build-system)
493 `(("glib" ,glib) ;required by gstreamer-sdp-1.0.pc
494 ("gstreamer" ,gstreamer) ;required by gstreamer-plugins-base-1.0.pc
496 ;; XXX: Do not enable Orc optimizations on ARM systems because
497 ;; it leads to two test failures.
498 ;; https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/683
499 ,@(if (string-prefix? "arm" (or (%current-target-system)
502 `(("orc" ,orc))))) ;required by gstreamer-audio-1.0.pc
504 `(("cdparanoia" ,cdparanoia)
507 ("libtheora" ,libtheora)
508 ("libvorbis" ,libvorbis)
513 ("alsa-lib" ,alsa-lib)
514 ;; XXX Don't build with opus on 32-bit systems:
515 ;; <https://bugs.gnu.org/32360>
516 ,@(if (target-64bit?)
520 `(("pkg-config" ,pkg-config)
521 ("glib:bin" ,glib "bin")
522 ("gobject-introspection" ,gobject-introspection)
523 ("python-wrapper" ,python-wrapper)))
525 `(#:configure-flags '("-Dgl=disabled"
526 ;; FIXME: Documentation fails to build without
527 ;; enabling GL above, which causes other problems.
530 (modify-phases %standard-phases
531 ,@%common-gstreamer-phases
532 (add-before 'configure 'patch
534 (substitute* "tests/check/libs/pbutils.c"
535 (("/bin/sh") (which "sh")))
537 (home-page "https://gstreamer.freedesktop.org/")
539 "Plugins for the GStreamer multimedia library")
540 (description "This package provides an essential exemplary set of plug-ins
541 for the GStreamer multimedia library.")
542 (license license:lgpl2.0+)))
544 (define-public gst-plugins-good
546 (name "gst-plugins-good")
553 "https://gstreamer.freedesktop.org/src/" name "/"
554 name "-" version ".tar.xz"))
556 (base32 "068k3cbv1yf3gbllfdzqsg263kzwh21y8dpwr0wvgh15vapkpfs0"))))
557 (build-system meson-build-system)
559 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
561 (modify-phases %standard-phases
562 (add-after 'unpack 'patch-docbook-xml
563 (lambda* (#:key inputs #:allow-other-keys)
564 (with-directory-excursion "docs"
565 (substitute* "plugins/gst-plugins-good-plugins-docs.sgml"
566 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
567 (string-append (assoc-ref inputs "docbook-xml")
568 "/xml/dtd/docbook/"))))
573 ;; Tests require a running X server.
574 (system "Xvfb :1 +extension GLX &")
575 (setenv "DISPLAY" ":1")
576 ;; Tests write to $HOME.
577 (setenv "HOME" (getcwd))
578 ;; Tests look for $XDG_RUNTIME_DIR.
579 (setenv "XDG_RUNTIME_DIR" (getcwd))
580 ;; For missing '/etc/machine-id'.
581 (setenv "DBUS_FATAL_WARNINGS" "0")
584 `(("docbook-xml" ,docbook-xml-4.1.2)
585 ("gettext" ,gettext-minimal)
586 ("glib:bin" ,glib "bin")
587 ("gobject-introspection" ,gobject-introspection)
588 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
590 ("pkg-config" ,pkg-config)
591 ("python-wrapper" ,python-wrapper)
593 ("xorg-server" ,xorg-server-for-tests)))
599 ("gdk-pixbuf" ,gdk-pixbuf+svg)
601 ("glib-networking" ,glib-networking)
606 ("libavc1394" ,libavc1394)
609 ("libgudev" ,libgudev)
610 ("libiec61883" ,libiec61883)
611 ("libjpeg" ,libjpeg-turbo)
613 ("libshout" ,libshout)
617 ("libxdamage" ,libxdamage)
618 ("libxfixes" ,libxfixes)
620 ("libxshm" ,libxshmfence)
624 ("pulseaudio" ,pulseaudio)
628 ("v4l-utils" ,v4l-utils)
632 `(("gstreamer" ,gstreamer)
633 ("gst-plugins-base" ,gst-plugins-base)))
634 (synopsis "GStreamer plugins and helper libraries")
635 (description "GStreamer-Plugins-Good is a collection of plug-ins you'd want
636 to have right next to you on the battlefield. Shooting sharp and making no
637 mistakes, these plug-ins have it all: good looks, good code, and good
638 licensing. Documented and dressed up in tests. If you're looking for a role
639 model to base your own plug-in on, here it is.")
640 (home-page "https://gstreamer.freedesktop.org/")
641 (license license:lgpl2.0+)))
643 (define-public gst-plugins-bad
645 (name "gst-plugins-bad")
649 (uri (string-append "https://gstreamer.freedesktop.org/src/"
650 name "/" name "-" version ".tar.xz"))
653 "0x0y0hm0ga3zqi5q4090hw5sjh59y1ry9ak16qsaascm72i7mjzi"))))
654 (build-system meson-build-system)
657 (modify-phases %standard-phases
658 ,@%common-gstreamer-phases
659 ,@(if (string-prefix? "arm" (or (%current-target-system)
661 ;; Disable test that fails on ARMv7.
662 ;; https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1188
663 `((add-after 'unpack 'disable-asfmux-test
665 (substitute* "tests/check/meson.build"
666 (("\\[\\['elements/asfmux\\.c'\\]\\],")
670 (add-after 'unpack 'disable-failing-test
672 ;; FIXME: Why is this failing.
673 (substitute* "tests/check/meson.build"
674 ((".*elements/dash_mpd\\.c.*")
678 `(("gst-plugins-base" ,gst-plugins-base)))
680 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
681 ("gobject-introspection" ,gobject-introspection)
682 ;; TODO: Enable documentation for 1.18.
683 ;;("gtk-doc" ,gtk-doc)
684 ("pkg-config" ,pkg-config)
687 ;; XXX: The following dependencies are missing:
688 ;; vo-amrwbenc, vo-aacenc, bs2b, chromaprint, directfb, daala, libdts,
689 ;; faac, flite, libgsm, libde265, libmms, libmimic, mjpegtools,
690 ;; mpeg2enc, libofa, opencv, openh264, openni2, libtimemmgr, wildmidi,
691 ;; openspc, gme, sbc, schroedinger, zbar, librtmp, spandsp
695 ("fluidsynth" ,fluidsynth)
699 ("libdvdnav" ,libdvdnav)
700 ("libdvdread" ,libdvdread)
701 ("libgcrypt" ,libgcrypt)
702 ("libgudev" ,libgudev)
704 ("libmodplug" ,libmodplug)
706 ("libsndfile" ,libsndfile)
710 ("libvdpau" ,libvdpau)
718 ("openjpeg" ,openjpeg)
723 ;("qtdeclarative" ,qtdeclarative)
724 ;("qtx11extras" ,qtx11extras)
725 ("soundtouch" ,soundtouch)
727 ("wayland" ,wayland)))
728 (home-page "https://gstreamer.freedesktop.org/")
729 (synopsis "Plugins for the GStreamer multimedia library")
731 "GStreamer Bad Plug-ins is a set of plug-ins whose quality aren't up to
732 par compared to the rest.")
733 (license license:lgpl2.0+)))
735 (define-public gst-plugins-ugly
737 (name "gst-plugins-ugly")
743 (string-append "https://gstreamer.freedesktop.org/src/"
744 name "/" name "-" version ".tar.xz"))
746 (base32 "1jpvc32x6q01zjkfgh6gmq6aaikiyfwwnhj7bmvn52syhrdl202m"))))
747 (build-system meson-build-system)
749 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
751 (modify-phases %standard-phases
752 (add-after 'unpack 'patch-docbook-xml
753 (lambda* (#:key inputs #:allow-other-keys)
754 (with-directory-excursion "docs"
755 (substitute* "plugins/gst-plugins-ugly-plugins-docs.sgml"
756 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
757 (string-append (assoc-ref inputs "docbook-xml")
758 "/xml/dtd/docbook/"))))
763 ;; Tests require a running X server.
764 (system "Xvfb :1 +extension GLX &")
765 (setenv "DISPLAY" ":1")
766 ;; Tests write to $HOME.
767 (setenv "HOME" (getcwd))
768 ;; Tests look for $XDG_RUNTIME_DIR.
769 (setenv "XDG_RUNTIME_DIR" (getcwd))
770 ;; For missing '/etc/machine-id'.
771 (setenv "DBUS_FATAL_WARNINGS" "0")
774 `(("docbook-xml" ,docbook-xml-4.1.2)
775 ("gettext" ,gettext-minimal)
776 ("glib:bin" ,glib "bin")
777 ("gobject-introspection" ,gobject-introspection)
778 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
780 ("pkg-config" ,pkg-config)
781 ("python-wrapper" ,python-wrapper)
782 ("xorg-server" ,xorg-server-for-tests)))
785 ("glib-networking" ,glib-networking)
788 ("libdvdread" ,libdvdread)
789 ("libmpeg2" ,libmpeg2)
791 ("opencore-amr" ,opencore-amr)
794 `(("gstreamer" ,gstreamer)
795 ("gst-plugins-base" ,gst-plugins-base)))
796 (synopsis "GStreamer plugins and helper libraries")
797 (description "Gst-Plugins-Ugly are the ones that might have a patent noose
798 around their neck, or a lock-up license, or any other problem that makes you
799 think twice about shipping them.")
800 (home-page "https://gstreamer.freedesktop.org/")
801 (license license:lgpl2.0+)))
803 (define-public gst-libav
812 "https://gstreamer.freedesktop.org/src/" name "/"
813 name "-" version ".tar.xz"))
815 (base32 "1wpfilc98bad9nsv3y1qapxp35dvn2mvwvrmqwrsj58cf09gc967"))
816 (modules '((guix build utils)))
819 ;; Drop bundled ffmpeg.
820 (delete-file-recursively "gst-libs/ext/libav")
822 (build-system meson-build-system)
825 (modify-phases %standard-phases
826 (add-after 'unpack 'patch-docbook-xml
827 (lambda* (#:key inputs #:allow-other-keys)
828 (with-directory-excursion "docs"
829 (substitute* "plugins/gst-libav-plugins-docs.sgml"
830 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
831 (string-append (assoc-ref inputs "docbook-xml")
832 "/xml/dtd/docbook/"))))
835 `(("docbook-xml" ,docbook-xml-4.1.2)
837 ("pkg-config" ,pkg-config)
838 ("python" ,python-wrapper)
841 `(("ffmpeg" ,ffmpeg)))
843 `(("gstreamer" ,gstreamer)
844 ("gst-plugins-base" ,gst-plugins-base)))
845 (synopsis "GStreamer plugins and helper libraries")
846 (description "Gst-Libav contains a GStreamer plugin for using the encoders,
847 decoders, muxers, and demuxers provided by FFmpeg.")
848 (home-page "https://gstreamer.freedesktop.org/")
849 (license license:lgpl2.0+)))
851 (define-public gst-editing-services
853 (name "gst-editing-services")
858 "https://gstreamer.freedesktop.org/src/" name "/"
859 "gstreamer-editing-services-" version ".tar.xz"))
862 "05hcf3prna8ajjnqd53221gj9syarrrjbgvjcbhicv0c38csc1hf"))))
863 (build-system meson-build-system)
865 ;; FIXME: 16/22 failing tests.
867 #:phases (modify-phases %standard-phases
868 ,@%common-gstreamer-phases)))
870 `(("gst-plugins-base" ,gst-plugins-base)
871 ("libxml2" ,libxml2)))
874 ("gst-plugins-bad" ,gst-plugins-bad)
875 ("gst-plugins-good" ,gst-plugins-good)
877 ("pkg-config" ,pkg-config)
879 (home-page "https://gstreamer.freedesktop.org/")
880 (synopsis "GStreamer library for non-linear editors")
882 "This is a high-level library for facilitating the creation of audio/video
883 non-linear editors.")
884 (license license:gpl2+)))
886 (define-public python-gst
893 "https://gstreamer.freedesktop.org/src/gst-python/"
894 "gst-python-" version ".tar.xz"))
897 "1a48ca66izmm8hnp608jv5isg3jxb0vlfmhns0bg9nbkilag7390"))
899 (search-patches "python-gst-fix-build-with-python-3.8.patch"))))
900 (build-system meson-build-system)
902 `(#:modules ((guix build meson-build-system)
904 ((guix build python-build-system) #:prefix python:))
905 #:imported-modules (,@%meson-build-system-modules
906 (guix build python-build-system))
909 "-Dpygi-overrides-dir="
910 (python:site-packages %build-inputs %outputs) "gi/overrides"))))
912 `(("pkg-config" ,pkg-config)
915 `(("gst-plugins-base" ,gst-plugins-base)
916 ("python-pygobject" ,python-pygobject)))
917 (home-page "https://gstreamer.freedesktop.org/")
918 (synopsis "GStreamer GObject Introspection overrides for Python")
920 "This package contains GObject Introspection overrides for Python that can
921 be used by Python applications using GStreamer.")
922 (license license:lgpl2.1+)
923 (properties `((python2-variant . ,(delay python2-gst))))))
925 (define-public python2-gst
926 (package (inherit python-gst)
929 `(("pkg-config" ,pkg-config)
930 ("python" ,python-2)))
932 `(("gst-plugins-base" ,gst-plugins-base)
933 ("python-pygobject" ,python2-pygobject)))))
935 (define-public gst123
941 (uri (string-append "http://space.twc.de/~stefan/gst123/gst123-"
945 "0zaa117n4wkya9p903vkj8hj58lmdb66pxsdx5wwcv7nffbp5d67"))))
946 (build-system gnu-build-system)
950 ("gstreamer" ,gstreamer)
951 ("gst-plugins-base" ,gst-plugins-base)))
953 `(("pkg-config" ,pkg-config)))
954 (home-page "http://space.twc.de/~stefan/gst123.php")
955 (synopsis "Flexible command line media player based on gstreamer")
956 (description "The program gst123 is designed to be a more flexible command
957 line player in the spirit of ogg123 and mpg123, based on the gstreamer media
958 framework. It plays all file formats gstreamer supports, so if you have a
959 music collection which contains different file formats, like flac, ogg and
960 mp3, you can use gst123 to play all your music files.")
961 (license license:lgpl2.0+)))