天天看点

在 Debian Stretch 上安装 FFmpeg

FFmpeg 是一款流行的多媒体框架,可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec 里很多 codec 都是从头开发的。

最新的版本是ffmpeg 3.3.4 “Hilbert”, 软件库的版本如下,

本文教你你如何在 Debian 上安装 ffmpeg 的最新版本,可通过库或 PPA,取决于你使用的系统。本文也适用于 Ubuntu 环境。

Debian Stretch 系统上的安装命令(注意第一条命令中的 stretch,如果是 debian 8 的系统,请用 jessie 替换 stretch):

<code>sudo sh -c 'echo "deb http://www.deb-multimedia.org stretch main" &gt;&gt; /etc/apt/sources.list.d/multimedia.list' sudo apt-get update sudo apt-get install deb-multimedia-keyring sudo apt-get install ffmpeg</code>

卸载命令:

<code>sudo apt-get remove ffmpeg --purge sudo rm /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg</code>

在 Ubuntu 系统中安装卸载 ffmpeg

在 Ubuntu 系统及衍生的分支包括:Linux Mint,Pinguy OS,Elementary OS,Deepin,Peppermint Five,Linux Lite,LXLE 上安装最新版本的 ffmpeg,

安装命令:

<code>sudo apt-add-repository ppa:samrog131/ppa sudo apt-get update sudo apt-get install ffmpeg-real sudo ln -sf /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg</code>

原文发布时间:2017-10-26

继续阅读