ubuntu

https://ffmpeg.org/download.html#build-linux

①查看自己Ubuntu的版本:

lsb_release -a

(LSB是Linux Standard Base(Linux标准库)的缩写, lsb_release命令 用来与具体Linux发行版相关的Linux标准库信息)

获取版本号后进入https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

②选取自己版本对应的镜像源,然后进入apt文件夹

cd /etc/apt/

把之前的镜像源复制一份为001

sudo cp sources.list cources.list.001

再打开镜像源列表

sudo vim sources.list

按“a”进入编辑模式,把之前复制的镜像源粘到底下:

默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

预发布软件源,不建议启用

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

然后按ESC键,:wq,再按enter保存并退出

③然后更新apt:

sudo apt-get upgrade

原文链接:https://blog.csdn.net/Jason_Todd/article/details/125479130

windows

https://zhuanlan.zhihu.com/p/572201206

https://github.com/BtbN/FFmpeg-Builds/releases

接下来右键计算机,选择系统属性 ,点击高级—-环境变量,点击path,选择编辑,然后新建,输入ffmpeg的bin路径,比如我的是“E:\ffmpeg\bin ” 运行cmd,打开命令提示符窗口,输入命令“ffmpeg –version”,命令提示窗口显示FFmpeg的版本信息,说明安装成功