FFMPEG 安裝和使用(centos7)

FFMPEG 安裝和使用(centos7)

  • 安裝擴展源shell

    su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm'
  • 安裝二進制文件centos

    rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
    rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
  • yum安裝centos7

    yum -y install ffmpeg ffmpeg-devel
  • 查看版本code

    ffmpeg -version
  • 切片io

    ffmpeg -i 1.mp4 -c:v libx264 -hls_time 60 -hls_list_size 0 -c:a aac -strict -2 -f hls v/list.m3u8
相關文章
相關標籤/搜索