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.0vi ffmpeg_frame.cNow run this command::%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
Now run ./configure && make && make install
This should solve the problem. Worked for me.
You are awesome dude
ReplyDeleteDude ! You are awesome. It works in first go..
ReplyDeleteThanks:)
ReplyDeleteHmm ffmpeg_php 0.6 only works with >php5
ReplyDeleteand unfortunately this doesn't fix it for ffmpeg_php_0.5.3.1
awesome stuff yarr for this i struggled for 2 days.once again thank u so much for your material
ReplyDelete