This is a fairly straight forward way to rip DVD/Blu-Ray movies. For reference:
ArchLinux Blu-ray instructions keydb.cfg files Debian Multimedia repository
First add the deb-multimedia repository to /etc/apt/sources.list by following their instructions for your version of Debian:
deb https://www.deb-multimedia.org bookworm main non-free
Install handbrake and support libraries
sudo apt-get install handbrake libdvdcss2 libbdplus0 libaacs0 libbluray-bin
They keys database for Blu-Ray can be found at the FindVUC Online Database
Download and unzip the keydb.cfg file. Be sure to copy this file into ~/.config/aacs/KEYDB.cfg.
The file name is Case Sensitive
bd_info /dev/sr0
Created: 2025-02-13 | Modified: 2025-02-13 |