Public KeyDB Disc Submissions
-
Warbington
- Posts: 26
- Joined: Sat Jul 12, 2025 12:33 am
Synthetic dumps
Disc ID : 0x99737BE3CAC68007CEBF4D5177779D5EC50A2B7D
Title : Trolls
https://drive.google.com/drive/folders/ ... sp=sharing
Disc ID : 0x49960192AEF8235259D4690E1484FC6238B7326A
Title : Wonka
https://drive.google.com/drive/folders/ ... sp=sharing
Disc ID : 0x056ACEDB415482A1D1A75D7B69E51BF9FE31EA25
Title : Billy Lynn's Long Halftime Walk – 4K Ultra HD
https://drive.google.com/drive/folders/ ... sp=sharing
Title : Trolls
https://drive.google.com/drive/folders/ ... sp=sharing
Disc ID : 0x49960192AEF8235259D4690E1484FC6238B7326A
Title : Wonka
https://drive.google.com/drive/folders/ ... sp=sharing
Disc ID : 0x056ACEDB415482A1D1A75D7B69E51BF9FE31EA25
Title : Billy Lynn's Long Halftime Walk – 4K Ultra HD
https://drive.google.com/drive/folders/ ... sp=sharing
-
mediumwave
- Posts: 4
- Joined: Wed Dec 10, 2025 8:43 am
Re: Public KeyDB Disc Submissions
Name: Tom Petty & The Heartbreakers - Origins 1971-1978
Disc type: BD
Disc ID: 0xC281D0F98CFDE565BFB624043DC3BEF130BD5016
Disc dump filename: MKB_v82_TOMPETTY_ORIGINS_A91E
Drive: PIONEER BDR-US04
Drive firmware: 1.14
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? 1MB (Standard Blu Ray)
MKB_RO.inf link: https://drive.google.com/file/d/1nkGZ3b ... drive_link
Disc dump link: https://drive.google.com/file/d/1NlVWeC ... drive_link
Disc type: BD
Disc ID: 0xC281D0F98CFDE565BFB624043DC3BEF130BD5016
Disc dump filename: MKB_v82_TOMPETTY_ORIGINS_A91E
Drive: PIONEER BDR-US04
Drive firmware: 1.14
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? 1MB (Standard Blu Ray)
MKB_RO.inf link: https://drive.google.com/file/d/1nkGZ3b ... drive_link
Disc dump link: https://drive.google.com/file/d/1NlVWeC ... drive_link
-
keydb_helper
- Posts: 1118
- Joined: Fri Sep 06, 2024 4:47 pm
Re: Public KeyDB Disc Submissions
Thanks to everyone who followed the template and provided new disc dump files. If any valid submissions were overlooked, please feel free to bump your post.
The following BD and UHD discs have been added to the public keydb:
The following BD and UHD discs have been added to the public keydb:
Code: Select all
Billy Lynn's Long Halftime Walk (Disc ID 0x056ACEDB415482A1D1A75D7B69E51BF9FE31EA25)
Ip Man 2 (Disc ID 0x88CA5DCE85E16F72D65FA571DBCA908686BCBE81)
MKB20_v72_CRASH_-_4K_UHD_7B7D
MKB20_v82_Dracula_-_UHD_Disc_2_BA2E
MKB20_v82_The_Odyssey_ED2C
MKB_v82_TOMPETTY_ORIGINS_A91E
Shoot the Piano Player (Disc ID 0x5BE891E8D887E1A472D196E03A15E6889DE9F45C)
Trolls (Disc ID 0x99737BE3CAC68007CEBF4D5177779D5EC50A2B7D)
Wonka (Disc ID 0x49960192AEF8235259D4690E1484FC6238B7326A)
Great work Warbington. Thanks again for taking the time to create those synthetic disc dump files.Warbington wrote: Sat Nov 14, 2026 8:13 pm Disc ID : 0x99737BE3CAC68007CEBF4D5177779D5EC50A2B7D
Title : Trolls
...
Disc ID : 0x49960192AEF8235259D4690E1484FC6238B7326A
Title : Wonka
...
Disc ID : 0x056ACEDB415482A1D1A75D7B69E51BF9FE31EA25
Title : Billy Lynn's Long Halftime Walk – 4K Ultra HD
Hey timjtech, thanks for following the submission template but your links are not publicly accessible. Feel free to update the links whenever you get a chance and post an update to this thread.timjtech wrote: Sat Nov 14, 2026 3:24 am KPOP DEMON HUNTERS
Disc type: UHD
Disc ID: 26e488ca591d755db8cd6ea88a0183723a42c6bd
Disc dump filename: MKB20_v82_KPOP_DEMON_HUNTERS_2A4A
...
Have you verified that all submission links are accessible in incognito/private browsing? Yes
Hey Digital moe, thanks for the submission but the public keydb doesn't really support AACS 2.1 at this stage.Digital moe wrote: Sat Nov 14, 2026 11:14 am Zombieland (UK Disc) - I have used KeyDB Assist and it tells me media Key not found
Disc type:UHD
Disc ID: 0xA111C698554C6AF960C84F55B9D6615F1BBE6327
Disc dump filename: MKB21_v70_Zombieland_0C05
Public KeyDB Disc Submissions
KeyDB Lower Priority Disc List
- The MKB_RO.inf file from the original disc is required
- Place the extracted keydb.cfg file in the same directory as your disc dump files
KeyDB Lower Priority Disc List
-
timjtech
- Posts: 11
- Joined: Tue Oct 02, 2018 5:28 pm
Re: Public KeyDB Disc Submissions
My apologies!
Disc type: UHD
Disc ID: 26e488ca591d755db8cd6ea88a0183723a42c6bd
Disc dump filename: MKB20_v82_KPOP_DEMON_HUNTERS_2A4A
Drive: BW-16D1HT
Drive firmware: 3.10
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? Yes
Disc Dump: https://drive.google.com/file/d/1GPspZg ... sp=sharing
MKB_RO: https://drive.google.com/file/d/1DeJv-N ... sp=sharing
Disc type: UHD
Disc ID: 26e488ca591d755db8cd6ea88a0183723a42c6bd
Disc dump filename: MKB20_v82_KPOP_DEMON_HUNTERS_2A4A
Drive: BW-16D1HT
Drive firmware: 3.10
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? Yes
Disc Dump: https://drive.google.com/file/d/1GPspZg ... sp=sharing
MKB_RO: https://drive.google.com/file/d/1DeJv-N ... sp=sharing
-
keydb_helper
- Posts: 1118
- Joined: Fri Sep 06, 2024 4:47 pm
Re: Public KeyDB Disc Submissions
Your disc was added to the public keydb on November 9.timjtech wrote: Sun Nov 15, 2026 1:56 am My apologies!
Disc type: UHD
Disc ID: 26e488ca591d755db8cd6ea88a0183723a42c6bd
Disc dump filename: MKB20_v82_KPOP_DEMON_HUNTERS_2A4A
Public KeyDB Disc Submissions
KeyDB Lower Priority Disc List
- The MKB_RO.inf file from the original disc is required
- Place the extracted keydb.cfg file in the same directory as your disc dump files
KeyDB Lower Priority Disc List
-
timjtech
- Posts: 11
- Joined: Tue Oct 02, 2018 5:28 pm
Re: Public KeyDB Disc Submissions
Sorry for wasting your time; I had some permissions issues with the downloaded keydb.cfg and didn't realize it. Thank you for your hard work 
-
loucipher
- Posts: 43
- Joined: Tue Nov 29, 2022 12:45 am
Re: Public KeyDB Disc Submissions
Disc type: UHD
Disc ID: a0e2a8680427a398c105a573db0151f6871bb37a
Disc dump filename: MKB20_v76_Elf_1B09.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/AMEAXWCFBG#CFctaBiGzndP
Disc dump link: https://drive.proton.me/urls/TEZJGP3DSC#cIYkmr1u3A3J
Disc ID: a0e2a8680427a398c105a573db0151f6871bb37a
Disc dump filename: MKB20_v76_Elf_1B09.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/AMEAXWCFBG#CFctaBiGzndP
Disc dump link: https://drive.proton.me/urls/TEZJGP3DSC#cIYkmr1u3A3J
-
loucipher
- Posts: 43
- Joined: Tue Nov 29, 2022 12:45 am
Re: Public KeyDB Disc Submissions
Disc type: UHD
Disc ID: fb0c0d097caaceefc049e8d44485821e4b3c6176
Disc dump filename: MKB20_v76_National_Lampoon's_Christmas_Vacation_FD17.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/RFGFGF5YX4#KYUYhBhVo31M
Disc dump link: https://drive.proton.me/urls/V1M1KSTNT4#Xqy39TF4GmU6
Disc ID: fb0c0d097caaceefc049e8d44485821e4b3c6176
Disc dump filename: MKB20_v76_National_Lampoon's_Christmas_Vacation_FD17.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/RFGFGF5YX4#KYUYhBhVo31M
Disc dump link: https://drive.proton.me/urls/V1M1KSTNT4#Xqy39TF4GmU6
-
loucipher
- Posts: 43
- Joined: Tue Nov 29, 2022 12:45 am
Re: Public KeyDB Disc Submissions
Disc type: UHD
Disc ID: bfedb5b8876ea14b29acf3df687f4e6350353715
Disc dump filename: MKB20_v76_The_Polar_Express_33FB.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/GYRM5H64DR#bdgdMFECRX7z
Disc dump link: https://drive.proton.me/urls/YVBRY59454#6cjtpq7b92zt
Disc ID: bfedb5b8876ea14b29acf3df687f4e6350353715
Disc dump filename: MKB20_v76_The_Polar_Express_33FB.tgz
Drive: Pioneer BDR-S13J-X
Drive firmware: 1.03/ID72
LibreDrive status: Enabled
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: https://drive.proton.me/urls/GYRM5H64DR#bdgdMFECRX7z
Disc dump link: https://drive.proton.me/urls/YVBRY59454#6cjtpq7b92zt
-
loucipher
- Posts: 43
- Joined: Tue Nov 29, 2022 12:45 am
Re: Public KeyDB Disc Submissions
I just noticed the whole thing about synthetic dumps. I think I've got a bunch of those, so I'll be going through my collection and working my way down the list as time permits.
-
Warbington
- Posts: 26
- Joined: Sat Jul 12, 2025 12:33 am
Synthetic dump
Disc ID : 0xB6DBEE09F24B58591B49C9A3A65F122BB4A4F14D
Volume : Sweeney Todd (Remastered)
https://drive.google.com/drive/folders/ ... sp=sharing
Volume : Sweeney Todd (Remastered)
https://drive.google.com/drive/folders/ ... sp=sharing
-
SamuriHL
- Posts: 2831
- Joined: Mon Jun 14, 2010 5:32 pm
Re: Public KeyDB Disc Submissions
I had AI write a script for both Windows (powershell) and Linux (bash) to create the synthetic disc dump. I've not tested this but posting in case anyone finds it useful.keydb_helper wrote: Fri Oct 30, 2026 11:53 am If anyone has any disc from this list of titles, it would be greatly appreciated if you could follow these steps and provide the resultant 'synthetic' disc dump file:
1. Use MakeMKV to start creating an encrypted folder backup of a disc
2. Stop the backup once the discatt.dat/discattd.dat file has been created and at least one M2TS file has been copied
(A very small M2TS file is sufficient for this purpose)
3. Make a new folder for your synthetic disc dump
4. Copy the discatt.dat/discattd.dat file and the smallest M2TS file out of the (incomplete) encrypted backup folder into your synthetic disc dump folder
5. Copy the entire AACS directory from your disc into your synthetic disc dump folder
6. Zip up the synthetic disc dump folder, upload it to a file host and post a link here
Powershell (synthetic-dump.ps1)
Code: Select all
<#
.SYNOPSIS
Builds a "synthetic disc dump": discatt.dat/discattd.dat from a partial MakeMKV
*encrypted* backup, the disc's smallest M2TS, and the disc's AACS folder, zipped.
.DESCRIPTION
Order matters for speed: everything read from the disc is read BEFORE MakeMKV starts,
so the two never fight over the drive. MakeMKV is only needed for discatt.dat, so it is
stopped as soon as that file appears and stops growing. An encrypted backup copies the
stream files as-is, so the disc's own smallest M2TS is the same file MakeMKV would copy.
.EXAMPLE
.\synthetic-dump.ps1 -Drive E:
.\synthetic-dump.ps1 -Drive E: -OutDir D:\dumps -KeepBackup
#>
param(
[Parameter(Mandatory)][string]$Drive, # optical drive letter, e.g. E:
[string]$OutDir = (Join-Path $PWD 'synthetic'),
[string]$MakeMkvCon, # path to makemkvcon64.exe (auto-detected)
[int]$TimeoutMinutes = 10, # max wait for discatt.dat
[switch]$KeepBackup # keep the partial encrypted backup
)
$ErrorActionPreference = 'Stop'
function Stop-Tree([System.Diagnostics.Process]$p) {
if ($p -and -not $p.HasExited) {
& taskkill.exe /PID $p.Id /T /F 2>&1 | Out-Null
$p.WaitForExit(15000) | Out-Null
}
}
$Drive = $Drive.TrimEnd('\').ToUpper()
if ($Drive -notmatch '^[A-Z]:$') { throw "Drive must look like 'E:'" }
$discRoot = "$Drive\"
$discAacs = Join-Path $discRoot 'AACS'
$discStream = Join-Path $discRoot 'BDMV\STREAM'
if (-not (Test-Path $discAacs)) { throw "No AACS folder on $Drive (no disc, or not an AACS disc)" }
if (-not (Test-Path $discStream)) { throw "No BDMV\STREAM folder on $Drive" }
if (-not $MakeMkvCon) {
$MakeMkvCon = @(
"${env:ProgramFiles(x86)}\MakeMKV\makemkvcon64.exe",
"$env:ProgramFiles\MakeMKV\makemkvcon64.exe",
"${env:ProgramFiles(x86)}\MakeMKV\makemkvcon.exe"
) | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
}
if (-not $MakeMkvCon) { throw "makemkvcon not found; pass -MakeMkvCon <path>" }
$stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
$work = Join-Path $OutDir "backup-$stamp"
$dump = Join-Path $OutDir "synthetic-$stamp"
$log = Join-Path $OutDir "makemkv-$stamp.log"
$err = Join-Path $OutDir "makemkv-$stamp.err.log"
New-Item -ItemType Directory -Force -Path $work, $dump | Out-Null
# --- 1. Everything from the disc first, while nothing else is reading it ---------------
# AACS encrypts each 6144-byte aligned unit (32 x 192-byte packets) except its first 16
# bytes. Clear: every packet has the 0x47 sync byte at offset 4. Encrypted: only the first
# packet does. Up to 8 units spread through the file are sampled; any ciphertext unit
# marks the file encrypted.
function Test-EncryptedM2ts([string]$path) {
$unit = 6144
$units = [long][math]::Floor((Get-Item $path).Length / $unit)
if ($units -lt 1) { return $false }
$samples = [math]::Min(8, $units)
$buf = New-Object byte[] $unit
$fs = [System.IO.File]::OpenRead($path)
try {
for ($s = 0; $s -lt $samples; $s++) {
$fs.Position = [long][math]::Floor($s * $units / $samples) * $unit
$n = 0
while ($n -lt $unit) { $r = $fs.Read($buf, $n, $unit - $n); if ($r -le 0) { break }; $n += $r }
if ($n -lt $unit -or $buf[4] -ne 0x47) { continue } # short read / not aligned TS
for ($p = 192; $p -lt $unit; $p += 192) { if ($buf[$p + 4] -ne 0x47) { return $true } }
}
} finally { $fs.Dispose() }
return $false
}
$m2ts = $null; $clear = 0
foreach ($f in (Get-ChildItem $discStream -File -Filter '*.m2ts' | Where-Object Length -gt 0 | Sort-Object Length)) {
if (Test-EncryptedM2ts $f.FullName) { $m2ts = $f; break }
$clear++
}
if (-not $m2ts) {
throw "No encrypted M2TS in $discStream ($clear checked, all clear). Either the disc's streams " +
"are not encrypted, or a decryption service (AnyDVD, DVDFab Passkey, ...) is decrypting reads - stop it and retry."
}
if ($clear) { Write-Host "Skipped $clear smaller M2TS file(s) that are not encrypted" }
Write-Host "Copying AACS folder and $($m2ts.Name) ($($m2ts.Length) bytes) from $Drive"
Copy-Item $discAacs -Destination (Join-Path $dump 'AACS') -Recurse
Copy-Item $m2ts.FullName -Destination $dump
# --- 2. Map the drive letter to MakeMKV's disc index (bounded wait) --------------------
# DRV:0,2,999,12,"drive name","disc name","E:"
$infoOut = Join-Path $OutDir "makemkv-info-$stamp.log"
$info = Start-Process -FilePath $MakeMkvCon -NoNewWindow -PassThru `
-ArgumentList @('-r', '--cache=1', 'info', 'disc:9999') `
-RedirectStandardOutput $infoOut -RedirectStandardError "$infoOut.err"
if (-not $info.WaitForExit(120000)) { Stop-Tree $info; throw "makemkvcon drive listing did not finish in 2 min" }
$idx = $null
foreach ($line in (Get-Content $infoOut)) {
if ($line -match '^DRV:(\d+),.*,"([^"]*)"\s*$' -and $Matches[2].TrimEnd('\').ToUpper() -eq $Drive) {
$idx = $Matches[1]; break
}
}
Remove-Item $infoOut, "$infoOut.err" -ErrorAction SilentlyContinue
if ($null -eq $idx) { throw "MakeMKV does not list a drive at $Drive" }
# --- 3. Start the encrypted backup; stop it once discatt.dat is written ----------------
Write-Host "Starting encrypted backup of disc:$idx ($Drive); waiting for discatt.dat"
$proc = Start-Process -FilePath $MakeMkvCon -NoNewWindow -PassThru `
-ArgumentList @('-r', 'backup', "disc:$idx", "`"$work`"") `
-RedirectStandardOutput $log -RedirectStandardError $err
$attr = $null
try {
$deadline = (Get-Date).AddMinutes($TimeoutMinutes)
$lastLen = -1; $stable = 0
while ((Get-Date) -lt $deadline) {
# Only the local backup folder is polled; the disc is left to MakeMKV.
$f = Get-ChildItem $work -Recurse -File -Include 'discatt.dat', 'discattd.dat' -ErrorAction SilentlyContinue |
Select-Object -First 1
if ($f -and $f.Length -gt 0) {
if ($f.Length -eq $lastLen) { $stable++ } else { $stable = 0; $lastLen = $f.Length }
if ($stable -ge 2) { $attr = $f; break } # same size for ~2 s: written
}
if ($proc.HasExited) {
if ($f -and $f.Length -gt 0) { $attr = $f }
break
}
Start-Sleep -Seconds 1
}
}
finally {
Stop-Tree $proc # also runs on Ctrl+C
}
if (-not $attr) {
$why = if ($proc.HasExited -and $proc.ExitCode -ne 0) { "MakeMKV exited with $($proc.ExitCode)" } else { "timed out after $TimeoutMinutes min" }
throw "No discatt.dat/discattd.dat ($why); see $log"
}
Copy-Item $attr.FullName -Destination $dump
Get-ChildItem $dump -Recurse -File | ForEach-Object { $_.IsReadOnly = $false }
# --- 4. Zip -----------------------------------------------------------------------------
$zip = "$dump.zip"
Compress-Archive -Path $dump -DestinationPath $zip -Force
if (-not $KeepBackup) { Remove-Item $work -Recurse -Force -ErrorAction SilentlyContinue }
Write-Host ""
Write-Host "Attribute file : $($attr.Name)"
Write-Host "M2TS : $($m2ts.Name) ($($m2ts.Length) bytes)"
Write-Host "Folder : $dump"
Write-Host "Zip : $zip"
Code: Select all
#!/usr/bin/env bash
# Builds a "synthetic disc dump": discatt.dat/discattd.dat from a partial MakeMKV
# *encrypted* backup, the disc's smallest M2TS, and the disc's AACS folder, zipped.
#
# Everything read from the disc is read BEFORE MakeMKV starts, so the two never fight
# over the drive. MakeMKV is stopped as soon as discatt.dat appears and stops growing.
# An encrypted backup copies stream files as-is, so the disc's own smallest M2TS is the
# same file MakeMKV would copy.
#
# Usage: ./synthetic-dump.sh /dev/sr0 [outdir]
# Env: MAKEMKVCON=/path/to/makemkvcon TIMEOUT_MIN=10 KEEP_BACKUP=1
# Linux (GNU find/stat/timeout). The disc must be mounted.
set -euo pipefail
dev="${1:?usage: $0 /dev/sr0 [outdir]}"
out="${2:-$PWD/synthetic}"
mkmkv="${MAKEMKVCON:-makemkvcon}"
timeout_min="${TIMEOUT_MIN:-10}"
command -v "$mkmkv" >/dev/null || { echo "makemkvcon not found (set MAKEMKVCON)" >&2; exit 1; }
mnt="$(findmnt -n -o TARGET --source "$dev" 2>/dev/null | head -n1 || true)"
[ -n "$mnt" ] || { echo "$dev is not mounted; mount the disc first" >&2; exit 1; }
aacs="$(find "$mnt" -maxdepth 1 -type d -iname AACS -print -quit)"
bdmv="$(find "$mnt" -maxdepth 1 -type d -iname BDMV -print -quit)"
stream="$( [ -n "$bdmv" ] && find "$bdmv" -maxdepth 1 -type d -iname STREAM -print -quit || true)"
[ -n "$aacs" ] || { echo "No AACS folder under $mnt" >&2; exit 1; }
[ -n "$stream" ] || { echo "No BDMV/STREAM folder under $mnt" >&2; exit 1; }
stamp="$(date +%Y%m%d-%H%M%S)"
work="$out/backup-$stamp"
dump="$out/synthetic-$stamp"
log="$out/makemkv-$stamp.log"
mkdir -p "$work" "$dump"
# --- 1. Everything from the disc first, while nothing else is reading it ---------------
# AACS encrypts each 6144-byte aligned unit (32 x 192-byte packets) except its first 16
# bytes. Clear: every packet has the 0x47 sync byte at offset 4. Encrypted: only the first
# packet does. Up to 8 units spread through the file are sampled; any ciphertext unit
# marks the file encrypted.
is_encrypted() {
local f="$1" units samples s u
units=$(( $(stat -c %s "$f") / 6144 ))
[ "$units" -ge 1 ] || return 1
samples=$(( units < 8 ? units : 8 ))
for (( s = 0; s < samples; s++ )); do
u=$(( s * units / samples ))
if dd if="$f" bs=6144 skip="$u" count=1 2>/dev/null | od -An -v -tu1 -w1 |
awk 'NR % 192 == 5 { n++; if ($1 != 71) { if (n == 1) exit 2; bad = 1 } }
END { if (n < 32) exit 2; exit bad ? 0 : 1 }'; then
return 0
fi
done
return 1
}
m2ts=""; clear=0
while IFS=$'\t' read -r _ f; do
if is_encrypted "$f"; then m2ts="$f"; break; fi
clear=$((clear + 1))
done < <(find "$stream" -maxdepth 1 -type f -iname '*.m2ts' -size +0 -printf '%s\t%p\n' | sort -n)
[ -n "$m2ts" ] || { echo "No encrypted M2TS in $stream ($clear checked, all clear): the streams are not encrypted, or something is decrypting reads" >&2; exit 1; }
[ "$clear" -eq 0 ] || echo "Skipped $clear smaller M2TS file(s) that are not encrypted"
echo "Copying AACS folder and $(basename "$m2ts") ($(stat -c %s "$m2ts") bytes) from $mnt"
cp -r "$aacs" "$dump/AACS"
cp "$m2ts" "$dump/"
# --- 2. Map the device to MakeMKV's disc index (bounded wait) --------------------------
# DRV:0,2,999,12,"drive name","disc name","/dev/sr0"
idx="$(timeout 120 "$mkmkv" -r --cache=1 info disc:9999 2>/dev/null |
awk -F, -v d="$dev" '/^DRV:/ { p=$NF; gsub(/"|\r/, "", p);
if (p == d) { sub(/^DRV:/, "", $1); print $1; exit } }' || true)"
[ -n "$idx" ] || { echo "MakeMKV does not list a drive at $dev (or the listing timed out)" >&2; exit 1; }
# --- 3. Start the encrypted backup; stop it once discatt.dat is written ----------------
echo "Starting encrypted backup of disc:$idx ($dev); waiting for discatt.dat"
setsid "$mkmkv" -r backup "disc:$idx" "$work" >"$log" 2>&1 &
pid=$!
stop_mkv() {
if kill -0 "$pid" 2>/dev/null; then
kill -TERM -- "-$pid" 2>/dev/null || kill -TERM "$pid" 2>/dev/null || true
for _ in $(seq 10); do kill -0 "$pid" 2>/dev/null || break; sleep 1; done
kill -KILL -- "-$pid" 2>/dev/null || kill -KILL "$pid" 2>/dev/null || true
fi
wait "$pid" 2>/dev/null || true
}
trap stop_mkv EXIT INT TERM
deadline=$(( $(date +%s) + timeout_min * 60 ))
attr=""; last=-1; stable=0
while [ "$(date +%s)" -lt "$deadline" ]; do
# Only the local backup folder is polled; the disc is left to MakeMKV.
f="$(find "$work" -type f \( -iname discatt.dat -o -iname discattd.dat \) -size +0 -print -quit 2>/dev/null || true)"
if [ -n "$f" ]; then
len="$(stat -c %s "$f")"
if [ "$len" = "$last" ]; then stable=$((stable + 1)); else stable=0; last="$len"; fi
[ "$stable" -lt 2 ] || { attr="$f"; break; } # same size for ~2 s: written
fi
if ! kill -0 "$pid" 2>/dev/null; then attr="$f"; break; fi
sleep 1
done
stop_mkv
trap - EXIT INT TERM
[ -n "$attr" ] || { echo "No discatt.dat/discattd.dat appeared (see $log)" >&2; exit 1; }
cp "$attr" "$dump/"
chmod -R u+w "$dump"
# --- 4. Zip -----------------------------------------------------------------------------
name="$(basename "$dump")"
if command -v zip >/dev/null; then
(cd "$out" && zip -qr "$name.zip" "$name")
else
(cd "$out" && python3 -m zipfile -c "$name.zip" "$name")
fi
[ "${KEEP_BACKUP:-0}" = 1 ] || rm -rf "$work"
echo
echo "Attribute file : $(basename "$attr")"
echo "M2TS : $(basename "$m2ts")"
echo "Folder : $dump"
echo "Zip : $out/$name.zip"
Last edited by SamuriHL on Fri Nov 20, 2026 12:04 am, edited 1 time in total.
-
keydb_helper
- Posts: 1118
- Joined: Fri Sep 06, 2024 4:47 pm
Re: Public KeyDB Disc Submissions
Thanks to everyone who followed the template and provided new disc dump files. If any submissions were overlooked, please feel free to bump your post.
The following UHD discs required new media keys:
The following UHD discs required new media keys:
Code: Select all
Desperately Seeking Susan (Disc ID 0x25CC607896E4E46FB49408490641DA8A9A078328)
MKB20_v82_Mine_UHD_B9DC
MKB20_v82_UN_FLIC_1E24
Sweeney Todd (Disc ID 0xB6DBEE09F24B58591B49C9A3A65F122BB4A4F14D)
The Fortune Cookie (Disc ID 0xCF800DAD8B20A38A1F9C9650C37B213D67F562EF)
loucipher wrote: Sun Nov 15, 2026 3:32 pm Disc type: UHD
Disc ID: a0e2a8680427a398c105a573db0151f6871bb37a
Disc dump filename: MKB20_v76_Elf_1B09.tgz
loucipher wrote: Sun Nov 15, 2026 3:43 pm Disc type: UHD
Disc ID: fb0c0d097caaceefc049e8d44485821e4b3c6176
Disc dump filename: MKB20_v76_National_Lampoon's_Christmas_Vacation_FD17.tgz
Thanks for the submissions loucipher. I can see these were processed earlier today. If you didn't process them yourself, in the future I'd recommend trying out SamuriHL's KeyDB Assistant or KeyDB Console.loucipher wrote: Sun Nov 15, 2026 3:46 pm Disc type: UHD
Disc ID: bfedb5b8876ea14b29acf3df687f4e6350353715
Disc dump filename: MKB20_v76_The_Polar_Express_33FB.tgz
Sounds great. Feel free to try one disc as an initial demo when you get a chance. If there is any omission or oversight in your flow it would be better to occur once rather than in a larger batch of discs.loucipher wrote: Sun Nov 15, 2026 4:02 pm I just noticed the whole thing about synthetic dumps. I think I've got a bunch of those, so I'll be going through my collection and working my way down the list as time permits.
Thanks for that SamuriHL, both scripts sound like a nicer option compared to the manual workflow in my earlier post.SamuriHL wrote: Sun Nov 15, 2026 11:31 pm I had AI write a script for both Windows (powershell) and Linux (bash) to create the synthetic disc dump. I've not tested this but posting in case anyone finds it useful.
No worries. Thanks for following up.timjtech wrote: Sun Nov 15, 2026 2:47 am Sorry for wasting your time; I had some permissions issues with the downloaded keydb.cfg and didn't realize it. Thank you for your hard work![]()
Public KeyDB Disc Submissions
KeyDB Lower Priority Disc List
- The MKB_RO.inf file from the original disc is required
- Place the extracted keydb.cfg file in the same directory as your disc dump files
KeyDB Lower Priority Disc List
-
chucky527c
- Posts: 72
- Joined: Tue Sep 24, 2024 3:01 am
Re: Public KeyDB Disc Submissions
Dracula (2025) 4K UHD (Steelbook) (US)
Disc type: UHD
Disc ID: 0x657E7FB466D09CB93E3241846E3504A081946697
Disc dump filename: MKB20_v82_Dracula_E97E
Drive: LG WH16NS60
Drive firmware: 1.03
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? Yes
MKB_RO.inf link: https://drive.google.com/file/d/1TSxLTq ... sp=sharing
Disc dump link: https://drive.google.com/file/d/1uGy3gM ... sp=sharing
Disc type: UHD
Disc ID: 0x657E7FB466D09CB93E3241846E3504A081946697
Disc dump filename: MKB20_v82_Dracula_E97E
Drive: LG WH16NS60
Drive firmware: 1.03
LibreDrive status: Enabled
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
Is your MKB_RO.inf file size at least 2MB? Yes
MKB_RO.inf link: https://drive.google.com/file/d/1TSxLTq ... sp=sharing
Disc dump link: https://drive.google.com/file/d/1uGy3gM ... sp=sharing
-
keydb_helper
- Posts: 1118
- Joined: Fri Sep 06, 2024 4:47 pm
Re: Public KeyDB Disc Submissions
Thanks for the new disc dump chucky527c. Your disc has been added to the public keydb.chucky527c wrote: Mon Nov 16, 2026 1:14 am Dracula (2025) 4K UHD (Steelbook) (US)
Disc type: UHD
Disc ID: 0x657E7FB466D09CB93E3241846E3504A081946697
Disc dump filename: MKB20_v82_Dracula_E97E
Public KeyDB Disc Submissions
KeyDB Lower Priority Disc List
- The MKB_RO.inf file from the original disc is required
- Place the extracted keydb.cfg file in the same directory as your disc dump files
KeyDB Lower Priority Disc List