Linux 编译升级 Ffmpeg 步骤
来源:互联网 发布:电脑桌面滚动字幕软件 编辑:程序博客网 时间:2024/06/16 19:58
Linux 编译升级 Ffmpeg 步骤
如果服务器已经安装了一个 Ffmpeg 的话,比如已安装在 /usr/local/ffmpeg 目录。版本升级步骤如下:
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 install
3.动态链接库
vi /etc/ld.so.conf
加入:/usr/local/ffmpeg/lib
执行
ldconfig
4.为 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 之类的错误,请检查第三步是否做好。
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 install
3.动态链接库
vi /etc/ld.so.conf
加入:/usr/local/ffmpeg/lib
执行
ldconfig
4.为 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 之类的错误,请检查第三步是否做好。
阅读全文
0 0
- Linux 编译升级 Ffmpeg 步骤
- Linux编译升级Ffmpeg步骤
- Linux 编译升级 Ffmpeg 步骤
- 编译ffmpeg步骤(windows&linux)
- linux编译升级内核步骤
- ffmpeg安装步骤(linux)
- linux内核升级步骤
- linux openssh升级步骤
- linux vsftpd 升级步骤
- 【ffmpeg】linux下编译ffmpeg
- Linux下编译FFMpeg
- Linux下编译FFMpeg
- Linux下编译FFMpeg
- linux下编译ffmpeg
- linux下编译FFmpeg
- linux下编译ffmpeg
- linux下编译ffmpeg
- linux安装编译ffmpeg
- 单链表的归并排序和插入排序
- Dialog
- 安卓仿手机网易新闻app项目开发系列之(五)tablayout事件和recycle事件
- eclipse中切换svn账号
- 计算机视觉、机器学习、模式识别、图像处理领域国内外期刊、会议汇总
- Linux 编译升级 Ffmpeg 步骤
- git“fatal: loose object”错误解决办法汇总
- ob_get_contents ob_get_contents ob_start 缓存区
- 使用return new ModelAndView("/sys/selectAccount");后session被清空了
- Java 获取指定日期的方法总结
- Exynos4412 Uboot 移植(四)—— Uboot引导内核过程分析
- 美团codeM资格赛 锦标赛
- 我也来做几个音量按钮
- Another Eight Puzzle