CI Linux FFmpeg: add openVPL

refer to GH-270
This commit is contained in:
Martin Pulec
2022-12-09 09:18:26 +01:00
parent 5afbd5c1ef
commit bfe2ee4255
3 changed files with 16 additions and 0 deletions

View File

@@ -27,6 +27,15 @@ install_nv_codec_headers() {
( cd nv-codec-headers && make && sudo make install || exit 1 )
}
install_onevpl() {(
git clone --depth 1 https://github.com/oneapi-src/oneVPL
mkdir oneVPL/build
cd oneVPL/build
cmake ..
cmake --build . --config Release --parallel
sudo cmake --build . --config Release --target install
)}
rm -rf /var/tmp/ffmpeg
git clone --depth $FFMPEG_GIT_DEPTH https://git.ffmpeg.org/ffmpeg.git /var/tmp/ffmpeg
cd /var/tmp/ffmpeg
@@ -34,6 +43,7 @@ cd /var/tmp/ffmpeg
( git clone --depth 1 https://aomedia.googlesource.com/aom && mkdir -p aom/build && cd aom/build && cmake -DBUILD_SHARED_LIBS=1 .. && cmake --build . --parallel && sudo cmake --install . || exit 1 )
install_libvpx
install_nv_codec_headers
install_onevpl
install_svt
# apply patches
find "$GITHUB_WORKSPACE/.github/scripts/Linux/ffmpeg-patches" -name '*.patch' -print0 | sort -z | xargs -0 -n 1 git apply
@@ -44,6 +54,7 @@ find "$GITHUB_WORKSPACE/.github/scripts/Linux/ffmpeg-patches" -name '*.patch' -p
--enable-libsvtav1 \
--enable-libsvthevc \
--enable-libsvtvp9 \
--enable-libvpl \
--disable-sdl2 \
make -j "$(nproc)"

View File

@@ -8,6 +8,7 @@ cd /var/tmp/ffmpeg
sudo cmake --install SVT-AV1/Build
sudo cmake --install SVT-HEVC/Build/linux/Release
sudo cmake --install SVT-VP9/Build
sudo cmake --build oneVPL/build --config Release --target install
sudo make install
sudo ldconfig

View File

@@ -46,6 +46,10 @@ sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx
update_nasm
# own x264 build
sudo apt --no-install-recommends install asciidoc xmlto
# openVPL
sudo apt install libva-dev libdrm-dev libx11-dev libx11-xcb-dev libxcb-present-dev libxcb-dri3-dev
sudo curl -LO http://azure.archive.ubuntu.com/ubuntu/pool/main/w/wayland-protocols/wayland-protocols_1.20-1_all.deb # at least 1.15 is needed
sudo dpkg -i wayland-protocols_*_all.deb
sudo apt install qtbase5-dev