Page 1 of 1

Libredrive API - Support

Posted: Wed Nov 22, 2023 10:17 pm
by schraube08
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!

Re: Libredrive API - Support

Posted: Wed Nov 22, 2023 11:14 pm
by Coopervid
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...

Re: Libredrive API - Support

Posted: Thu Nov 23, 2023 10:12 pm
by schraube08
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 :)

Re: Libredrive API - Support

Posted: Fri Nov 24, 2023 11:20 am
by Coopervid
Check your PM

Re: Libredrive API - Support

Posted: Sat Nov 25, 2023 3:08 pm
by arthomnix
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.

Re: Libredrive API - Support

Posted: Sat Nov 25, 2023 8:34 pm
by Coopervid
I relied with PM.

Re: Libredrive API - Support

Posted: Sat Nov 25, 2023 10:35 pm
by schraube08
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

Re: Libredrive API - Support

Posted: Sat Nov 25, 2023 11:00 pm
by Coopervid
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!