View Single Post
Old 5th January 2021, 22:10   #68  |  Link
hnsteyding
Registered User
 
Join Date: Dec 2020
Posts: 3
Bluray playback with libaacs & libbdplus for MPLayer

1. Download and install the following Java environments via link below:
OpenJDK 19.0.2:
https://www.oracle.com/java/technolo...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"
Attached Files
File Type: txt compile-libaacs.sh.txt (218 Bytes, 221 views)
File Type: txt compile-libbdplus.sh.txt (224 Bytes, 198 views)
Attachments Pending Approval
File Type: txt compile-libbluray.sh.txt

Last edited by hnsteyding; 20th December 2023 at 15:05.
hnsteyding is offline   Reply With Quote