Build Scripts

This is an install script that downloads Kdenlive, Melted, or OpenShot and many of its multimedia dependencies from their source code repositories, builds it all, and runs it without having to install them. A very nice advantage is that the environment in which it runs is isolated from duplicate libraries installed on the system. Furthermore, after installing appropriate runtime dependencies, the build folder can be copied to another, similar computer and run. It works for most Linux distributions, but the instructions provided here are for Ubuntu 10.10 and Fedora 14. Some package names will be different than some distributions. Also, some other distributions might not have some of the packages installed by default like Ubuntu, for example, SDL or libsamplerate. The best advice at this time is to just run it and try to make sense of any errors. Most errors will be due to a missing package.

See the bottom of this page for the attached scripts.

Melted

Preparation

To run the build script on Ubuntu 10.10, install the following packages in a terminal window:

sudo apt-get install git automake autoconf libtool intltool g++ yasm swig libmp3lame-dev libgavl-dev libsamplerate-dev libxml2-dev ladspa-sdk libjack-dev libsox-dev libsdl-dev libgtk2.0-dev liboil-dev libsoup2.4-dev libqt4-dev libexif-dev libtheora-dev libvdpau-dev libvorbis-dev python-dev

Here is a list of Fedora 14 packages.

sudo yum groupinstall "Development Tools"

sudo yum install yasm gavl-devel libsamplerate-devel libxml2-devel ladspa-devel jack-audio-connection-kit-devel sox-devel SDL-devel gtk2-devel qt-devel libexif-devel libtheora-devel libvorbis-devel libvdpau-devel libsoup-devel liboil-devel python-devel

Configure the build

The script optionally uses a configuration file, which by default, is build-melted.conf within the current directory. If the configuration file exists, it contains the same configuration variables that are at the top of the script but perhaps with different values that override the defaults in the script. Also, you can supply a configuration file name using the -c option when running the script. However, you can also simply edit the variables at the top of the script as needed. More information about specific options is pending.

Run the script

First make sure the directory "melted" does not already exist in your home directory. If it does, remove it or move it out of the way (unless you are re-running the build-melted.sh script to update an existing build). Then, in a terminal window:

mkdir melted
cd melted
(download script to ~/melted)
chmod +x build-melted.sh
./build-melted.sh

The script gets the source for and builds:

  • libvpx
  • x264
  • ffmpeg
  • frei0r
  • mlt
  • melted
  • rugen
  • swfdec
  • lame

Deploy the build

To run the build on a fresh install of Ubuntu 10.10 install the following packages:

sudo apt-get install libmp3lame0 libgavl1 libsox1b libswfdec-0.7-1 libqt4-gui libexif12 libvdpau1

Copy the files from the build directory or extract an archive into $HOME.

Run the build

Then, run start-melted-server. Wait a couple of seconds to let the server start. Next, run start-melted-client.

Configure the runtime environment

  • Edit etc/start-melted.conf to set the MLT profile to use.
  • Edit etc/melted.conf to include any MVCP commands to initialize the units within melted or set the root directory of assets.
  • Edit etc/rugen.conf to set the server's address if you are running the melted client on a separate machine.

Update the build

Whenever you feel the need to update the build, simply re-run the build-melted.sh script. Look for the result in a newly dated directory within ~/melted. If you feel you do not need the older versions you can simply delete the old dated directory.

Add OpenShot to this environment

sudo apt-get install bzr
cd ~/melted/<date>
bzr branch lp:openshot
cp ../src/mlt/src/swig/python/_mlt.so openshot/openshot
cp ../src/mlt/src/swig/python/mlt.py openshot/openshot
Finally, download the start-openshot script to ~/melted/<date> and make it executable. You can export simple (not a lot of filters) OpenShot projects as XML and use the XML file as a clip within melted.

Use this environment to run melt and ffmpeg

cd ~/melted/<date>
source source-me
melt ...
See the contents of bin/ for other commands such as ffmpeg, ffplay, ffprobe, and mvcp-client.

Kdenlive

Preparation

To run the build script on Ubuntu 10.10, install the following packages in a terminal window:

sudo apt-get install git automake autoconf libtool intltool g++ yasm libmp3lame-dev libgavl-dev libsamplerate-dev libxml2-dev ladspa-sdk libjack-dev libsox-dev libsdl-dev libgtk2.0-dev liboil-dev libsoup2.4-dev libqt4-dev libexif-dev libvdpau-dev libdv-dev libtheora-dev libvorbis-dev subversion cmake kdelibs5-dev libqjson-dev libqimageblitz-dev recordmydesktop dvgrab dvdauthor genisoimage xine-ui

Here is a list of Fedora 14 packages.

sudo yum groupinstall "Development Tools"

sudo yum install yasm gavl-devel libsamplerate-devel libxml2-devel ladspa-devel jack-audio-connection-kit-devel sox-devel SDL-devel gtk2-devel qt-devel libexif-devel libtheora-devel libvorbis-devel libvdpau-devel libsoup-devel liboil-devel python-devel cmake kdelibs-devel qimageblitz-devel qjson-devel recordmydesktop dvgrab dvdauthor xine-ui

Configure the build

The script optionally uses a configuration file, which by default, is build-kdenlive.conf within the current directory. If the configuration file exists, it contains the same configuration variables that are at the top of the script but perhaps with different values that override the defaults in the script. Also, you can supply a configuration file name using the -c option when running the script. However, you can also simply edit the variables at the top of the script as needed. More information about specific options is pending.

Run the script

Then, in a terminal window:

mkdir kdenlive
cd kdenlive
(download script to ~/kdenlive)
chmod +x build-kdenlive.sh
./build-kdenlive.sh

The script gets the source for and builds:

  • libvpx
  • x264
  • ffmpeg
  • frei0r
  • mlt
  • kdenlive
  • swfdec
  • lame

Run the build

Use Dolphin or Nautilus to just browse to the kdenlive/<date> folder in your Home and click start-kdenlive. Alternatively, from a terminal window:
cd kdenlive/<date>
./start-kdenlive

Deploy the build

To run the build on a fresh install of Ubuntu 10.10 install the following packages:

sudo apt-get install libmp3lame0 libgavl1 libsox1b libswfdec-0.7-1 libqt4-gui libexif12 libvdpau1 kdelibs5 libqjson0 libqimageblitz4 recordmydesktop dvgrab dvdauthor genisoimage xine-ui

Archive a dated folder from the build directory (~/kdenlive), copy it somewhere else, and then extract it into $HOME or wherever you want. Then, you might want to rename the folder to Kdenlive or Kdenlive-<date>.

Update the build

Whenever you feel the need to update the build, simply re-run the build-kdenlive.sh script. Look for the result in a newly dated directory within ~/kdenlive. If you feel you do not need the older versions you can simply delete the old dated directory.

Use this environment to run melt and ffmpeg

cd ~/kdenlive/<date>/bin
source kdenlive_env
melt ...
See the contents of bin/ for other commands such as ffmpeg, ffplay, ffprobe, and melt.

OpenShot

Preparation

To run the build script on Ubuntu 10.10, install the following packages in a terminal window:

sudo apt-get install git automake autoconf libtool intltool g++ yasm swig libmp3lame-dev libgavl-dev libsamplerate-dev libxml2-dev ladspa-sdk libjack-dev libsox-dev libsdl-dev libgtk2.0-dev liboil-dev libsoup2.4-dev libqt4-dev libexif-dev libtheora-dev libvdpau-dev libvorbis-dev python-dev

Here is a list of Fedora 14 packages.

sudo yum groupinstall "Development Tools"

sudo yum install yasm gavl-devel libsamplerate-devel libxml2-devel ladspa-devel jack-audio-connection-kit-devel sox-devel SDL-devel gtk2-devel qt-devel libexif-devel libtheora-devel libvorbis-devel libvdpau-devel libsoup-devel liboil-devel python-devel

Configure the build

The script optionally uses a configuration file, which by default, is build-openshot.conf within the current directory. If the configuration file exists, it contains the same configuration variables that are at the top of the script but perhaps with different values that override the defaults in the script. Also, you can supply a configuration file name using the -c option when running the script. However, you can also simply edit the variables at the top of the script as needed. More information about specific options is pending.

Run the script

First make sure the directory "openshot" does not already exist in your home directory. If it does, remove it or move it out of the way (unless you are re-running the build-openshot.sh script to update an existing build). Then, in a terminal window:

mkdir openshot
cd openshot
(download script to ~/openshot)
chmod +x build-openshot.sh
./build-openshot.sh

The script gets the source for and builds:

  • libvpx
  • x264
  • ffmpeg
  • frei0r
  • mlt
  • openshot
  • swfdec
  • lame

Deploy the build

To run the build on a fresh install of Ubuntu 10.10 install the following packages:

sudo apt-get install libmp3lame0 libgavl1 libsox1b libswfdec-0.7-1 libqt4-gui libexif12 libvdpau1

Copy the files from the build directory or extract an archive into $HOME.

Run the build

Then, run start-openshot.

Update the build

Whenever you feel the need to update the build, simply re-run the build-openshot.sh script. Look for the result in a newly dated directory within ~/openshot. If you feel you do not need the older versions you can simply delete the old dated directory.

Use this environment to run melt and ffmpeg

cd ~/openshot/<date>
source source-me
melt ...
See the contents of bin/ for other commands such as ffmpeg, ffplay, and ffprobe.

Add LADSPA plugins

Regardless of whether running Kdenlive, Melted, or OpenShot, these provide additional audio processing routines. On Ubuntu 10.10, in a terminal window, run apt-cache search ladspa | grep plugins to get a list of possible packages. At the very least you should install swh-plugins. On Fedora 14, install ladspa-swh-plugins and ladspa-cmt-plugins for a couple of basic plugin packages.
Topic attachments
I Attachment Action Size Date Who Comment
Unix shell scriptsh build-kdenlive.sh manage 54.7 K 2011-12-19 - 03:01 DanDennedy version 16
Unix shell scriptsh build-melt.sh manage 39.8 K 2011-12-18 - 04:26 DanDennedy version 2
Unknown file formatgz build-melted-extras.tar.gz manage 1.2 K 2011-05-28 - 19:59 DanDennedy etc/ files and launcher scripts
Unix shell scriptsh build-melted.sh manage 39.3 K 2011-12-18 - 04:27 DanDennedy version 13
Unix shell scriptsh build-openshot.sh manage 41.6 K 2011-12-18 - 04:27 DanDennedy version 4
Unknown file formatEXT start-openshot manage 0.7 K 2011-02-14 - 02:31 DanDennedy script to launch OpenShot
Edit | Attach | Print version | History: r41 | r31 < r30 < r29 < r28 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r29 - 2012-01-02 - DanDennedy
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2014 by Meltytech, LLC.
TWiki Appliance - Powered by TurnKey Linux