Here is the one-stop manual. For more details (or latest information), please check https://code.videolan.org/videolan/dav1d.
dav1d relies on meson build system (and ninja), so meson installation is required. It might be best to see https://mesonbuild.com/ to know how to do it, but here are the steps:
- Run
$ sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build
- Run
$ pip3 install meson
(as root)- This is the best way to get the latest version of Mesonbuild. Due to our frequent release cycle and development speed, distro packaged software may quickly become outdated.
git clone
the dav1d repo:$ git clone https://code.videolan.org/videolan/dav1d.git
- Go to the cloned repo:
$ cd dav1d
- Create a
build
folder:$ mkdir build
- (optional) Download test data:
$ git clone https://code.videolan.org/videolan/dav1d-test-data.git tests/dav1d-test-data
- Configure meson by
$ meson setup build
or$ meson setup build -Dtestdata_tests=true
if above step is executed - Go to the
build
folder:$ cd build
- Compile dav1d by ninja:
$ ninja
- (optional) Run test:
$ meson test -v
- (optional) Install dav1d:
$ ninja install
- The dav1d will be installed to the
libdir
folder specified in<path>/<to>/dav1d/build/meson-private/dav1d.pc
- The dav1d will be installed to the