Skip to content

Instantly share code, notes, and snippets.

@ChunMinChang
Created November 9, 2023 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChunMinChang/da6f620e6af530fe77729b2017e84f4e to your computer and use it in GitHub Desktop.
Save ChunMinChang/da6f620e6af530fe77729b2017e84f4e to your computer and use it in GitHub Desktop.
one-stop manual for dav1d installation

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 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:

  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 <path>/<to>/dav1d/build/meson-private/dav1d.pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment