本篇文章给大家分享的是php的ffmpeg,有兴趣的朋友可以看一下
ffmpeg-php扩展
php视频缩略图,较常用的是ffmpeg-php
1: 安装 ffmpeg
ffmpeg的下载链接 http://ffmpeg.org/download.html
解压安装包
tar -jxvf ffmpeg-x.x.tar.bz2
进入目录
cd ffmpeg-x.x
编译安装
./configure –enable-shared && make && make install
安装完成之后 执行 ffmpeg -version
如果能够出现类似下列信息,说明ffmpeg安装成功。
1 2 3 4 5 6 7 8 9 10 | ffmpeg version 2.5.11 Copyright (c) 2000-2016 the FFmpeg developers
built on Apr 17 2017 16:47:15 with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
configuration: --enable-shared
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
|