How to get vlc to play blu-ray and 4k uhd discs

Hello, new to the forum here (and a bit unsure if the tags match my problem), anyway to cut to the chase, I need help in knowing how I can get vlc to play my blur-ray and 4k discs as whenever I insert the disc and try to play it, vlc states there’s missing aacs configuration files. I do have the libbaacs stuff but I don’t know what to do with it.

Any help will be much obliged

Hi @Dane_Blue, welcome!

Get the latest KEYDB.cfg file from one of these sources:

mkdir -p ~/.var/app/org.videolan.VLC/config/aacs/
mv /path/to/downloaded/KEYDB.cfg ~/.var/app/org.videolan.VLC/config/aacs/

Grant VLC Flatpak Permissions

By default, Flatpak apps run in a sandbox with limited access. Grant VLC Blu-ray drive access:

flatpak override --user --filesystem=/dev/sr0 org.videolan.VLC

If your Blu-ray drive has a different path, replace /dev/sr0 with the correct one (use lsblk to check).

: Disable Blu-ray Menu in VLC

  1. Open VLC.
  2. Go to ToolsPreferences.
  3. Click Show All (bottom-left corner).
  4. Search for Blu-ray.
  5. Uncheck Menu.
  6. Save & Restart VLC.

Play Blu-ray Disc

Run VLC from the terminal with:

flatpak run org.videolan.VLC bluray:///dev/sr0

Troubleshooting

  • If Blu-ray doesn’t play, update KEYDB.cfg from the sources above.
  • If VLC can’t detect the Blu-ray drive, grant more permissions:
flatpak override --user --filesystem=host org.videolan.VLC
  • If VLC still fails, check logs for missing dependencies:
flatpak run --command=sh org.videolan.VLC -c "vlc -vvv bluray:///dev/sr0"

Thanks for the information