Skip to content

Commit 44848b6

Browse files
committed
CI Linux FFmpeg: build own dav1d
current FFmpeg code requires dav1d >1.0.0 but in Ubuntu 22.04 is just 0.9.2
1 parent 762a2c2 commit 44848b6

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/scripts/Linux/download_build_ffmpeg.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ install_aom() {(
99
sudo cmake --install .
1010
)}
1111

12+
install_dav1d() {(
13+
git clone --depth 1 https://code.videolan.org/videolan/dav1d.git
14+
mkdir -p dav1d/build && cd dav1d/build
15+
meson ..
16+
ninja
17+
sudo ninja install
18+
)}
19+
1220
install_libvpx() {
1321
(
1422
git clone --depth 1 https://github.com/webmproject/libvpx.git
@@ -54,6 +62,7 @@ if [ "$(lsb_release -rs)" = 20.04 ]; then
5462
git am -3 "$GITHUB_WORKSPACE/.github/scripts/Linux/ffmpeg-patches/0001-removed-bits-incompatible-with-old-vaapi.patch-noauto"
5563
fi
5664
install_aom
65+
install_dav1d
5766
( 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 )
5867
install_libvpx
5968
install_nv_codec_headers

.github/scripts/Linux/install_ffmpeg.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cd /var/tmp/ffmpeg
55
( cd x264 && sudo make install )
66
( cd nv-codec-headers && sudo make install )
77
( cd aom/build && sudo cmake --install . )
8+
( cd dav1d/build && sudo ninja install )
89
sudo cmake --install SVT-AV1/Build
910
sudo cmake --install SVT-HEVC/Build/linux/Release
1011
sudo cmake --install SVT-VP9/Build

.github/scripts/Linux/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ sudo apt install $sdl2_mix_build_dep $sdl2_ttf_build_dep
3737
# for FFmpeg - libzmq3-dev needs to be ignored (cannot be installed, see run #380)
3838
ffmpeg_build_dep=$(get_build_deps_excl ffmpeg 'libzmq3-dev\|libsdl2-dev')
3939
# shellcheck disable=SC2086 # intentional
40-
sudo apt install $ffmpeg_build_dep libdav1d-dev libde265-dev
40+
sudo apt install $ffmpeg_build_dep libde265-dev meson
4141
sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx264*' nginx
4242
# own x264 build
4343
sudo apt --no-install-recommends install asciidoc xmlto

0 commit comments

Comments
 (0)