Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional VVC program suits into autobuild media #2213

Merged
merged 13 commits into from
Jun 16, 2022
Merged
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ For information about the compiler environment see the wiki, there you also have
- svt-av1 (git)
- tesseract (git)
- uvg266 (git)
- vvenc & vvdec (git)
- vorbis-tools (git snapshot)
- vpx (VP8 and VP9 8, 10 and 12 bit) (git)
- vvc tools (git)
Expand Down
27 changes: 27 additions & 0 deletions build/media-suite_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ while true; do
--jpegxl=* ) jpegxl=${1#*=} && shift ;;
--vvc=* ) vvc=${1#*=} && shift ;;
--uvg266=* ) uvg266=${1#*=} && shift ;;
--vvenc=* ) vvenc=${1#*=} && shift ;;
--vvdec=* ) vvdec=${1#*=} && shift ;;
--jq=* ) jq=${1#*=} && shift ;;
--jo=* ) jo=${1#*=} && shift ;;
--dssim=* ) dssim=${1#*=} && shift ;;
Expand Down Expand Up @@ -1823,6 +1825,31 @@ if [[ $bits = 64bit && $uvg266 = y ]] &&
do_checkIfExist
fi

_check=(bin-video/vvenc{,FF}app.exe
vvenc/vvenc.h
libvvenc.{a,pc}
lib/cmake/vvenc/vvencConfig.cmake
libapputils.a)
if [[ $bits = 64bit && $vvenc = y ]] &&
do_vcs "https://github.com/fraunhoferhhi/vvenc.git"; then
do_uninstall include/vvenc lib/cmake/vvenc "${_check[@]}"
do_cmakeinstall video \
-DBUILD_STATIC=on
do_checkIfExist
fi

_check=(bin-video/vvdecapp.exe
vvdec/vvdec.h
libvvdec.{a,pc}
lib/cmake/vvdec/vvdecConfig.cmake)
if [[ $bits = 64bit && $vvdec = y ]] &&
do_vcs "https://github.com/fraunhoferhhi/vvdec.git"; then
do_uninstall include/vvdec lib/cmake/vvdec "${_check[@]}"
do_cmakeinstall video \
-DBUILD_STATIC=on
do_checkIfExist
fi

_check=(avisynth/avisynth{,_c}.h
avisynth/avs/{alignment,arch,capi,config,cpuid,minmax,posix,types,win,version}.h)
if [[ $ffmpeg != no ]] && enabled avisynth &&
Expand Down
49 changes: 45 additions & 4 deletions media-autobuild_suite.bat
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ set iniOptions=arch license2 vpx2 x2643 x2652 other265 flac fdkaac mediainfo ^
soxB ffmpegB2 ffmpegUpdate ffmpegChoice mp4box rtmpdump mplayer2 mpv cores deleteSource ^
strip pack logging bmx standalone updateSuite aom faac exhale ffmbc curl cyanrip2 ^
rav1e ripgrep dav1d libavif vvc uvg266 jq dssim avs2 timeStamp noMintty ccache ^
svthevc svtav1 svtvp9 xvc jo vlc CC jpegxl autouploadlogs
svthevc svtav1 svtvp9 xvc jo vlc CC jpegxl autouploadlogs vvenc vvdec

set deleteIni=0
set ini=%build%\media-autobuild_suite.ini
Expand Down Expand Up @@ -546,6 +546,46 @@ if %builduvg266%==2 set "uvg266=n"
if %builduvg266% GTR 2 GOTO uvg266
if %deleteINI%==1 echo.uvg266=^%builduvg266%>>%ini%

:vvenc
if %vvencINI%==0 (
echo -------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------
echo.
echo. Build vvenc? [Fraunhoferhhi Versatile Video Encoder]
echo. 1 = Yes
echo. 2 = No
echo.
echo -------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------
set /P buildvvenc="Build vvenc: "
) else set buildvvenc=%vvencINI%

if "%buildvvenc%"=="" GOTO vvenc
if %buildvvenc%==1 set "vvenc=y"
if %buildvvenc%==2 set "vvenc=n"
if %buildvvenc% GTR 2 GOTO vvenc
if %deleteINI%==1 echo.vvenc=^%buildvvenc%>>%ini%

:vvdec
if %vvdecINI%==0 (
echo -------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------
echo.
echo. Build vvdec? [Fraunhoferhhi Versatile Video Decoder]
echo. 1 = Yes
echo. 2 = No
echo.
echo -------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------
set /P buildvvdec="Build vvdec: "
) else set buildvvdec=%vvdecINI%

if "%buildvvdec%"=="" GOTO vvdec
if %buildvvdec%==1 set "vvdec=y"
if %buildvvdec%==2 set "vvdec=n"
if %buildvvdec% GTR 2 GOTO vvdec
if %deleteINI%==1 echo.vvdec=^%buildvvdec%>>%ini%

:svtav1
if %svtav1INI%==0 (
echo -------------------------------------------------------------------------------
Expand Down Expand Up @@ -1708,9 +1748,10 @@ set compileArgs=--cpuCount=%cpuCount% --build32=%build32% --build64=%build64% ^
--mpv=%mpv% --license=%license2% --stripping=%stripFile% --packing=%packFile% --rtmpdump=%rtmpdump% ^
--logging=%logging% --bmx=%bmx% --standalone=%standalone% --aom=%aom% --faac=%faac% --exhale=%exhale% ^
--ffmbc=%ffmbc% --curl=%curl% --cyanrip=%cyanrip% --rav1e=%rav1e% --ripgrep=%ripgrep% --dav1d=%dav1d% ^
--vvc=%vvc% --uvg266=%uvg266% --jq=%jq% --jo=%jo% --dssim=%dssim% --avs2=%avs2% --timeStamp=%timeStamp% ^
--noMintty=%noMintty% --ccache=%ccache% --svthevc=%svthevc% --svtav1=%svtav1% --svtvp9=%svtvp9% --xvc=%xvc% ^
--vlc=%vlc% --libavif=%libavif% --jpegxl=%jpegxl% --autouploadlogs=%autouploadlogs%
--vvc=%vvc% --uvg266=%uvg266% --vvenc=%vvenc% --vvdec=%vvdec% --jq=%jq% --jo=%jo% --dssim=%dssim% ^
--avs2=%avs2% --timeStamp=%timeStamp% --noMintty=%noMintty% --ccache=%ccache% --svthevc=%svthevc% ^
--svtav1=%svtav1% --svtvp9=%svtvp9% --xvc=%xvc% --vlc=%vlc% --libavif=%libavif% --jpegxl=%jpegxl% ^
--autouploadlogs=%autouploadlogs%
set "noMintty=%noMintty%"
if %build64%==yes ( set "MSYSTEM=MINGW64" ) else set "MSYSTEM=MINGW32"
set "MSYS2_PATH_TYPE=inherit"
Expand Down