carta
ffmpeg-config(1)

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-config to 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-config to 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)

Author

This manual page was written for sdl-config by Branden Robinson, originally for Progeny Linux Systems, Inc., and the Debian Project. It was adapted to ffmpeg by Sam Hocevar.

From libavcodec-dev 0.cvs20060823-8+etch1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.