| | 309 | }}} |
| | 310 | |
| | 311 | == libdav1d == |
| | 312 | |
| | 313 | AV1 decoder, much faster than the one provided by libaom. |
| | 314 | |
| | 315 | Requires `ffmpeg` to be configured with `--enable-libdav1d`. |
| | 316 | |
| | 317 | If your repository provides `libdav1d-dev`, you can install that instead of compiling: |
| | 318 | |
| | 319 | {{{ |
| | 320 | #!sh |
| | 321 | sudo apt-get install libdav1d-dev |
| | 322 | }}} |
| | 323 | |
| | 324 | Otherwise you'll need can build from source. Users whose distributions don't provide a recent enough version of `meson` (0.49.0 or newer) will need to install a more up-to-date version. This is easily done via the Python Package Index: |
| | 325 | |
| | 326 | {{{ |
| | 327 | #!sh |
| | 328 | sudo apt-get install python3-pip && \ |
| | 329 | pip3 install --user meson |
| | 330 | }}} |
| | 331 | |
| | 332 | NASM version 2.14 or newer is required for AVX-512 support. See [#NASM the NASM section] for how to install/build. Alternatively, disable AVX-512 in Meson setup with `-Denable_avx512=false`. |
| | 333 | |
| | 334 | To compile: |
| | 335 | {{{ |
| | 336 | #!sh |
| | 337 | cd ~/ffmpeg_sources && \ |
| | 338 | git -C dav1d pull 2> /dev/null || git clone --depth 1 https://code.videolan.org/videolan/dav1d.git && \ |
| | 339 | mkdir -p dav1d/build && \ |
| | 340 | cd dav1d/build && \ |
| | 341 | meson setup -Denable_tools=false -Denable_tests=false --default-library=static .. --prefix "$HOME/ffmpeg_build" --bindir="$HOME/ffmpeg_build/bin" --libdir="$HOME/ffmpeg_build/lib" && \ |
| | 342 | ninja && \ |
| | 343 | ninja install |