mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 22:40:18 +00:00
GitHub CI [Linux, FFmpeg]: build rav1e
+ do not use yasm for SVT - nasm-mozilla (nasm 2.14) installed in this commit is sufficient
This commit is contained in:
@@ -11,7 +11,6 @@ install_libvpx() {
|
||||
}
|
||||
|
||||
install_svt() {
|
||||
sudo apt install yasm
|
||||
( git clone --depth 1 https://github.com/OpenVisualCloud/SVT-HEVC && cd SVT-HEVC/Build/linux && ./build.sh release && cd Release && make -j $(nproc) && sudo make install || exit 1 )
|
||||
( git clone --depth 1 https://github.com/OpenVisualCloud/SVT-AV1 && cd SVT-AV1 && cd Build && cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && make -j $(nproc) && sudo make install || exit 1 )
|
||||
( git clone --depth 1 https://github.com/OpenVisualCloud/SVT-VP9.git && cd SVT-VP9/Build && cmake .. -DCMAKE_BUILD_TYPE=Release && make -j $(nproc) && sudo make install || exit 1 )
|
||||
@@ -38,6 +37,7 @@ for n in $GITHUB_WORKSPACE/.github/scripts/Linux/ffmpeg-patches/*patch; do
|
||||
git apply $n
|
||||
done
|
||||
./configure --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libopus --enable-nonfree --enable-nvenc --enable-libaom --enable-libvpx --enable-libspeex --enable-libmp3lame --enable-libsvthevc --enable-libsvtav1 \
|
||||
--enable-librav1e \
|
||||
--enable-libsvtvp9 \
|
||||
|
||||
make -j $(nproc)
|
||||
|
||||
10
.github/scripts/Linux/prepare.sh
vendored
10
.github/scripts/Linux/prepare.sh
vendored
@@ -28,10 +28,20 @@ sudo apt install libspeexdsp-dev
|
||||
sudo apt install libssl-dev
|
||||
sudo apt install libasound-dev libjack-jackd2-dev libnatpmp-dev libv4l-dev portaudio19-dev
|
||||
|
||||
# updates nasm 2.13->2.14 in U18.04 (needed for rav1e)
|
||||
update_nasm() {
|
||||
if [ -z "$(apt-cache search --names-only '^nasm-mozilla$')" ]; then
|
||||
return
|
||||
fi
|
||||
sudo apt install nasm- nasm-mozilla
|
||||
sudo ln -s /usr/lib/nasm-mozilla/bin/nasm /usr/bin/nasm
|
||||
}
|
||||
|
||||
# for FFmpeg - libzmq3-dev needs to be ignored (cannot be installed, see run #380)
|
||||
FFMPEG_BUILD_DEP=`apt-cache showsrc ffmpeg | grep Build-Depends: | sed 's/Build-Depends://' | tr ',' '\n' |cut -f 2 -d\ | grep -v libzmq3-dev`
|
||||
sudo apt install $FFMPEG_BUILD_DEP
|
||||
sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx264*' nginx
|
||||
update_nasm
|
||||
sudo apt --no-install-recommends install asciidoc xmlto
|
||||
|
||||
sudo apt install libopencv-dev
|
||||
|
||||
10
.github/scripts/Linux/rav1e.sh
vendored
Executable file
10
.github/scripts/Linux/rav1e.sh
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh -eux
|
||||
#
|
||||
# Builds rav1e but doesn't install it
|
||||
|
||||
cargo install cargo-c
|
||||
git clone --depth 1 https://github.com/xiph/rav1e.git
|
||||
cd rav1e
|
||||
cargo build --release
|
||||
cargo cinstall --release --destdir=install
|
||||
|
||||
Reference in New Issue
Block a user