Ubuntu install php5-ffmpeg
When I try to install php5-ffmpeg:
apt-get install php5-ffmpeg
I get an error:
The following packages have unmet dependencies:
php5-ffmpeg : Depends: phpapi-20090626+lfs
As I understand my php5-ffmpeg was broken when I upgraded php from 5.3 to 5.4.
How can I fix it? I tried some options like -f, -ingnore-dependencies but that did not fix it.
I'm using Ubuntu 12.04.2 LTS.
Solution 1:
First try to resolve dependency using below PPA
but this version is End Of Life
, recommended to upgrade php-5.6
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
Then
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg ffmpeg-devel
Download php-ffmpeg
from http://ffmpeg-php.sourceforge.net/ and extract.
cd ffmpeg-php-<version>
./configure
make
sudo make
Edit php.ini file and add this end of file :
extension=ffmpeg.so
Last week I successfully installed this extension on centos 6