Add SVT-AV1
This commit is contained in:
parent
862b054c6e
commit
9c5be5dedd
1 changed files with 36 additions and 0 deletions
36
scripts.d/50-svtav1.sh
Executable file
36
scripts.d/50-svtav1.sh
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SVTAV1_REPO="https://github.com/OpenVisualCloud/SVT-AV1.git"
|
||||||
|
SVTAV1_COMMIT="e9ffb5ee0bdf74c5bb3d258aaf59b6b7a912c8bc"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerstage() {
|
||||||
|
to_df "ADD $SELF /stage.sh"
|
||||||
|
to_df "RUN run_stage"
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
git clone "$SVTAV1_REPO" svtav1
|
||||||
|
cd svtav1
|
||||||
|
git checkout "$SVTAV1_COMMIT"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_APPS=OFF ..
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
rm -rf svtav1
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libsvtav1
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-libsvtav1
|
||||||
|
}
|
Loading…
Reference in a new issue