### 1.python环境配置

- Linux.

- Python 3.7, 3.8, 3.9

- (**推荐**) Upgrade pip

  ```shell
  python3 -m pip install --upgrade pip #--user
  ```

### 2.ffmpeg安装

[安装教程](https://developer.aliyun.com/article/947856)

[官网下载地址](http://ffmpeg.org/download.html#releases)

[官网文档](https://ffmpeg.org/doxygen/4.1/group__lavc__packet.html)

#### 2.1.下载ffmpeg官方库

```shell
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
```

#### 2.2.安装ffmpeg

```shell
./configure --prefix=/usr --disable-yasm --enable-shared 
make -j8
make install
```

安装完成后，如果编译时找不到库，需要设置下PKG_CONFIG_PATH

```shell
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
```

### 3.其他依赖环境

……
