263.2. gst-plugins-good-1.28.8
GStreamer "good" plugin set (well-maintained LGPL plugins)
| Version | 1.28.8, release 1 |
| Shelf | media-frameworks — Multimedia frameworks, capture, and media inspection |
| Phase | 43_toolkits (Toolkits), 235 of 344 in build order |
| Licence | LGPL-2.1-or-later |
| Homepage | https://gstreamer.freedesktop.org/ |
| Build time | 2.0 SBU |
| Installed size | 8.6 MiB in 71 files |
| Recipe | ports/core/media-frameworks/gst-plugins-good/kpkgbuild |
About
The GStreamer “good” plugin set: well-maintained plugins under the LGPL, on top of gst-plugins-base. It carries the common containers (Matroska, MP4, AVI, FLV), RTP and RTSP, the Video4Linux camera source, the PulseAudio sink and source, the HTTP source, the HLS, DASH and Smooth Streaming demuxers, and the decoders and encoders for FLAC, MP3, WavPack, Speex, VP8 and VP9, PNG and JPEG. Browsers built on WebKitGTK, Rhythmbox, Strawberry, Kamoso, Nheko and Dino play and record through it.
Sources
gst-plugins-good-1.28.8.tar.xz(5.7 MiB)
sha256a7670ed900d3d03be744d25c1873b239896e9a82ce6d17f8febc6fffbaee9521
upstream: https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.28.8.tar.xz
archive copy: sources-3/media-frameworks--gst-plugins-good-1.28.8.tar.xz
Dependencies
Depends on: gst-plugins-base, libpng, libjpeg-turbo, flac, lame, mpg123, wavpack, libvpx, cairo, bzip2, aalib, libpulse, libxml2, openssl, orc, nasm, libgudev, v4l-utils, libsoup3, twolame, qt6-qtbase, qt6-qtdeclarative, qt6-qtshadertools, qt6-qtwayland, taglib, speex, gdk-pixbuf, gtk3.
Required by (14): audiotube, brasero, dino, gthumb, kamoso, kasts, nheko, qt5-qtmultimedia, rhythmbox, spice-gtk, strawberry, webkitgtk, webkitgtk6, xfburn.
Optional, off in KDOS
These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-Dqt5=disabled, line 21: qt5-qtbase
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install gst-plugins-good'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/media-frameworks/gst-plugins-good.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/media-frameworks/gst-plugins-good
echo 'a7670ed900d3d03be744d25c1873b239896e9a82ce6d17f8febc6fffbaee9521 gst-plugins-good-1.28.8.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/gst-plugins-good
SRC=$SRC_ROOT/gst-plugins-good-1.28.8
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf gst-plugins-good-1.28.8.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
meson setup build \
--prefix=/usr --sysconfdir=/etc --libdir=lib --libexecdir=/usr/lib \
--buildtype=release \
-Ddoc=disabled \
-Dexamples=disabled \
-Dtests=disabled \
-Dnls=disabled \
-Dximagesrc=disabled \
-Dgtk3=enabled \
-Dqt5=disabled \
-Dqt6=enabled \
-Dqt-method=qmake \
-Dqt-wayland=enabled \
-Dqt-x11=disabled \
-Dqt-egl=disabled \
-Drpicamsrc=disabled \
-Dv4l2=enabled \
-Dv4l2-libv4l2=enabled \
-Dv4l2-gudev=enabled \
-Dflac=enabled \
-Dlame=enabled \
-Dmpg123=enabled \
-Dwavpack=enabled \
-Dvpx=enabled \
-Dpng=enabled \
-Djpeg=enabled \
-Dcairo=enabled \
-Dbz2=enabled \
-Daalib=enabled \
-Dpulse=enabled \
-Dsoup=enabled \
-Dadaptivedemux2=enabled \
-Dhls-crypto=openssl \
-Dorc=enabled \
-Dorc-compiler=disabled \
-Dasm=enabled \
-Dgdk-pixbuf=enabled \
-Doss=disabled \
-Doss4=disabled \
-Djack=disabled \
-Dlibcaca=disabled \
-Dshout2=disabled \
-Dspeex=enabled \
-Dtaglib=enabled \
-Dtwolame=enabled \
-Ddv=disabled \
-Ddv1394=disabled \
-Damrnb=disabled \
-Damrwbdec=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
for p in taglib speex gdkpixbuf gtk; do
test -e "$PKG/usr/lib/gstreamer-1.0/libgst$p.so"
done
The switches, and why each is set:
-Dximagesrc=disabled— Noximagesrc, the X11 screen-capture source.-Dgtk3=enabled— Buildgtksinkandgtkglsink, which draw video into a GTK 3 widget.-Dqt6=enabled,-Dqt5=disabled— Buildqml6glsinkand theGstGLQt6VideoItemtype of theorg.freedesktop.gstreamer.Qt6GLVideoItemQML module, which kamoso and nheko draw camera and call video into; without it their windows show no picture. No Qt 5 plugin.-Dqt-method=qmake— Find Qt throughqmake6, so the tools are found where it reports them:qsbfrom qt6-qtshadertools inQT_HOST_BINS,/usr/lib/qt6/bin, andmoc,rccanduicinQT_HOST_LIBEXECS.-Dqt-wayland=enabled,-Dqt-x11=disabled,-Dqt-egl=disabled— Build only the Qt plugin’s Wayland window-system support. Its X11 support needs GLX in gstreamer-gl, which gst-plugins-base is built without (-Dgl_platform=egl), and its EGL support is for EGLFS, which qt6-qtbase is built without (-DFEATURE_eglfs=OFF).-Drpicamsrc=disabled— No Raspberry Pi camera module source.-Dv4l2=enabled,-Dv4l2-libv4l2=enabled,-Dv4l2-gudev=enabled— The Video4Linux 2 camera source and sink, with libv4l2 from v4l-utils for format conversions a camera needs and libgudev for finding devices.-Dsoup=enabled,-Dadaptivedemux2=enabled—souphttpsrcand the second-generation HLS, DASH and Smooth Streaming demuxers. Both load libsoup 3 withdlopen()at run time rather than linking it, so the build does not notice its absence: without libsoup3 installed both plugins load and register no element. It is independsfor that reason.-Dhls-crypto=openssl— Decrypt AES-encrypted HLS segments with openssl, named rather than chosen by what is found first.-Dorc=enabled,-Dorc-compiler=disabled— Use the orc run-time compiler for the SIMD kernels, and use the pre-generated orc C files shipped in the source instead of regenerating them.-Dasm=enabled— The deinterlacer’s hand-written x86-64 assembly, assembled with nasm;enabledmakes a missingnasmstop the configure.-Dflac=enabled,-Dlame=enabled,-Dmpg123=enabled,-Dwavpack=enabled,-Dvpx=enabled,-Dpng=enabled,-Djpeg=enabled,-Dcairo=enabled,-Dbz2=enabled,-Daalib=enabled,-Dpulse=enabled,-Dgdk-pixbuf=enabled,-Dspeex=enabled,-Dtaglib=enabled,-Dtwolame=enabled— Each plugin that links an outside library, namedenabledso a missing one stops the configure: FLAC, LAME (MP3 encode), mpg123 (MP3 decode), WavPack, VP8 and VP9 through libvpx, PNG, JPEG, Cairo overlays, bzip2, the AAlib text-mode video sink, PulseAudio, GdkPixbuf image decoding, Speex, TagLib tag writing, andtwolamemp2enc, MPEG-1 layer 2 audio encoding.-Doss=disabled,-Doss4=disabled,-Djack=disabled— No OSS or JACK audio elements. The PulseAudio elements are GStreamer’s audio path, andpipewire-pulseserves them (see Audio).-Dlibcaca=disabled,-Dshout2=disabled,-Ddv=disabled,-Ddv1394=disabled,-Damrnb=disabled,-Damrwbdec=disabled— No libcaca video sink, no Icecast streaming, no DV video or FireWire capture, and no AMR codecs; each is pinned off, so it stays off whatever else is installed.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/gst-plugins-good, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf gst-plugins-good-1.28.8-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/gst-plugins-good, and runs the triggers its paths call for.
Contents
Installed directories: /usr/share/licenses/gst-plugins-good.
Notes
After the install build.sh checks that the taglib, speex, gdkpixbuf and gtk plugins are in the package.