Home > Backend Development > PHP Tutorial > ffmpeg-php的装配详解

ffmpeg-php的装配详解

WBOY
Release: 2016-06-13 10:31:16
Original
913 people have browsed it

ffmpeg-php的安装详解

ffmpeg是一个处理音频视频的东东,ffmpeg-php是php的一个扩展

去官网上下载0.6.0版本,早的版本我试过装不上

先yum install ffmpeg ffmpeg-devel

不然等会configure会通不过

装好后ffmpeg -formats,看下是否成功了

将下载好的扩展包解压,phpize,./configure,make

到这里会出现

找不到PIX_FMT_RGBA32,估计是必然会出现的问题,这个貌似是不支持带Alpha通道,执行下面这个命令:

:1,$s/PIX_FMT_RGBA32/PIX_FMT_RGB32/g

将PIX_FMT_RGBA32替换为PIX_FMT_RGB32

然后再搞一次,成功了。

然后去修改php.ini,重启服务器,phpinfo中会出ffmpeg的东东,如果没有,说明没有安装成功!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template