LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg-php (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-php-4175589718/)

devilboy09 09-19-2016 07:32 AM

ffmpeg-php
 
5 Attachment(s)
i've tried to install ffmpeg-php on centos 7.here is the commands that i entered :

PHP Code:

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm 
yum install ffmpeg ffmpeg-devel

cp 
/usr/include/ffmpeg/libavcodec/* /usr/include/ffmpeg
cp /usr/include/ffmpeg/libavdevice/* /usr/include/ffmpeg
cp /usr/include/ffmpeg/libavformat/* /usr/include/ffmpeg
cp /usr/include/ffmpeg/libswscale/* /usr/include/ffmpeg
cp /usr/include/ffmpeg/libavutil/* /usr/include/ffmpeg

cd /root/
git clone https://github.com/sysrenan/ffmpeg-php.git
cd ffmpeg-php
sed -i 's#PIX_FMT_RGBA32#PIX_FMT_RGB32#' ./ffmpeg_frame.c
patch -p0 ffmpeg_frame.c < ffmpeg_frame.c.patch
phpize
CFLAGS=-I/usr/include/ffmpeg ./configure --enable-skip-gd-check && make && make install 

in the last part when i tried to set flags for installing ffmpeg-php i've got the errors that shown in attached files.

please help me to resolve this issue
thanks

devilboy09 09-19-2016 10:11 AM

nobody ?

devilboy09 09-20-2016 02:34 AM

does anybody installed this module before ?

ondoho 09-20-2016 03:53 AM

  1. if you bump your thread, do so by providing additional info. also, bumping it after a few hours is pointless and plain rude if you ask me.
  2. don't use git as root.
  3. what are those patches you are applying. source, links, howto?
  4. why did you post screenshots when copy-pasting text would have been better (!)
  5. all i see are compile errors. if they persist after the other stuff is cleared up, we will get back to that.


actually i just had a look at this repo. looks fishy: only 1 contributor, created 2 years ago, last activity 2 years ago.
why do you think you need this version?
isn't there anything better around? (rhetorical question - there is!)
wouldn't the normal way to go be:
1. see what centos provides.
2. if that is not sufficient, add a repository that provides.
3. install via repo, not local.

devilboy09 09-20-2016 08:52 AM

ok you're right.the problem with ffmpeg-php is that the latest available package is for a long time ago(2008). i tried all sorts of things to resolve this error while compiling the php-ffmpeg and i they didn't work.
finally i installed another repo which installs the lasted ffmpeg and ffmpeg-devel packages which resolve this issue.

here are the link that could be helpful for others :

Correct Repo :
Complete guide for installing ffmpeg and common errors :

ondoho 09-20-2016 11:16 AM

please mark thread [Solved].


All times are GMT -5. The time now is 10:47 PM.