VVCEasy/FFMPEGMINGW.sh

24 lines
1.0 KiB
Bash
Raw Normal View History

2022-06-15 13:44:48 +02:00
echo Starting process of FFmpeg build with libvvenc and libvvdec...
mkdir buildffmpegwin && cd buildffmpegwin
2022-08-10 06:12:00 +02:00
git clone --depth=10 https://github.com/tbiat/FFmpeg
2022-06-15 13:44:48 +02:00
git clone --depth=1 https://github.com/fraunhoferhhi/vvenc
2022-08-10 06:12:00 +02:00
git clone --depth=1 https://github.com/fraunhoferhhi/vvdec
2022-06-15 13:44:48 +02:00
echo Starting to build vvenc...
cd vvenc
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. -G "MinGW Makefiles"
2022-08-10 06:08:30 +02:00
cmake --build . --config Release --target install -j $nproc
2022-06-15 13:44:48 +02:00
cd ../../
cd vvdec
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. -G "MinGW Makefiles"
2022-08-10 06:08:30 +02:00
cmake --build . --config Release --target install -j $nproc
2022-06-15 13:44:48 +02:00
cd ../../
cd FFmpeg
2022-08-10 06:08:30 +02:00
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure --enable-libfdk-aac --enable-static --enable-libvvenc --enable-libvvdec --enable-pic \
--enable-zlib --enable-libxml2 --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static \
--pkg-config-flags=-static --disable-w32threads && \
2022-06-15 13:44:48 +02:00
make -j
echo FFmpeg VVC version tools are now compiled, please see buildffmpegwin/FFmpeg folder.