Results 1 to 4 of 4
-
27th Feb 2011, 08:55 AM #1OPMember
How to install ffmpeg & ffmpeg-php Without errors.
Installing FFMpeg
Code:yum install ffmpeg ffmpeg-devel
Create a file named dag.repo in /etc/yum.repos.d with the following contents on it
Code:nano /etc/yum.repos.d/dag.repo
Code:[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1
Code:yum install ffmpeg ffmpeg-devel
Common Errors
To fix rpmforge GPG key warning:
Code:rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Code:yum install ffmpeg ffmpeg-devel
Finally, check the ffmpeg whether it is working or not.
Code:> ffmpeg > ffmpeg -formats > ffmpeg --help // This lists path of mpeg, its modules and other path information ffmpeg -i Input.file Output.file
FFmpeg-php is a very good extension and wrapper for PHP which can pull useful information about video through API interface. Inorder to install it you will need to download the source file and then compile and install extension in your server
Code:wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2 tar -xjf ffmpeg-php-0.6.0.tbz2 phpize ./configure make make install
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ?zim_ffmpeg_frame_toGDImage?:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ?PIX_FMT_RGBA32? undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ?zim_ffmpeg_frame_ffmpeg_frame?:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ?PIX_FMT_RGBA32? undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ?zim_ffmpeg_frame_toGDImage?:/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ?PIX_FMT_RGBA32? undeclared (first use in this function)/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ?zim_ffmpeg_frame_ffmpeg_frame?:/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ?PIX_FMT_RGBA32? undeclared (first use in this function)make: *** [ffmpeg_frame.lo] Error 1
To fix it try this:
After extracting ffmpeg-php-0.6.0 source you will need to make some changes in ffmpeg_frame.c file and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32:
Code:#cd ffmpeg-php-0.6.0 #vi ffmpeg_frame.c Or nano ffmpeg_frame.c
Exit and save, then from the same extracted directory (in my case it was /usr/local/src/ffmpeg-php-0.6.0):
Code:#cd /usr/local/src/ffmpeg-php-0.6.0 # cp -aP ffmpeg_frame.loT ffmpeg_frame.lo # make clean # ./configure # make # make install
Editing PHP.INI
Once you have done that without any problems then you will see the php extension file /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so and you will need mention that extension in php.ini file
Code:nano /usr/local/lib/php.ini
Code:[ffmpeg] extension=ffmpeg.so Then restart the server service httpd restart
Code:// #test.php <?php phpinfo() ?>
ScopeHosts.Sales Reviewed by ScopeHosts.Sales on . How to install ffmpeg & ffmpeg-php Without errors. Installing FFMpeg yum install ffmpeg ffmpeg-devel If you get package not found, then you will need to add few lines in the yum repository for dag packages installation Create a file named dag.repo in /etc/yum.repos.d with the following contents on it nano /etc/yum.repos.d/dag.repoAdd below code in dag.repo Rating: 5
-
27th Feb 2011, 09:10 AM #2BannedWebsite's:
xsl.tel xsltel.comsource : http://www.mysql-apache-php.com/ffmpeg-install.htm
Thanks really appreciated
-
27th Feb 2011, 09:24 AM #3OPMember
elaborated that tutorial with user friendly steps .
-
8th Mar 2011, 07:32 PM #4MemberWebsite's:
host4offshore.comhttp://scriptmantra.info/2008/06/yum...lation-script/
this simple and easy auto installer|| Host4Offshore :: Reliable, Quality, Fast Offshore Hosting Solution (USA/Netherlands/Sweden/Russia/Romania)
|| Shared , Reseller Hosting Sales Thread
|| Rapidleech Hosting Sales Thread
|| Current Promotion
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Can any 1 help me install ffmpeg
By msk19994 in forum Server ManagementReplies: 6Last Post: 23rd Feb 2012, 05:33 PM -
Simple FFMPEG-PHP Install in centa os
By rahulkv in forum IntroductionsReplies: 0Last Post: 21st Jan 2012, 09:45 AM -
Need someone to install FFMPEG-PHP Extension
By Mindy in forum Web Development AreaReplies: 24Last Post: 15th Sep 2011, 12:39 AM -
HOWTO: FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog
By DLow in forum Technical and Security TutorialsReplies: 3Last Post: 12th Sep 2011, 05:15 AM -
How to install FFMPEG
By enetcloud in forum Technical and Security TutorialsReplies: 0Last Post: 21st Aug 2011, 01:29 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...