ffmpeg-config1
Script to get information about the installed version of ffmpeg
Usage
ffmpeg-config [--prefix
DIR]
[--version]
[--libs
[<extensions>]]
[--plugin-libs
[<extensions>]]
[--cflags]
Overview
ffmpeg-config is a tool that is used to configure and determine the compiler and linker flags that should be used to compile and link progams, libraries, and plugins that use ffmpeg.
Options
-
--cflags -
Print the C compiler flags that are necessary to compile a program or library that uses ffmpeg.
- --libs { avcodec | avformat | postproc }
-
Print the linker flags that are necessary to link a program that uses libavcodec, libavformat or libpostproc.
- --plugin-libs { avcodec | avformat | postproc }
-
Print the linker flags that are necessary to link a shared object (such as a plugin for a program) that uses libavcodec, libavformat or libpostproc.
-
--prefix=DIR -
If specified, use PREFIX instead of the installation prefix that ffmpeg was built with when computing the output for the --cflags, --libs and --plugin-libs options. This option must be specified before any of the --cflags, --libs and --plugin-libs options.
-
--version -
Prints the currently installed version of ffmpeg on standard output.
Examples
- gcc -c main.c $(ffmpeg-config --cflags) -o main.o
-
is how you might use
ffmpeg-configto compile a C source file for an executable program.
- gcc main.o util.o $(ffmpeg-config --libs avcodec) -o my_app
-
is how you might use
ffmpeg-configto link compiled objects into an executable program that uses libavcodec. Always make sure to mention libraries in the command line after objects referring to them.
History
- Debian 4.0 (Etch): the text shown here
- Debian 3.1 (Sarge)