Skip to content

Commit bfe2ee4

Browse files
committed
CI Linux FFmpeg: add openVPL
refer to GH-270
1 parent 5afbd5c commit bfe2ee4

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/scripts/Linux/download_build_ffmpeg.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,23 @@ install_nv_codec_headers() {
2727
( cd nv-codec-headers && make && sudo make install || exit 1 )
2828
}
2929

30+
install_onevpl() {(
31+
git clone --depth 1 https://github.com/oneapi-src/oneVPL
32+
mkdir oneVPL/build
33+
cd oneVPL/build
34+
cmake ..
35+
cmake --build . --config Release --parallel
36+
sudo cmake --build . --config Release --target install
37+
)}
38+
3039
rm -rf /var/tmp/ffmpeg
3140
git clone --depth $FFMPEG_GIT_DEPTH https://git.ffmpeg.org/ffmpeg.git /var/tmp/ffmpeg
3241
cd /var/tmp/ffmpeg
3342
( git clone --depth 1 http://git.videolan.org/git/x264.git && cd x264 && ./configure --disable-static --enable-shared && make -j "$(nproc)" && sudo make install || exit 1 )
3443
( 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 )
3544
install_libvpx
3645
install_nv_codec_headers
46+
install_onevpl
3747
install_svt
3848
# apply patches
3949
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
4454
--enable-libsvtav1 \
4555
--enable-libsvthevc \
4656
--enable-libsvtvp9 \
57+
--enable-libvpl \
4758
--disable-sdl2 \
4859

4960
make -j "$(nproc)"

.github/scripts/Linux/install_ffmpeg.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cd /var/tmp/ffmpeg
88
sudo cmake --install SVT-AV1/Build
99
sudo cmake --install SVT-HEVC/Build/linux/Release
1010
sudo cmake --install SVT-VP9/Build
11+
sudo cmake --build oneVPL/build --config Release --target install
1112

1213
sudo make install
1314
sudo ldconfig

.github/scripts/Linux/prepare.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx
4646
update_nasm
4747
# own x264 build
4848
sudo apt --no-install-recommends install asciidoc xmlto
49+
# openVPL
50+
sudo apt install libva-dev libdrm-dev libx11-dev libx11-xcb-dev libxcb-present-dev libxcb-dri3-dev
51+
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
52+
sudo dpkg -i wayland-protocols_*_all.deb
4953

5054
sudo apt install qtbase5-dev
5155

0 commit comments

Comments
 (0)