感谢支持
我们一直在努力

Debian 用户如何安装 FFmpeg 2.2.2

FFmpeg是一个流行的多媒体框架,详细的功能就不多说了,想了解的童靴可以看维基百科。最新版本 ffmpeg 2.2.2 最近已发布。有关发布信息,在官方网站看到公告。

本文将教大家如何在 Debian Jessie、Debian Sid 和 Debian Wheezy 系统上安装 FFmpeg 2.2.2。

——————————————分割线——————————————

推荐阅读:

Linux下编译FFmpeg之下载源文件并编译 http://www.linuxidc.com/Linux/2012-02/54565.htm

Linux 编译升级 FFmpeg 步骤 http://www.linuxidc.com/Linux/2013-08/88190.htm

CentOS 5.6 上安装 FFMPEG http://www.linuxidc.com/Linux/2011-09/42793.htm

在Ubuntu下安装FFmpeg http://www.linuxidc.com/Linux/2012-12/75408.htm

Ubuntu 14.04下PPA安装FFmpeg 2.2.2 http://www.linuxidc.com/Linux/2014-05/101322.htm

——————————————分割线——————————————

在Debian Sid上安装

因为有库可用,安装非常方便,打开终端,输入以下命令:

sudo sh -c 'echo "deb http://www.deb-multimedia.org sid main" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get install ffmpeg

Debian Jessie 用户安装

因为有库源,依然很简单,打开终端,输入以下命令:

sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get install ffmpeg

Debian Wheezy用户安装稍微麻烦一些

使用安装源:

sudo sh -c 'echo "deb http://deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list'

安装deb-multimedia-keyring和更新本地仓库索引:

sudo apt-get install deb-multimedia-keyring
sudo apt-get update

安装依赖包:

apt-get install subversion unzip frei0r-plugins-dev libdc1394-22-dev libfaac-dev libmp3lame-dev libx264-dev libdirac-dev libxvidcore-dev libfreetype6-dev libvorbis-dev libgsm1-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenjpeg-dev librtmp-dev libschroedinger-dev libspeex-dev libtheora-dev libva-dev libvpx-dev libvo-amrwbenc-dev libvo-aacenc-dev libaacplus-dev libbz2-dev libgnutls-dev libssl-dev libopenal-dev libv4l-dev libpulse-dev libmodplug-dev libass-dev libcdio-dev libcdio-cdda-dev libcdio-paranoia-dev libvdpau-dev libxfixes-dev libxext-dev libbluray-dev

下载和编译libxavs库:

svn co https://svn.code.sf.net/p/xavs/code/trunk xavs
cd xavs
./configure --enable-shared --disable-asm
make
sudo make install

下载FFMPEG 2.2.2源码包,解压文件并使用CD命令转到解压目录:

wget http://www.ffmpeg.org/releases/ffmpeg-2.2.2.tar.gz
tar -xzvf ffmpeg-2.2.2.tar.gz
cd ffmpeg-2.2.2

配置:

./configure --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-x11grab --enable-swscale --enable-version3 --enable-shared --disable-yasm --enable-filter=movie --enable-frei0r --enable-libdc1394 --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvpx --enable-libvo-amrwbenc --enable-libvo-aacenc --enable-libaacplus --enable-libxavs --enable-bzlib --enable-openssl --enable-gnutls --enable-openal --enable-libv4l2 --enable-libpulse --enable-libmodplug --enable-libass --enable-libcdio --enable-vdpau --enable-libbluray

安装命令:

make
sudo make install

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-05/101732.htm

赞(0) 打赏
转载请注明出处:服务器评测 » Debian 用户如何安装 FFmpeg 2.2.2
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏