1.安装依赖包
$sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libx11-dev libxvidcore4 zlib1g-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev
2.安装SDL库(不安装将没有ffplay)
下载地址:http://www.libsdl.org/download-2.0.php
3.安装x264(需要通过源码进行安装)
$git clone git://git.videolan.org/x264.git
$cd x264
$./configure
$make
$sudo make install
4.安装FFmpeg
$git clone https://github.com/FFmpeg/FFmpeg.git
$cd FFmpeg
$./configure
$make
$sudo make install
5.测试
$ffplay http://fms.cntv.lxdns.com/live/flv/channel89.flv
网友评论