If you want to test the KF5 (KDE Frameworks 5, based on Qt5) version of Kdenlive, you need a distribution that provides a running KF5 environnment, like Kubuntu Vivid (15.04) preview releases.
Some outdated infos about the KF5 refactoring process can be found on Refactoring page
The first step is to compile MLT with Qt5 support. This is only required if you don't have a recent distribution or want to try recent features/fixes introduced in MLT. Otherwise you can skip and go directly to the next chapter - compiling Kdenlive.
To prevent conflicts, it is recommended to remove your distribution packages (melt, libmlt, libmlt++).
sudo apt-get install build-essential pkg-config \ libavformat-dev libavdevice-dev frei0r-plugins-dev frei0r-plugins libgtk2.0-dev libexif-dev \ libsdl1.2-dev libsox-dev libxml2-dev \ ladspa-sdk libcairo2-dev libswscale-dev qtscript5-dev libqt5svg5-dev \ libqt5opengl5-dev libepoxy-dev libeigen3-dev libfftw3-dev \ git yasm libtool automake autoconf libtool-bin libtheora-bin libtheora-dev \ intltool swig libmp3lame-dev libgavl-dev libsamplerate0-dev libjack-dev libsoup2.4-dev \ python-dev libkf5crash-dev libkf5filemetadata-dev
(optional packages: libmovit-dev)
On OpenSuse 13.2, for MLT+Kdenlive (not very used to that system, please correct me):
zypper ar -f http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_13.2 Qt5 zypper ar -f http://download.opensuse.org/distribution/13.2/repo/oss/ oss zypper ar -f http://download.opensuse.org/source/distribution/13.2/repo/oss/ oss-src zypper refresh zypper si kdenlive libmlt zypper install libqt5-qtscript-devel libqt5-qtsvg-devel \ libQt5OpenGL-devel libQt5Concurrent-devel kplotting-devel \ libQt5Test-devel kparts-devel knotifications-devel
If you want to use MLT's Motion Tracker filter, you need to install OpenCV >= 3.1 with its contrib module. This can be done with the following commands:
git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git cd opencv mkdir build cd build cmake .. -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules make -j5 sudo make install
git clone https://github.com/mltframework/mlt.git
or download the latest release from https://github.com/mltframework/mlt/releases/latest.
By default, MLT will be installed in /usr/local. If you want to install to a non-standard local path, you can set it by adding "--prefix=/path/to/your/install"
./configure --enable-gpl --enable-gpl3 make sudo make install
Should play open a preview window with a red color clip
Should play your test file in a video window.
We are cloning the git repository for kdenlive into a local folder on your hard drive. This step will create a new kdenlive folder in the current directory. In this example I cloned into ~/kdenlive/kdenlive_git. Which creates ~/kdenlive/kdenlive_git/kdenlive
cd ~kdenlive mkdir kdenlive_git cd kdenlive_git git clone git://anongit.kde.org/kdenlive.git
Success looks like:
Cloning into 'kdenlive'... remote: Counting objects: 67026, done. remote: Compressing objects: 100% (12978/12978), done. remote: Total 67026 (delta 54842), reused 65893 (delta 53935) Receiving objects: 100% (67026/67026), 22.35 MiB | 582.00 KiB/s, done. Resolving deltas: 100% (54842/54842), done. Checking connectivity... done.
The master branch is the current development branch.
Create a build directory inside the kdenlive directory that git created:
cd kdenlive;mkdir build;cd build
(working dir now /kdenlive/kdenlive_git/kdenlive/build in our eg )
(These instructions do not include a build of the vidstab package and thus your built kdenlive will be missing the stabilization feature)
You will need to install several Qt/KDE devel packages to successfully compile.
On Ubuntu 15.10 the following packages will pull all the necessary dependencies:
sudo apt-get install \ libkf5archive-dev libkf5bookmarks-dev libkf5coreaddons-dev libkf5config-dev \ libkf5configwidgets-dev libkf5dbusaddons-dev kio-dev libkf5widgetsaddons-dev \ libkf5plotting-dev libkf5notifyconfig-dev libkf5newstuff-dev libkf5xmlgui-dev \ libkf5notifications-dev libkf5guiaddons-dev libkf5textwidgets-dev libkf5iconthemes-dev \ kdoctools-dev libkf5crash-dev libkf5filemetadata-dev extra-cmake-modules \ libsm-dev libv4l-dev libav-tools cmake qtdeclarative5-dev kde-runtime kinit kio \ qml-module-qtquick-controls
To avoid problems with plugins and libraries, it is easier to install Kdenlive in /usr:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
However if you prefer to install to a custom prefix (recommended only if you know what you are doing) :
export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib export XDG_DATA_DIRS=$INSTALL_PREFIX/share:$XDG_DATA_DIRS:/usr/share PKG_CONFIG_PATH=$INSTALL_PREFIX/lib/pkgconfig cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX
Then build and install:
make -j5 sudo make install
Test the built kdenlive by executing the kdenlive binary in the bin folder in your install path (again making use of the INSTALL_PREFIX shell variable we defined during the melt build)
The above command should start kdenlive. However, It is important to have especially the environment variable
XDG_DATA_DIRS correctly set to point to the share dir inside the Kdenlive installation directories. The given standard paths for
XDG_DATA_DIRS are typically /usr/share as well as /usr/local/share. So if you install Kdenlive to some other place, such as within your own home directory, make sure to add the path to your home-based share dir to
XDG_DATA_DIRS before attempting to start Kdenlive. Failing to do so causes Kdenlive to crash in unexpected situations, such as when trying to select a transition in the timeline.
Here's a nifty little script that sets up the environment variables automatically, then fires up Kdenlive; place this script next to your kdenlive executable (ie in $INSTALL_PREFIX/bin/). And don't forget to make it executable (chmod u+x kdenlive.sh).
#!/bin/bash SCRIPT_NAME=$(readlink -f "$0") SCRIPT_PATH=$(dirname "$SCRIPT_NAME") export INSTALL_PREFIX=$(dirname "$SCRIPT_PATH") export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib export XDG_DATA_DIRS=$INSTALL_PREFIX/share:$XDG_DATA_DIRS:/usr/share export XDG_CONFIG_DIRS=$INSTALL_PREFIX/etc/xdg:$XDG_CONFIG_DIRS echo "Environment set up for $INSTALL_PREFIX" $INSTALL_PREFIX/bin/kdenlive
If you want to be sure that you are executing the kdenlive you just built you might want to increase the version number of the build. This can be done by editing src/kdenlive/CMakeLists.txt
Frameworks 5 packages are hard come by in slightly old linux versions. Versions of Ubuntu/Kubuntu 15.04 are a safe bet for getting these packages. Consider installing a virtual Ubuntu/Kubuntu 15.04 for testing the frameworks branch.
A light virtualization option is using chroot, setting it up in a ubuntu/debian environment is as simple as:
sudo -s apt-get install schroot debootstrap debootstrap --arch amd64 vivid $CHROOTDIR http://us.archive.ubuntu.com/ubuntu/ cat << === >> /etc/schroot/chroot.d/vivid.conf [vivid] aliases=default description=vivid type=directory profile=desktop directory=$CHROOTDIR users=$USER === schroot -c vivid -p
after running the above you will get a prompt like
You can then follow the install instructions above for melt and kdenlive. Note that many of the required packages are in the "Universe" repository - which is not enabled by default on the chroot setup. So you will need to add that repository to the package manager (edit your chroots /etc/apt/sources.list ) in order to be able to find the required packages. Don't forget the apt-get update afterwards.
If, when you test melt, it complains
./melt: error while loading shared libraries: libmlt.so.6: cannot open shared object file: No such file or directory
Then try setting shell variables LD_LIBRARY_PATH and XDG_DATA_DIRS
export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib export XDG_DATA_DIRS=$INSTALL_PREFIX/share:$XDG_DATA_DIRS:/usr/share
The LibAV/FFmpeg libraries that do all the encoding/decoding stuff are evolving quickly, but distributions do not always provide a recent version of these libraries. If you want to benefit from the latest features / fixes from these libraries, here is a quick howto on installing a recent FFmpeg version for MLT/Kdenlive without touching your system's LibAV/FFmpeg official version. This howto provides details for FFmpeg, but can probably be easily adapted for LibAV if you have a preference.
sudo apt-get install libfaac-dev libgsm1-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libschroedinger-dev libtheora-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev libxvidcore-dev libdc1394-22-dev yasm
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
./configure --prefix=/usr/local --progs-suffix=mlt --build-suffix=mlt --enable-shared --enable-libmp3lame \ --enable-gpl --enable-libfaac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid \ --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree \ --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb \ --enable-libopencore-amrwb --enable-version3 --enable-libvpx
This is a script to build kdenlive and dependencies in a sandbox. Downloads sources from repositories and does the build. Based on Dan Dennedy version 26 of the build-kdenlive.sh script
http://www.mltframework.org/twiki/bin/view/MLT/BuildScripts#Kdenlive http://github.com/mltframework/mlt-scripts/raw/master/build/build-kdenlive.sh This version differs from the Dan Dennedy script in that it builds the KF5 version of the application Works with ver 15.NN and higher versions of kdenlive
Look in the comments at the start to see the list of dependencies you should install before hand. Install them using the sudo apt-get install ... commands shown.
in a terminal execute ./build-kdenlive_v26b.sh
When the job finishes cd to the INSTALL_DIR choosen above and then into the folder named for today's date 
execute this to start the application