From f7679067f907ccae6618147cc2bf998d9db369ae Mon Sep 17 00:00:00 2001 From: use Date: Sat, 18 Nov 2023 23:53:31 -0800 Subject: [PATCH] Enable libsvtav1 --- build.sh | 5 +++-- deps/23_libsvtav1/build.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 deps/23_libsvtav1/build.sh diff --git a/build.sh b/build.sh index 300353b..9ebc4ee 100644 --- a/build.sh +++ b/build.sh @@ -35,10 +35,10 @@ make distclean --enable-libvpx \ --enable-libdrm \ --enable-libzimg \ + --enable-libsvtav1 \ --enable-gpl \ --enable-runtime-cpudetect \ - --cpu=native \ - --enable-libfdk-aac \ + --enable-libfdk_aac \ --enable-libx264 \ --enable-libx265 \ --enable-openssl \ @@ -47,6 +47,7 @@ make distclean --enable-libass \ --enable-libfreetype \ --enable-libsrt \ + --cpu=native \ --enable-nonfree # --disable-debug \ diff --git a/deps/23_libsvtav1/build.sh b/deps/23_libsvtav1/build.sh new file mode 100644 index 0000000..8659202 --- /dev/null +++ b/deps/23_libsvtav1/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg="SVT-AV1" +if ! [[ -d "$pkg" ]] +then + git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git +fi +cd "$pkg/Build" + +make clean +make distclean +cmake \ + -DCMAKE_BUILD_TYPE=Realease \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + .. -G"Unix Makefiles" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" +