A famous PHP-FFMPEG installation error is,
Unable to load dynamic library './ffmpeg.so' - ./ffmpeg.so: cannot open shared object file: No such file or directory
Whats the problem?
PHP is not able to find the location of ffmpeg library file.
Common Clues?
1. ffmpeg.so is in a wrong location?
2. is PHP trying to locate it in a wrong location?
3. ffmpeg is not installed properly?
What I did?
Step1: I checked the installed php modules by following ssh command.
# php -m
I see no ffmpeg there.
Step2: I checked the main php.ini file to see ffmpeg extention's status.
I see ffempg is enabled in php.ini file.
You have to confirm that there is a line exactly like below without any ; as prefix.
extension=ffmpeg.so
Step3: I moved the primary ffmpeg.so file to lib folder.
cp /usr/local/src/ffmpeg-php-0.5.0/modules/ffmpeg.so /usr/local/lib
Step4: I updated my shared libraries.
ldconfig -v
Step 5: I changed the extention_dir value as empty "" in main php.ini file
Step 6: service httpd restart
Step 7: Success!
You may skip step 1 & 4.
Regards,
KarthiKeyan.