“ffmpeg headers not found” – error while installing ffmpeg in cPanel servers.
In case you receive an error as:
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 error is generally due to some header files not located in “/usr/local/include/ffmpeg” directory.
Can be fixed by doing the following:
First, check whether “/usr/local/include/ffmpeg” directory is created while installing ffmpeg. If not, create this directory by:
mkdir /usr/local/include/ffmpeg
Now copy the necessary ffmpeg header files to “/usr/local/include/ffmpeg”
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
Once you have done this you need to install your ffmpeg package again. Later, install ffmpeg-php.























