man ffmpeg-config (Commandes) - script to get information about the installed version of ffmpeg
NAME
ffmpeg-config - script to get information about the installed version of ffmpeg
SYNOPSIS
ffmpeg-config [ --prefix= DIR] [ --version ] [ --libs [<extensions>]] [ --plugin-libs [<extensions>]] [ --cflags ]
DESCRIPTION
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.
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.