Keep updated with latest web technology.
Enjoy life same time.

Upgrade php to 5.3.x – ffmpeg

When we tried to upgrade Plesk PHP to 5.3.x ffmpeg-php does not work so we have to upgrade that as well.
Procedure is: login as root
mkdir /src
cd /src
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0

OK so we have ffmpeg 0.6.0 (latest, and it was very long time ago since its last commit), now try to compile it:

Here we have errors:
error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
With reference link:, thank you Arvand
We solve the problem as follow commands:
vi ffmpeg_frame.c
make install

Then finally add extension=”” inside php.ini, which normally can be found in /etc/php.ini
Or add that as a ffmpeg.ini file in /etc/php.d/ with content
Restart apache:
service httpd restart
And done, enjoy!


Leave a Reply

You must be logged in to post a comment.

Facebook Fans