ffmpeg-php icon indicating copy to clipboard operation
ffmpeg-php copied to clipboard

Ffmpeg-php will not compile

Open Nirjonadda opened this issue 8 years ago • 3 comments

I followed the instructions listed here: https://my.9xhost.net/knowledgebase/article/39/install-ffmpeg---php-ffmpeg-on-centos-7-1/

I get to ./configure && make and it gives me the error:

checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option

Please let me know the fix, I am using CENTOS 7.3 x86_64 kvm – na WHM 62.0 (build 2)

Nirjonadda avatar Jan 14 '17 15:01 Nirjonadda

I was unable to reproduce this in two docker containers one with Centos 7.1 and another one with Centos 7.3.

If you run: find / -name avcodec.h

what does it say?

eRadical avatar Jan 16 '17 08:01 eRadical

One more thing that ATRPMS Repo using ffmpeg version 2.2.1 , Is this any issue with this ffmpeg version 2.2.1? how to using ffmpeg latest version?

Nirjonadda avatar Jan 16 '17 17:01 Nirjonadda

ATRPMS appears to be unmaintained since 2014. RPMFusion has up-to-date ffmpeg for Fedora, but strangely not RHEL/Centos -- not sure why. I've been running this PHP module on ffmpeg 2.8 (SLES 12 with Packman) for a year now without problems (except for a minor build fix... read on).

The build checks for avcodec.h -- hence eRadical's suggestion to make sure you indeed have it, and if it's in the expected location. Note that some repos (including RPMFusion and Packman) are now installing the headers into a subdirectory; I submitted a fix in #21 but there has been no activity here since then.

adaugherity avatar Feb 17 '17 00:02 adaugherity