一、安装相关依赖或工具
sudo apt install -y yasm sudo apt-get install -y autoconf automake build-essential git libass-dev libfreetype6-dev libsdl2-dev \ libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \ libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev sudo apt install libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev libsdl1.2-dev
二、下载安装 ffmpeg
下载:
wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
解压:
tar -zxvf ffmpeg-3.1.tar.gz cd ffmpeg-3.1
配置、编译、安装:
./configure --prefix=/usr/local/ffmpeg make make install
三、添加到环境变量
vim ~/.bashrc 在最后PATH添加环境变量: export PATH=$PATH:/usr/local/ffmpeg/bin 保存退出 查看是否生效 source ~/.bashrc 设置生效
-
参考:
https://blog.csdn.net/fanyun_01/article/details/125073651
https://blog.csdn.net/nieji3057/article/details/112605013
https://www.cnblogs.com/a-runner/p/16000295.html
标签:插件,https,ffmpeg,ubuntu,dev,apt,install,3.1 From: https://www.cnblogs.com/wutou/p/16873223.html