2023-03-17 17:41:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-04-12 20:20:57 +00:00
|
|
|
set -e
|
|
|
|
|
2023-06-04 18:25:55 +00:00
|
|
|
# apt-get remove -y libva ffmpeg # not needed for Docker
|
|
|
|
|
2023-03-17 17:41:09 +00:00
|
|
|
apt-get update
|
|
|
|
apt-get install -y \
|
|
|
|
sudo curl wget \
|
|
|
|
autoconf libtool libdrm-dev xorg xorg-dev openbox \
|
|
|
|
libx11-dev libgl1-mesa-glx libgl1-mesa-dev \
|
|
|
|
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev \
|
|
|
|
libxkbcommon-x11-dev libxcb-dri3-dev \
|
2023-04-12 20:20:57 +00:00
|
|
|
cmake git nasm build-essential \
|
|
|
|
libx264-dev
|
2023-03-17 17:41:09 +00:00
|
|
|
|
|
|
|
mkdir qsvbuild
|
|
|
|
cd qsvbuild
|
|
|
|
|
2023-04-12 20:20:57 +00:00
|
|
|
git clone --depth 1 --branch 2.18.0 https://github.com/intel/libva
|
2023-03-17 17:41:09 +00:00
|
|
|
cd libva
|
|
|
|
./autogen.sh
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
cd ..
|
|
|
|
|
2023-04-12 20:20:57 +00:00
|
|
|
git clone --depth 1 --branch intel-gmmlib-22.3.5 https://github.com/intel/gmmlib
|
2023-03-17 17:41:09 +00:00
|
|
|
cd gmmlib
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
make -j"$(nproc)"
|
|
|
|
sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
cd ../..
|
|
|
|
|
2023-04-12 20:20:57 +00:00
|
|
|
git clone --depth 1 --branch intel-media-23.1.6 https://github.com/intel/media-driver
|
2023-03-17 17:41:09 +00:00
|
|
|
mkdir -p build_media
|
|
|
|
cd build_media
|
|
|
|
cmake ../media-driver
|
|
|
|
make -j"$(nproc)"
|
|
|
|
sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
git clone --depth 1 --branch n6.0 https://github.com/FFmpeg/FFmpeg
|
|
|
|
cd FFmpeg
|
2023-04-12 20:20:57 +00:00
|
|
|
./configure \
|
|
|
|
--enable-nonfree \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-libx264
|
|
|
|
|
2023-03-17 17:41:09 +00:00
|
|
|
make -j"$(nproc)"
|
|
|
|
sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -rf qsvbuild
|
|
|
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|