Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cbb2d1c

Browse filesBrowse files
committed
Merge branch 'rokibhasansagar-libdav1d'
2 parents e24c341 + bc89c83 commit cbb2d1c
Copy full SHA for cbb2d1c

File tree

Expand file treeCollapse file tree

1 file changed

+21
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+21
-3
lines changed

‎build-ffmpeg

Copy file name to clipboardExpand all lines: build-ffmpeg
+21-3Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,14 @@ if ! command_exists "curl"; then
294294
fi
295295

296296
if ! 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."
298298
fi
299299

300300
if ! 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."
302305
fi
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+
381385
fi
382386

383387
if build "yasm" "1.3.0"; then
@@ -461,6 +465,20 @@ if build "cmake" "3.21.0"; then
461465
build_done "cmake" "3.21.0"
462466
fi
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+
464482
if ! $MACOS_M1; then
465483
if build "svtav1" "$(date)"; then
466484
execute rm -f "${PACKAGES}/SVT-AV1-master.tar.gz"
@@ -478,7 +496,7 @@ fi
478496

479497
if 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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.