@@ -294,11 +294,14 @@ if ! command_exists "curl"; then
294294fi
295295
296296if ! command_exists " cargo" ; then
297- echo " cargo not installed. rav1e will not be available."
297+ echo " cargo not installed. rav1e encoder will not be available."
298298fi
299299
300300if ! command_exists " python" ; then
301- echo " Python command not found. Lv2 filter will not be available."
301+ echo " python command not found. Lv2 filter will not be available."
302+ fi
303+ if ! command_exists " python3" ; then
304+ echo " python3 command not found. dav1d decoder will not be available."
302305fi
303306
304307# #
@@ -378,6 +381,7 @@ if command_exists "python"; then
378381 CFLAGS+=" -I$WORKSPACE /include/lilv-0"
379382
380383 CONFIGURE_OPTIONS+=(" --enable-lv2" )
384+
381385fi
382386
383387if build " yasm" " 1.3.0" ; then
@@ -461,6 +465,20 @@ if build "cmake" "3.21.0"; then
461465 build_done " cmake" " 3.21.0"
462466fi
463467
468+ if command_exists " python3" ; then
469+ if build " dav1d" " 0.9.2" ; then
470+ # dav1d needs meson and ninja with nasm to be built
471+ execute python3 -m pip install meson ninja --quiet --no-cache-dir --disable-pip-version-check
472+ download " https://code.videolan.org/videolan/dav1d/-/archive/0.9.2/dav1d-0.9.2.tar.gz"
473+ make_dir build
474+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
475+ execute ninja -C build
476+ execute ninja -C build install
477+ build_done " dav1d" " 0.9.2"
478+ fi
479+ CONFIGURE_OPTIONS+=(" --enable-libdav1d" )
480+ fi
481+
464482if ! $MACOS_M1 ; then
465483 if build " svtav1" " $( date) " ; then
466484 execute rm -f " ${PACKAGES} /SVT-AV1-master.tar.gz"
478496
479497if command_exists " cargo" ; then
480498 if build " rav1e" " 0.5.0-beta" ; then
481- cargo install cargo-c
499+ execute cargo install cargo-c
482500 download " https://github.com/xiph/rav1e/archive/refs/tags/v0.5.0-beta.tar.gz"
483501 execute cargo cinstall --prefix=" ${WORKSPACE} " --library-type=staticlib --crt-static --release
484502 build_done " rav1e" " 0.5.0-beta"
0 commit comments