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

263.3. mlt-7.42.0

MLT multimedia framework: the video editing engine under Kdenlive and Shotcut

Version 7.42.0, release 2
Shelf media-frameworks — Multimedia frameworks, capture, and media inspection
Phase 43_toolkits (Toolkits), 236 of 344 in build order
Licence LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later
Homepage https://www.mltframework.org/
Build time 5.0 SBU
Installed size 9.9 MiB in 506 files
Recipe ports/core/media-frameworks/mlt/kpkgbuild

About

MLT is the multimedia framework that video editors are built on: a library, libmlt with its C++ wrapper libmlt++, that composes producers, filters, transitions and consumers into a timeline and renders it, plus the melt command that plays or renders an MLT XML project from the command line. Almost everything it can do lives in modules, loadable libraries under /usr/lib/mlt-7, each wrapping one library or one family of effects. In this tree kdenlive, shotcut and krita link it.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, ffmpeg, fftw, gdk-pixbuf, pango, fontconfig, libexif, libxml2, zlib, glib, ladspa, lilv, libebur128, libsamplerate, rtaudio, rubberband, sdl2-compat, sox, vidstab, libvorbis, frei0r-plugins, qt6-qtbase, qt6-qtsvg, alsa-lib, libpulse, movit, libX11, libglvnd, opencv, rnnoise, libspatialaudio.

Required by (3): kdenlive, krita, shotcut.

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 mlt'

What kpkg does

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

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/mlt
echo '8800e343f43aaa885bd5d9d23553030fa220aa3e2f0c94d9fd6a936d41638cdd  mlt-7.42.0.tar.gz' | 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/mlt
SRC=$SRC_ROOT/mlt-7.42.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf mlt-7.42.0.tar.gz -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:

patch -p1 -i "$PORT_SRC/melt-include-missing-system-headers.patch"
patch -p1 -i "$PORT_SRC/mlt-man-link-destdir.patch"

mkdir build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_DISABLE_FIND_PACKAGE_JACK=ON \
	-DGPL=ON \
	-DGPL3=ON \
	-DBUILD_TESTING=OFF \
	-DBUILD_DOCS=OFF \
	-DCLANG_FORMAT=OFF \
	-DMOD_AVFORMAT=ON \
	-DUSE_AVDEVICE=ON \
	-DMOD_DECKLINK=OFF \
	-DMOD_FREI0R=ON \
	-DMOD_GDK=ON \
	-DMOD_GLAXNIMATE_QT6=ON \
	-DMOD_JACKRACK=ON \
	-DUSE_LV2=ON \
	-DUSE_VST2=ON \
	-DMOD_KDENLIVE=ON \
	-DMOD_MOVIT=ON \
	-DMOD_NDI=OFF \
	-DMOD_NORMALIZE=ON \
	-DMOD_OLDFILM=ON \
	-DMOD_OPENCV=ON \
	-DMOD_OPENFX=ON \
	-DMOD_PLUS=ON \
	-DMOD_PLUSGPL=ON \
	-DMOD_QT6=ON \
	-DMOD_RESAMPLE=ON \
	-DMOD_RTAUDIO=ON \
	-DMOD_RUBBERBAND=ON \
	-DMOD_RNNOISE=ON \
	-DMOD_SDL1=OFF \
	-DMOD_SDL2=ON \
	-DMOD_SOX=ON \
	-DMOD_SPATIALAUDIO=ON \
	-DMOD_VIDSTAB=ON \
	-DMOD_VORBIS=ON \
	-DMOD_XINE=ON \
	-DMOD_XML=ON \
	-DSWIG_PYTHON=OFF
ninja
DESTDIR=$PKG ninja install
test -L "$PKG/usr/share/man/man1/melt.1"

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

Contents

Installed programs: melt, melt-7.

Installed libraries: libmlt++-7.so, libmlt-7.so.

Installed directories: /usr/include/mlt-7, /usr/lib/cmake/Mlt7, /usr/lib/mlt-7, /usr/share/licenses/mlt, /usr/share/mlt-7.

Short descriptions

melt-7 author, play, and encode multitrack audio/video compositions
mlt++-7.pc C++ API for MLT multimedia framework
mlt-framework-7.pc MLT multimedia framework

Notes

build.sh ends with test -L "$PKG/usr/share/man/man1/melt.1", which fails the build if the package lacks the man page link that the second patch makes.

The libplacebo module is not named in build.sh. Upstream’s MOD_PLACEBO defaults to on and builds the module only when pkg-config finds libplacebo 5.229 or newer, and drops it without an error otherwise. libplacebo is not in this port’s own depends; it arrives through ffmpeg, which is built with --enable-libplacebo, so the package carries libmltplacebo.so for as long as ffmpeg keeps that dependency.