Skip to content

AACS and BDplus

Phillippe Pelzer edited this page Nov 15, 2026 · 2 revisions

Blu-ray: AACS and BD+

The build reads encrypted Blu-ray discs through bluray: with nothing installed next to it. libbluray, libaacs and libbdplus are linked into the binary. libaacs carries a built-in key database, so there is no separate library and no key file to find.

This is a NoMercy patch on top of the upstream libraries. Official libbluray loads libaacs at run time, and fails without it.

Since: libbluray, libaacs and libbdplus have been in the build since v1.0.12. The libraries' versions below are those of v1.0.47. The built-in key database was not dated per release in this documentation pass.

Quick example

# Read the main title of a disc folder or a drive
ffmpeg -i bluray:/path/to/disc -map 0 -c copy movie.mkv

# A chosen playlist
ffmpeg -playlist 800 -i bluray:/path/to/disc -map 0 -c copy movie.mkv

Options

The table is copied from ffmpeg -h protocol=bluray of v1.0.47. These are upstream options.

Option Type Default Range What it does
playlist int -1 -1 to 99999 Playlist to read. -1 lets libbluray pick the main one.
angle int 0 0 to 254 Angle to read.
chapter int 1 1 to 65534 Chapter to start at.

What is different from a stock build

Part Stock This build
AACS library libbluray loads libaacs at run time. A missing library fails with no useful message. libaacs is linked statically.
BD+ Loaded at run time. libbdplus is linked statically.
Disc keys libaacs reads a KEYDB.cfg file in the user's config folder. A key database is compiled into libaacs and is the fallback.

By design, a KEYDB.cfg that the user supplies is still preferred when it exists. The built-in database is the fallback. This comes from the patch design. It was not run in this documentation pass.

Versions in v1.0.47

Library Version
libbluray 1.4.1
libaacs 0.11.1
libbdplus 0.2.0
libgcrypt 1.12.2

libgcrypt and libgpg-error are linked in with them.

What the built-in database means for you

  • It is a snapshot. It is fixed when the release is built. A disc that came out later may need a newer release, or your own KEYDB.cfg.
  • It is part of the release archives for every platform, as far as the build scripts show. Only the linux-x86_64 binary was inspected: it contains the compiled-in database.

Local builds

A local build has no built-in AACS key database and does not link AACS and BD+ into libbluray. Those files are not in the public repository; the project's CI adds them. Everything else matches the release.

See Building-Locally.

Platform notes

The build script has no platform skip, so all seven platforms build libbluray with libaacs and libbdplus. The embedded database is one very large C string, so it can only be built with GCC, Clang or MinGW, not MSVC.

Clone this wiki locally