The SVT-AV1 package contains an AV1 encoder.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v3.1.2/SVT-AV1-v3.1.2.tar.gz
Download SHA256 Sum: d0d73bfea42fdcc1222272bf2b0e2319e9df5574721298090c3d28315586ecb1
Download MD5 sum: 77b9d52e8c26bacf8bca742f8448dbc1
Download size: 35,221.2 KB
Estimated disk space required: 69,480.9 KB
Estimated build time: 1.48 SBU (add 40.9 SBU for tests)
"valgrind"
Prepare SVT-AV1 by running the following commands:
cmake -B build -W no-dev -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_INSTALL_RPATH=ON \
-D BUILD_SHARED_LIBS=ONninja -C build
The test suite is very long and doesn't provide meaningful results. If you want to test the results anyway, issue:
cmake -B build -D BUILD_TESTING=ON ninja -C build ninja -C build TestVectors SVT_AV1_TEST_VECTOR_PATH=$PWD/../test/vectors \ ctest -V -O testlog.txt --timeout 10800
On a relatively slow system it's needed to increase the timeout (see
the SBU value for tests on top of the page). In the SvtAv1ApiTests
test, 12 run_paramter_check subtests
are known to fail.
The test harness will download a copy of libaom (even if
libaom-3.13.1 is already installed the test harness is still
incapable to use the system installation) and some videos as test
inputs.
Now Install the package, as the root user:
ninja -C build install
-D BUILD_SHARED_LIBS=ON: This parameter forces
building shared versions of the libraries.
-D CMAKE_SKIP_INSTALL_RPATH=ON: This switch
makes cmake remove hardcoded library search paths
(rpath) when installing a binary executable file or a shared library.
This package does not need rpath once it's installed into the standard
location, and rpath may sometimes cause unwanted effects or even
security issues.
-D BUILD_TESTING=ON: This option enables building the
unit tests.