This commit is contained in:
2024-02-03 20:18:58 -06:00
parent b4247001a2
commit a58ab1feeb
2 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@@ -4,4 +4,5 @@ svt
aom aom
vmaf vmaf
dav1d dav1d
opus
benchmark benchmark

View File

@@ -7,6 +7,7 @@ FFMPEG_DIR="$BASE_DIR/ffmpeg"
AOM_DIR="$BASE_DIR/aom" AOM_DIR="$BASE_DIR/aom"
VMAF_DIR="$BASE_DIR/vmaf" VMAF_DIR="$BASE_DIR/vmaf"
DAV1D_DIR="$BASE_DIR/dav1d" DAV1D_DIR="$BASE_DIR/dav1d"
OPUS_DIR="$BASE_DIR/opus"
# clone # clone
git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" --depth 1 git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" --depth 1
@@ -15,6 +16,7 @@ git clone https://git.ffmpeg.org/ffmpeg.git "$FFMPEG_DIR" --depth 1
git clone https://aomedia.googlesource.com/aom "$AOM_DIR" --depth 1 git clone https://aomedia.googlesource.com/aom "$AOM_DIR" --depth 1
git clone https://github.com/Netflix/vmaf "$VMAF_DIR" --depth 1 git clone https://github.com/Netflix/vmaf "$VMAF_DIR" --depth 1
git clone https://code.videolan.org/videolan/dav1d.git "$DAV1D_DIR" --depth 1 git clone https://code.videolan.org/videolan/dav1d.git "$DAV1D_DIR" --depth 1
git clone git clone https://gitlab.xiph.org/xiph/opus.git "$OPUS_DIR" --depth 1
# build svt-av1 # build svt-av1
cd "$SVT_DIR/" || exit cd "$SVT_DIR/" || exit
@@ -70,6 +72,14 @@ meson setup ../ build --buildtype release || exit
ninja -vC build || exit ninja -vC build || exit
sudo ninja -vC build install || exit sudo ninja -vC build install || exit
# build opus
cd "$OPUS_DIR" || exit
git pull
./autogen.sh || exit
./configure || exit
make -j "$(nproc)" || exit
sudo make install || exit
# ldconfig for shared libs # ldconfig for shared libs
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf
sudo ldconfig sudo ldconfig
@@ -80,7 +90,8 @@ git pull
export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig" export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig"
make clean make clean
./configure --enable-libsvtav1 --enable-librav1e \ ./configure --enable-libsvtav1 --enable-librav1e \
--enable-libaom --enable-libvmaf --enable-libdav1d || exit --enable-libaom --enable-libvmaf \
--enable-libdav1d --enable-libopus || exit
make -j "$(nproc)" || exit make -j "$(nproc)" || exit
sudo make install || exit sudo make install || exit