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. |
![]() |
#21 | Link | |
Registered User
Join Date: Jun 2005
Posts: 216
|
Quote:
|
|
![]() |
![]() |
![]() |
#22 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,268
|
I'm pretty sure they're talking about the Disc ID, not any of the keys. aacs_info should be able to get that much, no matter what happens to be inside keydb.cfg (since it's just the SHA-1 hash of Unit_Keys_RO.inf).
|
![]() |
![]() |
![]() |
#24 | Link |
Registered User
Join Date: May 2011
Posts: 67
|
This is what I did
Code:
0x018D1B988A96CC29F2E0DABB07770D8CBE553851 = UHD_VALERIAN | U | 1-0x2DA7E5518B5D93220A99E3C01A89256A ; (UHD) (LEGACY) (NOTVALIDATED) (BD) 0x2C70B65B65A7EC26152698552E900A51C7575264 = UHD_VALERIAN | U | 1-0x2DA7E5518B5D93220A99E3C01A89256A ; (UHD) (LEGACY) (NOTVALIDATED) (BD) |
![]() |
![]() |
![]() |
#25 | Link | |
Registered User
Join Date: Jun 2005
Posts: 216
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 | Link |
Registered User
Join Date: Jan 2020
Posts: 1
|
Debian How-to
Since there is no how-to for Linux, I tried to write a simple one for Debian Buster (amd64).
It may work with Debian based Distributions too (Ubuntu, Mint, etc...). If you use an other Distribution/Architecture, you will also find pre-patched libbdplus sources to build the library by yourself. How-to read Bluray discs (including BD+) with Debian 10 Buster and free software only ! You will be able to get most of the required files from first post. Read it carefully first. STEP 1: Make sure you have already installed vlc and the required libraries to read Bluray discs: sudo apt install vlc libaacs-dev libaacs0 libbluray-bdj libbluray2 libbdplus0 STEP 2: Download and merge "KEYDB.cfg" files from both "https://vlc-bluray.whoknowsmy.name/" and "http://fvonline-db.bplaced.net/", as explained in the first post. Put your merged "KEYDB.cfg" file in "~/.config/aacs/". Be sure it's named "KEYDB.cfg" and not "keydb.cfg". Note: System wide path is: "/etc/xdg/aacs/". Note2: Since the keydb.cfg file provided by VLC is rarely updated, you may need to add a more recent host certificate to your file. Mick0 is providing one there: https://forum.doom9.org/showthread.p...31#post1887531 STEP 3: Download the BD+ vm files and put the extracted "vm0" folder in "~/.config/bdplus/". Note: System wide path is "/etc/xdg/bdplus/". STEP 4: Download the BD+ cached tables and put all .bin files of the extracted folder in "~/.cache/bdplus/convtab/". You will need to create the "convtab" folder. STEP 5: Now you need a patched "libbdplus" library in order to load the cached BD+ tables you downloaded earlier. You can download the one I built for Debian 10 Buster (amd64) -> Start from (6) OR You can use the pre-patched sources I also provided to build your own library (may be useful if you use a different architecture/distribution). -> Install requirements (1), then go straight to (5) OR you can download libbdplus sources from git, download the patch, then build everything by yourself (because you should not download random libraries on the Internet !). -> Start from (1) (1) Requirements for Debian 10: sudo apt install git build-essential pkg-config libtool automake autopoint gettext libgcrypt20-dev (2) For your information, patch files are also included in the libaacs/libbdplus DLLs download for Windows, in the first post. In this how-to you will only need the file named "libbdplus-0001-Use-cached-conversion-tables.patch". Get the patch file first. (3) Then download libbdplus sources: git clone https://code.videolan.org/videolan/libbdplus.git (4) Apply patch content manually, because it won't work with "git --apply" or "git am" since the source code changed. (5) When it's done, open a terminal in the source folder and execute the usual commands: ./bootstrap ./configure make sudo make install Be careful, with default settings your "libbdplus.so.0.1.0" will be installed to "/usr/local/lib/". (6) Get your new library and overwrite the old one in "/usr/lib/x86_64-linux-gnu/". You can download a prebuilt libbdplus library for Debian 10 (amd64) at the bottom of this post. Patched sources are also available in case you want to build it for other OS/Distrib./Architectures. STEP 6: Enjoy your BD+ protected movies without artifacts ! Last edited by Penguin of Caerbannog; 18th January 2020 at 14:08. Reason: Informations added about host certificates |
![]() |
![]() |
![]() |
#27 | Link | |
Registered User
Join Date: May 2020
Posts: 5
|
Quote:
![]() Upstream integration would be great... Have you already tried approaching someone on the VideoLan side or submitting issues/merge requests for those changes? |
|
![]() |
![]() |
![]() |
#28 | Link | |
Registered User
Join Date: Jun 2005
Posts: 216
|
Quote:
If you can program, we need changes to libbluray regarding playlist selection in VLC interface |
|
![]() |
![]() |
![]() |
#29 | Link |
Registered User
Join Date: May 2020
Posts: 5
|
I will try to submit an issue regarding these patches integration, maybe pointing to this thread.
If they ask for attribution information, what should I tell them? As of now, all patches are anonymous (signed by John Doe). Regarding libbluray: yes, I can program but I'm no C/C++ expert, nor I have experience with Qt libraries or bluray internals. |
![]() |
![]() |
![]() |
#31 | Link |
Registered User
Join Date: May 2020
Posts: 5
|
Good news: it seems like the libaacs patches already got merged: https://code.videolan.org/videolan/l...rge_requests/6.
The libbdplus ones are on the way: https://code.videolan.org/videolan/l...rge_requests/2 |
![]() |
![]() |
![]() |
#32 | Link |
j-b
Join Date: Jun 2020
Location: Internet
Posts: 8
|
Indeed, I took some of the patches I found here and rebased + created merge requests.
For libaacs, most have been merged, but one (Don't discard unit keys unless VUK is available). For libbdplus, it is not yet done. Don't ask me when this will be done, since I'm not the one doing the reviews/coding. |
![]() |
![]() |
![]() |
#35 | Link |
Registered User
Join Date: Dec 2017
Posts: 18
|
Let's explain it then.
![]() Currently upstream libaacs will discard all unit keys from config file when disc have different amount of unit keys than what we have in the config file. E.g. say we have a disc that contains four encrypted unit keys and we have an entry for that disc which contains only one unit key - and we can't get a VUK for some reason (missing VUK, missing MK or VID, missing processing key, revoked host certificate etc.). This one unit key in config file could still work for at least one title (e.g. main feature). Currently upstream libaacs will just check that unit key count in config file don't match the unit key count in Unit_Key_RO.inf and discard the only unit key we have for that disc - which obviously means playback will fail when VUK cannot be calculated. With this patch included it won't do that, it will instead try decrypting the disc with given unit key(s) before giving up. There are lot of cases (see FV DB xml files for examples) when a disc has e.g. seven unit keys, but six of them are never being used - or in other words - having just one unit key would decrypt the whole disc. In above scenario with upstream libaacs one would have to make an entry like this, which doesn't make any sense Code:
0xDISCID = LABEL | U | 1-0xUNITKEY | 2-0x00000000... | 3-0x00000000... | 4-0x00000000... Code:
0xDISCID = LABEL | U | 1-0xUNITKEY I hope this helps. Last edited by mick0; 30th June 2020 at 13:23. Reason: typos |
![]() |
![]() |
![]() |
#37 | Link |
Registered User
Join Date: Jun 2005
Posts: 216
|
First post is updated with:
* extra bdplus tables (36 MB). Some tables are new, some tables have a different name, some tables are different. This is just a side effect of how the table list is generated. It is impossible to tell automatically which tables are correct without playing the disc. Different tables can both be correct * some notes about command line tools and aacs_info and aacskeys to get keys manually |
![]() |
![]() |
![]() |
#40 | Link |
j-b
Join Date: Jun 2020
Location: Internet
Posts: 8
|
libaacs release
And a release of libaacs: 0.11 has appeared.
![]() https://code.videolan.org/videolan/libaacs/-/tags/0.11.0 |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|