Libredrive API - Support

Discussion of LibreDrive mode, compatible drives and firmwares
Post Reply
Message
Author
schraube08
Posts: 11
Joined: Fri Dec 27, 2013 11:28 pm

Libredrive API - Support

#1 Post by schraube08 » Wed Nov 22, 2023 10:17 pm

Hello!

I'd like to integrate Libredrive support into my application and just want to ask if there are some examples available that demonstrate the most generic things with this api:
  • how to get a list of drives and determine if libredrive is supported?
  • how to enable libredrive support for such a drive?
  • how to read a specific sector of the disc, once the drive support has been enabled?
I'm currently studying the linux source and I know the functions offered by libdriveio.dll and it's arguments (from the linux source), but right now I've no clue how to properly use them.

So it would be great if I could receive some help to get started :D

Thanks!

Coopervid
Posts: 1683
Joined: Tue Feb 19, 2019 10:32 pm

Re: Libredrive API - Support

#2 Post by Coopervid » Wed Nov 22, 2023 11:14 pm

What are you trying to achieve? Mike never documented the messages from Makemkv. There are some hints and guesses - but that's it. Let me know...

schraube08
Posts: 11
Joined: Fri Dec 27, 2013 11:28 pm

Re: Libredrive API - Support

#3 Post by schraube08 » Thu Nov 23, 2023 10:12 pm

I want to access the disc in my UHD drive without BusEncryption.
For Blu-ray discs it's possible to get the RDK and therefore deal with the BusEncryption - but when it comes to UHD with an official AACS 2.0 drive this is not an option any longer - but as the drive is libredrive compatible I'd like to add support into my application.
As Xreveal introduced libredrive support in 2.4.7 I thought there might be some knowledge that can be shared.

I know that Mike never documented the api, but I'm quite sure that I've read a few posts always mentioning the linux open source part as some kind of rudimentary documentation.

So I'd be very happy if there's someone who can point me into the right direction :)

Coopervid
Posts: 1683
Joined: Tue Feb 19, 2019 10:32 pm

Re: Libredrive API - Support

#4 Post by Coopervid » Fri Nov 24, 2023 11:20 am

Check your PM

arthomnix
Posts: 6
Joined: Thu Nov 23, 2023 7:47 pm

Re: Libredrive API - Support

#5 Post by arthomnix » Sat Nov 25, 2023 3:08 pm

Xreveal's changelog says that LibreDrive is only enabled if MakeMKV is installed, so presumably it just runs

Code: Select all

makemkvcon info dev:<drive>
or similar so MakeMKV will enable it.

I don't think there's anything special about reading discs with LibreDrive once it's enabled - I can play UHD discs in VLC and ffmpeg after using MakeMKV to enable LibreDrive.

Coopervid
Posts: 1683
Joined: Tue Feb 19, 2019 10:32 pm

Re: Libredrive API - Support

#6 Post by Coopervid » Sat Nov 25, 2023 8:34 pm

I relied with PM.

schraube08
Posts: 11
Joined: Fri Dec 27, 2013 11:28 pm

Re: Libredrive API - Support

#7 Post by schraube08 » Sat Nov 25, 2023 10:35 pm

Thanks for mentioning the "info" mode - finally I came across this post here:

libredrive bypass bus encryption?

and it explains why this helps to play protected discs: enabling libredrive disables busencryption for the current disc :D

So I'll stop all my attempts to read the disc using the api immediately :D

Coopervid
Posts: 1683
Joined: Tue Feb 19, 2019 10:32 pm

Re: Libredrive API - Support

#8 Post by Coopervid » Sat Nov 25, 2023 11:00 pm

schraube08 wrote:
Sat Nov 25, 2023 10:35 pm
Thanks for mentioning the "info" mode - finally I came across this post here:

libredrive bypass bus encryption?

and it explains why this helps to play protected discs: enabling libredrive disables busencryption for the current disc :D

So I'll stop all my attempts to read the disc using the api immediately :D
You got it!

idaten
Posts: 1
Joined: Tue Jul 09, 2024 2:25 pm

Re: Libredrive API - Support

#9 Post by idaten » Fri Sep 06, 2024 6:51 am

Hi,

Sorry to dig that old thread, but I'm not sure if it's appropriate for me to open a duplicate.

I'm interested in trying to patch a well-known program used to reveal AACS keys on linux, which currently supports specific auth bypass methods, but not with libredrive-patched drives.

Do you have documentation tips on how to use libdriveio?

Best regards,

Post Reply