Saturday, November 21, 2009

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so'


While Installing FFMPEG, when I was installing ffmpeg-php, I got this warning and it didn't work any further.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: undefined symbol: le_ffmpeg_frame in Unknown on line 0


Tried to find the solution but didn't get any help. So I ended up reinstalling with different changes and using different guides. Following changes helped:::

First of all get 0.6.0 version, i.e ffmpeg-php-0.6.0.

Now after download: use vi to edit the ffmpeg_frame.c and search and replace PIX_FMT_RGBA32 with PIX_FMT_RGB32
To do this run the following commands:


cd ../ffmpeg-php-0.6.0
vi ffmpeg_frame.c
Now run this command:
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

Now run ./configure && make && make install

This should solve the problem. Worked for me.


5 comments:

  1. Dude ! You are awesome. It works in first go..

    ReplyDelete
  2. Hmm ffmpeg_php 0.6 only works with >php5
    and unfortunately this doesn't fix it for ffmpeg_php_0.5.3.1

    ReplyDelete
  3. awesome stuff yarr for this i struggled for 2 days.once again thank u so much for your material

    ReplyDelete

Developer Instincts