MakeMKV

From Indie IT Wiki
Jump to: navigation, search

Download Old Versions

https://makemkv.com/download/old/

Version History

http://www.makemkv.com/download/history.html

Installation

Determine location of DVD as block device...

cat /proc/sys/dev/cdrom/info
ls -lah /dev/dvd
lsblk

Install the DVD region setting software...

sudo apt install regionset

Run the software on the DVD block device...

sudo regionset /dev/dvd
 
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: NONE
vendor resets available: 4
user controlled changes resets available: 5
drive plays discs from region(s):, mask=0xFF

Would you like to change the region setting of your drive? [y/n]:y
Enter the new region number for your drive [1..8]:2
New mask: 0xFFFFFFFD, correct? [y/n]:y
Region code set successfully!

Now, continue with MakeMKV installation...

2019-03-14

  • Current latest ffmpeg build = 4.1.1
  • Current latest makemkv build = 1.14.3
sudo apt-get install build-essential zlib1g-dev libssl-dev pkg-config libexpat1-dev libc6-dev libdvdnav4 libdvdread4 libudev-dev
cd ~/Downloads/
mkdir makemkv
cd makemkv/
wget http://ffmpeg.org/releases/ffmpeg-4.1.1.tar.bz2
tar -xjvf ffmpeg-4.1.1.tar.bz2
cd ffmpeg-4.1.1/
make clean
./configure --prefix=/tmp/ffmpeg --enable-static --disable-shared --enable-pic --disable-x86asm --disable-all --disable-autodetect --disable-everything --enable-swresample --enable-avcodec --enable-encoder=flac,aac --enable-decoders
make
make install
cd ..
wget http://www.makemkv.com/download/makemkv-oss-1.14.3.tar.gz
tar -xzvf makemkv-oss-1.14.3.tar.gz
cd makemkv-oss-1.14.3/
make clean
PKG_CONFIG_PATH=/tmp/ffmpeg/lib/pkgconfig ./configure --disable-gui
make
sudo make install
cd ..
wget http://www.makemkv.com/download/makemkv-bin-1.14.3.tar.gz
tar -xzvf makemkv-bin-1.14.3.tar.gz
cd makemkv-bin-1.14.3/
mkdir tmp
echo "accepted" > tmp/eula_accepted
make
sudo make install
sudo ldconfig
cd
makemkvcon

Thanks - http://www.makemkv.com/forum2/viewtopic.php?f=3&t=15122

Thanks - http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224

Settings for Automation

http://www.makemkv.com/forum2/viewtopic.php?f=10&t=4386

~/.MakeMKV/settings.conf

app_DefaultSelectionString = "-sel:all,+sel:audio&(eng),-sel:(havemulti),-sel:mvcvideo,+sel:subtitle&(eng),-sel:special,=100:all,-10:eng"
  • deselect everything
  • select english audio
  • deselect different angles
  • deselect 3d
  • select english subtitles
  • deselect special features
  • prioritise english

Copy Entire DVD For Plex

makemkvcon mkv disc:0 all /plex/movies/Elf

Copy Blu-ray For Plex

http://wiki.indie-it.com/wiki/FFmpeg_DVD#Blu-ray_Copying_Transcoding

LibreDrive

https://2mkv.com/forum/viewtopic.php?f=19&t=18856

UHD Hashed Keys

https://www.makemkv.com/forum/viewtopic.php?f=12&t=16959

Script to Rip ISO Longest Title

#!/bin/bash
# ~/Bin/makemkv_rip_longest_iso.sh "/path/to/file.iso"

# Get the minimum length. This ensures that only the longest title goes to MKV.
long_title=$(makemkvcon -r info iso:"$1" | grep cell | awk '{ print $7 }' | tr -d ')","Title' | sort -nr | head -n1 | awk -F: '{print ($1 * 3600) + ($2 * 60) + $3}')

# show lenth in seconds
echo "length=${long_title}"

# Rip DVD
makemkvcon --minlength="$long_title" --decrypt --directio=true mkv iso:"$1" all /tmp/ | egrep -i 'added|saving|saved'

exit;

Script to Rip Disc Longest Title DVD

#!/bin/bash
# ~/Bin/makemkv_rip_longest.sh

# Get the minimum length. This ensures that only the longest title goes to MKV.
long_title=$(makemkvcon -r info disc:0 | grep cell | awk '{ print $7 }' | tr -d ')","Title' | sort -nr | head -n1 | awk -F: '{print ($1 * 3600) + ($2 * 60) + $3}')

# show lenth in seconds
echo "length=${long_title}"

# Rip DVD
makemkvcon --minlength="$long_title" --decrypt --directio=true mkv disc:0 all /tmp/ | egrep -i 'added|saving|saved'

exit;

Advanced Command Line

makemkvcon -r info disc:0
makemkvcon --minlength=3600 mkv disc:0 0 /tmp/
makemkvcon mkv iso:/path/to/filename.iso 0 /tmp/

http://www.makemkv.com/developers/usage.txt

Backup Decrypted Blu-ray

makemkvcon backup --decrypt --cache=16 --noscan disc:0 /folder/

Disc Access Mode

There are 2 ways to read the disc: direct access, os level access

Sometimes you may receive an error with a poorly produced, probably quite old DVD...

Error 'Scsi error - ILLEGAL REQUEST:READ OF SCRAMBLED SECTOR WITHOUT AUTHENTICATION'

You can either try to ignore this, and makeMKV will produce a MKV file anyway after a long time, or you can try and run the command line option below which will use 'os level access mode' and disable 'direct access mode'...

makemkvcon --directio=false mkv disc:0 0 /tmp/