Using ffmpeg without ffmpeg-config

ffmpeg-config depends on distribution, some distributions have it some do not.
Original sources of the ffmpeg from do not have this script.
So it is not wise to use ffmpeg-config to determinate if ffmpeg is installed.


This is already fixed, beta2 will not have this problem.
Damian Pietras - MOC developer

Than you, I will wait for beta2


Sorry, I was wrong. MOC already uses pkg-config to detect ffmpeg, but only if ffmpeg-config script is not present, so it should work with all distributions.

Damian Pietras - MOC developer

In my case it not work.

$ pkg-config --libs ffmpeg
Package ffmpeg was not found in the pkg-config search path.
Perhaps you should add the directory containing `ffmpeg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ffmpeg' found

And I can not find any *.pc file which may be used by pkg-config in compilled sources.

So you shall add some option which disable ffmpeg test and set ffmpeg to 'yes' (e.g. --ffmpeg-libs argument in configure script).

What is your distribution and how you installed ffmpeg (from source?). FFmpeg is not just one library, the list of libraries needed to compile with it is different and depends on how ffmpeg was compiled. I can't hard code any -lffmpeg in MOC.

Damian Pietras - MOC developer

My distribution is Source Mage GNU/Linux.
Here are files wich discribe how will be sources processed:
Here are files which was installed:

Currently ffmpeg installs .pc files with make install. If your distribution doesn't provide these files there is no way to guess host ffmpeg is compiled and which libraries are needed. Ask the package maintainers to include pkg-config files.

Damian Pietras - MOC developer

I found the problem, cvs version generates .pc files but last release do not generate this files.
With cvs version all works fine.