Files
UltraGrid/.github/scripts/Linux/ffmpeg_deps.sh
Martin Pulec dae8192c4d CI Linux: build own SDL2
This fixed crashing on Wayland (only - Weston without XWayland) in both U20.04 and
U22.04.
2022-10-24 15:06:23 +02:00

24 lines
800 B
Bash
Executable File

#!/bin/sh -eux
#
## Installs common FFmpeg build and runtime (for FFmpeg cache restore) dependencies.
sudo add-apt-repository ppa:savoury1/vlc3 # new x265
# 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)
sudo aptitude -y build-dep ffmpeg libsdl2-dev: libzmq3-dev:
sudo apt install libdav1d-dev
sudo apt-get -y remove 'libavcodec*' 'libavutil*' 'libswscale*' libvpx-dev 'libx264*' nginx
update_nasm
# own x264 build
sudo apt --no-install-recommends install asciidoc xmlto