fix cd, improve windows build script of ffmpeg vvc

This commit is contained in:
Martin Eesmaa 2022-09-23 21:17:10 +10:00 committed by GitHub
parent e44fe0a907
commit 826f9ecd76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@ echo Updating & upgrading MSYS2 packages... (if system core update requires rebo
pacman -Syu pacman -Syu
pacman -Su pacman -Su
echo Installing MSYS2 packages... echo Installing MSYS2 packages...
pacman -S python nasm $MINGW_PACKAGE_PREFIX-{toolchain,cmake,autotools} pacman -S python nasm $MINGW_PACKAGE_PREFIX-{toolchain,cmake,autotools,meson,ninja}
echo Starting process of FFmpeg build with libvvenc and libvvdec... echo Starting process of FFmpeg build with libvvenc and libvvdec...
mkdir buildffmpegwin && cd buildffmpegwin mkdir buildffmpegwin && cd buildffmpegwin
git clone --depth=1 https://github.com/MartinEesmaa/FFmpeg-FixVVC git clone --depth=1 https://github.com/MartinEesmaa/FFmpeg-FixVVC
@ -12,22 +12,36 @@ git clone --depth=1 https://github.com/mstorsjo/fdk-aac
git clone --depth=1 https://github.com/libsdl-org/SDL git clone --depth=1 https://github.com/libsdl-org/SDL
git clone --depth=1 https://github.com/gnome/libxml2 git clone --depth=1 https://github.com/gnome/libxml2
git clone --depth=1 https://github.com/xiph/opus git clone --depth=1 https://github.com/xiph/opus
git clone --depth=1 https://code.videolan.org/videolan/dav1d
git clone --depth=1 https://github.com/Netflix/vmaf
echo Starting to build fdk-aac: echo Starting to build fdk-aac:
cd fdk-aac cd fdk-aac
autoreconf -if && ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc autoreconf -if && ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc
cd ..
echo Starting to build libxml2: echo Starting to build libxml2:
cd libxml2 cd libxml2
autoreconf -if && ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc autoreconf -if && ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc
cd ..
echo Starting to build sdl2: echo Starting to build sdl2:
cd SDL cd SDL
./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc
cd ..
echo Starting to build libopus to improve decode quality on FFmpeg: echo Starting to build libopus to improve decode quality on FFmpeg:
cd opus cd opus
CFLAGS="-O2 -D_FORTIFY_SOURCE=0" LDFLAGS="-flto -s" ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc CFLAGS="-O2 -D_FORTIFY_SOURCE=0" LDFLAGS="-flto -s" ./configure --enable-static --disable-shared --prefix=$MSYSTEM_PREFIX && make install -j $nproc
cd ..
echo Starting to build dav1d:
mkdir dav1d/build && cd dav1d/build && meson -Denable_docs=false -Ddefault_library=static -Dprefix=$MSYSTEM_PREFIX && ninja install
cd ../../
echo Starting to build vmaf to apply calculate VVC video references from original video:
mkdir vmaf/libvmaf/build && cd vmaf/libvmaf/build && -Denable_docs=false -Ddefault_library=static -Dprefix=$MSYSTEM_PREFIX && ninja install
cd ../../../
echo Starting to build vvenc & vvdec... echo Starting to build vvenc & vvdec...
cd vvenc cd vvenc