FFmpeg源码编译

FFmpeg

是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPLGPL许可证。它提供了录制、转换以及流化音视

频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多codec
都是从头开发的。

ffmpeg压缩包下载链接:https://files.cnblogs.com/files/gkbgy/ffmpeg-3.2.2.tar.bz2.zip

下面是Ubuntu下安装教程

1sudo apt-get install build-essential git-core checkinstall yasm texi2html

libvorbis-dev libx11-dev libvpx-dev libxfixes-dev zlib1g-dev pkg-config

netcat libncurses5-dev

2sudo tar -xjf ffmpeg-3.2.2.tar.bz2

3cd ffmpeg-3.2.2

4sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx

5sudo make

6sudo checkinstall --pkgname=ffmpeg --pkgversion=5:3.2.2 --backup=no --deldoc=yes --default

查看是否安装成功

7ffmpeg –version

成功则出现以下信息

ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers

  built on Aug 18 2014 17:35:05 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

  configuration: --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx

  libavutil      52. 92.100 / 52. 92.100

  libavcodec     55. 69.100 / 55. 69.100

  libavformat    55. 48.100 / 55. 48.100

  libavdevice    55. 13.102 / 55. 13.102

  libavfilter     4. 11.100 /  4. 11.100

  libswscale      2.  6.100 /  2.  6.100

  libswresample   0. 19.100 /  0. 19.100

 

 

事实上并不需要实现安装这么多依赖包,直接进行./configure      make 就行

 windows下就没那么复杂了,下载windows版的ffmpeg包,解压就行了,直接用ffmpeg.exe就OK了

原文地址:https://www.cnblogs.com/gkbgy/p/6393096.html