step2 - ffmpeg, video, xnviewmp, libre, earth



ffmpeg with Kdenlive

Basic
If you're not to concerned about getting the latest codecs, you can just use these two lines (can always build ffmpeg from source later -see Option 2 below).
Set up the multimedia repository first -see Step1 at the end. 
sudo apt-get install ffmpeg x264 libmp3lame0 libquicktime2
sudo apt-get install kdenlive frei0r-plugins dvgrab recordmydesktop dvdauthor genisoimage

One problem is, however, that kdenlive will complain that you need to install a higher version of MLT, so if that is the case, look below.


Getting the latest video codecs

    Option 1  (install the development version of Kdenlive)
Either a. Download the tar.bz2 archive (one with ubuntu11.10 in the file name runs well) which includes Kdenlive, MLT, ffmpeg and allows kdenlive to be run stand-alone from any previous install of these modules on the system.  
(You must login first to see the download links!)

The newer daily builds, labeled "ubuntu12.04", need a newer version of libc6 installed than what's currently available in wheezy, so I install it from testing...
add the testing repository first, 
deb http://http.debian.net/debian testing main
apt-get update, then...
sudo apt-get -t testing install libc6

Unpack the archive and move it to ~/
cd to the dir and test it with ./start-kdenlive to run the start-up script

It's also wise to test out the daily-build vs the repository version and go with what feels most stable.  

Or b. use the build script to install the latest versions of ffmpeg, mlt rendering engine, x264 and Kdenlive into a directory without changing anything on the system.
which pulls from git


Then migrate config files if you previously used Kdenlive
cp ~/.kde/share/config/kdenliverc ~/kdenlive/.kde/share/config/
cp ~/.kde/share/config/kdeglobals ~/kdenlive/.kde/share/config/
cp ~/.kde/share/apps/kdenlive/kdenliveui.rc ~/kdenlive/share/apps/kdenlive/

But make sure the environmentals point to the bin files in the new kdenlive directory
leafpad ~/kdenlive/.kde/share/config/kdenliverc

[env]
..
ffmpegpath[$e]=$HOME/kdenlive/bin/ffmpeg
ffplaypath[$e]=$HOME/kdenlive/bin/ffplay
mltpath[$e]=$HOME/kdenlive/share/mlt/profiles/
rendererpath[$e]=$HOME/kdenlive/bin/melt

or, remove those lines from the file (if they point to /usr/bin/) and run the start-up script and kdenlive will add the lines with local env.

edit the kdenlive .desktop file with
Exec=/home/your-user-name/kdenlive/start-kdenlive


    Option 2  (latest ffmpeg and mlt with kdenlive from repository)
    ffmpeg
download the ffmpage stable release download.html#releases (e.g. 1.2 "Magic") or the snapshot posted up the page (might give problems)
next get the build dependencies:

sudo apt-get update
sudo apt-get install cmake build-essential yasm libqt4-dev kdelibs5-dev libsdl1.2-dev libsdl-image1.2-dev libxml2-dev libx264-dev libtheora-dev libxvidcore-dev libogg-dev libvorbis-dev libschroedinger-dev libmp3lame-dev libfaac-dev libfaad-dev libgsm1-dev libopencore-amrnb-dev libopencore-amrwb-dev libsamplerate0-dev libjack-dev libsox-dev ladspa-sdk swh-plugins libmad0-dev libpango1.0-dev

Then open a terminal in the ffmpeg dir, and run ./configure with the compilation flags (I omitted --enable-libdc1394) http://kdenlive.org/...
./configure --prefix=/usr --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-nonfree --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
followed by 
make -j3
sudo make install

Note: I've come across problems with installing ffmpeg from source, such as when I install bombono-dvd it will install ffmpeg from repository.  This I think causes an ffmpeg error: Warning library configuration mismatch.  (Just enter ffmpeg in a terminal to see the version installed and if it's working).  But when I get the install order right there is no more problem.  Should be this build first and then bombono and other ffmpeg using apps.

    mlt
download from sourceforge mlt/files/
or follow this guide to pull from git kevin.deldycke.com.../

get mlt build dependencies
sudo apt-get install libavdevice-dev libswscale-dev libvorbis-dev libsox-dev libsamplerate-dev frei0r-plugins-dev libdv-dev libavformat-dev libquicktime-dev libxml2-dev libsdl-dev libsdl-image1.2-dev

if you previously had mlt installed, remove it with
sudo dpkg --remove --force-depends libmlt2 libmlt++3 libmlt-data melt

cd to the mlt directory
./configure --prefix=/usr --enable-gpl
make clean
make
sudo make install

    Kdenlive
Finally, install kdenlive
sudo apt-get install x264 libmp3lame0 libquicktime2 kdenlive frei0r-plugins dvgrab recordmydesktop dvdauthor genisoimage

Note: upgrading ffmpeg and mlt, make sure you run the install dependencies again or you will hit dependency problems. But first remove kdenlive (temporarily) or the dependencies will not install.
sudo apt-get remove kdenlive && sudo apt-get update 

    Option 3  (build from source)
build each in turn (but actually some recommend not to!) http://www.kdenlive.org/... 
see my attempt at that, here: building ffmpeg.



Install KDE's system settings manager to enable changes to appearance in Kdenlive or any other KDE app.
sudo apt-get install systemsettings

Also there is Flowblade, another non-linear video editor, and it looks good http://code.google.com/p/flowblade/
Download the binary archive (.deb) and run
sudo dpkg -i flowblade_0.8.0-1_all.deb 

then sort out dependencies with:
sudo apt-get install -f

=======================================================================================================================================================================
handbrake, avidemux and bombono
sudo apt-get install handbrake-gtk avidemux bombono-dvd

=======================================================================================================================================================================
XnView Multi Platform
A very cool image processing app available as a .deb here http://newsgroup.xnview.com/...
See my image processing page for tips and configuring appearance of XnView.

=======================================================================================================================================================================
Libre Office
First set up Java Runtime Environment
sudo apt-get install openjdk-6-jre

apt-get install libreoffice (wheezy installs Libre Office 3.4)
or better, download LibreOffice 4 here and how to install here
basically, extract from the tar bzip2 (compressed dir) to Downloads
terminal: cd ~/Downloads/LibO_4.0.2.2_Linux_x86-64_install-deb_en-US/DEBS
(use Tab to fill the line)
then: 
sudo dpkg -i *.deb

then install the libreoffice menu items, change dir to the sub-dir:
cd desktop-integration
and sudo dpkg -i *.deb

change the toolbar icons to small, tango
Tools > Options > LibreOffice > View


=======================================================================================================================================================================
Google Earth
Downlaod from ../earth/download/...
Enable multiarch if you run amd64 machine! 
(Debian 7.0 supports simultaneous running of i386 and amd64 binaries and GE is i386 library dependant)
sudo dpkg --add-architecture i386 && sudo apt-get update
cd to Downloads
sudo dpkg -i googleearth*.deb

for i386, dependency lsb-core needed

for amd64 platform the package install ends with errors: 
googleearth depends on libfreeimage3 ... lsb-core ... ia32-libs-gtk 

Sort it out with:
sudo apt-get -f install
The following NEW packages will be installed:
  <huge heap of i386 packages>
Need to get 56.9 MB of archives. After this operation, 171 MB of additional disk space will be used
Enter y


Note: after enabling another architecture, you may have to specify from then on which arch to retrieve from and install packages from, like this
apt-get install -a amd64 package
or set the preference for your architecture with editing the apt.conf file
sudo leafpad /etc/apt/apt.conf
and add a line like this
APT::Architecture="amd64";
save it and apt-get install will retrieve from amd64 packages

if you need to be done with i386, or any other arch:
sudo dpkg --remove-architecture i386


Step 3 - media players, desktop apps, ClamTK, Wine

Subpages (2): building ffmpeg melt
Comments