Otok public index

apotocki/dav1d

dav1d, an AV1 decoder focused on speed and correctness.

Library
dav1d
Newest
1.5.4 (r1, android)
Targets
android, apple, linux, windows
License
BSD-2-Clause
Homepage
https://code.videolan.org/videolan/dav1d
Keywords
av1, video, decoder

Use it

In otok.toml:

[deps.dav1d]
recipe = "apotocki/dav1d"
version = "~> 1.5.4"

Versions

VersionTargetChannelPublishedStatus
1.5.4 (r1, android) android stable 2026-11-09
1.5.4 (r2, apple) apple stable 2026-11-09
1.5.4 (r1, apple) apple stable 2026-11-07
1.5.4 (r1, linux) linux stable 2026-11-07
1.5.4 (r1, windows) windows stable 2026-11-07

1.5.4 (r1, android)

Platforms

android

Toolchains

Recipe files

build.lua 613 bytes · raw
-- dav1d's meson build, the library only. otok builds are meson's "plain" build type
-- (build-lua-api.md 6.2), so trim_dsp, which follows the build type, follows the configuration here.
function build(slice, options, deps)
    otok.meson{ options = {
        enable_tools = false, enable_tests = false, enable_examples = false, enable_docs = false,
        trim_dsp = slice.configuration == "release",
    } }
    local p = slice.prefix
    local lib = otok.glob(slice.linkage == "static" and "lib/libdav1d.a" or "lib/libdav1d.so", p)[1]
    return { libraries = { dav1d = lib }, headers = p .. "/include" }
end
recipe.toml 1032 bytes · raw
# The otok recipe of dav1d (https://github.com/apotocki/otok): VideoLAN's AV1 decoder, built with meson
# (otok.meson), for Android; static or dynamic.
[recipe]
api = 1
library = "dav1d"
name = "dav1d"
version = "1.5.4"
revision = 1
license = "BSD-2-Clause"
license-files = ["COPYING"]
homepage = "https://code.videolan.org/videolan/dav1d"
description = "dav1d, an AV1 decoder focused on speed and correctness."
keywords = ["av1", "video", "decoder"]
linkage = ["static", "dynamic"]

[source]
url = "https://downloads.videolan.org/pub/videolan/dav1d/1.5.4/dav1d-1.5.4.tar.xz"
sha256 = "686616b7c69eb88d44459391ab25cac13b6647a3b288835c5784e71c1514a5c5"

[platforms]
supported = ["android"]
build-on = ["*/ndk"]

[toolchains]
meson = { version = ">= 1.2", default-recipe = "apotocki/meson" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
nasm = { version = ">= 2.14", default-recipe = "apotocki/nasm", when = { arch = ["x86_64", "x86"] } }  # the assembly of x86

[[product]]
name = "Dav1d"
libraries = ["dav1d"]