322.3. kdenlive-26.08.2
Kdenlive: the KDE multi-track video editor, on MLT
| Version | 26.08.2, release 1 |
| Shelf | video-tools — Video editing, transcoding, muxing, recording, streaming and webcam apps |
| Phase | 44_apps (Applications), 411 of 422 in build order |
| Licence | GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
| Homepage | https://kdenlive.org/ |
| Build time | 10.3 SBU |
| Installed size | 83.9 MiB in 864 files |
| Recipe | ports/core/video-tools/kdenlive/kpkgbuild |
About
Kdenlive is KDE’s multi-track video editor. The timeline, rendering and playback are MLT’s, and the effects, transitions and generators it offers are MLT’s own and frei0r’s, found at run time; ffmpeg does the decoding and encoding underneath. OpenTimelineIO imports and exports timelines from other editors.
Sources
kdenlive-26.08.2.tar.xz(19.0 MiB)
sha2561019cda23429a526e3a2dbdd2ec93406fef0c89ca243af16dfa16ac9ae8a6bf8
upstream: https://download.kde.org/stable/release-service/26.08.2/src/kdenlive-26.08.2.tar.xz
archive copy: sources-4/video-tools--kdenlive-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, qt6-qtnetworkauth, qt6-qtwayland, karchive, kbookmarks, kcodecs, kcoreaddons, kconfig, kconfigwidgets, kio, kwidgetsaddons, knotifyconfig, knewstuff, kxmlgui, knotifications, kguiaddons, ktextwidgets, kiconthemes, solid, kfilemetadata, purpose, kdoctools, kcrash, kdbusaddons, kirigami, qqc2-desktop-style, breeze-icons, kddockwidgets, mlt, ffmpeg, opentimelineio, imath, frei0r-plugins.
Required by (1): kde-gear-multimedia.
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/44_apps/phase.env && kpkg install kdenlive'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/video-tools/kdenlive.
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/video-tools/kdenlive
echo '1019cda23429a526e3a2dbdd2ec93406fef0c89ca243af16dfa16ac9ae8a6bf8 kdenlive-26.08.2.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/kdenlive
SRC=$SRC_ROOT/kdenlive-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kdenlive-26.08.2.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:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D RELEASE_BUILD=ON \
-D USE_DBUS=ON \
-D BUILD_TESTING=OFF \
-D BUILD_QCH=OFF \
-D BUILD_FUZZING=OFF \
-D CRASH_AUTO_TEST=OFF \
-D BUILD_DESIGNERPLUGIN=OFF \
-D BUILD_RUN_QMLLINT=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cat > "$PKG/usr/share/applications/org.kde.kdenlive.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Kdenlive
GenericName=Video Editor
Comment=Edit video on a multi-track timeline
Exec=kdenlive %F
Icon=kdenlive
Terminal=false
StartupWMClass=org.kde.kdenlive
X-DocPath=kdenlive/index.html
MimeType=application/x-kdenlive;
Categories=Qt;KDE;AudioVideo;AudioVideoEditing;
Keywords=editing;video;audio;mlt;timeline;cut;kdenlive;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kdenlive.desktop"
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D RELEASE_BUILD=ON— Leave the Git revision out of the program’s version string. Upstream’s default, named.-D USE_DBUS=ON— Build the components that use D-Bus. Upstream’s default on Linux, named.-D CRASH_AUTO_TEST=OFF— Upstream’s default, named: on, Kdenlive generates test cases from some crashes through the RTTR library, and downloads and builds RTTR’s source when no RTTR is installed.-D BUILD_QCH=OFF— With-D BUILD_FUZZING=OFFand-D BUILD_DESIGNERPLUGIN=OFF: no API documentation in Qt Help format, no fuzzing target and no Qt Designer plugin. All three are upstream’s defaults, named.-D BUILD_RUN_QMLLINT=OFF— Building thekdenlivetarget does not first run qmllint over every QML module. Upstream’s default is on, and a qmllint error then fails the build. The lint installs nothing: the program and its QML are built and installed the same either way.
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/kdenlive, 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 kdenlive-26.08.2-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/kdenlive, and runs the triggers its paths call for.
Contents
Installed programs: kdenlive, kdenlive_render.
Installed libraries: libkdenliveLibplugin.a.
Installed directories: /usr/lib/qt6/qml/org/kde/kdenlive, /usr/share/doc/HTML/en/kdenlive, /usr/share/doc/Kdenlive, /usr/share/kdenlive, /usr/share/licenses/kdenlive.
Short descriptions
kdenlive |
An open source non-linear video editor. |
kdenlive_render |
Render program for Kdenlive. |
Notes
- Features that download. Speech-to-text and object masking build a Python virtual environment with pip and download their models when first asked for. Without a network both report the missing module and the editor goes on without them; the online resource providers and the KNewStuff downloads fail the same way.
- The menu entry is replaced so that
StartupWMClassisorg.kde.kdenlive, the desktop file name Kdenlive sets and its Wayland app_id. It claims onlyapplication/x-kdenlive, its own project type; the media types belong to the players and viewers.