如果服务器已经安装了一个 Ffmpeg 的话,比如已安装在 /usr/local/ffmpeg 目录。Linux下版本升级步骤如下:
1.下载 ffmpeg-*.tar.gz到 Ffmpeg 官网 https://ffmpeg.org/download.html 挑选你要升级到的版本,然后下载,比如作者下载的是 ffmpeg-2.0.tar.gz。
2.编译安装tar -zxvf ffmpeg-2.0.tar.gz
cd ffmpeg-2.0
./configure --enable-shared --prefix=/usr/local/ffmpeg
make
make install3.动态链接库vi /etc/ld.so.conf加入:/usr/local/ffmpeg/lib
执行
ldconfig4.为 Ffmpeg 加入环境变量vi /etc/profile加入以下内容:
FFMPEG=/usr/local/ffmpeg
PATH加入:$FFMPEG/bin
5.使修改立即生效source /etc/profile执行
ffmpeg -version打印结果
ffmpeg version 2.0
built on Jul 24 2013 09:59:06 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
configuration: --enable-shared --prefix=/usr/local/ffmpeg
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
证明已升级成功。如果遇到 ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory 之类的错误,请检查第三步是否做好。
推荐阅读:Linux下编译FFmpeg之下载源文件并编译 http://www.linuxidc.com/Linux/2012-02/54565.htm扩展VirtualBox虚拟机磁盘容量如何在 GitHub 建立组织相关资讯 FFmpeg FFmpeg编译
- FFmpeg 3.1.3发布, 及Ubuntu 16.04 (今 11:26)
- FFmpeg 3.0 正式版发布,多媒体处 (02月16日)
- 在 Mac OS X 环境中从源代码编译安 (12/11/2015 09:19:17)
| - VS2013编译FFmpeg (08月10日)
- FFmpeg 2.8.4 “Feynman” 发布下 (12/21/2015 10:04:59)
- CentOS安装视频转换FFmpeg和切割工 (10/29/2015 10:33:41)
|
本文评论 查看全部评论 (0)