通过包管理器安装 使用APT(适用于Ubuntu) sudo apt update sudo apt install ffmpeg 安装完成后,通过以下命令验证安装是否成功: ffmpeg -version