Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

207.2. gstreamer-1.28.8

GStreamer streaming media framework — core library

Version 1.28.8, release 1
Shelf media-frameworks — Multimedia frameworks, capture, and media inspection
Phase 42_graphics (Graphics Stack), 38 of 189 in build order
Licence LGPL-2.1-or-later
Homepage https://gstreamer.freedesktop.org/
Build time 0.5 SBU
Installed size 10.8 MiB in 183 files
Recipe ports/core/media-frameworks/gstreamer/kpkgbuild

About

GStreamer is the pipeline-based media framework: elements that read, decode, convert, encode and write media are linked into pipelines, and an application drives the pipeline instead of handling codecs itself. This port is the core: libgstreamer-1.0, the base, controller, net and check libraries, the gst-launch-1.0, gst-inspect-1.0 and gst-typefind-1.0 tools, and the plugin scanner. The elements themselves come from gst-plugins-base and the good, bad, ugly and libav sets. GTK’s media widgets, WebKitGTK’s audio and video, Qt Multimedia and the GStreamer-based players, editors and recorders are built on it.

Sources

Dependencies

Depends on: meson, ninja, glib, bison, flex, bash-completion, libunwind-nongnu, elfutils, gobject-introspection, glib-introspection.

Required by (27): audiotube, brasero, dino, gst-plugins-base, gthumb, gtk4, kamoso, kasts, libcamera, libcanberra, libnice, libreoffice, nheko, opencv, orcaslicer, pipewire, qt5-qtmultimedia, qt6-qtmultimedia, rhythmbox, spice, spice-gtk, strawberry, webkitgtk, webkitgtk6, wine, wxwidgets, xfburn.

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/42_graphics/phase.env && kpkg install gstreamer'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/media-frameworks/gstreamer.

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/gstreamer
echo 'baa8e86985ad6417cc0ad6e7b79ff2884c6779c8b1c7a6240e7121822c86e524  gstreamer-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/gstreamer
SRC=$SRC_ROOT/gstreamer-1.28.8
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf gstreamer-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 \
	-Dintrospection=enabled \
	-Ddoc=disabled \
	-Dexamples=disabled \
	-Dtests=disabled \
	-Dptp-helper=disabled \
	-Dlibdw=enabled \
	-Dlibunwind=enabled \
	-Dbash-completion=enabled \
	-Dnls=disabled \
	-Dgst_debug=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

The switches, and why each is set:

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/gstreamer, 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 gstreamer-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/gstreamer, and runs the triggers its paths call for.

Contents

Installed programs: gst-inspect-1.0, gst-launch-1.0, gst-stats-1.0, gst-typefind-1.0.

Installed libraries: libgstbase-1.0.so, libgstcheck-1.0.so, libgstcontroller-1.0.so, libgstnet-1.0.so, libgstreamer-1.0.so.

Installed directories: /usr/include/gstreamer-1.0/gst/base, /usr/include/gstreamer-1.0/gst/check, /usr/include/gstreamer-1.0/gst/controller, /usr/include/gstreamer-1.0/gst/net, /usr/share/gstreamer-1.0/gdb, /usr/share/licenses/gstreamer.

Short descriptions

gst-inspect-1.0 print info about a GStreamer plugin or element
gst-launch-1.0 build and run a GStreamer pipeline
gst-stats-1.0 print info gathered from a GStreamer log file
gst-typefind-1.0 print Media type of file
gstreamer-1.0.pc Streaming media framework
gstreamer-base-1.0.pc Base classes for GStreamer elements
gstreamer-check-1.0.pc Unit testing helper library for GStreamer modules
gstreamer-controller-1.0.pc Dynamic parameter control for GStreamer elements
gstreamer-net-1.0.pc Network-enabled GStreamer plug-ins and clocking