欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > linux >内容正文

linux

Linux 安装 FFmpeg

发布时间:2024/2/28 linux 52 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Linux 安装 FFmpeg 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

FFmpeg官网:http://www.ffmpeg.org

官网介绍

FFmpeg is the leading multimedia framework, able to decodeencodetranscodemuxdemuxstreamfilter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATEacross Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.

下载安装

  • 下载最新源码包并解压
  • $ axel -n 10 https://ffmpeg.org/releases/ffmpeg-4.2.1.tar.bz2 $ tar jxvf ffmpeg-4.2.1.tar.bz2
  • 安装ffmpeg
  • $ cd ffmpeg-4.2.1 $ yum install yasm -y $ ./configure $ make && make install

     

     

    安装报错


    报了错误,提示yasm没有安装

     

  • 安装yasm
  • $ yum install yasm -y
  • 继续安装ffmpeg
  • $ ./configure $ make $ make install
  • 安装成功
  • $ ffmpeg

    输入ffmpeg打印了相关信息,表示安装成功

     

    安装成功

    总结

    以上是生活随笔为你收集整理的Linux 安装 FFmpeg的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。