I am using following steps for installing ffmpeg-php extension in Ubuntu

  1. Download ffmpeg-php-0.5.2.1.tbz2

  2. extract it

  3. go to this directory

  4. run this "phpize"

  5. ./configure && make

but when I am running step 5 I got this error message "ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option "

what to do please someone help me I am fresher in Linux

I already install ffmpeg in this machin using this steps https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

Now I am installing extension for PHP

using this steps from this http://ffmpeg-php.sourceforge.net/

INSTALLATION

share|improve this question

migrated from stackoverflow.com Aug 27 '14 at 19:44

This question came from our site for professional and enthusiast programmers.

1  
ffmpeg-php is ancient and has not been updated for ages. It will not work with any recent FFmpeg code. Try ​PHP-FFMpeg instead and also see Using FFmpeg from PHP Scripts. – LordNeckbeard Aug 27 '14 at 16:27

I am not aware of the phpize but the error you are getting is because system is not able to locate the ffmpeg libraries. Just update you commands like this,

./configure --enable-shared --prefix=/home/chintan/out.dir - (change the install directory accordigly)
make
make install - This will install all the libraries in /home/chintan/out.dir/lib directory
export LD_LIBRARY_PATH=/home/chintan/out.dir/lib

And do the other required steps where you are getting the error.

If you don't give --prefix argument in configure and execute make install the libraries will be copied in to /lib directory of your system.

Hope this helps.

share|improve this answer
    
sir I tried this also , what is my problem ....... first I install Ubuntu but somehow I did not get Repo for php-devel and ffmpeg-devel then I install redhat and Now I got php-devel and ffmpeg-devel repo in to this FYI:( my PHP version is 5.1.x and php-devel virsion is 5.6 and php-ffmpeg virsion is 5.3 ) Now when I compile the ffmpeg source then it can be compile but with error – Chintan Gor Aug 29 '14 at 4:31

Run these following commands in SSH

# echo "/usr/local/lib" >> /etc/ld.so.conf
# echo "/usr/lib" >> /etc/ld.so.conf
# ldconfig

Then, try to configure again,

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.