Ffmpeg install
Ffmpeg is a great library but it does not include complete installing instructions. Here are some useful links.
In Linux
Install ffmpeg packages:
libavcodec52 or libavcodec-extra-52
libavcodec-dev
libavformat52 or libavformat-extra-52
libavformat-dev
libavdevice52 or libavdevice-extra-52
libavdevice-dev
libavfilter0 or libavfilter-extra-0
libavfilter-dev
libavutil49 or libavutil-extra-49
libavutil-dev
libpostproc51 or libpostproc-extra-51
libpostproc-dev
libswscale0 or libswscale-extra-0
libswscale-dev
Other possible packages are:
libdc1394-22-dev
libfaad-dev
libgsm1-dev
libogg-dev
libraw1394-dev
libschroedinger-dev
libspeex-dev
libtheora-dev
libvorbis-dev
It is also possible to compile it from sources, but I have not found a reliable way to do it.
In Windows
Windows users are fortunate. They have three possibilities: safe (recommended!!), medium and hard ways.
Safe way
Download ffmpeg and SDL from U++ Sourceforge following the links. They include .dll, .lib, .a, .h and source code for recent versions.
Copy the downloaded folders in upp folder. You will get a folder structure like this:
drive:\upp\uppsrc\plugin\ffmpeg
drive:\upp\uppsrc\plugin\SDL
In Setup/Build Methods menu include the next folders:
PATH - executable directories
|
INCLUDE directories
|
LIB directories
|
drive:\upp
|
drive:\upp\uppsrc\plugin\SDL\include
drive:\upp\uppsrc\plugin\ffmpeg\include
|
drive:\upp\uppsrc\plugin\SDL\lib
drive:\upp\uppsrc\plugin\ffmpeg\lib
|
|
In addition, MSC9 and MSC10 require an additional include folder
Compiler
|
INCLUDE directories
|
MSC9
|
drive:\upp\uppsrc\plugin\ffmpeg\include_msc
|
MSC10
|
|
Medium
All ffmpeg files in "safe way" have been got from the great daily updated "Automated Ffmpeg Builds" by Ramiro Polla.
To get the bleeding edge compiled files, download the files labeled "shared" and "shared-dev".
You can set them in your own folder structure or just follow the "Safe way" one. Do not forget to delete inttipes.h and stdint.h when compiling with MinGW.
Remember that these files are supplied "as is" and they do not usually represent any "stable" version.
Hard way
Ramiro Polla web also includes instructions to build ffmpeg from sources. Only for very experts.
|