Last active
September 28, 2023 00:58
-
-
Save pulsejet/4d81c1356703b2c8ba19c1ca9e6f6e50 to your computer and use it in GitHub Desktop.
Install QSV in debian docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ChildLearningClub if you're using docker, I recommend using an external transcoder. The Dockerfile for
go-vod
takes care of this issue directly.A
RUN
would create a separate layer IIRC. So all you need isENV DEBIAN_FRONTEND=noninteractive
before thecurl