tony2001 / ffmpeg-php

PHP extension for video editing, wrapping ffmpeg
GNU General Public License v2.0
84 stars 62 forks source link

Ffmpeg-php will not compile #23

Open Nirjonadda opened 7 years ago

Nirjonadda commented 7 years ago

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)

eRadical commented 7 years ago

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?

Nirjonadda commented 7 years ago

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?

adaugherity commented 7 years ago

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.