一、环境介绍
操作系统介绍:ubuntu 18.04
FFMPEG版本: 4.4.2
摄像头: USB摄像头、虚拟机挂载本机自带摄像头
二、FFMPEG与X264下载编译
X264下载地址: http://www.videolan.org/developers/x264.html
FFMPEG下载地址: https://ffmpeg.org/download.html
Yasm 库的官网下载地址: http://yasm.tortall.net/Download.html
在 PC 机 Linux 编译 X264 需要 yasm 库支持。
编译yasm库:
./configure
make
make install
编译X264库:
./configure --prefix=$PWD/_install --enable-shared --enable-static
make install
编译FFMPEG库:(需要依赖X264库,自行修改路径)