MakeMKV Works in Windows, Can't read AACS VID in Linux

The place to discuss linux version of MakeMKV
Post Reply
queuecumber
Posts: 2
Joined: Sat Jun 08, 2024 1:12 am

MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by queuecumber »

I'm having a strange issue with MakeMKV: it seems to work fine in windows but fails in linux with a bunch of scsi errors:

Error 'Scsi error - ILLEGAL REQUEST:COPY PROTECTION KEY EXCHANGE FAILURE - KEY NOT PRESENT' occurred while issuing SCSI command A40..0020..03F to device 'SG:dev_21:4'

and finally

Can't read AACS VID from disc - most likely current AACS host certificate is revoked by your drive
Saved AACS dump file as file:///var/home/max/.MakeMKV/MKB20_v76_Dune_4C7F.tgz
LibreDrive compatible drive is required to open this disc - video can't be decrypted.

The drive is the archgon (https://www.amazon.com/dp/B07BC9F98J?ps ... ct_details) purchased new. I flashed it using the "all you need firmware pack". The drive shows as "Libredrive: Enabled" in the UI.

Additionally, the same drive with the same disk works fine in Windows, I can get full track info and complete rips with no errors in the logs. This is literally a windows machine sitting next to the linux machine. Unplug from linux, plug in to windows, same disk and it works fine.

I've tried basically everything I can think of, including checking the group permissions on /dev/sr0 and /dev/sg3 (which is where lsscsi tells me the drive is mapped to), running makemkv as root, chmod 777 on those device nodes, running using the docker container, trying it on a different Linux machine (with a different distro), and every time on Linux I get the scsi errors.

Does anyone have any idea what might be happening here?

The full output from makemkvcon --debug info disc:0 can be found at the following paste as it is quite long

https://pastebin.com/7V4n8bcw
Billycar11
Posts: 4342
Joined: Sun Aug 24, 2014 5:49 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by Billycar11 »

flash to bu40N 1.00
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com
queuecumber
Posts: 2
Joined: Sat Jun 08, 2024 1:12 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by queuecumber »

Incredible ... that seems to have solved the problem, thanks so much!
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Billycar11 wrote:
Sat Jun 08, 2024 1:59 am
flash to bu40N 1.00
I'm having the same issue with my LG WH14NS40 (5.25 internal drive). I flashed it to WH16NS60 1.02MK as recommended in the Ultimate UHD Drives Flashing Guide Updated 2023.

I also tried it with my Asus BW-16D1HT (5.25 internal drive in a USB enclosure) that I have patched with the Asus BW-16D1HT 3.10MK firmware, and that has the same issue in Linux. But this same drive has no issues in Windows.

Is there a different firmware that will make this work in Linux? From my understanding,

For the record, I'm running Pop!_OS 24.04 and have MakeMKV installed via flatpak.

If there is any other info I can provide, let me know.

Thanks!
Billycar11
Posts: 4342
Joined: Sun Aug 24, 2014 5:49 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by Billycar11 »

crasher35 wrote:
Sat Jul 20, 2024 9:42 pm
Billycar11 wrote:
Sat Jun 08, 2024 1:59 am
flash to bu40N 1.00
I'm having the same issue with my LG WH14NS40 (5.25 internal drive). I flashed it to WH16NS60 1.02MK as recommended in the Ultimate UHD Drives Flashing Guide Updated 2023.

I also tried it with my Asus BW-16D1HT (5.25 internal drive in a USB enclosure) that I have patched with the Asus BW-16D1HT 3.10MK firmware, and that has the same issue in Linux. But this same drive has no issues in Windows.

Is there a different firmware that will make this work in Linux? From my understanding,

For the record, I'm running Pop!_OS 24.04 and have MakeMKV installed via flatpak.

If there is any other info I can provide, let me know.

Thanks!
For you flash to wh16ns60 1.00
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Ok, thank you! So it's the firmware version that's the issue? I'll try that and update this thread with the results.
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Thank you! That did the trick!

For future reference...
It took some work to find the 1.00 firmware, but I found it in this forum post: viewtopic.php?f=16&t=18873.

I didn't follow the instructions on that forum post or the youtube video, since they're outdated. Instead I just used makemkvcon to flash it like normal and used the 1.00 firmware instead of the the custom MakeMKV patch.

Command for flatpak:

Code: Select all

flatpak run --command=makemkvcon com.makemkv.MakeMKV f -d 'dev_21:0' -f /home/omar/downloads/flash/sdf.bin rawflash main -i /home/omar/downloads/flash/DE_LG_WH16NS60_1.00.bin
Command for compiled binary/install:

Code: Select all

makemkvcon f -d 'dev_21:0' -f /home/omar/downloads/flash/sdf.bin rawflash main -i /home/omar/downloads/flash/DE_LG_WH16NS60_1.00.bin
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Just came back to report that after successfully downgrading to 1.00, I'm still running issues with Blu-rays that fail to RIP in Linux but RIP fine in Windows. Also, the rips that do work are so much slower now.

Has anybody else been able to resolve this issue?

This next part is probably irrelevant but weird and I feel it's worth mentioning:
What's really weird is that, every blu-ray that fails to rip in Linux, then succeeds in Windows, when I try again in Linux after successfully ripping in Windows... it works. Which is why I've ended up thinking that I've fixed the issue countless times, but then run into the same problems when I move on to the next disk.

I don't understand how or why, optical media is read-only. It's not even the same drive or computer. I rip in Windows using my laptop and a 5.25 Asus bd drive in an external, USB enclosure. Meanwhile, I rip in Linux using my desktop and an internal 5.25 LG drive.I have tried using the external drive on the Linux desktop and it still fails, though. So it's not that. And I will usually try many attempts to rip in Linux and it fails consistently, but as soon as I successfully rip in Windows, I can rip in Linux again.
Billycar11
Posts: 4342
Joined: Sun Aug 24, 2014 5:49 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by Billycar11 »

crasher35 wrote:
Sun Aug 04, 2024 9:45 pm
Just came back to report that after successfully downgrading to 1.00, I'm still running issues with Blu-rays that fail to RIP in Linux but RIP fine in Windows. Also, the rips that do work are so much slower now.

Has anybody else been able to resolve this issue?

This next part is probably irrelevant but weird and I feel it's worth mentioning:
What's really weird is that, every blu-ray that fails to rip in Linux, then succeeds in Windows, when I try again in Linux after successfully ripping in Windows... it works. Which is why I've ended up thinking that I've fixed the issue countless times, but then run into the same problems when I move on to the next disk.

I don't understand how or why, optical media is read-only. It's not even the same drive or computer. I rip in Windows using my laptop and a 5.25 Asus bd drive in an external, USB enclosure. Meanwhile, I rip in Linux using my desktop and an internal 5.25 LG drive.I have tried using the external drive on the Linux desktop and it still fails, though. So it's not that. And I will usually try many attempts to rip in Linux and it fails consistently, but as soon as I successfully rip in Windows, I can rip in Linux again.
whats the error ?
and post your makemkv drive info section
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Unfortunately, I didn't save the error but here is the drive and disk info:
Drive Information
OS device name: /dev/sr0
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE WH16NS60
Revision: 1.00
Firmware date: 2117-04-25 17:56
Bus encryption flags: 17
Highest AACS version: 77

LibreDrive Information
Status: Enabled
Drive platform: MT1959
Firmware type: Original (unpatched)
Firmware version: 1.00
DVD all regions: Yes
BD raw data read: Yes
BD raw metadata read: Yes
Unrestricted read speed: Yes

Disc Information
Protection: AACS v68
Data capacity: 33.16 Gb
Disc type: BD-ROM
Number of layers: 2
Channel bit length: 74,5 nm (25.0 GB max. per layer)
Last edited by crasher35 on Fri Aug 09, 2024 9:36 pm, edited 1 time in total.
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Got it

Code: Select all

Saving 43 titles into directory /home/user/videos/backup
Title 0 skipped
Title 1 skipped
Title 2 skipped
Title 3 skipped
Title 4 skipped
Title 5 skipped
Title 6 skipped
Title 7 skipped
Title 9 skipped
Title 10 skipped
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4257792, attempting to work around
Hash check failed for file 00905.m2ts at offset 4319232, file is corrupt.
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4386816, attempting to work around
Hash check failed for file 00905.m2ts at offset 4515840, file is corrupt.
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4583424-4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4589568-4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
The source file '/BDMV/STREAM/00905.m2ts' is corrupt or invalid at offset 4595712, attempting to work around
Too many AV synchronization issues in file '/BDMV/STREAM/00905.m2ts' (title #-) , future messages will be printed only to log file
Hash check failed for file 00905.m2ts at offset 4712448, file is corrupt.
Hash check failed for file 00905.m2ts at offset 4909056, file is corrupt.
Hash check failed for file 00905.m2ts at offset 5892096, file is corrupt.
Too many hash check errors in file 00905.m2ts.
After that my Remaining time jumps to 3+ hours. I also don't see 00905.m2ts selected to rip, either.

But I never run into this with Windows. I'm going to try this one in Windows just to be sure.
Billycar11
Posts: 4342
Joined: Sun Aug 24, 2014 5:49 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by Billycar11 »

That's a disc or drive error

Clean the disc
Replace the disc
Clean drive lasers
Replace drive with a pioneer with old fw see below for that
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com
crasher35
Posts: 11
Joined: Mon Jul 15, 2024 2:16 am

Re: MakeMKV Works in Windows, Can't read AACS VID in Linux

Post by crasher35 »

Ok! Thank you! I think it's the drive because it's been multiple disks and they always work fine when I switch to my Windows machine. But I'll look into it either way.
Post Reply