There was a problem loading the comments.

How to install the transcoding tools on SUSE (openSUSE, SLES)?

Support Portal  »  Knowledgebase (FAQ)  »  Viewing Article

  Print
Editions: Light, Community, Professional, Enterprise, Ultimate, Corporate
Versions: all

 

Repositories

SUSE uses the package manager yast2. If the needed software packages cannot be found, take a look at the following link to get a list of existing repositories for SuSE Linux and how to embed them: Package repositories

Start with the installation in folder usr/src:

cd /usr/src

 

Let's install some basic packages. Existing packages will be updated or ignored:

yast2 -i joe make automake g++ bzip2 python unzip patch subversion ruby ffmpeg

 

Installation of the codecs:

yast2 -i zlib-devel libgsm-devel libtheora-devel libvorbis-devel speex-devel libxvidcore-devel libfaad-devel libfaac-devel

 

Installation of the MPlayer codecs:

ATTENTION: on 32-bit systems we install the codecs like this:

wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xvjf essential-20071007.tar.bz2
mkdir /usr/local/lib/codecs
cp -Rvp essential-20071007/* /usr/local/lib/codecs/


ATTENTION: on 64-bit systems we install the codecs like that:

wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
tar xvjf essential-amd64-20071007.tar.bz2
mkdir /usr/local/lib/codecs
cp -Rvp essential-amd64-20071007/* /usr/local/lib/codecs/


On both systems the search path has to be extended in /etc/ld.so.conf:

joe /etc/ld.so.conf


Check if the following lines exist. If not, add them:

/usr/lib
/usr/local/lib

 

Installation of the libjpeg libraries for jpeg output:

yast2 -i libjpeg libjpeg-devel

 

Next, let's install yasm to be able to compile x264:

wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.2.tar.gz
tar xvzf yasm-0.7.2.tar.gz
cd yasm-0.7.2
./configure
make && make install
cd ..

 

And lame for mp3 encoding:

wget http://ovh.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
tar xvzf lame-398-2.tar.gz
cd lame-398-2
./configure
make && make install
ldconfig
cd ..

 

Now it's time to install the x264 codec:

wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080731-2245.tar.bz2
tar xvjf x264-snapshot-20080731-2245.tar.bz2
cd x264-snapshot-20080731-2245
./configure --enable-shared
make && make install
ldconfig
cd ..

 

3gp support for mobile phone videos:

wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.1.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.2.tar.bz2
bzip2 -d amrnb-7.0.0.1.tar.bz2
bzip2 -d amrwb-7.0.0.2.tar.bz2
tar xvf amrnb-7.0.0.1.tar
tar xvf amrwb-7.0.0.2.tar
cd amrnb-7.0.0.1
./configure
make && make install
cd ..
cd amrwb-7.0.0.2
./configure
make && make install
ldconfig
cd ..

 

After this preparation we install MPlayer with mencoder:

wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
tar xvjf MPlayer-1.0rc2.tar.bz2
cd MPlayer-1.0rc2
./configure
make && make install
cd ..

 

Attention: If the following output appears after the make command

vo_ivtv.c: In function âivtv_resetâ:
vo_ivtv.c:79: error: storage size of âsdâ isnât known
vo_ivtv.c:80: error: storage size of âsd1â isnât known
vo_ivtv.c:84: error: âIVTV_STOP_FL_HIDE_FRAMEâ undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: âIVTV_IOC_STOP_DECODEâ undeclared (first use in this function)
vo_ivtv.c:97: error: âIVTV_IOC_START_DECODEâ undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable âsd1â
vo_ivtv.c:79: warning: unused variable âsdâ
make[1]: *** [vo_ivtv.o] Fehler 1
make[1]: Leaving directory `/usr/src/MPlayer-1.0rc2/libvo'
make: *** [libvo/libvo.a] Fehler 2


...then do the following modification in file "configure" in the MPlayer folder:

joe configure


Search for line

_ivtv=auto


and replace it with

_ivtv=no


Save the file and enter the following command at the prompt:

./configure [&][&] make [&][&] make install

 

... and check, if everything works. Therefore check if mencoder is linked correctly:

ldd /usr/local/bin/mencoder | grep x264
ldd /usr/local/bin/mencoder | grep lame
ldd /usr/local/bin/mencoder | grep jpeg


The command line output should look like this:

web1:~# ldd /usr/local/bin/mencoder | grep x264
        libx264.so.60 => /usr/local/lib/libx264.so.60 (0xb7f18000)
web1:~# ldd /usr/local/bin/mencoder | grep lame
        libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0xb7e75000)
web1:~# ldd /usr/local/bin/mencoder | grep jpeg
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7e55000)

 

At last we install flvtool2 in order to be able to extract the meta data of the .flv files:

wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
tar xzf flvtool2-1.0.6.tgz
cd flvtool2-1.0.6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd ..

 

Done.

Now it's time to install the hosting for VIMP.


Share via

Related Articles

© VIMP GmbH