Can't find "set an AACS keys directory" option in 1.7.0

Everything related to MakeMKV
Post Reply
tmas333
Posts: 2
Joined: Tue Jan 24, 2012 4:00 am

Can't find "set an AACS keys directory" option in 1.7.0

Post by tmas333 »

http://www.makemkv.com/faq/item/12

says to set the keydb folder. Only problem is I dont see such an option in preferences. Can someone please help me?
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by mike admin »

For some time, MakeMKV uses a single directory for all its files (aacs keys, SVQ files, profiles, etc). Now it's called "MakeMKV data directory" in preferences.
tmas333
Posts: 2
Joined: Tue Jan 24, 2012 4:00 am

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by tmas333 »

hmm, I tried that and it didnt work. I tried an older version with the keys directory option and worked perfectly first time.

perhaps the newest version has a bug with detecting the keydb file? I need to manually use the keys since I use my ps3 to make "incomplete" dumps.

EDIT: after my current encode finishes I'll reinstall 1.7.0 and try again.
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by mike admin »

Please check the keyfile filename. The key file must have one of the following extensions: *.txt , *.htm , *.html, *.key or *.cfg .
PaulMC
Posts: 3
Joined: Mon Apr 02, 2012 10:05 am
Location: Earth (Guyana / South Africa / USA)
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by PaulMC »

Hi all,

First, Mike let me say that MakeMKV is a great utility for full-quality A/V media backup, and I'm generally a very happy (registered) user!

However, I too have found that AACS Volume Unique Key (VUK) lookup no longer works in recent v1.7.x versions, at least not under Mac OS X 10.6.8... Specifically, I happen to have an encrypted backup Blu-ray folder of 'Scream 4' that at some point I'd copied as-is (via the Finder) to an external hard drive from my original disc. Of course, since then I've used MakeMKV 1.7.x to also make a decrypted full backup BD folder, which I use for everyday playback in VLC 2.0.x. :-) Interestingly though, it turns out that VLC can successfully play the DRM'd BD folder too, once I placed the appropriate Disc ID / VUK entry into my ~/.config/aacs/KEYDB.cfg database file used by VLC's libaacs library.

Recently, I was experimenting with opening that same DRM'd BD folder in MakeMKV 1.7.x. I copied the working VUK entry into my ~/.MakeMKV/keydb.cfg database file (with a slightly modified syntax for the hex strings, stripping off the explicit '0x' prefix required by libaacs). The DB file's parent directory is set accordingly in the Preferences ('General > MakeMKV data directory'). Unfortunately, MakeMKV v1.7.x is not at all happy with this key DB; the resulting error messages are typically as shown here for v1.7.3:

Code: Select all

Debug log started at Mon Apr  2 23:40:17 2012 , written by MakeMKV v1.7.3 darwin(x86-release)
Using 524544KB for read cache.
001005:0000 MakeMKV v1.7.3 darwin(x86-release) started
001004:0000 Debug logging enabled, log will be saved as /Users/paul/MakeMKV_log.txt
002014:0000 Optical drive "DVD+R-DL HL-DT-ST DVD-RW GH41N PQ05" opened in DASPI v1.3 mode.
002014:0000 Optical drive "BD-RE HL-DT-ST BD-RE  WH12LS39 1.00" opened in DASPI v1.3 mode.
003006:0000 Opening files on harddrive at /Volumes/Kashta/Shared Documents/Documents/+Multiple/MultiMedia/Movies/+Discs Conversions/!Discs Decryption Tests/Scream 04 {BD} {AACS (MKB v23)}/
001003:0020 DEBUG: Code 2 at R4E)UL.k9|P=\opmBqdTm9:121261658
003303:0000 The volume key is unknown for this disc - video can't be decrypted
001003:0020 DEBUG: Code 0 at dKw{?$w /Tj\$w-m:121263544
001003:0020 DEBUG: Code 0 at dKw{?$w /Tj\$w-m:29396897
005010:0000 Failed to open disc
Application exited at Tue Apr  3 00:00:15 2012
005010:0000 Failed to open disc
To carry out more extensive testing, I downloaded several older MakeMKV editions from both this website and VideoHelp. For me, the last version where the key DB works is v1.6.10. (This might also have been the last one where the preference for the key DB location was known as 'AACS > Key files directory'?) I.e., in v1.6.10 with the properly set preference pointing to the key DB's parent directory (and with exactly the same key DB), I was indeed able to open the DRM'd BD folder and see the title list as usual. :-)

However, with every later release that I tested (where that setting has changed to 'General > MakeMKV data directory'), from v1.6.12 up through v1.7.3, the functionality is accidentally broken. So, it does look like a regression issue that started around v1.6.12?

Kind regards,
--Paul
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by mike admin »

Yes, you re absolutely correct - this is a bug introduced few versions ago that no one noticed. Please see http://www.makemkv.com/forum2/viewtopic.php?f=8&t=4792 , you need place your cfg file in both MakeMKV and "current" directory.
PaulMC
Posts: 3
Joined: Mon Apr 02, 2012 10:05 am
Location: Earth (Guyana / South Africa / USA)
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by PaulMC »

Okay, thanks for the news... The suggested workaround is effective under OS X as well. :-)

I found it easiest to automate the launch by using a small "command" file (a text file that has a '.command' extension, is marked executable, & opens in Terminal when double-clicked). This command file just contains a short 'bash' shell script to first 'cd' into my MakeMKV data directory, and then launch the MakeMKV exec in asynch mode (/path/to/MakeMKV.app/Contents/MacOS/makemkv &). Double-clicking this command file ends up spawning a fully detached instance, so after quitting Terminal, I'm left with a running MakeMKV app whose current directory is my MakeMKV data dir. With this approach, the key DB lookup works fine. (It also avoids having to copy or sym-link the key DB files elsewhere, which is nice for lazy ole me; hopefully it won't have side-effects down the road, but if so, I'll just revert to making copies/sym-links somewhere else & running the exec from there.)

[Actually, just for fun, it's possible to get even more automated & avoid Terminal altogether, by making a double-clickable AppleScript (AS) applet that runs the above script via the 'do shell script' AS command. There are some additional redirection tricks needed to persuade the applet to not wait around on the spawned MakeMKV instance; the details are in Apple's Tech Note TN2065 'do shell script in AppleScript' (the 'Other Concerns' section). This applet technique does work fine too. ;-)]

Anyway, I'm happy with the workaround until a subsequent MakeMKV release can fully resolve the issue.

Thanks again,
--Paul
PaulMC
Posts: 3
Joined: Mon Apr 02, 2012 10:05 am
Location: Earth (Guyana / South Africa / USA)
Contact:

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by PaulMC »

Mike, many thanks for the recent v1.7.4 release which (along with its other improvements) once again respects the configured data directory when looking for AACS key DB files.

With the appropriate Volume Key entry present in a DB file, for testing purposes, I was indeed able to successfully extract the main title from my as-is/encrypted backup BD folder of 'Scream 4'. [Well, actually I first had to use MakeMKV to make a new as-is backup because the older Finder-copied backup yielded several 'corrupt or invalid at offset ...' errors (no doubt due to some "feature" of my BD drive, or bit rot, or whatever).]

Thanks again,
--Paul
ricloud
Posts: 1
Joined: Sun Oct 01, 2017 1:59 am

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by ricloud »

mike admin wrote:Yes, you re absolutely correct - this is a bug introduced few versions ago that no one noticed. Please see http://www.makemkv.com/forum2/viewtopic.php?f=8&t=4792 , you need place your cfg file in both MakeMKV and "current" directory.
Hey guys, it's now 2017, a few years later from the creation of this post. I am on a Mac and using Plex to play my BlueRay MKVs. I am trying to convert BlueRay ISOs to MKV. I have a recent KYEDB.cfg but I can't make MakeMKV to recognize it. Any instructions?
Woodstock
Posts: 9912
Joined: Sun Jul 24, 2011 11:21 pm

Re: Can't find "set an AACS keys directory" option in 1.7.0

Post by Woodstock »

MakeMKV uses the directory set in Preferences->General->MakeMKV directory to handle all user-supplied files, as well as SVQ files downloaded from makemkv.com and dump files it generates that should be sent to Mike. As far as I can tell, that's where the third-party AACS key database would be placed.
MakeMKV Frequently Asked Questions
How to aid in finding the answer to your problem: Activating Debug Logging
Post Reply