Answer the question
In order to leave comments, you need to log in
Why is ffmpeg-php not working?
With grief in half, I installed ffmpeg-php on CentOS, but for some reason it does not work on Apache. In /etc/php.ini I added
extension=/usr/lib64/php/modules/ffmpeg.so
Command php -r 'new ffmpeg_movie();' an error output that I did not pass a parameter, that is, the class exists, and when I create a file and write there
<?php
new ffmpeg_movie();
I am getting an error that class not found.
Why is this and how to fix it?
Answer the question
In order to leave comments, you need to log in
In short, Apache still used another PHP, namely zts-php. I solved this problem in the following way:
1) Downloaded and installed ffmpeg (not ffmpeg-php)
rpm -Uvh http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm
yum install ffmpeg ffmpeg-devel
git clone https://github.com/tony2001/ffmpeg-php.git
cd ffmpeg-php
zts-phpize
./configure --with-php-config=/usr/bin/zts-php-config
make && make install
About installation on centos
git clone https://github.com/tony2001/ffmpeg-php.git
cd ffmpeg-php
phpize
./configure
make && make install
Has the Indian been restarted?
Look in phpinfo, maybe you are changing the wrong php.ini at all.
To make the ffmpeg class available, install
sudo apt-get install php5-ffmpeg
No configuration needed, works out of the box.
console php and the one that you have attached to the web server may differ
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question