From 9f6fc10e51013908b323fdacf6f7e241d66a9744 Mon Sep 17 00:00:00 2001 From: use Date: Sun, 19 Nov 2023 04:37:49 -0800 Subject: [PATCH] Added dav1d support --- build.sh | 1 + deps/24_libdav1d/build.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 deps/24_libdav1d/build.sh diff --git a/build.sh b/build.sh index 9ebc4ee..19baa8d 100644 --- a/build.sh +++ b/build.sh @@ -36,6 +36,7 @@ make distclean --enable-libdrm \ --enable-libzimg \ --enable-libsvtav1 \ + --enable-libdav1d \ --enable-gpl \ --enable-runtime-cpudetect \ --enable-libfdk_aac \ diff --git a/deps/24_libdav1d/build.sh b/deps/24_libdav1d/build.sh new file mode 100644 index 0000000..f5629fe --- /dev/null +++ b/deps/24_libdav1d/build.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=dav1d +if ! [[ -d "$pkg" ]] +then + git clone https://code.videolan.org/videolan/dav1d.git +fi +mkdir -p build +cd "$pkg" + +meson ../build/ +meson configure ../build/ -Dprefix=/app/ffmpeg/install/ +cd ../ + +if ninja -C build/ install +then + make install + cd "$curDir" + rm -rf "$pkg" "build" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" +