Recent Changes - Search:

Documents

Download

Building

Support

Wiki Stuff

edit SideBar

FFMpegOnLinux

Main.FFMpegOnLinux History

Hide minor edits - Show changes to markup

Deleted lines 0-107:

(:notitle:) http://ffmpeg.mplayerhq.hu/ffmpeg-logo.png

Building and installing FFmpeg on Linux

1. Check to see if your system has the correct version of FFmpeg installed using the pkg-config program:

  $ pkg-config --modversion libavcodec libavformat libavdevice libavutil
  52.30.2
  52.34.0
  52.2.0
  50.3.0

If the version numbers differ, we strongly suggest you uninstall FFmpeg and install the recommended version as described below.

If pkg-config does not know about FFmpeg, check for the existence of the following files - probably in /usr/local/lib:

  libavcodec.so
  libavformat.so
  libavdevice.so
  libavutil.so

Remove these files if they exist.

Also check for the existence of the following include directories - probably in /usr/local/include

  libavcodec
  libavformat
  libavdevice
  libavutil

Remove these directories (and their contents) if they exist

2. Extract the recommended revision of FFmpeg using the Subversion command below, or download this tarball

  svn checkout -r19088 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

3. Configure and build the shared library version of FFmpeg.

  cd ffmpeg
  ./configure --enable-shared
  make

NOTE: it may be necessary to add options depending on the architecture of the system. For example, it has been found that some Intel Core Duo systems require --disable-mmx to prevent a crash in the H.263 codec at run-time.

4. Install FFmpeg. The default install location is /usr/local - if you want to use a different location then you will need to use different configure options.

  sudo make install

5. Add the directory /usr/local/lib/pkgconfig to the search path for pkg-config. Without this, Opal will not be able to locate FFmpeg when running configure. This is usually done by setting the PKG_CONFIG_PATH environment variable

For bash/sh

     export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

For tcsh/csh

     setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig

Test this by running the pkg-config command described in step 1 above.

6. Add the directory /usr/local/lib to both the LD_LIBRARY_PATH and PTLIBPLUGINDIR environment variables. Without this, Opal will not be able to locate the libavcodec.so file and it's dependencies at run time.

For bash/sh

     export LD_LIBRARY_PATH=/usr/local/lib
     export PTLIBPLUGINDIR=/usr/local/lib

For tcsh/csh

     setenv LD_LIBRARY_PATH /usr/local/lib
     setenv PTLIBPLUGINDIR /usr/local/lib

7. Configure Opal.

For the release version

   ./configure

For the debug version

   ./configure --enable-debug

The status of the codecs will be displayed at the end of the configure process. If FFmpeg was detected correctly, it will show the following:

  =================== Plugin configuration ======================

  ..deleted

                           H.263  :  yes
                           H.263+ :  yes

8. Build Opal

For the release version

   make opt

For the debug version

   make debug
August 11, 2009, at 07:55 AM by 115.64.157.126 -
Changed line 11 from:
  52..2.0
to:
  52.2.0
August 11, 2009, at 07:54 AM by 115.64.157.126 -
Changed lines 9-13 from:
  51.71.0
  52.22.1
  52.1.0
  49.10.0
to:
  52.30.2
  52.34.0
  52..2.0
  50.3.0
Changed lines 36-37 from:
  svn checkout -r15261 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
to:
  svn checkout -r19088 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
November 26, 2008, at 05:26 AM by 123.243.254.105 -
Added lines 2-3:

http://ffmpeg.mplayerhq.hu/ffmpeg-logo.png

November 26, 2008, at 05:23 AM by 123.243.254.105 -
Added line 1:

(:notitle:)

November 26, 2008, at 05:22 AM by 123.243.254.105 -
Added lines 1-105:

Building and installing FFmpeg on Linux

1. Check to see if your system has the correct version of FFmpeg installed using the pkg-config program:

  $ pkg-config --modversion libavcodec libavformat libavdevice libavutil
  51.71.0
  52.22.1
  52.1.0
  49.10.0

If the version numbers differ, we strongly suggest you uninstall FFmpeg and install the recommended version as described below.

If pkg-config does not know about FFmpeg, check for the existence of the following files - probably in /usr/local/lib:

  libavcodec.so
  libavformat.so
  libavdevice.so
  libavutil.so

Remove these files if they exist.

Also check for the existence of the following include directories - probably in /usr/local/include

  libavcodec
  libavformat
  libavdevice
  libavutil

Remove these directories (and their contents) if they exist

2. Extract the recommended revision of FFmpeg using the Subversion command below, or download this tarball

  svn checkout -r15261 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

3. Configure and build the shared library version of FFmpeg.

  cd ffmpeg
  ./configure --enable-shared
  make

NOTE: it may be necessary to add options depending on the architecture of the system. For example, it has been found that some Intel Core Duo systems require --disable-mmx to prevent a crash in the H.263 codec at run-time.

4. Install FFmpeg. The default install location is /usr/local - if you want to use a different location then you will need to use different configure options.

  sudo make install

5. Add the directory /usr/local/lib/pkgconfig to the search path for pkg-config. Without this, Opal will not be able to locate FFmpeg when running configure. This is usually done by setting the PKG_CONFIG_PATH environment variable

For bash/sh

     export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

For tcsh/csh

     setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig

Test this by running the pkg-config command described in step 1 above.

6. Add the directory /usr/local/lib to both the LD_LIBRARY_PATH and PTLIBPLUGINDIR environment variables. Without this, Opal will not be able to locate the libavcodec.so file and it's dependencies at run time.

For bash/sh

     export LD_LIBRARY_PATH=/usr/local/lib
     export PTLIBPLUGINDIR=/usr/local/lib

For tcsh/csh

     setenv LD_LIBRARY_PATH /usr/local/lib
     setenv PTLIBPLUGINDIR /usr/local/lib

7. Configure Opal.

For the release version

   ./configure

For the debug version

   ./configure --enable-debug

The status of the codecs will be displayed at the end of the configure process. If FFmpeg was detected correctly, it will show the following:

  =================== Plugin configuration ======================

  ..deleted

                           H.263  :  yes
                           H.263+ :  yes

8. Build Opal

For the release version

   make opt

For the debug version

   make debug
Edit - History - Print - Recent Changes - Search
Page last modified on November 27, 2012, at 11:28 PM