ffmpeg

kanary

Verified User
Joined
Jun 8, 2007
Messages
75
Location
Holland - Het westland
Hello,

I want to install ffmpeg on my server.
I am using this page to install
http://vexxhost.com/blog/2007/03/03...2tool-lame-mp3-encoder-libogg-–-the-easy-way/

but i got stuck at 14. Compile FFMPEG-PHP

there it says i have to use command "phpize"

but when i use it on my server i get
[root@server ffmpeg-php-0.5.1]# phpize
-bash: phpize: command not found

when i do a find commend i get this back
[root@server ffmpeg-php-0.5.1]# find / | grep -ri phpize
/usr/local/directadmin/custombuild/php-5.2.3/scripts/phpize
/usr/local/directadmin/custombuild/php-5.2.3/scripts/phpize.in
/usr/local/directadmin/custombuild/php-5.2.3/scripts/phpize.m4
/usr/local/directadmin/custombuild/php-5.2.3/scripts/man1/phpize.1.in
/usr/local/directadmin/custombuild/php-5.2.3/scripts/man1/phpize.1
/usr/local/bin/phpize
/usr/local/lib/php/build/phpize.m4
/usr/local/man/man1/phpize.1

so it is already located on my server.

if i directly go to that command i get this back
[root@server ffmpeg-php-0.5.1]# /usr/local/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519



but how can i fixt this to use the "phpize" command ?
 
Last edited:
Code:
ln -s /usr/local/bin/phpize /usr/bin/phpize

ok, that did it but when i do make test after confige, make, make install they all fails

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: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'modules/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - modules/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
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: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'modules/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - modules/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0


the dir /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so exists but now with the dot
 
Last edited:
Please post an output of:
Code:
cat /usr/local/lib/php.ini | grep extension_dir
 
Please post an output of:
Code:
cat /usr/local/lib/php.ini | grep extension_dir


was
[root@server ffmpeg-php-0.5.1]# cat /usr/local/lib/php.ini | grep extension_dir
extension_dir = "./"
; extension_dir directive above.

changed to
[root@server ffmpeg-php-0.5.1]# cat /usr/local/lib/php.ini | grep extension_dir
extension_dir = ""
; extension_dir directive above.


then it says that the module already has been loaded so i added an ; before the "extension=ffmpeg.so"

and did the make test again now it pass 20 out of 31 one


Number of tests : 31 31
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 11 ( 35.5%) ( 35.5%)
Tests passed : 20 ( 64.5%) ( 64.5%)
---------------------------------------------------------------------
Time taken : 18 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg animatedGif [tests/animatedGif.phpt]
ffmpeg getFrame cropping test [tests/getFrameCrop.phpt]
ffmpeg getFrameResampled test [tests/getFrameResampled.phpt]
ffmpeg getFrame backwards test [tests/getFramesBackwards.phpt]
ffmpeg getFrames forward test [tests/getFramesForward.phpt]
ffmpeg getFrames forward test [tests/getFramesForwardPassedEnd.phpt]
ffmpeg getFramesResampled test [tests/getFramesResampled.phpt]
ffmpeg getID3Info() test [tests/getID3Info.phpt]
ffmpeg getFrame without an argument test [tests/getNextKeyFrame.phpt]
ffmpeg getPTS test [tests/getPTS.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]


how can i pass these to ?


fixt
just needed to reboot
 
Last edited:
Just a question regarding ffmpeg...

I asked my provider to install it but they are not sure if they want to because of the possible high CPU usage!

Does FFmpeg use alot of CPU?
 
Just a question regarding ffmpeg...

I asked my provider to install it but they are not sure if they want to because of the possible high CPU usage!

Does FFmpeg use alot of CPU?

Not on its own, no. ;)

If you were running a youtube clone site with a lot of hits, then of course it will drive up CPU usage, and in that case you should be on a dedi. But we install FFMPEG on our shared boxes and don't find it to be a problem.
 
Back
Top