# How to install dav1d Here is the one-stop manual. For more details (or latest information), please check https://code.videolan.org/videolan/dav1d. ## Prerequirement *dav1d* relies on [*meson*](https://mesonbuild.com/) build system (and [*ninja*](https://ninja-build.org/)), 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: 1. Run `$ sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build` 2. 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. ## dav1d installation 1. `git clone` the *dav1d* repo: `$ git clone https://code.videolan.org/videolan/dav1d.git` 2. Go to the cloned repo: `$ cd dav1d` 3. Create a `build` folder: `$ mkdir build` 4. (optional) Download test data: `$ git clone https://code.videolan.org/videolan/dav1d-test-data.git tests/dav1d-test-data` 5. Configure *meson* by `$ meson setup build` or `$ meson setup build -Dtestdata_tests=true` if above step is executed 6. Go to the `build` folder: `$ cd build` 7. Compile *dav1d* by *ninja*: `$ ninja` 8. (optional) Run test: `$ meson test -v` 9. (optional) Install *dav1d*: `$ ninja install` - The *dav1d* will be installed to the `libdir` folder specified in `//dav1d/build/meson-private/dav1d.pc`