LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   issue with ffmpeg-php and gd module loading on fedora 12 (https://www.linuxquestions.org/questions/linux-software-2/issue-with-ffmpeg-php-and-gd-module-loading-on-fedora-12-a-783287/)

darkgaro 01-19-2010 02:17 PM

issue with ffmpeg-php and gd module loading on fedora 12
 
fedora 12 with php 5.3.1 + apache is installed on the server

I needed a FFMPEG + MENCODER + FFMPEG-PHP setup , so I have installed all of the necessary libraries/codecs along with ffmpeg , mencoder and ffmpeg-php

I've added ffmpeg-php (ffmpeg.so) module to php.ini and restarted httpd

But ffmpeg was not showing up in phpinfo() so I grepped : php -i | grep ffmpeg
for some clues and got this warning

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: undefined symbol: php_gd_gdImageSetPixel in Unknown on line 0

That error explains why ffmpeg is not loading

Obviously something to do with GD library , so I've researched on the net , and found that some users suggest loading the GD module before FFMPEG module.

I gave it a try and added this at the end of php.ini:

Code:

[gd]
;loading gd
extension=gd.so

[ffmpeg]
;loading ffmpeg
extension=ffmpeg.so

...but still same error when greping phpinfo()

Am I configuring this right or ???
Anyone encountered this before?

Thanks

darkgaro 01-19-2010 02:45 PM

Fixed it

I was using the latest SVN ffmpeg-php version and that version is obviously buggy

Installed version ffmpeg-php-0.6.0 and it worked fine :)


All times are GMT -5. The time now is 12:08 AM.