Installing FFMPEG and FFMPEG-PHP on CentOS
by Nazly on Thursday, 30th August 2007 09:31:15
Last few weeks couple of my colleagues were working on a website that required converting videos to FLV format which is much similar to what youtube does. Inorder to do this they were using ffmpeg which does all the video conversion. He also used ffmpeg-php which is an extension for PHP that allows to retrieve information regarding a video file. So I had to get a local development environment working for this particular project. I had an Ubuntu 7.04 box and found this tutorial for installing ffmpeg and ffmpeg-php. I was successfully able to get it working and my colleagues built the site and it was working very smoothly.
Now when we got to the stage of launching the site, I had to repeat all the installation on a live server as they don't come with ffmpeg or ffmpeg-php pre installed. Hosting Companies seem to charge big bucks to get these installed in their servers. So we went for a Virtual Dedicated Server which had root access. It was a Cent OS 4 box and this is how I was able to get ffmpeg and ffmpeg-php installed on it.
Switch to working directory
cd /usr/local/src
Download the source files needed
wget <a href="http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2" target="_blank">http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2</a> wget <a href="http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz" target="_blank">http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz</a> wget <a href="http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz" target="_blank">http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz</a> wget <a href="http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2" target="_blank">http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2</a> wget <a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz" target="_blank">http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz</a> wget <a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz" target="_blank">http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz</a>
Extract the Source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar tar zxvf flvtool2_1.0.5_rc6.tgz tar zxvf lame-3.97.tar.gz bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar tar zxvf libogg-1.1.3.tar.gz tar zxvf libvorbis-1.1.2.tar.gz
Create a directory for codecs & import them
mkdir /usr/local/lib/codecs/ mv essential-20061022/* /usr/local/lib/codecs/ chmod -R 755 /usr/local/lib/codecs/
Install SVN/Ruby
yum install subversion yum install ruby yum install ncurses-devel
Get the latest FFMPEG/MPlayer from the subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Fix few Lib issues for next steps
Add this line in /etc/ld.so.conf
/usr/local/lib
then run
ldconfig -vCompile LAME
cd /usr/local/src/lame-3.97 ./configure make make install
Compile libOGG
cd /usr/local/src/libogg-1.1.3 ./configure make make install
Compile libVorbis
cd /usr/local/src/libvorbis-1.1.2 ./configure make make install
Compile flvtool2
cd /usr/local/src/flvtool2_1.0.5_rc6 ruby setup.rb config ruby setup.rb setup ruby setup.rb install
Compile MPlayer
cd /usr/local/src/mplayer ./configure make make install
Compile FFMPEG
cd /usr/local/src/ffmpeg ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared echo '#define HAVE_LRINTF 1' >> config.h make make install
Finalize the codec setups
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50 ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51 ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49 ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0 ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
Few tasks before compiling FFMPEG-PHP
yum install automake yum install autoconf yum install libtool
Compile FFMPEG-PHP
cd /usr/local/src/ffmpeg-php-0.5.0 phpize ./configure make make install
Add FFMPEG-PHP as an extension of PHP
Add this line to your php.ini file (Check the correct path of php.ini)
extension=ffmpeg.soRestart Apache to load FFMPEG-PHP
service httpd restart
Check if FFMPEG-PHP is loaded correctly
Create a file called phpinfo.php in your webroot and add the following code
1 2 3 | <?php phpinfo(); ?> |
Run this page using your browser and if you see a section on ffmpeg then everything is installed and working.


























55 comments
Thanks for this writeup! It made my task of installing ffmpeg php extension that much easier.
by Dave on September 16, 2007 at 10:27. #
Installing with 'make install', the best way how to make rubbish from clean ubuntu box. Correct why is to install everything with aptitude/apt/synaptic and get source package for debian for ffmpeg-php from repository linked from ffmpeg-php homepage and modify this source package for ubuntu and compile by dpkg-buildpackage.
That's howto could be useful ten years ago. Now it just makes pure harm to not skilled readers. Please don't write about things you nothing about.
by s0k on September 16, 2007 at 18:00. #
Well I wanted to share my experience of the successful installation of FFMPEG-PHP. But I'm more than willing to learn the better way of doing things. Thanks for your comment.
by Nazly on September 20, 2007 at 13:46. #
checking for ffmpeg libavcodec.so… configure: error: ffmpeg share libraries not found. Make sure you've built ffmpeg as shared libs using the –enable-shared option
I keep having this error. Do you know why?
Thanks.
by Yumi on October 22, 2007 at 23:59. #
@Yumi : How did u build FFMPEG? According to this tutorial u need to build FFMPEG as shared libs using the –enable-shared option.
by Nazly on October 23, 2007 at 11:46. #
I realized that it is due to followig error and the ffmpeg is not install. How should i resolved the following error.
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `mm_flags'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_3dn'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_3dn2'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `ff_imdct_calc_3dn2'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_sse'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `MPV_common_init_mmx'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `ff_imdct_calc_sse'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `mm_support'
/usr/local/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `dsputil_init_mmx'
collect2: ld returned 1 exit status
by Yumi on October 23, 2007 at 17:05. #
Can you retry the Compile FFMPEG part without this line
echo ‘#define HAVE_LRINTF 1′ >> config.h
Since you already executed this, edit config.h under /usr/local/src/ffmpeg and remove the last line that contains
#define HAVE_LRINTF 1
run make now and see what happens
by Nazly on October 23, 2007 at 18:49. #
Same… I redo everything… I saw this have error message…
yum install subversion
Gathering header information file(s) from server(s)
Server: Red Hat Linux 4 – i386 – Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4/i386/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
by Yumi on October 23, 2007 at 19:12. #
I manage to resolve the yum install subversion error. But still removed the last line that contains
#define HAVE_LRINTF 1 and compile again. Still have the same error
run make now and see what happens
by Yumi on October 23, 2007 at 20:50. #
Great tutorial in great details, just what I needed!
But the last step failed to me. I've included the extension line to my php.ini file, but php shows the following error:
"PHP Warning: PHP Startup: Unable to load dynamic library './ffmpeg.so' – ./ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0"
And the extension is not loaded on phpinfo()
Is it a permission issue? php can't read because the file belongs to root?
It's my thrid day trying to get this ffmpeg-php setup, what a nightmare… Can you help me??
by Richard on November 5, 2007 at 19:27. #
I don’t think its a permission problem unless you have given read access to all even though its owned by root.
One thing u could try is to add the path of the ffmpeg.so file
extension=/your/path/here/ffmpeg.so
by Nazly on November 6, 2007 at 11:38. #
thanks for the tutorial.
everything works fine up until i try to ./configure ffmpeg. i keep getting an error message stating…
Unknown option "–enable-libogg".
any ideas?
by zkiller on December 5, 2007 at 07:40. #
I'm having the same problem:
Unknown option "–enable-libogg".
Anyone know how to fix that?
by DocS on December 10, 2007 at 09:27. #
Two questions
1) Did you come across any errors during the 'Compile libOGG' part?
2) Are you sure you are compiling FFMPEG from the correct directory? Or differnt versions of FFMPEG may be?
One solution I may suggest is that for you to remove the only the –enable-libogg option. But the problem will be that you won't have OGG support.
by Nazly on December 10, 2007 at 17:23. #
Thanks a lot for this. All the other tutorials like this had broken links!
by Anthony on December 12, 2007 at 17:21. #
@s0k
Are you fucking retarded? why are you handing out synaptic manager tips for a centos box?
Ubuntu? make install for compile? me fail english? That's unpossible!
Good tutorial, it works.
by someaussie on January 31, 2008 at 09:08. #
Good tutorial. I appreciate it. But the only thing that need to append on this is how to enable lobogg
by Sajesh on February 17, 2008 at 11:38. #
Any idea what causes the following error in the ./configure step on ffmpeg-php, –enable-shared WAS used on ffmpeg…
checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the –enable-shared option
by Dave on March 3, 2008 at 06:32. #
I'm having the same issue as Sajesh. Please help. I'm getting the following message:
checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the –enable-shared option
by Rado on March 3, 2008 at 09:42. #
Thanks for the very informative post, but same as above, followed step by step, tested ffmpeg and it was running fine, phpized ffmpeg-php then when I did ./config it said ffmpeg headers not found. also did ldconfig to update shortcuts still nogo. Tried compiling ffmpeg with –prefix=/usr option still no go.
Any info would be appreciated.
by Raffy on March 4, 2008 at 07:45. #
Sorry guys was offline for a while
@Sajesh : I have enabled libogg while compiling FFMPEG with the –enable-libogg option. Did it fail when you tried with enable libogg option?
@Dave, @Rado, @Raffy : When compiling ffmpeg-php the ffmpeg headers not found might come coz you didn't add the –enable-shared option while compiling ffpmpeg. Or the other reason could be that 'Compile FFMPEG' section might have failed for some reason. I cannot really predict what could be the cause for this but may be you can post your error that your get so that I can be more precise.
Thanks for all the wonderful comments.
by Nazly on March 4, 2008 at 09:59. #
./configure .enable-libmp3lame .enable-libogg .enable-libvorbis .enable-libamr-nb .enable-libamr-wb .enable-libxvid .enable-gpl .enable-shared
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
configure: WARNING: you should use –build, –host, –target
checking for grep that handles long lines and -e… //bin/grep
checking for egrep… //bin/grep -E
checking for a sed that does not truncate output… //bin/sed
checking for .enable-libmp3lame-gcc… no
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc and cc understand -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… Invalid configuration `.enable-libmp3lame': machine `.enable' not recognized
configure: error: /bin/sh ./config.sub .enable-libmp3lame failed
So its the same error from prevous guys
by andrej on March 7, 2008 at 20:17. #
Well not really.. There are syntax errors in the configure options.
You should use the (–) instead of the (.) you are using.
it should be
–enable-libmp3lame
not
.enable-libmp3lame
by Nazly on March 7, 2008 at 21:16. #
Just a few days ago i had ffmpeg-php working. then i got the bright
idea to try to add a codec to ffmpeg. so i re-installed ffmpeg and
then ffmpeg-php. i then noticed this error which i did NOT get before.
Fatal error: Call to a member function togdimage() on a non-object
$movie = new ffmpeg_movie("testmovie.wmv");
$cap = $movie->getFrame(1);
$img = $cap->togdimage();
that is my php code. (i have also tried MANY different movie types)
now i have figured out that all functions called from $cap return that
error, $cap returns false, but am not sure why. i have not changed
this code at all, yet it worked before this.
I have the latest ffmpeg, the latest ffmpeg-php, the latest php, and
the latest gd library installed.
also, in an outputted phpinfo() page, it says that ffmpeg-php is
installed correctly. i also printed out:
get_class_methods("ffmpeg_frame")
and
get_class_methods("ffmpeg_movie")
and that returns all the functions, they are all there, including
togdimage.
when configuring php, i have read mixed ideas. some say to use –with-
gd, and some say –with-gd=shared. i have tried both, with no success
with either.
here is my configuration command for "ffmpeg" TMPDIR="/tmp2" ./configure –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared
a) if i don't have the TMPDIR="/tmp2" there, it will say "Unable to
create and execute files in /tmp. Set the TMPDIR environment
variable to another directory and make sure that /tmp is not mounted
noexec. Sanity test failed.". but the /tmp2 dir does exist and is
chmodded 7777.
b) i have installed libOGG many times but when i have –enable-libogg
as an option it says "Unknown option.." so i just take it out.
and for ffmpeg-php i dont use any configuration parameters. once
ffmpeg-php is installed, i go to "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/" and copy ffmpeg.so to "/usr/local/lib/php/extensions/" (one directory up), and in my php.ini file i have:
extension_dir = "/usr/local/lib/php/extensions/"
extension=ffmpeg.so
in my phpinfo(), it DOES recognize ffmpeg-php. but the functions out
of the class wont work.
Can anyone further help me debug this problem?
by Justin S on March 9, 2008 at 03:43. #
so those steps work on centos only or the same steps could install those scripts on fedora core
by firas on March 9, 2008 at 22:53. #
the above steps worked before yes. now they arent. i have only used centos before.
by Justin S on March 10, 2008 at 10:54. #
@Nazly Thanks for the reply sir, I did enable the shared option while compiling, but I think it has something to do with the distro I'm using (clarkconnect) it doesn't have anything in the usr/local area, most stuff in by default just usr/ dir. So it's possible that the settings aren't being read. You're guide is still the closest I got to making it work though, thanks again! (back to trying to make it work)
by Raffy on March 10, 2008 at 12:23. #
ffmpeg headers not found
Update! Got it to work by copying avcodec.h, avformat.h and avio.h to /usr/local/include/ffmpeg (create the ffmpeg directory if it's not there) Thanks again sir! I'll check now if I can run videos on the site. Thanks for sharing!
by Raffy on March 10, 2008 at 14:09. #
Hi,
Thanks for ur tutorial, everything installed fine.Finally i got(when installing ffmpeg-php (after make install) i got message like this
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/)
is ok?
but in phpinfo i only found
PWD /usr/local/src/ffmpeg-php-0.5.0
No other ffmpeg i found.Please answer me.
Thanks,
Shihab.
by Shihab on March 26, 2008 at 13:19. #
@Shihab: Yeah that is fine.. Did u add this line in your php.ini file
extension=ffmpeg.so
Add that and restart apache. Then check your phpinfo page.
by Nazly on March 26, 2008 at 13:55. #
Hi,
Thanks for u r reply, i did the same in php.ini file and re-start apache(extension=ffmpeg.so) but the same result found in phpinfo(),remember my OS is fedora core release4.
by Shihab on March 26, 2008 at 14:24. #
In your case trying adding the line like this
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20050922/ffmpeg.so
by Nazly on March 26, 2008 at 14:28. #
Thanks So much Nazly,now it is working fine.
by Shihab on March 26, 2008 at 14:48. #
Hi,
My requirement is to convert a vedio file(any format) to FLV from my PHP code.U have any sample code for this?or is available from any url?
by Shihab on March 26, 2008 at 15:12. #
Hi,
I have an error while converting .3gp file to .flv.
Command:ffmpeg -i /to-be-processed/MOV00007.3gp -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 /processed/videos/vedio2.flv
I got the below error.
Error:
Unsupported codec (id=73728)
for input stream #0.1.
Any one know the reason please helps me.
Thanks,
Shihab.
by Shihab on March 26, 2008 at 21:45. #
Most probably is that converting from 3GP is not supported with the codecs we have installed..
by Nazly on March 26, 2008 at 22:15. #
Vedio recording is possile by using ffmpeg-php?
by Shihab on March 27, 2008 at 15:13. #
I have same error with shihab, I've installed ffmpeg from repo as outlined in http://www.tuxmachines.org/node/17063.
My ffmpeg-php codec list shows
[3gp] => Array
(
[encode] => 1
[decode] =>
[fullname] => 3gp format
)
How can I add 3gp decode ? any suggestion is appreciated
by B3dM4n on April 18, 2008 at 12:03. #
This is easier:
http://www.zelofan.net/blog/2008/03/28/instalando-ffmpeg-en-centos-5/
by Ricardo Arguello on June 3, 2008 at 22:49. #
I am getting the same error as @Dave, @Rado and @Raffy
I did recompile it and made sure the –enable-shared was used but still nothing.
Been trying to figure this out for multiple days now and nothing
by Nick Mancuso on July 23, 2008 at 23:55. #
I think the above solution can be improved. A lot of people including me are getting the same error.
by adstiger on July 27, 2008 at 22:57. #
Made a howto from my own experiences hope this helps someone: <a href="http://www.austenconstable.com/2008/08/06/howto-compiling-the-latest-ffmpeg-x264-on-centos-4" target="_blank">http://www.austenconstable.com/2008/08/06/howto-compiling-the-latest-ffmpeg-x264-on-centos-4</a>
by Austen on August 6, 2008 at 15:51. #
Hi, In my server every thing is istalled(ffmpeg). And i'm able to see the ffmpeg in phpinfo(). But After executing the code in php, i'm getting these errors
Warning: Can't open movie file uploaded_videos/Advance Happy Birthday.wmv in /home/martini3/public_html/dev/video_to_flv.php on line 22
Fatal error: Call to a member function getFrameWidth() on a non-object in /home/martini3/public_html/dev/video_to_flv.php on line 25'
Event i've given 777 permissions to both the folder and .wma file there is no change.
And i've included the paths for ffmpeg and flvtool2 is
'$ffmpegPath = "/usr/local/src/ffmpeg";
$flvtool2Path = "/usr/local/src/flvtool2";'
Can any one give me the solution for this
Regards
Satya.
by satya on August 22, 2008 at 14:24. #
Hello I installed php-mpeg, but I am getting the following error. Would you have any suggestion how I can fix this error.
=============================
Warning: dl(): Unable to load dynamic library '/usr/lib/php4/ffmpeg.so' – /usr/lib/php4/ffmpeg.so: undefined symbol: ap_php_snprintf i
=============================
by moses mccall on September 27, 2008 at 03:27. #
Best guide ever. Thank you so much for this!
by graeinler on January 17, 2009 at 17:55. #
http://www.anittamedical.com
Diyaliz Koltuğu, Kan Alma Koltuğu, Hasta Karyolası, Anitta Medical, anittamedical, anittamedikal, sedye, karyola, hastane, diyaliz, jinekoloji masası, cerrahi ameliya
by anittamedical on February 28, 2009 at 05:16. #
Merci bcp pr ce super tutoriall !!!!!!!
by adil on March 16, 2009 at 07:19. #
Good tutorial. I appreciate it
http://gaarai.com/2009/01/13/install-ffmpeg-and-ffmpeg-php-on-centos-easily/
by sokhi on April 26, 2009 at 23:17. #
Hi! i had some trouble installing ffmpeg. it gave an error like:
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
i fixed it by creating a file in /ect/ld.so.conf.d/ called libs.conf and adding /usr/local/lib in the file and then running ldconfig -v
regards Sonny
by Sonny on May 7, 2009 at 20:42. #
BTW it was on CentOS 5.2
by Sonny on May 7, 2009 at 20:43. #
Sir,
See the error while got on ffmpeg-php compilation.
here is the out put of ffmpg -Version
ffmpeg -V
FFmpeg version SVN-r18894, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared –disable-demuxer=v4l –disable-demuxer=v4l2
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.29. 0 / 52.29. 0
libavformat 52.33. 0 / 52.33. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on May 22 2009 10:51:31, gcc: 3.4.6 20060404 (Red Hat 3.4.6-11)
######## error #####
G_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function `_php_convert_frame':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:162: warning: implicit declaration of function `img_convert'
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function `_php_crop_frame':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:215: warning: implicit declaration of function `img_copy'
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function `_php_resample_frame':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: `ImgReSampleContext' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:237: error: `img_resample_ctx' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:263: warning: implicit declaration of function `img_resample_full_init'
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:276: warning: implicit declaration of function `img_resample'
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:281: warning: implicit declaration of function `img_resample_close'
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function `zif_toGDImage':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:409: error: `PIX_FMT_RGBA32' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c: In function `zif_ffmpeg_frame':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: `PIX_FMT_RGBA32' undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
Pls guide me
by Liju on May 25, 2009 at 22:41. #
I found a quick fix for this here
http://groups.google.fr/group/ffmpeg-php/browse_thread/thread/ae3d1f2e9ac1e3a9
by arnaud on December 9, 2009 at 00:47. #
Hi ,
I am getting this “make: *** [ffmpeg_frame.lo] Error 1″
do u know what is the reason?
by sanoop on December 17, 2009 at 04:02. #
I was trying to install ffmpeg-php on Fedora9, I’ve downloaded the ffpmeg-php-0.6.0 and used phpize and ./configure –enable-shared –prefix=/usr and both of them worked fine but when I tried to run make I got the following error:
“make: *** No targets specified and no makefile found. Stop.”
I tried the same procedure with ffmpeg-php-0.5.1 and ffmpeg-0.5.0 but failed.
Can anyone help me with this.
by Sayan Acharjee on February 10, 2010 at 10:08. #
Hi,
I have run the
./configure –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared
command.
but i got an error
ERROR: libmp3lame >= 3.98.3 not found
help is highly appreciated.
Thanks,
Companion
by companion on January 13, 2011 at 12:32. #