美文网首页
ubuntu下编译ffmpeg

ubuntu下编译ffmpeg

作者: 大明白 | 来源:发表于2016-11-07 15:43 被阅读584次
  1. 安装依赖
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
  libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
  libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
  1. 安装依赖库
sudo apt-get install yasm  libx264-dev libfdk-aac-dev libmp3lame-dev libopus-dev
wget http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2
tar xjvf libvpx-1.5.0.tar.bz2
cd libvpx-1.5.0
./configure --prefix=/usr/local --disable-examples --disable-unit-tests
  1. 编译ffmpeg
cd ffmpeg-3.2
./configure --prefix=/usr/local   --enable-gpl   --enable-libfdk-aac   --enable-libfreetype   --enable-libmp3lame   --enable-libopus   --enable-libtheora   --enable-libvorbis   --enable-libvpx   --enable-libx264  --enable-nonfree
make -j4
make install

相关文章

网友评论

      本文标题:ubuntu下编译ffmpeg

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