PDA

View Full Version : FreeBsd, ffmpeg and PHP cli


Palleas
September 15th, 2009, 17:13
Hello !

I'm having some issues with PHP cli. When I use the php commande, I have theses error messages :

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/ffmpeg.so' - Shared object "libavformat.so.1" not found, required by "ffm peg.so" in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/2006061 3/ffmpeg.so' - Shared object "libavformat.so.1" not found, required by "ffmpeg.s o" in Unknown on line 0


As I'm more confortable with Ubuntu I must admit I'm kind of lost here...
Ffmpeg is not in my php.ini nor loaded as a module (according to my "php -m"), I'm really stuck...

Has anybody ever met this issue ?

Thanks!

DutchDaemon
September 15th, 2009, 17:28
I think PHP will simply try to load anything in the /usr/local/lib/php/20060613/ directory, whether you tell php.ini to or not.

What is the output of pkg_info -W /usr/local/lib/php/20060613/ffmpeg.so? That will tell you which package/port installed ffmpeg.so (probably graphics/php5-ffmpeg, though it lacks a file list).

I can tell you that the missing libavformat.so.1 belongs to multimedia/ffmpeg. You could just install that one, restart Apache, and be done with it.

DutchDaemon
September 15th, 2009, 17:33
Ffmpeg is not ... loaded as a module (according to my "php -m")

No, of course not. After all, it failed to load ;)

aragon
September 15th, 2009, 22:08
cd /usr/local/etc/php && grep -v ffmpeg.so extensions.ini > e && mv e extensions.ini

Palleas
September 16th, 2009, 07:58
I can tell you that the missing libavformat.so.1 belongs to multimedia/ffmpeg. You could just install that one, restart Apache, and be done with it.

It has nothing to do with apache, because I'm using PHP in cli mode, but thx anyway :)

cd /usr/local/etc/php && grep -v ffmpeg.so extensions.ini > e && mv e extensions.ini

It worked!

Thanks a lot guys !

DutchDaemon
September 16th, 2009, 11:14
Ok, then you may as well pkg_delete the port that installed that .so ;)

Palleas
September 16th, 2009, 11:17
[root@server]/usr/ports/multimedia(204): pkg_delete ffmpeg
pkg_delete: no such package 'ffmpeg' installed


That's strange oO

DutchDaemon
September 16th, 2009, 12:22
http://forums.freebsd.org/showpost.php?p=41411&postcount=2