Ubuntu18 FFmpeg定制

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
mkdir ~/ffmpeg_sources  //根目录下创建文件夹

apt安装依赖(推荐)

安装 yasm :sud o apt-get install yasm

安装 X264:sudo apt-get install libx264-dev

安装 libfdk-aac :sudo apt-get install libfdk-aac-dev

安装 libmp3lame :sudo apt-get install libmp3lame-dev

安装 libopus :sudo apt-get install libopus-dev

安装 libvpx :sudo apt-get install libvpx-dev

2. Compilation & Installation

Yasm
sudo apt-get install yasm

libx264
sudo apt-get install libx264-dev

libx265
sudo apt-get install cmake mercurial
cd ~/ffmpeg_sources
git clone https://github.com/wuxingzhong/x

你可能感兴趣的:(音视频技术,ubuntu,ffmpeg,音视频)