How to install ffmpeg extension in PHP5.3 in CentOS

Source: Internet
Author: User
As we all know, ffmpeg is a video stream software. we can install ffmpeg in linux. This article mainly introduces how to install ffmpeg extension in PHP5.3 under Centos6.5, for more information, see. As we all know, ffmpeg is a video stream software. we can install ffmpeg in linux. This article mainly introduces how to install ffmpeg extension in PHP 6.5 in Centos 5.3, for more information, see.

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 # 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

:#

 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 a detailed explanation of how to install ffmpeg extension in PHP 6.5 in Centos 5.3. For more information, see PHP Chinese network (www.php1.cn )!

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.