From 277a7503f004281aa977649284fb9dfad44a22a6 Mon Sep 17 00:00:00 2001 From: Levon Date: Fri, 12 Jan 2024 09:53:45 -0600 Subject: [PATCH] build aom --- .gitignore | 1 + scripts/build.sh | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 11ff2b3..7cd7391 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ ffmpeg/ rav1e/ svt/ +aom/ benchmark/ \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh index 94ae86c..a6ff766 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,11 +4,13 @@ BASE_DIR=$(pwd) SVT_DIR="$BASE_DIR/svt" RAV1E_DIR="$BASE_DIR/rav1e" FFMPEG_DIR="$BASE_DIR/ffmpeg" +AOM_DIR="$BASE_DIR/aom" # clone git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" --depth 1 git clone https://github.com/xiph/rav1e "$RAV1E_DIR" --depth 1 git clone https://git.ffmpeg.org/ffmpeg.git "$FFMPEG_DIR" --depth 1 +git clone https://aomedia.googlesource.com/aom "$AOM_DIR" --depth 1 # build svt-av1 cd "$SVT_DIR/" || exit @@ -35,18 +37,27 @@ cd ffmpeg_build || exit sudo cp ./lib/* /usr/local/lib/ -r sudo cp ./include/* /usr/local/include/ -r -# build ffmpeg -cd "$FFMPEG_DIR/" || exit -export LD_LIBRARY_PATH+=":/usr/local/lib" -export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig" +# build aom +cd "$AOM_DIR/" || exit +git pull +mkdir build +cd build || exit make clean -./configure --enable-libsvtav1 --enable-librav1e +cmake .. -DCMAKE_BUILD_TYPE=Release make -j "$(nproc)" sudo make install echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf sudo ldconfig +# build ffmpeg +cd "$FFMPEG_DIR/" || exit +export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig" +make clean +./configure --enable-libsvtav1 --enable-librav1e --enable-libaom +make -j "$(nproc)" +sudo make install + hash -r source ~/.profile ffmpeg -encoders | grep "av1"