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

254.16. qt6-qtmultimedia-6.12.0

Qt 6 Multimedia — audio, video playback and capture through FFmpeg and PipeWire, with a GStreamer backend

Version 6.12.0, release 1
Shelf qt6 — The Qt 6 modules, and everything in `group = qt6`
Phase 43_toolkits (Toolkits), 90 of 344 in build order
Licence LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
Homepage https://www.qt.io
Build time 8.3 SBU
Installed size 14.8 MiB in 640 files
Recipe ports/core/qt6/qt6-qtmultimedia/kpkgbuild

About

Qt Multimedia for Qt 6: audio and video playback, recording, camera and screen capture, and audio devices, as the QtMultimedia library, its Qt Quick types and the Qt Spatial Audio module. Media decoding and encoding go through two media plugins, FFmpeg’s and GStreamer’s; audio reaches the sound server through PipeWire.

Why it is in KDOS

The comment above the 27 ports from qt6-qtbase to qt6-qtmqtt in script/phases/43_toolkits/packages.d/qt6.txt:

Built with the Wayland and xcb platforms. QT_QPA_PLATFORM is wayland;xcb, so a Qt application falls back to Xwayland only when the Wayland plugin cannot start, and QT_QPA_PLATFORMTHEME=kde makes it read its palette, fonts and icons from the kdeglobals kdos theme writes.

Sources

Dependencies

Depends on: cmake, ninja, qt6-qtbase, pkgconf, qt6-qtdeclarative, qt6-qtshadertools, qt6-qtsvg, qt6-qtquick3d, ffmpeg, gstreamer, gst-plugins-base, gst-plugins-bad, pipewire, libpulse, libva, mesa, libglvnd, libX11, libXrandr, libXext.

Required by (57): artikulate, audiotube, blinken, digikam, dolphin, dragon, elisa, gcompris, goldendict-ng, gpxsee, gwenview, itinerary, js8call, juk, kanagram, kasts, kclock, kdeconnect, kdenlive, keysmith, khangman, klettres, knotifyconfig, koko, konsole, konversation, krecorder, ksirk, ktextaddons, ktorrent, ktuberling, kwave, kwordquiz, libreoffice, mailcommon, minuet, mkvtoolnix, neochat, nheko, openscad, parley, pencil2d, picard, plasma-camera, prison, python3-pyqt6, qrca, qt6-qtspeech, qt6-qtvirtualkeyboard, sddm-kcm, sdrangel, shotcut, spectacle, stellarium, texstudio, tokodon, wireshark.

Patches

build.sh applies these; kpkg applies nothing by itself.

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 qt6-qtmultimedia'

What kpkg does

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

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/qt6/qt6-qtmultimedia
echo '3143f53b64257ba2a0685c940f5dce476c75871ff86b516de45cfd54ea93a62d  qt6-qtmultimedia-6.12.0.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/qt6-qtmultimedia
SRC=$SRC_ROOT/qt6-qtmultimedia-6.12.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qt6-qtmultimedia-6.12.0.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 recipe’s helpers _module, group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/select.patch"

mkdir build && cd build
cmake .. -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DQT_BUILD_TESTS=OFF \
	-DQT_BUILD_EXAMPLES=OFF \
	-DFEATURE_ffmpeg=ON \
	-DFEATURE_gstreamer=ON \
	-DFEATURE_pipewire=ON \
	-DFEATURE_pipewire_screencapture=ON \
	-DFEATURE_pulseaudio=ON \
	-DFEATURE_alsa=OFF \
	-DFEATURE_vaapi=ON \
	-DFEATURE_linux_v4l=ON \
	-DFEATURE_spatialaudio=ON \
	-DFEATURE_spatialaudio_quick3d=ON
ninja
DESTDIR=$PKG ninja install

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

Contents

Installed libraries: libQt6BundledResonanceAudio.a, libQt6FFmpegMediaPluginImpl.a, libQt6GstreamerMediaPluginImpl.a, libQt6Multimedia.so, libQt6MultimediaQuick.so, libQt6MultimediaTestLib.a, libQt6MultimediaWidgets.so, libQt6Quick3DSpatialAudio.so, libQt6SpatialAudio.so.

Installed directories: /usr/include/qt6/QtFFmpegMediaPluginImpl, /usr/include/qt6/QtGstreamerMediaPluginImpl, /usr/include/qt6/QtMultimedia, /usr/include/qt6/QtMultimediaQuick, /usr/include/qt6/QtMultimediaTestLib, /usr/include/qt6/QtMultimediaWidgets, /usr/include/qt6/QtQuick3DSpatialAudio, /usr/include/qt6/QtSpatialAudio, /usr/lib/cmake/Qt6BundledResonanceAudio, /usr/lib/cmake/Qt6FFmpegMediaPluginImplPrivate, /usr/lib/cmake/Qt6GstreamerMediaPluginImplPrivate, /usr/lib/cmake/Qt6Multimedia, /usr/lib/cmake/Qt6MultimediaPrivate, /usr/lib/cmake/Qt6MultimediaQuick, /usr/lib/cmake/Qt6MultimediaQuickPrivate, /usr/lib/cmake/Qt6MultimediaTestLibPrivate, /usr/lib/cmake/Qt6MultimediaWidgets, /usr/lib/cmake/Qt6MultimediaWidgetsPrivate, /usr/lib/cmake/Qt6Quick3DSpatialAudio, /usr/lib/cmake/Qt6Quick3DSpatialAudioPrivate, /usr/lib/cmake/Qt6SpatialAudio, /usr/lib/cmake/Qt6SpatialAudioPrivate, /usr/lib/qt6/mkspecs/features/ios, /usr/lib/qt6/plugins/multimedia, /usr/lib/qt6/qml/QtMultimedia, /usr/lib/qt6/qml/QtQuick3D/SpatialAudio, /usr/share/licenses/qt6-qtmultimedia.

Short descriptions

Qt6Multimedia.pc Qt Multimedia module
Qt6MultimediaQuick.pc Qt MultimediaQuick module
Qt6MultimediaWidgets.pc Qt MultimediaWidgets module
Qt6Quick3DSpatialAudio.pc Qt Quick3DSpatialAudio module
Qt6SpatialAudio.pc Qt SpatialAudio module

Notes

The GStreamer backend plays what the GStreamer element plugins installed beside it can decode. gst-plugins-good and gst-libav are not in depends, so a program that selects this backend names them in its own.

Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own (see How Qt 6 is built).