well, I have found this thread very useful... thank you! BUT, I am unable to get this working as you have kingkashif. I have been staring at this error for 3 days!!!
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so' - dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so, 9): no suitable image found. Did find:\n\t/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so: mach-o, but wrong architecture in Unknown on line 0
I feel like a complete moron.
My System:
Mac OS X 10.5.8 on MacBookPro
PHP 5.3.0 (Mark Liyanage's Entropy PHP 5.3.0-3.pkg)
Background:
I have a fresh install of PHP at /usr/local/php5, and I have wiped clean any other modules, and made sym links to the new installation in /usr/bin.
I have a working (make tested) ffmpeg install from...
Code:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
configured like this:
Code:
./configure \
--prefix=/usr/local \
--libdir=/usr/local/lib \
--enable-shared \
--enable-libmp3lame \
--enable-libfaad \
--enable-libfaac \
--enable-gpl \
--enable-nonfree \
--enable-pthreads
I just now followed your last post, kingkishif, exactly. I have a fresh version of ffmpeg-php-0.6.0. I also got the error about RGBA, and replaced all occurrences with RGB. I was then able to make && make install. (which I weird cause I never before got that error on previous tries) I have added:
Code:
extension=ffmpeg.so
to the php.ini (and verified this is the one loaded).
But I still get this error when i restart apache!!! I have no more tricks in my bag. Please help! I'm considering recompiling PHP with a built-in extension, but I really don't want to do this as I'm sure I would run into numerous other problems.
Any ideas anyone?