tony2001 / ffmpeg-php

PHP extension for video editing, wrapping ffmpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ffmpeg-php will not compile

Nirjonadda opened this issue · 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)

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?

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?

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.