2

Im tying to install php5-ffmpeg module on my ubuntu server. I've typed:

sudo apt-get install php5-ffmpeg 

Everything was installed and web server was reloaded. Now, the fallowing line is added to Additional .ini files parsed in phpinfo(): /etc/php5/apache2/conf.d/ffmpeg.ini

However, no more info about ffmpeg module is not present in phpinfo() and ffmpeg functions do not work in scripts. Here's ffmpeg.ini file contents:

; configuration for the ffmpeg-php module extension=ffmpeg.so ; Turn ffmpeg warnings into PHP warnings ;ffmpeg.show_warnings=0 ; Persistent movies ;ffmpeg.allow_persistent=0 

PHPInfo screenshot: http://i050.radikal.ru/1011/41/021944f4f1c4.png

Apache error log shows:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/ffmpeg.so' - /usr/lib/php5/20090626+lfs/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 

It is said there PHP Extension: 20090626

I have two directories in /usr/lib/php5:

20060613+lfs/ ffmpeg.so 20090626+lfs/ curl.so gd.so mysql.so pdo.so mysqli.so pdo_mysql.so suhosin.so 

I've tried copying ffmpeg.so to 20090626+lfs directory, but in this case Apache error log shows:

PHP Warning: PHP Startup: ffmpeg: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: ffmpeg: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 

Any ideas why PHP ffmpeg module does not work in this case?

Ubuntu server 9.04, PHP 5.3.1-4, Apache 2

3
  • 1
    What do your startup errors say? Web server error log? Commented Nov 29, 2010 at 8:46
  • Try to restart apache2 process! Commented Nov 29, 2010 at 8:48
  • @Ignacio Vazquez-Abrams, sorry, I've edited the question with details from error.log Commented Nov 29, 2010 at 9:03

1 Answer 1

2

You've installed a copy of the ffmpeg extension that was built against a different version of PHP. You'll need to either find one built against the correct version, or build it yourself.

1
  • Thanks. Clearly this is the issue. I don't know how to compile the module, but that's another question. Commented Nov 29, 2010 at 9:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.