Kdenlive/Getting and installing
From Wikibooks, the open-content textbooks collection
Kdenlive should compile on most recent GNU/Linux and FreeBSD systems, including x86 and AMD64 architectures. Also, it is already compiled and ready to install in binary packages for a number of distros.
The current version (0.7) of Kdenlive is a KDE4 program. This means that you will need some KDE4 support on your system to compile or use Kdenlive. But, you do not need to actually run KDE4 for this. You can build/install and run under KDE3, Gnome, and other desktop environments. This is similar to running KDE3 apps from Gnome, or Gnome apps from KDE.
Contents |
[edit] Installing Kdenlive 0.7 (KDE4) from source
Please follow the instructions on http://www.kdenlive.org/compile
[edit] Fedora 10 (Cambridge) x86_64
Please see Developer section ( or maybe I am supposed to put building stuff here?).
[edit] Installing Kdenlive 0.7 (KDE4) binary packages
Many distros already offer Kdenlive for easy installation. Check http://www.kdenlive.org/content/2008-09-26-download-kdenlive
[edit] Gentoo
Gentoo offers ebuilds for kdenlive 0.7. However, you'll need a basic install of KDE 4, which is not currently part of the stable tree. It's recommended to follow the Gentoo KDE 4.1 Guide, then
# emerge @kdebase-4.1 # emerge kdenlive
and you're done.
If you're running only KDE 3.5, you'll have to use kdenlive-0.5 or install from sources: svn revision 1825 is reported to work decently (see below).
[edit] Older instructions (deprecated)
These older instructions are kept for reference, but are outdated. Unless you specifically need to compile the old KDE3 version of Kdenlive, you should not use these instructions, but the instructions above.
In order to use Kdenlive your system must have some other installed software in which Kdenlive depends:
- DVD creation needs dvdauthor
- DVD burning needs K3B
- DVD preview needs Xine
- Firewire capture needs DVgrab >= 2.0 and FFMpeg
In most cases, the installer will install the needed software automatically. If any of these are missing, Kdenlive will warn you. Just close Kdenlive, install the missing software and restart Kdenlive.
[edit] Ark Linux
Ark Linux includes kdenlive and all it needs. Just run
apt-get install kdenlive
Or select kdenlive in Mission Control -> Install Software.
[edit] Debian
Debian binary packages are provided by Christian Marillat.
Add the following line to your /etc/apt/sources.list file:
For Unstable version:
deb http://www.debian-multimedia.org sid main
For Stable version:
deb http://www.debian-multimedia.org etch main
For Testing (currently Lenny):
deb http://www.debian-multimedia.org testing main
If you haven't done so yet, import Marillat's key:
gpg --keyserver pgp.mit.edu --recv-keys 1F41B907 gpg --armor --export 1F41B907 > key.asc sudo apt-key add key.asc
Then, simply type
sudo apt-get update ; sudo apt-get install kdenlive
Debian installer will automatically install kdenlive 0.5 and the requested libraries. Currently this method doesn't work due to uninstallable dependencies (kdebase-runtime and kdelibs5 >= 4:4.1.0)
If you need Kdenlive 0.6 svn, please read the source section below.
[edit] Fedora (and RedHat)
RPMs for Fedora Core 6 can be downloaded from this page: kdenlive and mlt for Fedora Core 6. Unfortunately it's my very first packaging effort, so use them with caution.
For Fedora 7, use this source: kdenlive and mlt for Fedora 7
Install the above dependencies using yum or apt:
yum install ffmpeg xine dvdauthor dvgrab kdebase
After downloading RPMs, we suppose RPMs to be in /tmp, install with:
cd /tmp rpm -Uvh kdenlive*.rpm mlt*.rpm
Good luck!
...Anyway, you may try to install the Mandriva RPM indicated below...
[edit] Gentoo
Gentoo users can simply install kdenlive using portage. 0.4 is available in portage since april 2007, 0.5 will come out soon. An unofficial SVN version is available as well, see below.
First, if you haven't synced your portage tree for a long time, do
emerge --sync
Then, since some dependencies (and kdenlive itself) are masked with the "testing"-keyword,
nano -w /etc/portage/package.keywords
and add the following lines (adjust to your architecture):
media-libs/mlt ~x86 media-libs/mlt++ ~x86 media-video/dvgrab ~x86 media-video/kdenlive ~x86
Now you can simply
emerge -av kdenlive
This will currently install 0.4. If you want to install the 0.5 version, you may either install from sources (which is quite straitforward) or get an unofficial ebuild from here, directly from the Gentoo bugzilla.
kdenlive SVN version
On November 24th, always in the Gentoo bugzilla, has been posted a kdenlive-svn ebuild. This ebuild is not officially supported and it may work or not. If you want to give it a try, you can get it here. You may read http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds for more details on installing 3rd party ebuilds.
[edit] Mandriva
You can install kdenlive 0.5 (i686/MMX) in Mandriva 2007 installing the following 4 packages backported from cooker :
Starting from Mandriva 2008.0, kdenlive 0.5 (i586/no MMX) is available directly in the distro, and can be installed using the control center. A slightly better version, correcting a bug with slideshows without luma transitions, and using MMX, is avaliable :
The source RPMS are there :
Using the media 'Backports' you can get an unstable version : Kdenlive 0.6 CVS. Be carefull, you should not use this version to daily work!
[edit] Pardus
Pardus PiSi package of Kdenlive 0.5 is ready to install via Package Manager. You can type "kdenlive "in the search bar and click install button or you can install it from console.
sudo pisi it kdenlive
If you want, you can compile Kdenlive from the svn repository, too.
sudo pisi build http://svn.pardus.org.tr/pardus/2008/desktop/kde/kdenlive/pspec.xml
and
sudo pisi it kdenlive*.pisi
[edit] Slackware 12.0
Slackware packages for KDEnlive and all required libraries are available at the slacky.eu repositories [1] in the /multimedia and /libraries directories.
[edit] SuSE
Suse packages for MLT 0.2.4 and Kdenlive 0.5 are available from the packman project:
http://packman.links2linux.de/package/kdenlive
[edit] Ubuntu
An installation guide (in French) exists on ubuntu-fr documentation site. Ubuntu Edgy Eft 6.10 users may download deb files with gpg signatures (key available from Kdenlive web site) compressed into one zip file at [2] or [3].
An APT repository containing svn builds of kdenlive is available at Treviño's 3v1n0 Repository. Note that Treviño's unofficial package has been reported to cause problems under Gutsy (Ubuntu 7.10) when trying to remove it, so you might have problems with it under 7.04, too.
Note: If you install Treviño's build you will get an error on first startup "Cannot find your MLT installation, please give the path". Accept the displayed path of /usr and the kdnelive will start up. (Why complain "cannot find" while displaying the proper path?)
AMD64 packages are available from the uPure64 Repository.
In Ubuntu 7.10 (Gutsy Gibbon) and later kdenlive 0.5 is part of the Universe repository and may be installed via (e.g.) synaptic.
[edit] Compiling libraries
Warning : for Kdenlive for KDE4 version, please read : http://en.wikibooks.org/wiki/Kdenlive/KDE4_Porting
[edit] Installing from SVN
Make sure you install all listed libraries before attempting to compile Kdenlive!!! Install libraries in the order listed on that page. Most libraries and header files should be packaged in your GNU/Linux distribution. Just install the requested packages:
- QT and KDE development files (KDE >= 3.4 required)
Provided with most distributions (usually named qt-devel and kdelibs-devel. For debian users, see debian-desktop.org for a recent KDE environment).
- SDL
Provided with most distributions. Install the devel package: SDL-dev and SDL-image-dev.
- Audio / video and other libraries (you should be able to find binary packages for all of them in your distro):
- Gdk-Pixbuf (gdk-pixbuf, gdk-pixbuf-dev) (not needed anymore)
- libsamplerate (libsamplerate, libsamplerate-dev)
- OGG (libogg, libogg-dev)
- Vorbis (libvorbis, libvorbis-dev)
- libdv (libdv, libdv-dev)
- Ladspa (ladspa-sdk)
- libJack (libjack-dev)
- Ladspa plugins (swh-plugins)
- SOX (sox, sox-dev)
- libXML2 (libxml2, libxml2-dev)
- libmad (libmad-dev)
- Optional:
- Libquicktime (libquicktime, libquicktime-dev)
- Theora (libtheora, libtheora-dev)
- FFMPEG (libavformat development files, recent version + libswscale, libswscale-dev):
If you cannot find a recent package for libavformat-dev or libswcale-dev (hint: for Ubuntu try http://ubuntu.tonio.homelinux.org), download the development svn version:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
ffmpeg recommended config option:
./configure --enable-gpl --enable-shared --enable-libvorbis --enable-libogg --enable-pp --enable-swscaler
(update 4.4.2008 by espinosa_cz: in recent ffmpeg from SVN names of some parameters changed use --enable-postproc --enable-swscale instead of --enable-pp --enable-swscaler)
For (K)Ubuntu 7.10 (Gutsy) :
You can install all needed packages for the SVN building by installing (sudo apt-get install or from Synaptic) the following packages:
-
- NOTE this may install the KDE Desktop onto Ubuntu! That's a lot of sweet software!
- NOTE2 this list is growing; if you're aware of something that can be removed, please do!
- NOTE3 I've cleaned the list and, in case of doubt, I've mention it but keep the file just in case. If somebody can test and clean even more this will be appreciated (herrej01)
kde-devel (not sure) qt4-dev-tools kdelibs4-dev libsdl1.2-dev libsdl-image1.2-dev (not sure) libgdk-pixbuf-dev libsamplerate0 (not sure) libsamplerate0-dev ladspa-sdk libjack-dev swh-plugins sox (not sure) sox-dev libxml2-dev libmad0-dev libcgicc1-dev checkinstall build-essential subversion python2.4 libx264-dev cmake libgsm1-dev autotools-dev g++ autoconf automake1.9 xdialog ccache debhelper html2text libsndfile1-dev intltool-debian (not sure) po-debconf (not sure)
The following libs will be needed depending on the type of file you want to render
libsmpeg-dev libquicktime-dev libogg-dev libvorbis-dev libdv4-dev liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 (not sure) liba52-0.7.4-dev
I think the following libs are not needed assuming you've already installed dvgrab
libavc1394-dev libiec61883-dev
And finally, following libs are not needed if you are going to install ffmpeg, mlt and mlt++ from source
libavformat-dev libmlt++-dev libmlt-dev libswscale-dev
mlt 0.2.4 stable release is required for Kdenlive 0.5.
You can install mlt 0.2.4 or checkout MLT from SVN:
svn co https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt mlt
Recommended config option for MLT:
./configure --prefix=/usr --enable-gpl --disable-mmx --avformat-swscale --enable-motion-est
All other MLT configure options are enabled by default.
You might need --avformat-ldextra if your ffmpeg/libavcodec is built against some external libs like libmp3lame or libvorbis. My ld.so does not require this, but it seems some systems/environments require it.
NOTE 1:Make sure that the configure output gives no error for modules/avformat, since it means FFMpeg was not correctly installed. Make sure swh-plugins and ladspa-sdk packages are installed. These packages provide sound effects. MLT has many dependencies, but you will be warned at ./configure time
NOTE 2: When you are on (K)Ubuntu and the ./configure... step ends in errors like:
./configure: 37: function: not found
./configure: 93: function: not found
./configure: 174: build_config: not found...
./configure: 191: build_pkgconfig: not found
Either edit the ./configure file and replace on the first line "#!/bin/sh" to "#!/bin/bash" and run again, or simply type: bash ./configure ..... This problem is caused due to the fact that (K)Ubuntu Edgy defaults to the dash shell instead of the bash shell. Dash is currently known for being less compatible with scripting.
Checkout MLT++ from SVN:
svn co https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++ mlt++
[edit] Debian Unstable
Debian binary packages are provided by Christian Marillat. Packages include the latest ffmpeg developments are usually very well up-to-date. For example, mlt includes kdenlive module and avformat-swscale.
Add the following line to your /etc/apt/sources.list file:
# Experimental deb http://www.debian-multimedia.org experimental main deb-src http://www.debian-multimedia.org experimental main # Unstable deb http://www.debian-multimedia.org sid main deb-src http://www.debian-multimedia.org sid main # Testing deb http://www.debian-multimedia.org testing main deb-src http://www.debian-multimedia.org testing main
If you haven't done so yet, import Marillat's key:
gpg --keyserver pgp.mit.edu --recv-keys 1F41B907 gpg --armor --export 1F41B907 > key.asc sudo apt-key add key.asc
Then, simply type sudo apt-get build-dep kdenlive
When compiling Kdenlive 0.5 svn from source, you will also need: sudo apt-get install mlt libmlt0.2.3 libmlt-dev libmlt++0.2.3 libmlt++-dev
[edit] Debian Unstable & SVN KDEnlive 0.6
Make sure to have the above repositories available
sudo apt-get build-dep kdenlive mlt mlt++ ffmpeg
sudo apt-get install kde-devel qt4-dev-tools kdelibs4-dev libsdl1.2-dev libsdl-image1.2-dev libgdk-pixbuf-dev libsamplerate0 libsamplerate0-dev ladspa-sdk libjack-dev swh-plugins sox libsox-dev libxml2-dev libmad0-dev libcgicc5-dev checkinstall build-essential subversion python2.4 libx264-dev cmake libgsm1-dev autotools-dev g++ autoconf automake1.9 xdialog ccache debhelper html2text libsndfile1-dev intltool-debian po-debconf libsmpeg-dev libquicktime-dev libogg-dev libvorbis-dev libdv4-dev liblame-dev libfaad-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libavformat-dev
Then use the Easy Script Installer v3.1 available in the Forums
[edit] Red Hat Enterprise
- *NOTE* This only lets me compile so far. Upon running, I get a crash. Hopefully you will get further than I did. This may be a red herring but in the past I've seen issues with Redhat and threaded libraries.
- Backtrace:
(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1208334640 (LWP 1479)] [KCrash handler] #6 0x076d4e43 in QMenuData::insertAny () from /usr/lib/qt-3.3/lib/libqt-mt.so.3 #7 0x076d558a in QMenuData::insertItem () from /usr/lib/qt-3.3/lib/libqt-mt.so.3 #8 0x0813b253 in Gui::KdenliveApp::KdenliveApp () #9 0x0818671a in main ()
- Error:
$ ./kdenlive QPainter::begin: Cannot paint null pixmap QPainter::setPen: Will be reset by begin() QPainter::begin: Cannot paint null pixmap QPainter::setPen: Will be reset by begin() KCrash: Application 'kdenlive' crashing...
- You can yum install all of the libraries listed above, but names may have changed slightly. I use dag's repository
ffmpeg ffmpeg-devel xine dvdauthor dvgrab qt-devel kdelibs-devel SDL SDL-devel SDL_image SDL_image-devel libsamplerate libsamplerate-devel libogg libogg-devel libdv libdv-devel libvorbis libvorbis-devel ladspa ladspa-devel libjack libjack-devel sox sox-devel libxml2 libxml2-devel libmad libmad-devel
- You'll have to download and compile mlt and mlt++
- mlt:
configure Edit src/modules/sox/filter_sox.c, change #include <st.h> to #include <sox/st.h> Edit src/modules/avformat/Makefile and comment out the "LDFLAGS+=-lswscale$(AVFORMAT_SUFFIX)" line inside ifdef SWSCALE stanza Edit src/modules/qimage/Makefile and add "CFLAGS+=-I/usr/include/kde" inside ifdef USE_KDE stanza make/make install
- mlt++: didn't have any problems with standard configure/make/make install
- unsermake
svn co svn://anonsvn.kde.org/home/kde/tags/unmaintained/3/unsermake export PATH=$PATH:path-to-unsermake-"binary"
- once you've installed mlt, mlt++, and unsermake, you can "make" inside kdenlive directory
[edit] Compiling kdenlive
Checkout Kdenlive from SVN:
svn co https://kdenlive.svn.sourceforge.net/svnroot/kdenlive/trunk/kdenlive kdenlive
NOTE: Once you have dowloaded the complete svn package, you can update your local svn source by only downloading the updated parts. Say you have downloaded the svn into ~/kdenlive. Simply cd into ~/kdenlive and type: svn update.
Configure Kdenlive, compile and install (NOTE: This is for the SVN version only. If you have downloaded a release version, follow the instructions in kdenlive/INSTALL).:
cd kdenlive ; \ cmake . ;\ make ; \ sudo make install
Be aware of the dot (.) after cmake command. It's important !
You are now ready to use Kdenlive. Have fun !
[edit] Compiling kdenlive & ffmpeg & mlt together - the easy way
Best option for testers is to get updated SVN versions of ffmpeg and mlt libs when updating kdenlive. Because it is not so simple task, I have created a simple bash script to do the repeative and tricky business for you.
Download the updated version of the builder script from the forum:
Download it, save it in your root source directory (/home/espinosa/src in my case), name it as kdenlive_builder.sh (preferably), in console change directory to you root source directory and use :
./bash kdenlive_builder.sh
An XDialog box will appear.
Choose the first option (GET) to make clean previous installations and get new sources from SVN. Program will ask where do you want to place the sources.
Choose the second option (INSTALL) to compile and install your previously downloaded sources. You'll be prompted where do you want to install the programs. If you choose in /usr, a warning message will appear and you'll be requested during installation to give your root password. This will not happen if you choose another directory in your /home path. With this option, you can select also if you want support for some audio/video types. Be sure to have necessary libs installed if you choose any of these options.
Choose the third option (FULL) to do both steps (GET & INSTALL) together.
Choose the fourth option (INFO) to obtain information about currently downloaded SVN versions.
Then run kdenlive from chosen destination directory.
This script is especially useful for testers as it supports multiple versions installed in any directory (home, opt, or local) including multiple ffmpeg and mtl. Plus, this is the way to get the right set of up-to-date main libraries, to avoid problem with outdated or failing distribution versions of mlt and ffmpeg.
If you experience an issue with the script check the forum board for discussion first.
There is also an alternative version of this script Kdenlive_builder_classic_script which is a branch of original non-GUI, non-interactive version. Use this variant if the former does not work for you, if you prefer true batch processing, if you expect repeative calling etc.
NOTE: the script does not provide any check of libraries or header files required by kdenlive & ffmpeg & mlt, like SDL, liblame, libx264 etc. Read carefully the requirements section to have everything installed (all -dev packages)
[edit] Compiling kdenlive & ffmpeg & mlt together - the even easier way
I (Mads Bondo Dydensborg) have created a GUI Wizard, that can build the KDE4 (or KDE3) version of Kdenlive from current development sources. It is available from [4] and is suited both for one-shot builds, or automated nightly builds (the later requires obtaining the sources, available from the page).

