美文网首页
centos6.8 快速安装ffmpeg3.4

centos6.8 快速安装ffmpeg3.4

作者: k小男生 | 来源:发表于2017-11-15 20:52 被阅读0次

    http://ffmpeg.org/download.html 下载地址

    wget -c ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2
    cd  x264-snapshot-20120718-2245-stable
     ./configure --enable-shared  --enable-static
     make -j16 && make install


    tar -zxvf ffmpeg-3.4.tar.gz
    cd  ffmpeg-3.4
    ./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libx264 --enable-pic
    make -j16 && make install


    vim /enable-pic

    vim /etc/ld.so.conf

    添加 /usr/local/ffmpeg/lib

    ldconfig

    vim /etc/profile
    添加  export PATH=$PATH:/usr/local/ffmpeg/bin

    . /etc/profile




    转码命令:'ffmpeg   -i  http://hrslive-keane.oss-cn-hangzhou.aliyuncs.com/record/hrs/991109260337217636.m3u8 -y -f mp4 -c:v h264 -c:a aac -preset:v fast -profile:v baseline -bitrate 9600 -pass 1  -vol 2 -v quiet output20.mp4'


    参考连接:
    https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
    http://www.bijishequ.com/detail/203060?p=

    相关文章

      网友评论

          本文标题:centos6.8 快速安装ffmpeg3.4

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