Skip to content

Instantly share code, notes, and snippets.

@pulsejet
Last active September 28, 2023 00:58
Show Gist options
  • Save pulsejet/4d81c1356703b2c8ba19c1ca9e6f6e50 to your computer and use it in GitHub Desktop.
Save pulsejet/4d81c1356703b2c8ba19c1ca9e6f6e50 to your computer and use it in GitHub Desktop.
Install QSV in debian docker
#!/bin/bash
sudo apt-get update
sudo apt-get remove -y libva ffmpeg
sudo apt-get install -y \
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 \
vim cmake git nasm build-essential
mkdir qsvbuild
cd qsvbuild
git clone --depth 1 --branch 2.17.0 https://github.com/intel/libva
cd libva
./autogen.sh
make
sudo make install
sudo ldconfig
cd ..
git clone --depth 1 --branch intel-gmmlib-22.3.4 https://github.com/intel/gmmlib
cd gmmlib
mkdir build && cd build
cmake ..
make -j"$(nproc)"
sudo make install
sudo ldconfig
cd ../..
git clone --depth 1 --branch intel-media-22.6.6 https://github.com/intel/media-driver
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
./configure --enable-nonfree
make -j"$(nproc)"
sudo make install
sudo ldconfig
cd ..
cd ..
rm -rf qsvbuild
rm -rf /var/lib/apt/lists/*
@ChildLearningClub
Copy link

okay, thank you @pulsejet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment