LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-20-2009, 08:34 AM   #1
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
Unable to load ffmpeg-php


Hello,

I'am tryaing to install ffmpeg/ffmpeg-php by this tutorial:
http://www.nazly.net/post/installing...on-centos-230/

But php can't load the library:
[root ffmpeg-php-0.5.0]# php -i | grep ffmpeg
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/
lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - /usr/local/
lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: undefined
symbol: le_ffmpeg_frame in Unknown on line 0

[root ffmpeg-php-0.5.0]# ldd /usr/local/lib/php/extensions/no-debug-
non-zts-20060613/ffmpeg.so
libavformat.so.52 => /usr/local/lib/libavformat.so.52
(0x0000002a95661000)
libavcodec.so.52 => /usr/local/lib/libavcodec.so.52
(0x0000002a95814000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a96105000)
libavutil.so.50 => /usr/local/lib/libavutil.so.50
(0x0000002a9633f000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x0000002a9644d000)
libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x0000002a96562000)
libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a96672000)
libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0
(0x0000002a967f8000)
libvorbisenc.so.2 => /usr/local/lib/libvorbisenc.so.2
(0x0000002a96985000)
libvorbis.so.0 => /usr/local/lib/libvorbis.so.0
(0x0000002a96c65000)
/lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
libogg.so.0 => /usr/local/lib/libogg.so.0 (0x0000002a96d8f000)

Thanks,

Boto
 
Old 10-20-2009, 08:53 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Try the newer version 0.6.0 and see if it works.
 
Old 10-22-2009, 08:46 AM   #3
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Try the newer version 0.6.0 and see if it works.
I have try the version 0.6.0. But I got another error:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'ffmpeg.so' in Unknown on line 0

Kind regards,

Boto
 
Old 10-22-2009, 08:59 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Are you sure that ffmpeg-php-0.6.0 was installed succesfully?
There is a known bug, that prevents ffmgeg-php from compiling.
 
Old 10-22-2009, 04:39 PM   #5
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Are you sure that ffmpeg-php-0.6.0 was installed succesfully?
There is a known bug, that prevents ffmgeg-php from compiling.
Thank you for your post. I have reinstall ffmpeg-php after change PIX_FMT_RGB32, but I got the same error.
 
Old 10-22-2009, 06:32 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Are you sure you don't have another php installed? What is the output?
Code:
which php
php-config --extension-dir
Make sure that ffmgeg.so is copied in the extension-dir you got from the last command.
 
Old 10-23-2009, 04:40 AM   #7
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Are you sure you don't have another php installed? What is the output?
Code:
which php
php-config --extension-dir
Make sure that ffmgeg.so is copied in the extension-dir you got from the last command.
See the output:
[root@mangaan ~]# which php
/usr/local/bin/php
[root@mangaan ~]# php-config --extension-dir
/usr/local/lib/php/extensions/no-debug-non-zts-20060613
[root@mangaan ~]# ls -al /usr/local/lib/php/extensions/no-debug-non-zts-20060613
total 164
drwxr-xr-x 2 root root 4096 Oct 22 19:14 .
drwxr-xr-x 3 root root 4096 Oct 19 12:03 ..
-rwxr-xr-x 1 root root 155270 Oct 22 19:14 ffmpeg.so
[root@mangaan ~]#

PHP is installed by Custombuild/DirectAdmin.

I have try to install ffmpeg-php on two of my servers, both have the same error.

Thanks for reply.

Boto
 
Old 10-23-2009, 05:00 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
The error you get is very strange (maybe not a PHP library)
What gives
Code:
php -m
 
Old 10-24-2009, 03:07 AM   #9
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
php -m
gives:

[root@mangaan ~]# php -m
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'ffmpeg.so' in Unknown on line 0
[PHP Modules]
bcmath
calendar
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcre
pdf
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
Zend Optimizer
zip
zlib

[Zend Modules]
Zend Extension Manager
Zend Optimizer

[root@mangaan ~]#
 
Old 10-24-2009, 06:12 PM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
As I told you I've never seen this kind of error. i.e. php not to recognize a .so php extension. Have you run phpize before ./configure? What php version are you using? And what is your OS?
You can copy the file from the subdirectory modules of the source tree to a different place (e.g. in /tmp/ffmpeg.so), change the extension_dir in php.ini and see if it works.
FYI I've just built ffmpeg.so from svn (I'm running php 5.3.0) and it compiles fine, without the bug in ffmeg_frame.c. And of course it works.

Regards
 
Old 10-26-2009, 05:16 PM   #11
bosstijger
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
As I told you I've never seen this kind of error. i.e. php not to recognize a .so php extension. Have you run phpize before ./configure? What php version are you using? And what is your OS?
You can copy the file from the subdirectory modules of the source tree to a different place (e.g. in /tmp/ffmpeg.so), change the extension_dir in php.ini and see if it works.
FYI I've just built ffmpeg.so from svn (I'm running php 5.3.0) and it compiles fine, without the bug in ffmeg_frame.c. And of course it works.

Regards
Sure, I have run phpize before ./configure.

I have try to copy ffmpeg.so to the tmp dir, but the error will be the same.

I have try this install on two of my servers.
I have the follow configuration:
PHP: 5.2.9 and 5.2.11
CentOS 5.3 64bit
My servers are installed with DirectAdmin. Other people have also this error, see http://www.directadmin.com/forum/sho...ghlight=ffmpeg
But these options will not resolve my problem :-(

Thanks for all about this and sorry for my bad english.
 
Old 10-26-2009, 06:50 PM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
This is not the same error as the one in the link you've posted. In your case php does not recognize ffmpeg.so as a php extension. In the other posts there is the more common unresolved symbol error.
You might try other versions (like ffmpeg-5.3.1, or the latest from svn) to see if there is one that works with your php. I tried, but wasn't able to compile 5.3 and 5.3.1 with php-5.3.0, so I guess the ffmpeg-php depends strongly on php version.

Regards

Last edited by bathory; 10-26-2009 at 07:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 06:16 PM
PHP Warning: Unable to load dynamic library xbaez Linux - Software 3 02-15-2005 07:11 PM
ipw2200 - Unable to load ucode, unable to load firmware blizinsk Linux - Wireless Networking 2 10-10-2004 09:28 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration