263.1. gst-plugins-bad-1.28.8
GStreamer "bad" plugin set (less mature plugins)
| Version | 1.28.8, release 1 |
| Shelf | media-frameworks — Multimedia frameworks, capture, and media inspection |
| Phase | 43_toolkits (Toolkits), 89 of 344 in build order |
| Licence | LGPL-2.1-or-later AND GPL-2.0-or-later |
| Homepage | https://gstreamer.freedesktop.org/ |
| Build time | 2.3 SBU |
| Installed size | 21.4 MiB in 455 files |
| Recipe | ports/core/media-frameworks/gst-plugins-bad/kpkgbuild |
About
The GStreamer “bad” plugin set: plugins upstream considers less mature or less reviewed, and the libraries other GStreamer components build on, among them gstreamer-play, the VA-API, Vulkan and Wayland video libraries, WebRTC (webrtcbin), and the HLS and DASH elements. gtk4 plays video through its gstreamer-play library, and the WebKitGTK ports, Qt 5 and Qt 6 Multimedia, wxWidgets, Nheko, Dino, Kamoso, AudioTube and Strawberry depend on it.
Sources
gst-plugins-bad-1.28.8.tar.xz(8.0 MiB)
sha256670d888bde8242579b0d8e91f60cf337aa7be20ca7c315ebfbdd6e5a9218d104
upstream: https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.28.8.tar.xz
archive copy: sources-3/media-frameworks--gst-plugins-bad-1.28.8.tar.xz
Dependencies
Depends on: gst-plugins-base, orc, x265, faad2, svt-av1, fdk-aac, openjpeg, libass, opus, pango, cairo, libwebp, zbar, fluidsynth, lcms2, webrtc-audio-processing, libva, libdrm, libgudev, wayland, wayland-protocols, vulkan-loader, vulkan-headers, glslang, libxml2, openssl, curl, libssh2, librsvg, libsndfile, openexr, bzip2, libnice, libsrtp, libsrt, libdvdnav, libdvdread, chromaprint, libopenmpt, gobject-introspection, glib-introspection.
Required by (11): audiotube, dino, gtk4, kamoso, nheko, qt5-qtmultimedia, qt6-qtmultimedia, strawberry, webkitgtk, webkitgtk6, wxwidgets.
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.
-Dx11=disabled, line 20: libX11 (explained with the switches below)-Dgtk3=disabled, line 21: gtk3-Dbluez=disabled, line 68: bluez (explained with the switches below)-Dsbc=disabled, line 69: sbc-Dlc3=disabled, line 72: liblc3-Dlibde265=disabled, line 73: libde265 (explained with the switches below)-Dbs2b=disabled, line 81: libbs2b-Dgme=disabled, line 87: libgme-Dgsm=disabled, line 89: gsm-Dladspa=disabled, line 92: ladspa-Dlv2=disabled, line 96: lv2-Dmodplug=disabled, line 98: libmodplug-Dneon=disabled, line 104: neon-Dopenal=disabled, line 108: openal-soft-Dopencv=disabled, line 109: opencv-Dopenh264=disabled, line 110: openh264-Dsoundtouch=disabled, line 113: soundtouch
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-bad'
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-bad.
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-bad
echo '670d888bde8242579b0d8e91f60cf337aa7be20ca7c315ebfbdd6e5a9218d104 gst-plugins-bad-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-bad
SRC=$SRC_ROOT/gst-plugins-bad-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-bad-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 \
-Dintrospection=enabled \
-Dx11=disabled \
-Dgtk3=disabled \
-Dorc=enabled \
-Dorc-compiler=disabled \
-Dgpl=enabled \
-Dx265=enabled \
-Dfaad=enabled \
-Dsvtav1=enabled \
-Dfdkaac=enabled \
-Dopenjpeg=enabled \
-Dassrender=enabled \
-Dopus=enabled \
-Dwebp=enabled \
-Dzbar=enabled \
-Dfluidsynth=enabled \
-Dcolormanagement=enabled \
-Danalyticsoverlay=enabled \
-Dwebrtcdsp=enabled \
-Dwebrtc=enabled \
-Dsrtp=enabled \
-Dsctp=enabled \
-Dsctp-internal-usrsctp=enabled \
-Dresindvd=enabled \
-Drsvg=enabled \
-Dsndfile=enabled \
-Dopenexr=enabled \
-Dbz2=enabled \
-Dchromaprint=enabled \
-Dopenmpt=enabled \
-Dva=enabled \
-Dudev=enabled \
-Ddrm=enabled \
-Dkms=enabled \
-Dwayland=enabled \
-Dgl=enabled \
-Dvulkan=enabled \
-Dvulkan-video=enabled \
-Dvulkan-windowing=wayland \
-Ddash=enabled \
-Dhls=enabled \
-Dhls-crypto=openssl \
-Dsmoothstreaming=enabled \
-Dttml=enabled \
-Dcurl=enabled \
-Dcurl-ssh2=enabled \
-Ddtls=enabled \
-Daes=enabled \
-Daom=disabled \
-Dbluez=disabled \
-Dsbc=disabled \
-Dldac=disabled \
-Dopenaptx=disabled \
-Dlc3=disabled \
-Dlibde265=disabled \
-Dcodec2json=disabled \
-Dqroverlay=disabled \
-Dv4l2codecs=disabled \
-Duvch264=disabled \
-Duvcgadget=disabled \
-Dsrt=enabled \
-Davtp=disabled \
-Dbs2b=disabled \
-Ddc1394=disabled \
-Ddirectfb=disabled \
-Ddts=disabled \
-Dfaac=disabled \
-Dflite=disabled \
-Dgme=disabled \
-Dgs=disabled \
-Dgsm=disabled \
-Diqa=disabled \
-Disac=disabled \
-Dladspa=disabled \
-Dladspa-rdf=disabled \
-Dlcevcdecoder=disabled \
-Dlcevcencoder=disabled \
-Dlv2=disabled \
-Dmicrodns=disabled \
-Dmodplug=disabled \
-Dmpeg2enc=disabled \
-Dmpeghdec=disabled \
-Dmplex=disabled \
-Dmsdk=disabled \
-Dmusepack=disabled \
-Dneon=disabled \
-Dnvcomp=disabled \
-Dnvdswrapper=disabled \
-Donnx=disabled \
-Dopenal=disabled \
-Dopencv=disabled \
-Dopenh264=disabled \
-Dopenni2=disabled \
-Drtmp=disabled \
-Dsoundtouch=disabled \
-Dspandsp=disabled \
-Dsvthevcenc=disabled \
-Dsvtjpegxs=disabled \
-Dteletext=disabled \
-Dtflite=disabled \
-Dtflite-edgetpu=disabled \
-Dtinyalsa=disabled \
-Dvmaf=disabled \
-Dvoaacenc=disabled \
-Dvoamrwbenc=disabled \
-Dwildmidi=disabled \
-Dwpe=disabled \
-Dwpe2=disabled \
-Dzxing=disabled \
-Daja=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
The switches, and why each is set:
Every plugin that links an outside library is named, enabled or disabled, never left at meson’s auto: an enabled library that goes missing fails the configure instead of giving a thinner package, and a disabled one stays off whatever else is installed first. The vendor GPU plugins nvcodec, qsv and hip stay at auto and are built: they link no library beyond GLib and GStreamer’s own (qsv compiles Intel’s dispatcher from the copy in the source and reaches the GPU through the VA library built here), and load NVIDIA’s, Intel’s or AMD’s runtime only when they run.
-Dintrospection=enabled— Generate the GIR files for the libraries, such asGstPlay-1.0andGstWebRTC-1.0. They include theGst-1.0andGstBaseGIRs, so gstreamer and gst-plugins-base are built with introspection too.-Dx11=disabled,-Dgtk3=disabled— No X11 support in the RFB (VNC) source, and nogtkwaylandsink, the GTK 3 Wayland video sink. The Vulkan library’s X11 window system is governed by-Dvulkan-windowinginstead. gst-plugins-good builds the GTK 3gtksink.-Dorc=enabled,-Dorc-compiler=disabled— Use orc for the SIMD kernels, from the pre-generated C files in the source.-Dgpl=enabled— Allow the plugins whose libraries are GPL. Upstream’s default is off, and with it off,x265,faadorresindvdnamedenabledstops the configure.-Dx265=enabled— HEVC encoding through x265.-Dfaad=enabled— AAC decoding through faad2.-Dsvtav1=enabled— AV1 encoding through svt-av1.-Dfdkaac=enabled— AAC encoding through fdk-aac.-Dopenjpeg=enabled— JPEG 2000 through openjpeg.-Dassrender=enabled— SSA/ASS subtitles drawn over video, through libass.-Dopus=enabled,-Dwebp=enabled,-Drsvg=enabled,-Dsndfile=enabled,-Dopenexr=enabled,-Dbz2=enabled— Opus parsing, WebP, SVG decoding and overlays, the formats libsndfile reads (sfdec; upstream builds no encoder), OpenEXR decoding, and bzip2.-Dzbar=enabled— Thezbarelement, which reads barcodes and QR codes from video through zbar.-Dfluidsynth=enabled— MIDI synthesis through fluidsynth.-Dcolormanagement=enabled— Colour-management correction through lcms2.-Danalyticsoverlay=enabled— Draws the results of video-analytics elements over the video, with Cairo and Pango.-Dwebrtcdsp=enabled— Echo cancellation and noise suppression, through webrtc-audio-processing.-Dwebrtc=enabled,-Dsrtp=enabled,-Ddtls=enabled,-Dsctp=enabled—webrtcbin, for peer-to-peer calls: ICE through libnice, media as SRTP through libsrtp, keys negotiated over DTLS with openssl, and data channels over SCTP.-Dsctp-internal-usrsctp=enabled— Build the SCTP plugin on the copy of usrsctp in the source, upstream’s default; usrsctp is not a port.-Dresindvd=enabled—rsndvdbin, DVD playback with menus, through libdvdnav and libdvdread.-Dchromaprint=enabled— Audio fingerprints through chromaprint, for taggers that look a track up.-Dopenmpt=enabled— Tracker modules (MOD, XM, IT, S3M) through libopenmpt.-Dva=enabled,-Dudev=enabled,-Ddrm=enabled— The VA-API hardware decoders and encoders, through libva, with libdrm and libgudev to find and open the GPU.-Dkms=enabled,-Dwayland=enabled,-Dgl=enabled— The KMS and Wayland video sinks and the OpenGL integration.-Dvulkan=enabled,-Dvulkan-video=enabled,-Dvulkan-windowing=wayland— The Vulkan elements and Vulkan Video decoding and encoding, with Wayland as their only window system. The shaders are compiled at build time withglslcfrom shaderc when it is installed, and otherwise with glslang, the one independs.-Ddash=enabled,-Dhls=enabled,-Dsmoothstreaming=enabled,-Dttml=enabled— The older adaptive-streaming demuxers and the TTML subtitle parser and renderer.-Dhls-crypto=openssl— Decrypt AES-encrypted HLS segments with openssl.-Dcurl=enabled,-Dcurl-ssh2=enabled— The curl network source and sink, with SFTP and SCP through libssh2.-Daes=enabled— AES encryption and decryption elements.-Dsrt=enabled— SRT (Secure Reliable Transport) streaming, through libsrt.-Daom=disabled— No AV1 elements through libaom, which is not a port; svt-av1 is the tree’s AV1 encoder.-Dbluez=disabled,-Dsbc=disabled,-Dldac=disabled,-Dopenaptx=disabled,-Dlc3=disabled— No Bluetooth audio elements or Bluetooth codecs. Bluetooth audio is pipewire’s, built with its bluez5 codecs.-Dlibde265=disabled— No HEVC decoder through libde265; gst-libav decodes HEVC.-Dcodec2json=disabled,-Dqroverlay=disabled,-Dv4l2codecs=disabled,-Duvch264=disabled,-Duvcgadget=disabled— No codec-to-JSON debugging element, no QR-code overlay, no Video4Linux stateless decoders, no UVC H.264 camera source and no UVC gadget sink.-Davtp=disabledthrough-Daja=disabled— The remaining plugins that link an outside library, each pinned off: AVTP, bs2b, dc1394, DirectFB, DTS, FAAC, Flite, GME, Ghostscript, GSM, IQA, iSAC, LADSPA, LCEVC, LV2, microdns, modplug, mpeg2enc, MPEG-H, mplex, Intel Media SDK, Musepack, neon, nvCOMP, the NVIDIA DeepStream wrapper, ONNX, OpenAL, OpenCV, OpenH264, OpenNI2, RTMP, SoundTouch, spandsp, the SVT HEVC and JPEG XS encoders, teletext, TensorFlow Lite, tinyalsa, VMAF, the VisualOn encoders, WildMIDI, WPE, ZXing and AJA.
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-bad, 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-bad-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-bad, and runs the triggers its paths call for.
Contents
Installed programs: gst-transcoder-1.0.
Installed libraries: libgstadaptivedemux-1.0.so, libgstanalytics-1.0.so, libgstbadaudio-1.0.so, libgstbasecamerabinsrc-1.0.so, libgstcodecparsers-1.0.so, libgstcodecs-1.0.so, libgstcuda-1.0.so, libgstdxva-1.0.so, libgsthip-1.0.so, libgstinsertbin-1.0.so, libgstisoff-1.0.so, libgstmpegts-1.0.so, libgstmse-1.0.so, libgstphotography-1.0.so, libgstplay-1.0.so, libgstplayer-1.0.so, libgstsctp-1.0.so, libgsttranscoder-1.0.so, libgsturidownloader-1.0.so, libgstva-1.0.so, libgstvulkan-1.0.so, libgstwayland-1.0.so, libgstwebrtc-1.0.so, libgstwebrtcnice-1.0.so.
Installed directories: /usr/include/gstreamer-1.0/gst/analytics, /usr/include/gstreamer-1.0/gst/basecamerabinsrc, /usr/include/gstreamer-1.0/gst/codecparsers, /usr/include/gstreamer-1.0/gst/cuda, /usr/include/gstreamer-1.0/gst/hip, /usr/include/gstreamer-1.0/gst/insertbin, /usr/include/gstreamer-1.0/gst/interfaces, /usr/include/gstreamer-1.0/gst/isoff, /usr/include/gstreamer-1.0/gst/mpegts, /usr/include/gstreamer-1.0/gst/mse, /usr/include/gstreamer-1.0/gst/play, /usr/include/gstreamer-1.0/gst/player, /usr/include/gstreamer-1.0/gst/sctp, /usr/include/gstreamer-1.0/gst/transcoder, /usr/include/gstreamer-1.0/gst/uridownloader, /usr/include/gstreamer-1.0/gst/va, /usr/include/gstreamer-1.0/gst/vulkan, /usr/include/gstreamer-1.0/gst/wayland, /usr/include/gstreamer-1.0/gst/webrtc, /usr/share/gstreamer-1.0/encoding-profiles, /usr/share/licenses/gst-plugins-bad.
Short descriptions
gstreamer-analytics-1.0.pc |
GStreamer analytics metadata library |
gstreamer-bad-audio-1.0.pc |
Bad audio library for GStreamer elements |
gstreamer-codecparsers-1.0.pc |
Bitstream parsers for GStreamer elements |
gstreamer-cuda-1.0.pc |
Unstable library to work with CUDA inside GStreamer |
gstreamer-hip-1.0.pc |
GStreamer HIP library |
gstreamer-hip-gl-1.0.pc |
GStreamer HIP library (OpenGL specifics) |
gstreamer-insertbin-1.0.pc |
Bin to automatically and insertally link elements |
gstreamer-mpegts-1.0.pc |
GStreamer MPEG-TS support |
gstreamer-mse-1.0.pc |
GStreamer Support for W3C Media Source Extensions |
gstreamer-photography-1.0.pc |
High level API for transcoding using GStreamer |
gstreamer-play-1.0.pc |
GStreamer Player convenience library |
gstreamer-player-1.0.pc |
GStreamer Player convenience library |
gstreamer-plugins-bad-1.0.pc |
Streaming media framework, bad plugins libraries |
gstreamer-sctp-1.0.pc |
SCTP helper functions |
gstreamer-transcoder-1.0.pc |
High level API for transcoding using GStreamer |
gstreamer-va-1.0.pc |
GStreamer VA support |
gstreamer-vulkan-1.0.pc |
GStreamer Vulkan support |
gstreamer-vulkan-wayland-1.0.pc |
GStreamer Vulkan support (Wayland Specifics) |
gstreamer-wayland-1.0.pc |
GStreamer Wayland support |
gstreamer-webrtc-1.0.pc |
GStreamer WebRTC support |
gstreamer-webrtc-nice-1.0.pc |
libnice based implementaion for GstWebRTCICE |