“ffmpeg headers not found” error while installing ffmpeg in cPanel servers

August 22, 2008 | In: FFMPEG

The error received is

checking for ffmpeg support… yes, shared
checking for ffmpeg headers… configure: error: ffmpeg headers not
found. Make sure you’ve built ffmpeg as shared libs using the –enable-
shared option

This is due to missing header files inĀ  “/usr/local/include/ffmpeg” directory.

Check whether the directory “/usr/local/include/ffmpeg” exists else create it.

mkdir /usr/local/include/ffmpeg

The copy the header files.

cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg

You need to install your ffmpeg again. After installing the ffmpeg, install ffmpeg-php.

Comment Form