LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2016, 07:32 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
ffmpeg-php


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
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	14
Size:	113.7 KB
ID:	23055   Click image for larger version

Name:	2.jpg
Views:	16
Size:	138.6 KB
ID:	23056   Click image for larger version

Name:	3.jpg
Views:	18
Size:	144.9 KB
ID:	23057   Click image for larger version

Name:	4.jpg
Views:	20
Size:	128.7 KB
ID:	23058   Click image for larger version

Name:	5.jpg
Views:	19
Size:	70.7 KB
ID:	23059  


Last edited by devilboy09; 09-19-2016 at 07:43 AM.
 
Old 09-19-2016, 10:11 AM   #2
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
nobody ?
 
Old 09-20-2016, 02:34 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
does anybody installed this module before ?
 
Old 09-20-2016, 03:53 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,948
Blog Entries: 11

Rep: Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421
  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.
 
1 members found this post helpful.
Old 09-20-2016, 08:52 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
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 :
 
Old 09-20-2016, 11:16 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,948
Blog Entries: 11

Rep: Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421Reputation: 5421
please mark thread [Solved].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install FFMPEG and FFMPEG-PHP on fedora10 & 12 cks Linux - Server 2 09-17-2010 01:55 PM
Install ffmpeg for PHP ( ffmpeg-php extension ) shlomi.s Linux - Software 2 02-02-2010 12:52 AM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration