Hi All,
I install all software for video conversion and set in php.ini to load the ffmpeg.so like this :
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/modules"
;extension_dir = "/usr/local/lib/php/extensions/"
extension=ffmpeg.so
[root@localhost modules]# pwd
/usr/lib/php/modules
[root@localhost modules]# ll
total 1492
-rwxr-xr-x 1 root root 28200 Jan 14 00:16 dbase.so
-rwxr-xr-x 1 root root 141668 Jan 14 00:16 dom.so
-rwxr-xr-x 1 root root 210775 Mar 7 18:19 ffmpeg.so
-rwxr-xr-x 1 root root 331852 Jan 14 00:16 gd.so
-rwxr-xr-x 1 root root 98024 Jan 14 00:16 imap.so
-rwxr-xr-x 1 root root 44204 Jan 14 00:16 ldap.so
-rwxr-xr-x 1 root root 106188 Jan 14 00:16 mysqli.so
-rwxr-xr-x 1 root root 48996 Jan 14 00:16 mysql.so
-rwxr-xr-x 1 root root 65068 Jan 14 00:16 odbc.so
-rwxr-xr-x 1 root root 23692 Jan 14 00:16 pdo_mysql.so
-rwxr-xr-x 1 root root 20012 Jan 14 00:16 pdo_odbc.so
-rwxr-xr-x 1 root root 82516 Jan 14 00:16 pdo.so
-rwxr-xr-x 1 root root 19948 Jan 14 00:16 pdo_sqlite.so
-rwxr-xr-x 1 root root 13036 Sep 4 2009 phpcups.so
-rwxr-xr-x 1 root root 23040 Jan 14 00:16 xmlreader.so
-rwxr-xr-x 1 root root 89172 Jan 14 00:16 xmlrpc.so
-rwxr-xr-x 1 root root 32184 Jan 14 00:16 xmlwriter.so
-rwxr-xr-x 1 root root 23140 Jan 14 00:16 xsl.so
[root@localhost modules]# php -v
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib/dbd/libdbdmysql.so' in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
PHP 5.3.1 (cli) (built: Jan 19 2010 02:45:49)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
This error : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
And I can't convert my videos, can someone help me ?
I install all software for video conversion and set in php.ini to load the ffmpeg.so like this :
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/modules"
;extension_dir = "/usr/local/lib/php/extensions/"
extension=ffmpeg.so
[root@localhost modules]# pwd
/usr/lib/php/modules
[root@localhost modules]# ll
total 1492
-rwxr-xr-x 1 root root 28200 Jan 14 00:16 dbase.so
-rwxr-xr-x 1 root root 141668 Jan 14 00:16 dom.so
-rwxr-xr-x 1 root root 210775 Mar 7 18:19 ffmpeg.so
-rwxr-xr-x 1 root root 331852 Jan 14 00:16 gd.so
-rwxr-xr-x 1 root root 98024 Jan 14 00:16 imap.so
-rwxr-xr-x 1 root root 44204 Jan 14 00:16 ldap.so
-rwxr-xr-x 1 root root 106188 Jan 14 00:16 mysqli.so
-rwxr-xr-x 1 root root 48996 Jan 14 00:16 mysql.so
-rwxr-xr-x 1 root root 65068 Jan 14 00:16 odbc.so
-rwxr-xr-x 1 root root 23692 Jan 14 00:16 pdo_mysql.so
-rwxr-xr-x 1 root root 20012 Jan 14 00:16 pdo_odbc.so
-rwxr-xr-x 1 root root 82516 Jan 14 00:16 pdo.so
-rwxr-xr-x 1 root root 19948 Jan 14 00:16 pdo_sqlite.so
-rwxr-xr-x 1 root root 13036 Sep 4 2009 phpcups.so
-rwxr-xr-x 1 root root 23040 Jan 14 00:16 xmlreader.so
-rwxr-xr-x 1 root root 89172 Jan 14 00:16 xmlrpc.so
-rwxr-xr-x 1 root root 32184 Jan 14 00:16 xmlwriter.so
-rwxr-xr-x 1 root root 23140 Jan 14 00:16 xsl.so
[root@localhost modules]# php -v
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib/dbd/libdbdmysql.so' in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
PHP 5.3.1 (cli) (built: Jan 19 2010 02:45:49)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
This error : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
And I can't convert my videos, can someone help me ?