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
No comments:
Post a Comment