UHD FAQ

Please post here for issues related to UHD discs
boguslecina
Posts: 49
Joined: Tue Dec 17, 2024 12:21 am

Re: UHD FAQ

Post by boguslecina »

Fixed version:

https://fvonline-db.bplaced.net/findvuk ... K_2.04.zip

It now requires manually launching FindVUK to select a language (English by default) or manually editing the file: FindVUK\config\FindVUK.ini

Section: [BlurayMeta]
PreferredLanguages = eng
SamuriHL
Posts: 2822
Joined: Mon Jun 14, 2010 5:32 pm

Re: UHD FAQ

Post by SamuriHL »

Nalor fixed the issue. I just did a synchronize in KeyDB Assistant and everything works now.
Vacantcousin
Posts: 5
Joined: Sun Sep 20, 2026 9:02 pm

Re: UHD FAQ

Post by Vacantcousin »

Ready Player one UHD submitted

First submission be gentle at least lube plz :lol: :D


Disc type: UHD
Disc ID: Ready Player One
Disc dump filename: MKB20_v61_Ready_Player_One_E1B7.tgz
Drive:BW-16D1HT
Drive firmware: ASUS-BW-16D1HT-3.10-WM01601-211901041014
LibreDrive status:LibreDrive Information
Status: Enabled
Drive platform: MT1959
Firmware type: Patched (microcode access re-enabled)
Firmware version: 3.10
DVD all regions: Yes
BD raw data read: Yes
BD raw metadata read: Yes
Unrestricted read speed: Yes
Did you sync the public keydb within the last 15 minutes? yes
Have you verified that all submission links are accessible in incognito/private browsing?yes
MKB_RO.inf link (Do not just extract the MKB_RO.inf file from the disc dump file - copy it from the disc): https://storage.to/c/3nJ8ofxqP
Disc dump link:https://storage.to/c/3nJ8ofxqP


this is now working thank you to everyone who got this one working
Barley
Posts: 14
Joined: Tue Sep 29, 2026 5:27 pm

Re: UHD FAQ

Post by Barley »

@SamuriHL,

Thank you for the KeyDB_Assistant tool. It has allowed me to add several entries to the keydb.cfg file for my and others' benefit.

I did find a bug that is either in KeyDB_Assistant or findvuk. When I performed a Disc Info function on the No Time To Die Bonus Disc Blu-ray, it found the keys correctly, but you will see that it failed to parse the title correctly (maybe because it has a colon (:) in the title?). As a result, when it attempted validation and update of the keydb.cfg file, it errored out and corrupted the keydb.cfg file, to the point that I spent a half day trying to figure out why this disc was now making KeyDB_Assistant hang.

Thank you for checking this out.

Code: Select all

=======================================================
  DISC INFORMATION
=======================================================
Validation Data     : 
Media Key           : 
VUK                 : 
Unit Key 1          : 
...
-------------------------------------------------------
-------------------------------------------------------

--- Disc Information ---

Disc ID      : 
Volume       : NO_TIME_TO_DIE_BONUS_DISC
Title        : No Time to Die:
Bonus Disc
Date         : 2021-10-08
...
KeyDB Status:
Status       : not found
-------------------------------------------------------
KeyDB entry mismatch detected
KeyDB entry updated
KeyDB Status        : not found for ---
KeyDB entry updated

Code: Select all

2026-09-29 11:29:04 # 4814 # [E] bluray_keydb(493) / _Parse_Title / ERROR! Line is not a correct line with useable data! >Bonus Disc] | D | 2021-10-08
2026-09-29 11:29:04 # 4814 # [E] bluray_keydb(856) / _OpenFile_CFG / ERROR! Couldn't parse line as title! >Bonus Disc] | D | 2021-10-08 
2026-09-29 11:29:04 # 4815 # [E] FindVUK_Main(3547) /  / ERROR! Couldn't open main keydb file! >#BRKDB_ERR_PARSE<
SamuriHL
Posts: 2822
Joined: Mon Jun 14, 2010 5:32 pm

Re: UHD FAQ

Post by SamuriHL »

I have too many projects going on right now so it's not going to be looked at soon. When I get back into that code I'll take a look.
Barley
Posts: 14
Joined: Tue Sep 29, 2026 5:27 pm

Re: UHD FAQ

Post by Barley »

That's fine! There is no rush. I was able to correct the entry manually. It just took me a while to figure out what was going on.
SamuriHL
Posts: 2822
Joined: Mon Jun 14, 2010 5:32 pm

Re: UHD FAQ

Post by SamuriHL »

Should be a very quick fix when I get a minute. My other projects are consuming my free time.
tommik128
Posts: 40
Joined: Wed Aug 09, 2023 2:34 pm

Re: UHD FAQ

Post by tommik128 »

I would like to report an error when clicking Disc Info on Harry Potter and the Order of the Phoenix standard blu-ray:
KeyDB Assistant 1.1.0.1
Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index').

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at KeyDBAssistant.DiscUtils.getDiscInfo(String disc, String aacsDir)
   at KeyDBAssistant.KeyDBAssistant.btnDiscInfo_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)


************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
KeyDB_Assistant
    Assembly Version: 1.1.0.1
    Location: 
----------------------------------------
System.Runtime
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Windows.Forms
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Collections.Specialized
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Threading
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Collections
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Drawing.Common
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.Process
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Threading.Thread
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Location: 
----------------------------------------
System.Memory
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.FileVersionInfo
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Resources.Extensions
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Drawing
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.ObjectModel
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.ComponentModel
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Linq
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
Microsoft.Win32.Registry
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Text.Encoding.CodePages
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Private.Uri
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Net.Http
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
Serilog
    Assembly Version: 4.3.0.0
    Location: 
----------------------------------------
Serilog.Sinks.File
    Assembly Version: 7.0.0.0
    Location: 
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.DiagnosticSource
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.Tracing
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Net.WebClient
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Console
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Threading.ThreadPool
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Management
    Assembly Version: 10.0.0.1
    Location: 
----------------------------------------
System.Text.Json
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Xml.ReaderWriter
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Private.Xml
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.IO.FileSystem.DriveInfo
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Security.Cryptography
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Runtime.Loader
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------
System.Collections.Immutable
    Assembly Version: 8.0.0.0
    Location: 
----------------------------------------

************** JIT Debugging **************
When I click Continue the application just stays frozen.
SamuriHL
Posts: 2822
Joined: Mon Jun 14, 2010 5:32 pm

KeyDB Console

Post by SamuriHL »

https://www.mediafire.com/file_premium/ ... e.zip/file

This is a very minimalist console application that might actually work under Linux wine, as well. Maybe.

What does it do?
  • Downloads FindVUK and configures it if it's not already downloaded
  • Automatically does a FindVUK sync, then copies the keydb.cfg to your MakeMKV data directory. This happens on EVERY RUN.
  • Scans for optical drives with protected BD/UHD's
  • Runs a "disc info" function on each disc where:
  • It gets all the disc information
  • Checks for a KeyDB entry for the disc
  • If one is not found, attempts to find an existing media key in the KeyDB (this tool ships NO keys at all. NONE)
  • If a media key is found, it generates the data and uses FindVUK validate which uploads it for you to the KeyDB
  • Displays all the information
This mirrors what the KeyDB Assistant already does but in an automated console application. Make sure you read the readme if you're trying this under Linux wine. I have not tested it there. It may not work. Or it might. Windows users can just click it to open it and you're good to go.

NOTE: I do not have time to maintain this right now. I cooked it up and am setting it loose. Bug reports or issues won't be fixed for a while.
tommik128
Posts: 40
Joined: Wed Aug 09, 2023 2:34 pm

Re: UHD FAQ

Post by tommik128 »

Hi,

Even the KeyDB Console has the same issue on Harry Potter and the Order of the Phoenix standard blu-ray:

Code: Select all

Unexpected error: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
Toad King
Posts: 145
Joined: Sun Jul 03, 2022 6:46 pm

Re: KeyDB Console

Post by Toad King »

SamuriHL wrote: Sat Nov 07, 2026 12:52 am https://www.mediafire.com/file_premium/ ... e.zip/file

This is a very minimalist console application that might actually work under Linux wine, as well. Maybe.

What does it do?
  • Downloads FindVUK and configures it if it's not already downloaded
  • Automatically does a FindVUK sync, then copies the keydb.cfg to your MakeMKV data directory. This happens on EVERY RUN.
  • Scans for optical drives with protected BD/UHD's
  • Runs a "disc info" function on each disc where:
  • It gets all the disc information
  • Checks for a KeyDB entry for the disc
  • If one is not found, attempts to find an existing media key in the KeyDB (this tool ships NO keys at all. NONE)
  • If a media key is found, it generates the data and uses FindVUK validate which uploads it for you to the KeyDB
  • Displays all the information
This mirrors what the KeyDB Assistant already does but in an automated console application. Make sure you read the readme if you're trying this under Linux wine. I have not tested it there. It may not work. Or it might. Windows users can just click it to open it and you're good to go.

NOTE: I do not have time to maintain this right now. I cooked it up and am setting it loose. Bug reports or issues won't be fixed for a while.
I've tried this out on Linux and it it has a small bug in the run-wine.sh script: The backup command for getting discatt.dat always fails with this error:

Code: Select all

Backup source must start with "disc:"
I've got an updated script here that can successfully generate the file. It seems to work but I don't have any disc with a missing VUK to test it on.

Code: Select all

#!/bin/sh
# Runs KeyDBConsole.exe under Wine. Place this script next to KeyDBConsole.exe.
# Any arguments are passed through, e.g.:  ./run-wine.sh --makemkv-dir ~/.MakeMKV
#
# Before starting Wine, this reads discatt.dat from each mounted BD/UHD disc using native Linux
# MakeMKV (makemkvcon). Wine programs can't start Linux programs, so KeyDBConsole can't do this itself.
# The files are saved as discatt/<DISCID>.dat next to the exe, where KeyDBConsole picks them up.
# Without them the disc's Volume ID (VID) can't be read, and discs not already in the KeyDB can't be completed.
#
# Optional environment variables:
#   MAKEMKVCON   path to makemkvcon (default: found on PATH)
#   KEYDB_DISCS  discs to read, one "device|mountpoint" per line, if auto-detection misses one,
#                e.g.  KEYDB_DISCS="/dev/sr0|/media/$USER/MY_DISC" ./run-wine.sh
set -e

DIR=$(cd "$(dirname "$0")" && pwd)

if ! command -v wine >/dev/null 2>&1; then
    echo "Wine is not installed. Install it first, e.g.: sudo apt install wine64  (or wine on Fedora/Arch)" >&2
    exit 1
fi

if [ ! -f "$DIR/KeyDBConsole.exe" ]; then
    echo "KeyDBConsole.exe not found in $DIR" >&2
    exit 1
fi

DISCATT_DIR="$DIR/discatt"
MAKEMKVCON="${MAKEMKVCON:-$(command -v makemkvcon 2>/dev/null || true)}"

# Lists mounted optical discs as "device|mountpoint"
list_discs() {
    if [ -n "$KEYDB_DISCS" ]; then
        printf '%s\n' "$KEYDB_DISCS"
        return
    fi
    command -v lsblk >/dev/null 2>&1 || return 0
    # -r escapes spaces in mount points as \x20
    lsblk -nrpo NAME,TYPE,MOUNTPOINT 2>/dev/null | awk '$2 == "rom" && $3 != "" { print $1 "|" $3 }' | sed 's/\\x20/ /g'
}

# Runs "makemkvcon backup" just long enough for it to write discatt.dat, then stops it
grab_discatt() {
    dev="$1"
    mnt="$2"
    uk="$mnt/AACS/Unit_Key_RO.inf"
    [ -f "$uk" ] || return 0    # not AACS protected

    # Disc ID = SHA-1 of Unit_Key_RO.inf (uppercase), the same ID KeyDBConsole computes
    id=$(sha1sum "$uk" | cut -c1-40 | tr 'a-f' 'A-F')
    tmp=$(mktemp -d)

    OUTPUT="$("$MAKEMKVCON" f --list | grep -A1 "${dev}")"
    BRNUM=$(echo "${OUTPUT}" | sed -ne 's/^0*\([0-9]\+\): dev.*$/\1/p')

    echo "Reading discatt.dat from $mnt ($dev, num $BRNUM) with MakeMKV..."
    "$MAKEMKVCON" backup "disc:$BRNUM" "$tmp/backup" >"$tmp/makemkv.log" 2>&1 &
    pid=$!

    i=0
    while [ $i -lt 1200 ]; do    # up to 120 seconds
        [ -s "$tmp/backup/discatt.dat" ] && break
        kill -0 "$pid" 2>/dev/null || break
        sleep 0.1
        i=$((i + 1))
    done
    sleep 0.3    # let MakeMKV finish writing the small file
    kill "$pid" 2>/dev/null || true
    wait "$pid" 2>/dev/null || true

    if [ -s "$tmp/backup/discatt.dat" ]; then
        cp "$tmp/backup/discatt.dat" "$DISCATT_DIR/$id.dat"
        echo "  saved discatt/$id.dat"
    else
        echo "  WARNING: MakeMKV did not produce discatt.dat for $mnt - see its output:" >&2
        tail -n 5 "$tmp/makemkv.log" >&2 || true
    fi
    rm -rf "$tmp"
}

rm -rf "$DISCATT_DIR"
mkdir -p "$DISCATT_DIR"

if [ -n "$MAKEMKVCON" ] && [ -x "$MAKEMKVCON" ]; then
    list_discs | while IFS='|' read -r dev mnt; do
        [ -n "$dev" ] && [ -n "$mnt" ] && grab_discatt "$dev" "$mnt"
    done
else
    echo "WARNING: makemkvcon (native Linux MakeMKV) not found - discs not already in the KeyDB can't be completed." >&2
    echo "         Install MakeMKV, or set MAKEMKVCON=/path/to/makemkvcon." >&2
fi

# Quiet Wine's debug chatter unless the user asked for it
export WINEDEBUG="${WINEDEBUG:--all}"

cd "$DIR"
exec wine "$DIR/KeyDBConsole.exe" "$@"
Another note for any other Linux people testing: FindVUK was broken on Wine from versions 11.20 to 11.21. 11.22 has it fixed and working again, so make sure you're on a working version.