Install FFmpeg PHP Extension on Centos
audio and video file as well as online convert.
http://www.bloggertale.com/2013/11/23/how-to-install-ffmpeg-latest-version-at-centos/#.UpjpItIW33IAfter installing FFmpeg you can proceed to install ffmpeg php on centos:Step 1)
Visit the Below site:
You can download the latest release using wget command.
After downloading you can see the downloaded package in your /root directory which is default.
Step 2) Now extract the file using below command:
Step 3) Now enter to the extracted directory using below command:
Step 4) Now run below command:
if you get command not found error than probably you don’t have the php devel installed.
Run the below command to fix it including the above command:
yum install php-devel
Step 5) Now run below command to install the FFmpeg-php:
if you get header not found or some similar error then you can fix it by running the below command with the above one:
yum install ffmpeg-devel
if you get error similar to shared library not found then run the commands given below:
Now ffmpeg should be installed correctly without any problem.
Note: if you see an error related with PIX_FMT_RGBA32 then you will need to fix it using this tutorial.
Error PIX_FMT_RGBA32 While Installing FFmpeg PHP Extension
Step 6) Now at the end you will need to edit your php.ini file, paste the below code to load the FFmpeg module in php and save it.
Step 7) Restart the apache and your FFmpeg installation has been completed.
service httpd restart
Addons: Now you may want to install some addons like Mencoder and mplayer.
Use below command to install them:
yum install mplayer mencoder