-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libvvenc VVC encoding support of FFmpeg
Only master version of FFmpeg supports VVC encoding via external feature libvvenc. Later we still wait for next new FFmpeg release version to be released. Fix the flags, disabled FFmpeg old versions than 7.0 & removed empty lines - Martin Eesmaa
- Loading branch information
1 parent
18e2e53
commit 62f89cd
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_REPO="https://github.com/fraunhoferhhi/vvenc.git" | ||
|
||
ffbuild_enabled() { | ||
[[ $ADDINS_STR == *4.4* ]] && return -1 | ||
[[ $ADDINS_STR == *5.0* ]] && return -1 | ||
[[ $ADDINS_STR == *5.1* ]] && return -1 | ||
[[ $ADDINS_STR == *6.0* ]] && return -1 | ||
[[ $ADDINS_STR == *6.1* ]] && return -1 | ||
[[ $ADDINS_STR == *7.0* ]] && return -1 | ||
return 0 | ||
} | ||
|
||
ffbuild_dockerbuild() { | ||
mkdir build && cd build | ||
|
||
local fixarm64="" | ||
if [[ $TARGET == *arm64 ]]; then | ||
fixarm64 = "-DVVENC_ENABLE_X86_SIMD=OFF -DVVENC_ENABLE_ARM_SIMD=OFF" | ||
fi | ||
|
||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" $fixarm64 .. | ||
make -j$(nproc) | ||
make install | ||
} | ||
|
||
ffbuild_configure() { | ||
[[ $ADDINS_STR == *4.4* ]] && return 0 | ||
[[ $ADDINS_STR == *5.0* ]] && return 0 | ||
[[ $ADDINS_STR == *5.1* ]] && return 0 | ||
[[ $ADDINS_STR == *6.0* ]] && return 0 | ||
[[ $ADDINS_STR == *6.1* ]] && return 0 | ||
[[ $ADDINS_STR == *7.0* ]] && return 0 | ||
echo --enable-libvvenc | ||
} | ||
|
||
ffbuild_unconfigure() { | ||
[[ $ADDINS_STR == *4.4* ]] && return 0 | ||
[[ $ADDINS_STR == *5.0* ]] && return 0 | ||
[[ $ADDINS_STR == *5.1* ]] && return 0 | ||
[[ $ADDINS_STR == *6.0* ]] && return 0 | ||
[[ $ADDINS_STR == *6.1* ]] && return 0 | ||
[[ $ADDINS_STR == *7.0* ]] && return 0 | ||
echo --disable-libvvenc | ||
} |