How to install the transcoding tools on Ubuntu

First we do some maintenance and remove some packages (if existing):

cd /usr/src
apt-get update
apt-get upgrade
apt-get remove x264 ffmpeg mplayer mencoder

We install the easy to use editor joe and some tools:

apt-get install joe make automake g++ bzip2 unzip patch subversion git yasm

Next, on both systems we have to extend the search path in /etc/ld.so.conf:

joe /etc/ld.so.conf

… and check, if the following lines exist within the file. If not, please add:

/usr/lib  
/usr/local/lib

then please execute

# ldconfig

We install some codecs:

apt-get install libsdl1.2-dev zlib1g-dev libfaad-dev libfaac-dev libgsm1-dev libtheora-dev libvorbis-dev libspeex-dev libopencore-amrwb-dev libopencore-amrnb-dev libxvidcore-dev libxvidcore4 libmp3lame-dev libjpeg62 libjpeg62-dev

We install x264:

git clone http://git.videolan.org/git/x264.git 
cd x264/
./configure --enable-shared --enable-pic
make && make install
cd ..

We install libvpx:

git clone https://chromium.googlesource.com/webm/libvpx
cd libvpx
./configure --enable-shared --enable-pic
make
make install
cd ..

We install MPlayer/mencoder (ViMP <=3.1.9 only):

wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.gz
tar xvzf MPlayer-1.1.tar.gz
cd MPlayer-1.1/
./configure
make && make install
ldconfig
cd ..

…and ffmpeg and ffprobe:

wget http://ffmpeg.org/releases/ffmpeg-2.8.8.tar.bz2
xvjf ffmpeg-2.8.8.tar.bz2
cd ffmpeg-2.8.8
./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
make
make install
ldconfig

We install qt-faststart

qt-faststart is part of ffmpeg. We´re still in the ffmpeg directory and

change into the tools/ folder. Here we make qt-faststart and copy it to /usr/local/bin/:

cd tools
make qt-faststart
cp qt-faststart /usr/local/bin/
cd /usr/src

 

Since and for and update to ViMP 3.2.0+ you have to install exiftool:

apt-get install libimage-exiftool-perl

Finally, create the required cron job.

Source:vimp.com

231 total views, 4 views today

Print Friendly