Ubuntu20.04上安装QSV+FFMPEG
时间: 2023-12-10 11:04:59 浏览: 212
以下是在Ubuntu 20.04上安装QSV FFMPEG的步骤:
1. 安装依赖项:
```
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential cmake git libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget yasm zlib1g-dev
```
2. 安装Intel Media SDK:
从Intel官网下载最新的Media SDK,并执行以下命令进行安装:
```
tar -xvf mediasdk.tar.gz
cd mediasdk
sudo ./install.sh
```
3. 下载QSV FFMPEG:
```
git clone https://github.com/Intel-Media-SDK/ffmpeg-qsv.git
cd ffmpeg-qsv
```
4. 配置FFMPEG:
```
./configure --enable-libmfx --enable-gpl --enable-libx264 --enable-nonfree --extra-libs="-lpthread -lm" --enable-shared
```
5. 编译并安装FFMPEG:
```
make -j$(nproc)
sudo make install
```
6. 验证QSV FFMPEG是否正确安装:
```
ffmpeg -encoders | grep qsv
```
如果出现以下输出,则表示已成功安装QSV FFMPEG:
```
V..... h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
V..... hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc)
V..... mjpeg_qsv MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)
V..... mpeg2_qsv MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)
V..... vc1_qsv SMPTE VC-1 video (Intel Quick Sync Video acceleration) (codec vc1)
```
阅读全文