美文网首页
Linux安装FFmpeg

Linux安装FFmpeg

作者: YellowLayne | 来源:发表于2017-03-12 21:00 被阅读0次

    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

    相关文章

      网友评论

          本文标题:Linux安装FFmpeg

          本文链接:https://www.haomeiwen.com/subject/gksxnttx.html