How to compile FFmpeg for openSuSE

Editions: all
Versions: all

The FFmpeg packages in openSuSE don´t support transcoding to all HTML5 formats. In detail there are problems with transcoding to m4v.

This tutorial describes how to compile FFmpeg in order to support all HTML5 formats.

This HowTo has been tested with openSuSE 11.4.

In this tutorial we assume that you´re in /usr/src (cd /usr/src) and the PacMan Multimedia Repository is integrated and activated in yast.

1. First we install software that is needed to compile FFmpeg:

yast2 -i gcc make automake bzip2 unzip patch subversion ruby libjpeg62-devel git git-core checkinstall yasm 

2. Next we remove some packages that might have been installed before:

yast2 --remove ffmpeg x264 libx264-devel libavutil51 libavformat53 libavfilter2 libavdevice53 libavcodec53

... and accept the dependency suggestions of yast.

3. We install several codecs

yast2 -i libfaac-devel libfaac0 libmp3lame-devel libamrnb-devel libamrnb3 libopencore-amrnb0 libopencore-amr-devel libamrwb-devel libtheora-devel libvorbis-devel libvpx-devel libxvidcore-devel w32codec-all

4. We install x264

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

5. We check and/or extend the search paths of ldconfig

Open /etc/ and check, if the paths /usr/lib and /usr/local/lib exist in the file. If not, add them.

Then execute ldconfig:

# ldconfig

6. We install FFmpeg:

git clone git://
cd ffmpeg
./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 --enable-x11grab --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib"

make install
cd ..

IMPORTANT: execute ldconfig once again:


7. Within the VIMP backend add the absolute path to FFmpeg:

Therefore login as VIMP admin and enter the path /usr/local/bin/ffmpeg at -> administration -> configuration -> transcoder -> ffmpeg.

Last but not least, copy the presets to /usr/local/share/ffmpeg and eventually you have to install qt-faststart as well: Presets und faststart

Last update on 2017/05/15 by Admin.

Go back