Linux下ffmpeg的安装过程
来源:互联网 发布:17年机械行业数据 编辑:程序博客网 时间:2024/06/08 17:21
一、通过PPA下载 2.4.3版
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update
sudo apt-get install ffmpeg
二、源码安装过程如下:
下载 源码包:ffmpeg-2.8.6.tar.bz2
1.从网络上下载到的源码包,然后解压到指目录
假设下载目录 /opt/soft
cd /opt/soft
解压包:
tar -jxvf ffmpeg-2.8.6.tar.bz2
进入解压后目录
cd ffmpeg-2.8.6
执行
./configure --enable-shared --prefix=/usr/local/ffmpeg
如果提示出错:
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
则需要按照提示需要安装yasm
使用如下
yum install yasm
安装完成后,继续执行
./configure --enable-shared --prefix=/usr/local/ffmpeg
时间比较长,需要等待几分钟
然后执行下面
make
make install
时间比较长,需要等待几分钟
执行过程没有报错,则成功安装
检查是否安装成功:
/usr/local/ffmpeg/bin/ffmpeg --version
报错如下:
/usr/local/ffmpeg/bin/ffmpeg: error while loading shared libraries: libavdevice.so.56: cannot open shared object file: No such file or directory
提示库文件找不到。
修改文件/etc/ld.so.conf 内容增加/usr/local/ffmpeg/lib/
vim /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib/
使修改生效
ldconfig
执行 /usr/local/ffmpeg/bin/ffmpeg --version
则返回
配置环境变量 path
export PATH=/usr/local/ffmpeg/bin/:$PATH
则在任何目录都可以执行 ffmpeg --version
阅读全文
0 0
- Linux下ffmpeg的安装过程
- linux下安装ffmpeg过程
- linux下安装ffmpeg过程
- FFmpeg在Linux下安装编译过程
- FFmpeg在Linux下安装编译过程
- linux下ffmpeg的安装
- Linux 下ffmpeg的安装
- linux下的安装ffmpeg
- Linux下ffmpeg的安装
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- Linux ffmpeg的安装编译过程
- linux下安装ffmpeg
- 判断某一年是否是闰年
- Java 用重载的一些建议
- POJ 2619 Delta-wave 笔记
- leetcode之Best Time to Buy and Sell Stock III 问题
- 2.SpringMVC_RequesMapping
- Linux下ffmpeg的安装过程
- Java面试-关于线程方面的知识迷惑
- 03.10 Xshell优化与远程连接故障排查
- 简易在线留言板(下)——树洞留言板
- PAT+乙1005. 继续(3n+1)猜想
- 堆的简述以及堆排序
- 剑指offer | 训练题53:字流中第一个不重复的字符
- Linux下设置swap(虚拟内存区)
- c++ 左偏树简析 猴王例题讲解