mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 15:40:14 +00:00
CI Linux FFmpeg: add openVPL
refer to GH-270
This commit is contained in:
11
.github/scripts/Linux/download_build_ffmpeg.sh
vendored
11
.github/scripts/Linux/download_build_ffmpeg.sh
vendored
@@ -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)"
|
||||
|
||||
1
.github/scripts/Linux/install_ffmpeg.sh
vendored
1
.github/scripts/Linux/install_ffmpeg.sh
vendored
@@ -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
|
||||
|
||||
4
.github/scripts/Linux/prepare.sh
vendored
4
.github/scripts/Linux/prepare.sh
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user