Installing libavcodec

This library is often statically linked (e.g. by mplayer or ffmpeg). SuSE doesn't contain it as a shared library in an rpm so you need to build from source

./configure --prefix=/opt/ffmpeg --enable-shared
  • Run make and make install
make && make install
  • Add the following to your configure invocation for programs linking against avcodec
CPPFLAGS="-I/opt/ffmpeg/include" LDFLAGS="-L/opt/ffmpeg/lib"