MakeMKV support forum
It is currently Wed Feb 21, 2018 5:10 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Jan 03, 2018 2:17 pm 

Joined: Tue Nov 14, 2017 3:37 pm
Posts: 2
I recently encountered a blu-ray disc that caused MakeMKV to consistently throw a read error when reading one of the titles. Fortunately, that title was not the main feature so I could still watch the movie. However, I realised the bad title was a behind the scenes feature in the disc extras that I really wanted too. After poking around these forums and using my Linux knowledge I found the following procedure to work. It's very manual and can probably be improved but I'm posting it in case this helps another MakeMKV Linux user rip a disc with bad sectors.

The key tool is ddrescue whose manual explains how to read faulty optical media:


Step 1:

Use ddrescue to make a raw copy of the blu-ray disc to an image file and also a map file which identifies the bad areas of the disc (the bytes it could not read):

ddrescue -n -b2048  /dev/sr0 brimage mapfile

This creates (in the current directory) an image file called brimage which is a byte for byte copy of the blu ray disc at /dev/sr0 (which refers to your blu-ray drive device). The file brimage will contain zeros for those parts of the disk that ddrescue could not read. The map file mapfile is a text file which lists the sections ddrescue failed to read.

Step 2:

Rerun ddrescue to repeatedly read the bad sectors and attempt to recover as much as it can:

ddrescue -d -r1 -b2048 /dev/sr0 brimage mapfile

This command updates the map file and the image file. It also reports the size of the read error. You may have to repeat the above command several times. Hopefully, the reported read error size decreases down to zero. (In my case it went down to 230K and no further. This turned out to be acceptable as that meant I'd only lost about 4 or 5 frames from the video stream.)

Step 3:

As described by JohnYaya, use MakeMKV to copy the blu-ray disc without decryption:

JohnYaya wrote:
Start a backup, uncheck the decrypt option. Let it run until it gets to the first m2ts file. At that point, it has saved the disc code, which is a file called "discatt.dat". Stop the backup, quit MakeMKV, [...]

In these examples, I'm going to use ~/backup/THE_MATRIX as the sub-directory that is specified in MakeMKV as the output folder.

Step 4:

Delete the incomplete BDMV directory from the backup folder:

rm  -rvf ~/backup/THE_MATRIX/BDMV

Mount the image file on /mnt

sudo mount -o loop brimage /mnt

Copy the entire BDMV directory from within the image file to the MakeMKV backup folder:

cp -rv /mnt/BDMV ~/backup/THE_MATRIX/

Step 5:

Follow the last part of JohnYaya instructions:
JohnYaya wrote:
[...] start MakeMKV, select File>Open Files and navigate to and double click the discatt.dat file.

The discatt.dat file will be somewhere within the backup folder ~/backup/THE_MATRIX/.

And now you can use MakeMKV to rip the backup to mkv files. But first change the output folder in MakeMKV to something else, for example, ~/Videos/THE_MATRIX (i.e. where you usually rip your discs to).

Step 6:

Clean up. You can delete the backup folder and the disc image once you have the titles ripped to mkv files.

rm -rvf ~/backup/THE_MATRIX
sudo umount /mnt
rm brimage mapfile

That's it. I hope it is helpful.


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 8 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group