Changes between Version 168 and Version 169 of CompilationGuide/Ubuntu


Ignore:
Timestamp:
Feb 1, 2021, 5:50:32 AM (6 years ago)
Author:
veikk0
Comment:

Add libdav1d instructions

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Ubuntu

    v168 v169  
    5252  libxcb-shm0-dev \
    5353  libxcb-xfixes0-dev \
     54  meson \
     55  ninja-build \
    5456  pkg-config \
    5557  texinfo \
    … …  
    305307PATH="$HOME/bin:$PATH" make && \
    306308make install
     309}}}
     310
     311== libdav1d ==
     312
     313AV1 decoder, much faster than the one provided by libaom.
     314
     315Requires `ffmpeg` to be configured with `--enable-libdav1d`.
     316
     317If your repository provides `libdav1d-dev`, you can install that instead of compiling:
     318
     319{{{
     320#!sh
     321sudo apt-get install libdav1d-dev
     322}}}
     323
     324Otherwise 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
     328sudo apt-get install python3-pip && \
     329pip3 install --user meson
     330}}}
     331
     332NASM 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
     334To compile:
     335{{{
     336#!sh
     337cd ~/ffmpeg_sources && \
     338git -C dav1d pull 2> /dev/null || git clone --depth 1 https://code.videolan.org/videolan/dav1d.git && \
     339mkdir -p dav1d/build && \
     340cd dav1d/build && \
     341meson setup -Denable_tools=false -Denable_tests=false --default-library=static .. --prefix "$HOME/ffmpeg_build" --bindir="$HOME/ffmpeg_build/bin" --libdir="$HOME/ffmpeg_build/lib" && \
     342ninja && \
     343ninja install
    307344}}}
    308345
    … …  
    331368  --enable-libopus \
    332369  --enable-libsvtav1 \
     370  --enable-libdav1d \
    333371  --enable-libvorbis \
    334372  --enable-libvpx \