# Blu-ray

## Playback
In order play Blu-Rays install the following packages:

~~~bash
sudo pacman -S libbluray libaacs
~~~

Additionally, a `KEYDB.cfg` file is needed. Download it from the [FindVUK Online Database](http://fvonline-db.bplaced.net/)

Extract the ZIP to `~/.config/aacs/`:

<div class="callout warning"><strong>ATTENTION:</strong> You may need to rename the <code>keydb.cfg</code> file to <code>KEYDB.cfg</code> (lower to upper case) for tooling to find it.</div>

~~~bash
unzip keydb_eng.zip -d ~/.config/aacs/
~~~

After that use any Blu-Ray capable playback software, e.g. `vlc bluray:///dev/sr0` to play back Blu-Rays.

## Ripping

![MakeMKV ripping a Blu-ray Disc](https://wiki.sebin-nyshkim.net/uploads/images/gallery/2020-09/scaled-1680-/Bildschirmfoto-von-2020-09-04-15-33-10.png)

In order to rip Blu-Rays install [MakeMKV](https://www.makemkv.com/) from the AUR:

~~~bash
yay -S makemkv
~~~

MakeMKV requires the `sg` (*SCSI generic (sg) driver*) kernel module to be loaded in order to recognize the drive. To load the module temporarily:

~~~bash
sudo modprobe sg
~~~

To have the kernel load the module on each boot:

~~~bash
echo sg | sudo tee > /etc/modules-load.d/sg.conf
~~~