How to install ffmpeg extension in PHP 6.5 in Centos 5.3

Source: Internet
Author: User

How to install ffmpeg extension in PHP 6.5 in Centos 5.3

The content of this article is mainly to solve the problem of installing ffmpeg extension in PHP5.3 under Centos6.5. Let's not talk about it below. Let's take a look at the detailed steps.

The installation procedure is as follows:

Install required environment yasm

 wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz tar zxvf yasm-0.7.0.tar.gz cd yasm-0.7.0 ./configure make && make install

Install ffmpeg

 svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-shared  make make install

Install ffmpeg-php

: Http://ffmpeg-php.sourceforge.net/

 tar jxvf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config

Important: troubleshooting !!!

Vi ffmpeg_frame.c: % s/PIX_FMT_RGBA32/PIX_FMT_RGB32 # Replace PIX_FMT_RGBA32 with/PIX_FMT_RGB32 make & make installvi/usr/local/php/etc/php. ini added: extension = ffmpeg. soservice httpd restart # restart apache to take effect

Summary

The above is all about this article. I hope this article will help you in your study or work. If you have any questions, please leave a message.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.