Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#61 | Link |
Registered User
Join Date: Oct 2020
Posts: 10
|
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 |
![]() |
![]() |
![]() |
#62 | Link |
Registered User
Join Date: Oct 2020
Posts: 10
|
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! |
![]() |
![]() |
![]() |
#63 | Link |
Registered User
Join Date: Nov 2020
Posts: 2
|
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. |
![]() |
![]() |
![]() |
#64 | Link | |
Registered User
Join Date: Nov 2020
Posts: 2
|
Quote:
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 Last edited by SpaceSaver; 6th December 2020 at 22:30. |
|
![]() |
![]() |
![]() |
#65 | Link | |
Registered User
Join Date: Nov 2020
Posts: 2
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#66 | Link |
Registered User
Join Date: Nov 2013
Location: Hannover, Germany
Posts: 256
|
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 ? |
![]() |
![]() |
![]() |
#67 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,302
|
You don't need to guess, more knowledge is here:
https://makemkv.com/forum/viewforum.php?f=16
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..." |
![]() |
![]() |
![]() |
#68 | Link |
Registered User
Join Date: Dec 2020
Posts: 3
|
Bluray playback with libaacs & libbdplus for MPLayer
Hello Guys.
Here are my working instructions for playing Bluray with MPLayer. I use MinGW32 environment on Windows 10 for compille libbluray/libaacs/libbluray/MPlayer. I install MinGW32 via media-autobuild_suite script: https://github.com/m-ab-s/media-autobuild_suite 1. Download and install the following Java environmnets via link below: OpenJDK 15: https://www.oracle.com/java/technolo...downloads.html jdk-15.0.1_windows-x64_bin.exe JRE 8: https://www.java.com/de/download/manual.jsp jre-8u271-windows-x64.exe jre-8u271-windows-i586.exe 2. Set system variable: Name: JAVA_HOME Path: C:\Program Files\Java\jdk-15.0.1 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 ANT: https://ftp-stud.hs-esslingen.de/pub.../ant/binaries/ 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.2.1.jar, libbluray-j2se-1.2.1.jar) from folder "/mingw32/share/java" or "/mingw64/share/java" 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 FindVUK via link below: https://forum.doom9.org/showthread.php?t=172472 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.2.1.jar, libbluray-j2se-1.2.1.jar) from source sub folder ".libs" corresponding MPLayer binary (MPLayer.exe) directory. Solution 2: ----------- Delete system variable "JAVA_HOME" |
![]() |
![]() |
![]() |
#69 | Link |
Registered User
Join Date: Jan 2021
Posts: 3
|
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. |
![]() |
![]() |
![]() |
#70 | Link |
Registered User
Join Date: Mar 2021
Posts: 1
|
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. |
![]() |
![]() |
![]() |
#71 | Link |
Registered User
Join Date: Jan 2021
Posts: 3
|
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. Last edited by daviduu; 23rd June 2021 at 04:15. |
![]() |
![]() |
![]() |
#73 | Link |
Registered User
Join Date: Jun 2003
Posts: 21
|
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? |
![]() |
![]() |
![]() |
#74 | Link | |
Registered User
Join Date: Apr 2018
Posts: 21
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#75 | Link |
Registered User
Join Date: Jun 2003
Posts: 21
|
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. |
![]() |
![]() |
![]() |
#76 | Link | |||
Registered User
Join Date: Jun 2005
Posts: 246
|
Quote:
Quote:
Quote:
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. |
|||
![]() |
![]() |
![]() |
#77 | Link |
Registered User
Join Date: Aug 2021
Posts: 4
|
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. |
![]() |
![]() |
![]() |
#78 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,278
|
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.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#79 | Link |
Registered User
Join Date: Aug 2021
Posts: 4
|
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. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|