I was recently updating ffmpeg-php on one of our servers to the latest SVN release of the 0.6.3 branch. On a 64bit CentOS 5.3 with PHP 5.2.11, the extension compiled and installed fine however Apache will not load it and spit out the error below:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ffmpeg.so' - /usr/lib64/php/modules/ffmpeg.so: undefined symbol: php_gd_gdImageSetPixel in Unknown on line 0
Surely enough, the GD extension was there, but why is ffmpeg complaining about not finding that shared symbol? Because, ffmpeg is loading first than GD (alphabetically) and such symbol has not been loaded. After adding the GD extension line on top of ffmpeg making sure it loads first the error went away and all is well again.
#1 by kyle renfrow on November 27, 2009 - 1:04 AM
man, i have to leave you a comment thanking you for this bit of information. i hope others find this page better, as it has taken me quite some time to figure this one out! you’re damn right, ffmpeg.so was getting loaded before gd.so. FIXED!
thanks again.
#2 by jervin on November 27, 2009 - 3:47 PM
Glad to know it helped!
#3 by Ryan Lucier on January 7, 2010 - 6:19 AM
Thank you, this fixed my problem during a centos 5.4 x86_64 install. Adding extension=gd.so in-front of extension=ffmpeg.so fixed it.
#4 by Zack on March 12, 2010 - 10:47 AM
Thanks so much. I would have never imagined.