View Full Version : Blu-ray playback with libaacs & libbdplus
jbkempf
24th October 2020, 19:16
Btw, libbluray 1.2.1 is now out.
mick0
24th October 2020, 23:39
I have followed your directions and attached a screen shot of the error messages. I have also attached the DEBUG File.
I am running Windows 10 64 bit and installed VLC 3.0.11 32 bit. I have a libre compliant drive that works with makeMKV.
I can play DVD's but not Blu Ray or 4K Blu Ray
Any help would surely be appreciated.
Thanks!
It seems your attachments got approved.
Logfile you attached comes from VLC and doesn't contain messages from libaacs. We would need to see the libaacs log instead.
However, from that error message we can tell that either 1) you don't have host certificates in your keyfile or 2) all host certificates in your keyfile have been revoked by your drive.
Note that for 4K blurays to work you need to use AACS1 drive with a friendly firmware. AACS2 drives require AACS2 host certificates for 4K discs. Libre compliant drive that works with makemkv doesn't necessarily mean that the drive is friendly.
nuraman00
27th October 2020, 01:42
I tried the steps in the OP.
I am getting an error when I try to play the Blu-Ray.
I can't attach the log file because it says the max attachment size is 200 KB.
The log file is 3,346 KB.
nuraman00
27th October 2020, 02:13
I zipped the log file.
nuraman00
31st October 2020, 22:01
Here it is on ZippyShare.
https://www46.zippyshare.com/v/HzrkEeDC/file.html
candela
31st October 2020, 23:50
Here it is on ZippyShare.
https://www46.zippyshare.com/v/HzrkEeDC/file.html
Libaacs can't retrieve the key for that disc, use FindVuk
DanTheMann15
1st November 2020, 18:36
@nuraman00
you can get FindVUK here: https://forum.doom9.org/showthread.php?t=172472
and DVDFab here: https://www.dvdfab.cn/download.htm
nuraman00
1st November 2020, 23:22
EDIT:
Nevermind.
candela
1st November 2020, 23:30
How do you know it's looking for FindVuk? I searched through the logs for "FindVuk", but couldn't see that reference.
FindVUK is a program to extract the keys needed for playback from the commercial ripper DVDFab. Also when you run FindVUK, it synchronizes your local key database with the online database. Once someone uses FindVUK on a particular disc, the key gets added to the database and then everyone can play that disc. Since no one has added the key to the database before, you will have to do it.
nuraman00
1st November 2020, 23:30
Libaacs can't retrieve the key for that disc, use FindVuk
@nuraman00
you can get FindVUK here: https://forum.doom9.org/showthread.php?t=172472
and DVDFab here: https://www.dvdfab.cn/download.htm
Thanks. After I try these steps, I will let you know what happens, or if I need more help.
nuraman00
9th November 2020, 03:05
Now the Blu Ray plays, but I'm getting this error:
This Blu-ray disc requires Java for menus support.Java was not found on your system.
The disc will be played without menus.
I have java installed here:
C:\Program Files\Java\jdk-12.0.1
nuraman00
9th November 2020, 03:12
This is the log file:
src/libaacs/aacs.c:1276: libaacs 0.11.0 [176]
src/libaacs/aacs.c:1278: Initializing libgcrypt...
src/libaacs/unit_key.c:196: 1 CPS unit keys (AACS1)
src/libaacs/unit_key.c:98: Assigning CPS units to titles ...
src/libaacs/unit_key.c:109: Title FP : CPS unit 1
src/libaacs/unit_key.c:110: Title TM : CPS unit 1
src/libaacs/unit_key.c:130: Title 01 : CPS unit 1
src/libaacs/unit_key.c:130: Title 02 : CPS unit 1
src/libaacs/unit_key.c:130: Title 03 : CPS unit 1
src/libaacs/unit_key.c:130: Title 04 : CPS unit 1
src/libaacs/aacs.c:1078: Disc ID: ba4590ca75e050e4760dba62404ebcb9a6749235
src/file/file_win32.c:131: Opened WIN32 file C:\Users\nuram\AppData\Roaming\aacs\KEYDB.cfg (04f4b3b0)
src/file/keydbcfg.c:101: Opened C:\Users\nuram\AppData\Roaming\aacs\KEYDB.cfg for r
src/file/keydbcfg.c:567: found config file: C:\Users\nuram\AppData\Roaming\aacs\KEYDB.cfg
src/file/file_win32.c:46: Closed WIN32 file (04f4b3b0)
src/file/file_win32.c:131: Opened WIN32 file C:\ProgramData\aacs\KEYDB.cfg (04f4b4c8)
src/file/keydbcfg.c:125: Reading C:\ProgramData\aacs\KEYDB.cfg
src/file/keydbcfg.c:567: found config file: C:\ProgramData\aacs\KEYDB.cfg
src/file/file_win32.c:46: Closed WIN32 file (04f4b4c8)
src/file/file_win32.c:113: Error opening file C:\Users\nuram\AppData\Roaming\aacs\ProcessingDeviceKeysSimple.txt
src/file/keydbcfg.c:101: C:\Users\nuram\AppData\Roaming\aacs\ProcessingDeviceKeysSimple.txt not found
src/file/file_win32.c:113: Error opening file C:\ProgramData\aacs\ProcessingDeviceKeysSimple.txt
src/file/keydbcfg.c:136: C:\ProgramData\aacs\ProcessingDeviceKeysSimple.txt not found
src/file/file_win32.c:113: Error opening file C:\Users\nuram\AppData\Roaming\aacs\HostKeyCertificate.txt
src/file/keydbcfg.c:101: C:\Users\nuram\AppData\Roaming\aacs\HostKeyCertificate.txt not found
src/file/file_win32.c:113: Error opening file C:\ProgramData\aacs\HostKeyCertificate.txt
src/file/keydbcfg.c:136: C:\ProgramData\aacs\HostKeyCertificate.txt not found
src/file/keydbcfg.c:659: Config summary:
src/file/keydbcfg.c:661: 0 Device keys
src/file/keydbcfg.c:663: 19 Processing keys
src/file/keydbcfg.c:665: 8 Host certificates
src/file/keydbcfg.c:667: 1 Disc entries
src/libaacs/aacs.c:1321: Starting AACS waterfall...
src/file/file_win32.c:113: Error opening file C:\Users\nuram\AppData\Roaming\aacs\vuk\ba4590ca75e050e4760dba62404ebcb9a6749235
src/file/keydbcfg.c:387: C:\Users\nuram\AppData\Roaming\aacs\vuk\ba4590ca75e050e4760dba62404ebcb9a6749235 not found
src/libaacs/aacs.c:1006: Searching for keydb config entry...
src/libaacs/aacs.c:841: Found config entry for discid ba4590ca75e050e4760dba62404ebcb9a6749235
src/libaacs/aacs.c:875: Acquire CPS unit keys from keydb config file...
src/libaacs/aacs.c:913: Unit key 0 from keydb entry: 0a34a4ec251da52d7273b2d8b398abbf
src/file/mmc_device_win32.c:140: Opening Windows MMC drive D:\...
src/file/mmc_device_win32.c:161: Windows MMC drive \\.\D: opened
src/libaacs/mmc.c:132: MMC get configuration [feature 0x10d] ...
src/file/mmc_device_win32.c:122: Send succeeded!
src/libaacs/mmc.c:231: AACS feature descriptor:
src/libaacs/mmc.c:232: AACS version: 1
src/libaacs/mmc.c:233: AACS active: 1
src/libaacs/mmc.c:234: Binding Nonce generation support: 1
src/libaacs/mmc.c:235: Binding Nonce block count: 1
src/libaacs/mmc.c:236: Bus encryption support: 1
src/libaacs/mmc.c:237: Read drive certificate: 1
src/libaacs/mmc.c:238: AGID count: 2
src/libaacs/mmc.c:66: MMC report key...
src/file/mmc_device_win32.c:122: Send succeeded!
src/libaacs/aacs.c:1139: Bus Encryption Capable flag in drive certificate: 1
src/libaacs/mmc.c:413: Closed MMC drive
src/libaacs/aacs.c:1344: AACS initialized!
src/libaacs/mkb.c:79: MKB size: 14944
src/libaacs/mkb.c:49: Retrieved MKB record 0x10 (04f58e38)
src/libaacs/mkb.c:80: MKB type: 0x41003
src/libaacs/mkb.c:49: Retrieved MKB record 0x10 (04f58e38)
src/libaacs/mkb.c:81: MKB version: 72
src/libaacs/mkb.c:49: Retrieved MKB record 0x10 (04f58e38)
src/libaacs/aacs.c:1690: aacs_set_title(first_play): CPS unit 0
src/libaacs/aacs.c:1690: aacs_set_title(first_play): CPS unit 0
src/libaacs/aacs.c:1360: AACS destroyed!
Ghostsmurf
21st November 2020, 11:14
Hello everyone,
Thank you for this amazing tutorial and providing all those ressources !
I would like to ask a question which seems appropriate in this thread "Bluray playback with libaacs & libbdplus" :
In which folder should I put libaacs and libbdplus in the following setup : Potplayer + LAVFilters + MadVR ?
For VLC everything works fine but I'd prefer to use PotPlayer as my default player for Blurays.
I hope you can help me,
Have a great day,
Ghostsmurf.
SpaceSaver
6th December 2020, 22:18
Hello everyone,
Thank you for this amazing tutorial and providing all those ressources !
I would like to ask a question which seems appropriate in this thread "Bluray playback with libaacs & libbdplus" :
In which folder should I put libaacs and libbdplus in the following setup : Potplayer + LAVFilters + MadVR ?
For VLC everything works fine but I'd prefer to use PotPlayer as my default player for Blurays.
I hope you can help me,
Have a great day,
Ghostsmurf.
Hi Ghostsmurf!
I have done a little research regarding your question and to me it would make sense to install the libraries to PotPlayer since LAVFilters and MadVR are playing the content through PotPlayer. I would recommend trying that and going from there.
Hope this helps!
Have a superb day,
SpaceSaver
SpaceSaver
6th December 2020, 22:29
Now the Blu Ray plays, but I'm getting this error:
This Blu-ray disc requires Java for menus support.Java was not found on your system.
The disc will be played without menus.
I have java installed here:
C:\Program Files\Java\jdk-12.0.1
Hi nuraman00!
I have done some research on your problem and have come up with two things you should try. Make sure the version of Java is the same as VLC (64bit or 32bit), and try setting the JAVA_HOME environment variable to the location where the Java executable is installed.
Hope this helps!
Have an amazing day,
SpaceSaver
Grimsdyke
25th December 2020, 13:37
UHD playback requires a UHD friendly drive, i.e. a non-AACS2.0 drive that supports reading UHD discs and accepts AACS1.0 Host Certs
In the last couple of days I did set this up to become a little more independent of the usual apps. Great work, thanks !!
However, unfortunately none of my UHDs work so, I guess, my drive does not have the above abilities, right ?
Emulgator
28th December 2020, 17:17
You don't need to guess, more knowledge is here:
https://makemkv.com/forum/viewforum.php?f=16
hnsteyding
5th January 2021, 22:10
1. Download and install the following Java environments via link below:
OpenJDK 19.0.2:
https://www.oracle.com/java/technologies/javase/jdk19-archive-downloads.html
jdk-19.0.2_windows-x64_bin.exe
!!! Attention !!!
Don't use JDK (Java SE Development Kit) Version 20 or above - libbluray does not support these versions at the moment !!
JRE 8:
https://www.java.com/de/download/manual.jsp
jre-8u391-windows-x64.exe
jre-8u391-windows-i586.exe
2. Set system variable:
Name: JAVA_HOME
Path: C:\Program Files (x86)\Java\jre-1.8
3. Download und compile libaacs and libbdplus libraries via links below:
Download libaacs: https://www.videolan.org/developers/libaacs.html
Download libbdplus: https://www.videolan.org/developers/libbdplus.html
Download latest ANT binaries:
https://archive.apache.org/dist/ant/binaries/?C=M;O=D
apache-ant-1.10.14-bin.zip
Extract binaries package and move containing folders BIN,LIB,ETC to /mingw32 (x86) or /mingw64 (x64)
Compile libbluray library (without option --disable-bdjava-jar !!)
4. Move compiled DLLs ("libaacs-0.dll", "libbdplus-0.dll") to corresponding MPLayer binary (MPLayer.exe) directory und rename to "libaacs.dll" and "libbdplus.dll"
Move JAR files (e.g. libbluray-awt-j2se-1.3.4.jar, libbluray-j2se-1.3.4.jar) from source code sub folder ".libs"
to corresponding MPLayer binary (MPLayer.exe) directory.
5. Download AACS keydb.cfg file via http://fvonline-db.bplaced.net and move it to "C:\Users\<YourWindowsUser>\AppData\Roaming\aacs"
For example "C:\Users\WonderFox\AppData\Roaming\aacs". Just create an "aacs" folder if it doesn't exist in the subfolder of "Roaming".
6. Now run MPLayer: "mplayer -cache 8192 br:///E:" in case E: is your Bluray drive
Troubleshooting:
--------------------------------------------------------------------------------------------------------------------------------------------------------
Bluray would not be played - MPLayer message(s):
----------------------> ../src/libaacs/aacs.c:597: Error calculating media key. Missing right processing key ?
../src/libaacs/mmc.c:682: Drive does not support reading drive certificate
../src/libaacs/aacs.c:1142: Unable to read drive certificate
src/libbluray/disc/aacs.c:121: No usable AACS libraries found!
src/libbluray/disc/dec.c:197: aacs_open() failed: -3!
src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
Fülle Zwischenpuffer: 0.00% (0 Bytes) src/libbluray/bluray.c:752: Skipping broken unit at 0
src/libbluray/bluray.c:299: 00002.m2ts: no timestamp for SPN 0 (got 0). clip 90000-436666140.
src/libbluray/bluray.c:752: Skipping broken unit at 0
src/libbluray/bluray.c:752: Skipping broken unit at 6144
...
src/libbluray/bluray.c:695: TP header copy permission indicator != 0. Stream seems to be encrypted.
...
Explanation:
------------
The AACS keydb.cfg file does not contain the appropriate Device- and/or ProcessingKeys for AACS library for your Bluray device.
Solution:
---------
Download latest FindVUK version via link below:
http://fvonline-db.bplaced.net/findvuk/?C=M;O=D
Install one of the following programs:
DVDFab 10.0.4.8
Passkey 9.2.1.1 or
Media Player 3.2.0.0.
Registered versions are recommended !
However, newwer versions of DVDFab has stopped supporting these players for newer discs. Latest DVDFab programs only allow retrieval of UnitKeys.
Start FindVUK and follow the instructions.
--------------------------------------------------------------------------------------------------------------------------------------------------------
Bluray would not be played - MPLayer message(s):
----------------------> ../src/file/keydbcfg.c:701: No valid AACS configuration files found
../src/libaacs/mmc.c:682: Drive does not support reading drive certificate
../src/libaacs/aacs.c:1142: Unable to read drive certificate
src/libbluray/disc/aacs.c:121: No usable AACS libraries found!
src/libbluray/disc/dec.c:197: aacs_open() failed: -2!
src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
Fülle Zwischenpuffer: 0.00% (0 Bytes) src/libbluray/bluray.c:752: Skipping broken unit at 0
src/libbluray/bluray.c:299: 00002.m2ts: no timestamp for SPN 0 (got 0). clip 90000-436666140.
src/libbluray/bluray.c:752: Skipping broken unit at 0
src/libbluray/bluray.c:752: Skipping broken unit at 6144
...
src/libbluray/bluray.c:695: TP header copy permission indicator != 0. Stream seems to be encrypted.
src/libbluray/bluray.c:752: Skipping broken unit at 55296
...
Solution:
---------
Check if the AACS keydb.cfg file is located in "C:\Users\<YourWindowsUser>\AppData\Roaming\aacs"
For example "C:\Users\WonderFox\AppData\Roaming\aacs". Just create an "aacs" folder if it doesn't exist in the subfolder of "Roaming".
--------------------------------------------------------------------------------------------------------------------------------------------------------
MPLayer message(s):
...
----------------------> src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
----------------------> src/libbluray/bdj/bdj.c:750: BD-J check: Failed to load JVM library
...
Solution 1:
-----------
Copy JAR files (e.g. libbluray-awt-j2se-1.3.4.jar, libbluray-j2se-1.3.4.jar) from source sub folder ".libs" corresponding MPLayer binary (MPLayer.exe) directory.
Solution 2:
-----------
Delete system variable "JAVA_HOME"
daviduu
28th January 2021, 05:47
Thought I should quickly write about my experience using these instructions for VLC. I had a few snags here and there but things seem to be working fairly well for the most part.
The first hiccup (which was due to my own confusion with the instructions) occurred because, while I put the aacs and libbdplus DLLs in the corresponding %programdata% folders, I hadn't copied them into the VLC folder in my C: drive. After putting copies of the DLLs inside that folder, I was able to play Blu-rays pretty smoothly.
Menus weren't working at first, but downloading Java fixed that.
I was occasionally getting some fragmenting with certain discs in certain chapters, but disabling hardware-accelerated decoding seems to have fixed that issue.
I've been using VLC to watch my Twin Peaks Blu-rays, and the program seems to crash reliably in the same spot right before getting to the main menu (after selecting the language and right after the DTS logo). I've been able to circumvent this by changing the starting position to title 3 when opening the discs. Doing this opens the disc into one of the episodes, allowing me to hit shit+m to reach the main menu.
I've occasionally had issues where playback won't continue when a new chapter is reached, and I haven't found a great fix for this other than manually clicking the progress bar forward. This has only happened on two episodes so far. If anyone has any suggestions, let me know. I'll admit I'm not really knowledgeable about this stuff and have essentially cobbled enough knowledge together to barely scrape by.
Count_Omega
17th April 2021, 12:30
Hi all, I´ve tried ( unsuccessfully) to playback my Legion blu ray disk with vlc. I did all the steps candela described in the intitial post. VLC keeps complaining about the missing libary despite it being installed. Log:
src/libbluray/disc/bdplus.c:142: attempting to load libbdplus
and
-- logger module started --
main: VLC is run with the default interface. Use 'cvlc' to use VLC without interface.
main: playlist is empty
libbluray: First play: 0, Top menu: 0
HDMV Titles: 5, BD-J Titles: 86, Other: 86
libbluray: First play: 0, Top menu: 0
HDMV Titles: 5, BD-J Titles: 86, Other: 86
-- logger module stopped --
i also tried 32 bit VLC.
I guess the libary isn´t "recognized" by VLC. Any thoughts on this? My drive is a Hitachi hl-dt-st bddvdrw ch10n.
daviduu
23rd June 2021, 03:11
Thought I'd write an update of sorts to my last post.
I just bought Second Sight's release of Lake Mungo on Blu-ray, and when I put it in my disc drive, I was sad to see an error relating to AACS and keys (I figure because it's such a new release). I was fiddling around with MakeMKV afterwards and realized there's an option in the preferences which allows VLC to use MakeMKV to decrypt Blu-ray discs. I checked the box, closed MakeMKV, fired up VLC and voila, the disc played perfectly. This might be a placebo, but it seems to load a bit faster than the method outlined here, and it seems like you don't have to do as much fiddling. I've since removed everything from the steps listed here and all is still good. We'll see how it works in the long run.
A funny change I've noticed is that VLC no longer loads a splash card upon loading the disc. No idea why.
I think it's worth checking out for anyone interested in BD playback in VLC!
Edit: It seems I've spoken too soon! I was testing VLC with other discs and it seems to crash a lot with the MakeMKV method. I guess I'll be using both for now.
Grimsdyke
25th June 2021, 09:40
I am using the "system wide" settings in MakeMKV and have not had any problems so far !
By the way, does anyone maybe know how to set up this decryption only as a Windows service ?
richy
8th July 2021, 19:07
I've just been checking a stack of discs I've acquired to make sure their keys were already in the online database before I got shot of most of them. Any that were missing keys I've been submitting via FindVUK.
One of the first few I tried was an Alvin and the Chipmunks movie trilogy set and I soon discovered they were blighted with BD+ so I produced my own set of tables using Pavtube BDMagic and BlurayTest&Decrypt as well. I've done this before with other Fox titles I own because I figure it doesn't hurt to double check them against the "official" ones (in the first post of this thread) to make sure they're ok. On this occasion I wasn't able to do the first film using my normal method and had to use bdvmdbg instead because BDMagic didn't produce a table for this one... I'm guessing because it's a MKBv7 disc??
Anyway, the first two films matched the existing tables and played fine. The third one, however, consistently produced a table that was the same size as the existing one but was not an exact match. I even deleted the files BDMagic had downloaded and re-did the whole process and still got the same result.
Looking in a hex editor I can see that there's a whole run where every 16th byte differs for about 34 instances, then there's a gap, then there's a run of differences every 16th byte for 32 instances... and so on, and so on. Basically, there is a lot of similarity but they obviously aren't identical. What doesn't help is that both tables *appear* to work ok with my disc in terms of playback. I don't know whether BD+ would only affect specific files or whether the whole disc would be affected. For instance, I've only skimmed the main movie and one of the extras and they seemed ok to me.
Presumably it isn't technically possible to produce two tables that aren't identical and yet have them both work ok... right?
Alvin and the Chipmunks: Chipwrecked MKBv23
Disc ID: EB347A795DB26D90EF780868805FF850082865E2
Media key: EAAB32C8E239547746AC537E9D2E5410
Existing BD+ table CRC32: 6F33BE9C
My BD+ table CRC32: F9D2F008
I've tried having a look at them in ConvTableView but it's really way over my head. Would it be any use if I sent my table for someone to look at? I'd hate to think that a cinematic classic such as this had an incorrect BD+ table ;)
TL;DR - is it possible to have two differing BD+ tables for the same title?
maetel99
10th July 2021, 06:52
TL;DR - is it possible to have two differing BD+ tables for the same title
I believe the answer is yes. The reason is that there are values in the BD+ fixup tables called "type 2" switchable entries. During the decryption of the tables, those entries are resolved into either inactive "type 0" entries or active "type 1" entries.
The different BD+ tools store the resolved active "type 1" entries in different ways, with some tools leaving the "type 2" bit still set and others clearing that bit and storing them as true "type 1" entries.
My guess is that players ignore the "type 2" bit during playback so that it doesn't matter which format you use to store the table. However, tables stored by two different tools might end up with differing entries.
richy
11th July 2021, 12:29
Thanks for your reply and I'm pretty sure you're right as after reading it it occurred to me that I ought to be able to verify if the tables were both producing the same results by hashing and comparing the decrypted video files - a lot more scientific than trying to spot if two videos that looked ok were actually the same just by watching them!
I initially compared the checksums of some of the smaller files and they matched so I ended up creating two full iso images using the two different tables and both were 100% identical.
I use Xreveal as it's free and can decrypt discs on the fly and I also noticed that it creates a temporary text file which appears to be a cached version of all the addresses it needs to patch (headings of LBA, Addr, Data followed by 15904 entries). Using the two different tables produced an identical text file both times (which is what you'd expect if the decrypted files were the same) so after all that belt and braces checking I guess I've now got a definitive answer to my question. :)
I don't know if either table is a more "elegant"(?) option but if I do happen to get differing tables in the future I can at least verify them 100%. If anyone does want a copy of my table for any reason then just let me know.
candela
11th July 2021, 22:48
Thanks for your reply and I'm pretty sure you're right as after reading it it occurred to me that I ought to be able to verify if the tables were both producing the same results by hashing and comparing the decrypted video files - a lot more scientific than trying to spot if two videos that looked ok were actually the same just by watching them!
I initially compared the checksums of some of the smaller files and they matched so I ended up creating two full iso images using the two different tables and both were 100% identical.
It won't always work. I've seen different tables that patch the 5 corrected bytes with an addres offset of 1 (so in a sequence of 6 bytes, only 4 get patched to the same value by the different tables). Yet both tables seem to work. It may be some kind of watermarking going on to identify the emulated player (or simply an error in one of the tables, can't really know)
I use Xreveal as it's free and can decrypt discs on the fly and I also noticed that it creates a temporary text file which appears to be a cached version of all the addresses it needs to patch (headings of LBA, Addr, Data followed by 15904 entries). Using the two different tables produced an identical text file both times (which is what you'd expect if the decrypted files were the same) so after all that belt and braces checking I guess I've now got a definitive answer to my question. :)
This would be the same as the Convtabview columns +address 0, +address 1, patch0, patch1
I don't know if either table is a more "elegant"(?) option but if I do happen to get differing tables in the future I can at least verify them 100%. If anyone does want a copy of my table for any reason then just let me know.
Like maetel99 said, the difference in table hash is sometimes caused by the different entry types. Unfortunately the original cached libbdplus format removed the inactive entries (instead of keeping them and ignoring) which causes all the offsets in the table to change.
The encrypted version of the table is actually somewhere in the BDSVM files on the disc (except for the final versions of bdplus). You can find them by searching for the table headers, eg search for the first 12 bytes of the table in the BDSVM files. Note that later BD+ version have more than 1 encrypted table, requiring different encryption keys (targeting different players)
Basically the cached table matches a encrypted version on the disc, except the "patch 0/1" data has been decrypted. But because of those removed entries and changed offsets in the tables in this collection, it's not always possible to easily compare them.
It would be possible to seriously reduce the table database size by supplying only the decryption keys for the tables on the disc. It would allow you to generate the decrypted table for Libbdplus using your disc and the keys. It's probably more reliable. But we would need a cross platform user friendly tool.
trucide
1st September 2021, 14:56
With libaacs and a proper keydb (thanks to findVUK), I can decrypt nearly all of my bluray on the fly and play them with VLC and Kodi.
I wonder if this combo can be used with other softwares who need to access bluray ? For example, BDInfo is unable to decrypt a blu ray directly from the disc. Ideally, if a software like AnyDVD HD could be coupled to libaacs, we could achieve a complete access to blu ray discs. Is there a way to achieve that ? or is it completely foolish ?
Anyway, a big thanks to all those who contribute to develop these tools that help us to be independent from blu ray player manufacturers.
nevcairiel
1st September 2021, 15:38
If you already have AnyDVD HD, you don't need libaacs anymore, since AnyDVD HD will decrypt the disc before any other software can see it.
On the other side, MakeMKV actually can make its decryption engine mimick libaacs and libbdplus, so with that you can also play discs that MakeMKV can decrypt without needing a seperate libaacs setup.
trucide
2nd September 2021, 17:00
Thank you for your answer.
I don't have and don't want to use anyDVD. My question was about replacing anyDVD who decrypt the bluray "on the fly" (which allow free access to the content of the bluray, so any video player who can read mkv will play movie files directly from the disc) with an open soft that doesn't need to access the internet to find the bluray keys and just get them from keybd (via libaacs ?)
>> Free access to the content of the bluray whatever soft used, without access to the internet.
I don't know if I'm clear. English is not my maternal language.
richy
5th September 2021, 15:15
I'd recommend Xreveal by yubsoft. It's a free on-the-fly decrypter that uses the keys from your keydb.cfg file to decrypt any blu-ray you insert and doesn't require access to the internet.
Emulgator
5th September 2021, 21:05
My question was about replacing anyDVD who decrypt the bluray "on the fly" (which allow free access to the content of the bluray, so any video player who can read mkv will play movie files directly from the disc) with an open soft that doesn't need to access the internet to find the bluray keys and just get them from keybd (via libaacs ?)
MakeMKV can do that. (Ah, just saw it, Nev mentioned it too)
You can expose libmmbd to other programs (like players).
nalor
6th September 2021, 07:26
I'd recommend Xreveal by yubsoft. It's a free on-the-fly decrypter that uses the keys from your keydb.cfg file to decrypt any blu-ray you insert and doesn't require access to the internet.Sounds interesting [emoji2]
Will test it tonight.
Gesendet von meinem H8324 mit Tapatalk
trucide
8th September 2021, 08:55
I'd recommend Xreveal by yubsoft. It's a free on-the-fly decrypter that uses the keys from your keydb.cfg file to decrypt any blu-ray you insert and doesn't require access to the internet.
Thank you very much !
I'll try it tonight. :thanks:
trucide
8th September 2021, 08:59
MakeMKV can do that. (Ah, just saw it, Nev mentioned it too)
You mean you can use MakeMKV without internet, with just the keydb file ? I've vaguely tried this once, but to no effect.
You can expose libmmbd to other programs (like players).
Can you develop a little bit ?
How can you do that ?
Thank you very much for any insight.
candela
8th September 2021, 18:57
can we please stop talking about 3rd party applications that work without libaacs/libbdplus, since the whole point of this thread was to avoid such applications. Use a different forum thread for those.
nst
8th October 2021, 19:55
Hello all,
I'm not entirely sure if all changes to libaacs are merged to upstream yet (IIRC they are). Regarding libbdplus and the cached convtab functionality: Cached convtabs are working with and is fully supported by upstream libbdplus as of today! The functionality itself was added upstream in the last few days except the automatic load from the cache directory. I created a merge request for this missing bit and added table loading from .config/bdplus (suggestion by the upstream maintainers) aswell as loading from the system config dir, that MR got merged today. Also, BD+ disc playback from within Kodi got fixed properly in libbluray, so the patch tampering with bdplus_m2ts() isn't necessary anymore when using libbluray from GIT HEAD.
Thanks to the original authors of the original patches, making BD playback (on Linux and Kodi) possible without the need for proprietary closed blobs!
Regards,
nst
farmerjoe
2nd January 2022, 10:11
Good morning,
yesteday VLC told my that the key of the movie (Ghost_in_the_Shell) I wanted to watch was revoked - never seen that before with 200+ discs.. anyone know hat the issue is?
Made a backup of the movie to disc using MakeMKV with the same keyfile and had no issues at all.
Brgds
Joe
daviduu
15th February 2022, 03:26
Like others in this thread, I started getting the following error message when trying to load a disc: "Blu-ray error: No valid processing key found in AACS config file." This started happening on discs that I'd for sure played in the past. I've found that using MakeMKV to decrypt the disc has worked (although I had to make sure I had a working beta key). VLC will initially crash, but reopening the program and the disc seems to work fairly reliably.
candela
16th February 2022, 19:42
The keydb.cfg currently has:
Processing Key up to MKBv68
Host Certificate revoked in MKBv72
Disc specific keys up to MKBv76
If you have attempted to play a disc with MKBv72 or higher the host certificate is revoked by your drive:
You can no longer play discs that have bus encryption enabled (unless bus key was cached by VLC or your drive does not support bus encryption)
You can no longer play discs without a disc specific key (in keydb.cfg or cached by VLC)
Problems
"Ghost in the shell" -> probably has bus encryption
"Blu-ray error: No valid processing key found in AACS config file." This started happening on discs that I'd for sure played in the past. -> Hard to believe you played these discs before because there would have been a disc specific key, or the processing key generated the disc specific VUK which would be cached by VLC on your PC
PoShawnified
28th March 2022, 17:25
Made an account to thank @candela for the steps.
Threw this together for myself but will share it here in case it helps any other Windows users. No warranty and no guarantees ;) https://github.com/PoShawnified/VLC_BluRay_Support
demomode
11th April 2022, 19:53
If you have attempted to play a disc with MKBv72 or higher the host certificate is revoked by your drive:
You can no longer play discs that have bus encryption enabled (unless bus key was cached by VLC or your drive does not support bus encryption)
You can no longer play discs without a disc specific key (in keydb.cfg or cached by VLC)
And what can we do to play this disc on VLC?
RealSnoopyDog
30th April 2022, 11:46
You'll either need a new "Host Cerificate" (and I always ask myself where they come from - are they just "findings" or can they be calculated) or maybe an alternate firmware for the drive like LibreDrive might help. But I don't have experience with LibreDrive, I only know that you should flash it BEFORE you try to playback a Blu-Ray which requires a newer host certificate. And the latest revision that I find is from 2020
I still playback my old Blu-Rays without any problems with this software, LAV and DVBViewer. But I did not buy any new Blu-Rays the last months. Not because streaming movies from different platforms is possible. I still would prefer to buy new movies on a Blu-Ray from time to time because the picture and sound quality is much better compared to streaming. But I want to avoid the risk that an updated required host certificate on a new Blu-Ray will "kill" my drive and I can not watch my old movies anymore. So congratulations to the paranoic content protection "mafia", you ruin your own business.
And thank you very much candela for giving us this software, it works very satisfying from the beginning.
Roof Tile
3rd May 2022, 13:59
So recently I noticed that libbdplus and libaacs had been updated for some time (which was especially exciting since libbdplus hasn't gotten a proper new version since 2015!). I figured I'd go to the main post and download them like before, but it appears that both sets of files haven't been updated yet. So, I decided to try and figure out how to do it myself, working off of the nice post by hnsteyding to do so.
It took far longer than it should have due to me not understanding how all of this works, but I finally was able to get the files in their new, shiny glory and got them to work with VLC like the old set. Given how hard it was for me to figure this all out, I'm throwing up my 64-Bit versions of the files and the instructions of how I did so both to help others and in case I somehow messed something up without knowing it.
Edit: Fixed some terrible spelling on my part in the instructions and added a little note to say what version of libaacs and libbdplus the files are for future people's clarification.
Content isn't any different besides that.
StainlessS
26th May 2022, 05:19
I'de like to try your updated libs but alas, Attachments Pending Approval, still.
[why in 4 part RAR for piddly little files - cant be that big. {EDIT: Maybe avoid malware scan ???}]
EDIT: Great, attachments approved. Thanx Mod.
hnsteyding
28th May 2022, 23:36
@Roof Tile:
Hint regarding to your making instructions - Topic 3:
"3. Install the latest version of Ant from here (https://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist//ant/binaries/) by putting its BIN,LIB,ETC files
inside /mingw32 (x86) or /mingw64 (x64) depending on what build you are making. *I don't know if this is actually needed, but the guide said it was so I do it*"
ANT is only required if you want compile libbluray library with BD-J (Blu-ray Disc Java) support.
:)
Regards.
Bahamuth
21st July 2022, 07:07
Hi everyone,
I have a BluRay from a 2007 movie (The Simpsons movie, German one). And it is kinda strange, that the bdplus tables do not have any entry for that, isn't it?
FindVUK database lists three DiscIDs with the name of the disc:
0x704DC40295374F2450A675E2ADC7F54D33FC203A = SIMPSONS_MOVIE_F2 | D | 2007-10-03 | V | 0xF169EF38CE36B19E63B060788C1F2C8D | M | 0x98A87950D323B12A1D8E9D5475D90959 | I | 0xD35AE8AA31B7B7BEA588E792A79B1DFE | U | 1-0x68E98204C5E70658CEB0C3C3136F4934 ; MKBv4/BD+/FindVUK 1.07 - MainPlaylist: 00116.mpls - VolumeSize: 33901182976 (BD)
0x760E63AE7B491F96E8BC080DE25015C31A1C57BA = SIMPSONS_MOVIE_F2 | D | 2007-10-03 | V | 0xAC2F600506AE8CCEBB6B630D11CBC1CB | M | 0x98A87950D323B12A1D8E9D5475D90959 | I | 0xA9C3C947131BFC6F2C681A8EB8CFF31C | U | 1-0x68E98204C5E70658CEB0C3C3136F4934 ; MKBv4/BD+/FindVUK 1.38 - MainPlaylist: 00116.mpls - VolumeSize: 33901182976 (BD)
0x7D807F13D5948FE89DA2E3BF21CEAFE265D8401B = SIMPSONS_MOVIE_F2 [The Simpsons Movie] | D | 2007-10-28 | V | 0x1AA7C2F98D320FAB647B73A4F777BB25 | M | 0x98A87950D323B12A1D8E9D5475D90959 | I | 0x61EAFAF0219B22B96092C0E7A1218486 | U | 1-0x68E98204C5E70658CEB0C3C3136F4934 ; libaacs (LEGACY) (NOTVALIDATED) (BD)
The middle one is mine. But none of the DiscIDs can be found in AppData\Roaming\bdplus\convtab after downloading all cached BD+ tables. Is the first gen somehow not included or do I have a very special movie there?
candela
21st July 2022, 09:38
Hi everyone,
I have a BluRay from a 2007 movie (The Simpsons movie, German one). And it is kinda strange, that the bdplus tables do not have any entry for that, isn't it?
The middle one is mine. But none of the DiscIDs can be found in AppData\Roaming\bdplus\convtab after downloading all cached BD+ tables. Is the first gen somehow not included or do I have a very special movie there?
BD+ tables are not identified by DiscID but by MK (98A87950D323B12A1D8E9D5475D90959_SIMPSONS_MOVIE_F2.bin)
Bahamuth
21st July 2022, 10:05
So recently I noticed that libbdplus and libaacs had been updated for some time (which was especially exciting since libbdplus hasn't gotten a proper new version since 2015!). I figured I'd go to the main post and download them like before, but it appears that both sets of files haven't been updated yet. So, I decided to try and figure out how to do it myself, working off of the nice post by hnsteyding to do so.
It took far longer than it should have due to me not understanding how all of this works, but I finally was able to get the files in their new, shiny glory and got them to work with VLC like the old set. Given how hard it was for me to figure this all out, I'm throwing up my 64-Bit versions of the files and the instructions of how I did so both to help others and in case I somehow messed something up without knowing it.
Edit: Fixed some terrible spelling on my part in the instructions and added a little note to say what version of libaacs and libbdplus the files are for future people's clarification.
Content isn't any different besides that.
Funny that the "Instructions when making new build" say "Rename "libaacs-0.dll" and "libbdplus-0.dll" to remove the "-0"" but when doing so and running aacs_info it tells me, that it cannot find libaacs-0.dll.
Bahamuth
21st July 2022, 10:06
BD+ tables are not identified by DiscID but by MK (98A87950D323B12A1D8E9D5475D90959_SIMPSONS_MOVIE_F2.bin)
Ah I see. Guess I have to write to the BlurayTestAndDecrypt-guy then, because watching the process with Process Monitor, it is searching for a file named conv_tab_ + DiscID. There's where my ignorance came from about the ID.
Thank you!
Roof Tile
23rd July 2022, 12:15
Sorry for not checking up on this in forever, my bad.
I'de like to try your updated libs but alas, Attachments Pending Approval, still.
[why in 4 part RAR for piddly little files - cant be that big. {EDIT: Maybe avoid malware scan ???}]
EDIT: Great, attachments approved. Thanx Mod.
I tried just uploading it in one part but for some reason it hated that. So, I split it up into the amount it said was the limit and went with that. I probably just didn't read something correctly, but I figured this place had a data limit to prevent spam or the like. Sorry to give you a scare about malware, wasn't my intention to seem nefarious or anything but I totally understand the concern.
@Roof Tile:
Hint regarding to your making instructions - Topic 3:
"3. Install the latest version of Ant from here (https://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist//ant/binaries/) by putting its BIN,LIB,ETC files
inside /mingw32 (x86) or /mingw64 (x64) depending on what build you are making. *I don't know if this is actually needed, but the guide said it was so I do it*"
ANT is only required if you want compile libbluray library with BD-J (Blu-ray Disc Java) support.
:)
Regards.
Thank you for the info!
Funny that the "Instructions when making new build" say "Rename "libaacs-0.dll" and "libbdplus-0.dll" to remove the "-0"" but when doing so and running aacs_info it tells me, that it cannot find libaacs-0.dll.
Huh, that’s what I had to do to get VLC to play nice. Maybe I did something wrong and somehow fixed it in a dumb roundabout way? Regardless, I hope I didn’t cause you any annoyance with the issue.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.