From 94a54724c6815556f6ee3b29400930dc03a1141e Mon Sep 17 00:00:00 2001 From: Levon Date: Fri, 17 May 2024 07:57:13 -0500 Subject: [PATCH] building all --- .gitignore | 2 +- scripts/build.sh | 20 ++++++++++++++------ scripts/refresh_build.sh | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 494dd7a..f329ece 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,4 @@ rkrga x264 x265* vpx - +.last_opts diff --git a/scripts/build.sh b/scripts/build.sh index 2dfbba5..1789a71 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -64,19 +64,17 @@ X264_DIR="$BASE_DIR/x264" X265_DIR="$BASE_DIR/x265" VPX_DIR="$BASE_DIR/vpx" +# save options use +echo "$@" > "$BASE_DIR/.last_opts" + # clone git clone --depth 1 https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" -git clone --depth 1 https://github.com/quietvoid/dovi_tool "$DOVI_DIR" -git clone --depth 1 https://github.com/gianni-rosato/svt-av1-psy "$SVT_PSY_DIR" git clone --depth 1 https://github.com/xiph/rav1e "$RAV1E_DIR" git clone --depth 1 https://aomedia.googlesource.com/aom "$AOM_DIR" git clone --depth 1 https://github.com/Netflix/vmaf "$VMAF_DIR" git clone --depth 1 https://code.videolan.org/videolan/dav1d.git "$DAV1D_DIR" git clone --depth 1 https://github.com/xiph/opus.git "$OPUS_DIR" git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git "$FFMPEG_DIR" -git clone --depth 1 https://code.videolan.org/videolan/x264.git "$X264_DIR" -git clone --depth 1 https://bitbucket.org/multicoreware/x265_git.git "$X265_DIR" -git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git "$VPX_DIR" export ARCH=$(uname -m) export COMP_FLAGS="" @@ -138,6 +136,10 @@ fi if [[ "$BUILD_PSY" == "true" ]]; then + # clone svt specific repos + git clone --depth 1 https://github.com/quietvoid/dovi_tool "$DOVI_DIR" + git clone --depth 1 https://github.com/gianni-rosato/svt-av1-psy "$SVT_PSY_DIR" + # build dovi_tool cd "$DOVI_DIR/" || exit update_git @@ -252,7 +254,13 @@ sudo make install || exit unset CFLAGS if [[ "$BUILD_OTHERS" == "true" ]]; then - FFMPEG_OTHERS="--enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx" + + # clone other encoder specific repos + git clone --depth 1 https://code.videolan.org/videolan/x264.git "$X264_DIR" + git clone --depth 1 https://bitbucket.org/multicoreware/x265_git.git "$X265_DIR" + git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git "$VPX_DIR" + + FFMPEG_OTHERS="--enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx" # build x264 cd "$X264_DIR" || exit diff --git a/scripts/refresh_build.sh b/scripts/refresh_build.sh index eb1895f..4a9270b 100755 --- a/scripts/refresh_build.sh +++ b/scripts/refresh_build.sh @@ -2,4 +2,4 @@ git pull bash ./scripts/install_deps.sh || exit 1 -bash ./scripts/build.sh || exit 1 +bash ./scripts/build.sh $(cat .last_opts) || exit 1