ABHIONLINUX
Site useful for linux administration and web hosting

2011/03/28

Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so


if you are getting the error message “Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so” when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP.

PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so: undefined symbol: _php_create_ffmpeg_frame in Unknown on line 0

Please try the fix given below.

Goto the the ffmpeg-php-0.x.0 directory and edit the ffmpeg_frame.c file

vi  /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c

Now replace every instance of ‘PIX_FMT_RGBA32′ with ‘PIX_FMT_RGB32′ in the file by executing

Save the file and recompile ffmpeg-php

#ldconfig
#phpize
#./configure --enable-shared --with-ffmpeg=/usr/local/cpffmpeg
#make -j$cpu
#make install

phpize : command not found

#-bash: phpize: command not found


This error is due to "phpize" command not available on your server. To fix, install php-devel package.


yum  install php-devel