File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff 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+
3039rm -rf /var/tmp/ffmpeg
3140git clone --depth $FFMPEG_GIT_DEPTH https://git.ffmpeg.org/ffmpeg.git /var/tmp/ffmpeg
3241cd /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 )
3544install_libvpx
3645install_nv_codec_headers
46+ install_onevpl
3747install_svt
3848# apply patches
3949find " $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
4960make -j " $( nproc) "
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ cd /var/tmp/ffmpeg
88sudo cmake --install SVT-AV1/Build
99sudo cmake --install SVT-HEVC/Build/linux/Release
1010sudo cmake --install SVT-VP9/Build
11+ sudo cmake --build oneVPL/build --config Release --target install
1112
1213sudo make install
1314sudo ldconfig
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx
4646update_nasm
4747# own x264 build
4848sudo 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
5054sudo apt install qtbase5-dev
5155
You can’t perform that action at this time.
0 commit comments