Makemkv - Kodi 18 add-on/bluray decryption + playback

The place to discuss linux version of MakeMKV
Post Reply
henryjfry
Posts: 19
Joined: Sat Jan 04, 2020 11:34 am

Makemkv - Kodi 18 add-on/bluray decryption + playback

Post by henryjfry »

Hey I wondered does anyone here know anything about current versions of MakeMkv for Kodi linux and/or their add-on for use with direct Bluray playback?

I got an adapter for an internal bluray drive and have been trying to play bluray on Kodi. It does work but any newer encrypted discs won't (i.e. with bd+ encryption). Makemkv can be used to decrypt these discs with libmmbd and I have seen posts about older versions with Kodi add-ons and a librelec player add-on.

I'm tempted to try building makemkv-cli on my Linux based Kodi box and see if I can get it working but I've already borked my Kodi box once this week and id like to know if it's likely to work before I attempt it.

So are they any folk out there who can comment on makemkv and current versions of Kodi? Will simlinking libbdplus to libmmbd work if I get it installed?

Or does it only work with a licence?

Any information would be appreciated as the only posts i have found specifically for linux/kodi are fairly old now and I can't tell if this is fully supported by makemkv/unsupported or still works in current kodi versions.
henryjfry
Posts: 19
Joined: Sat Jan 04, 2020 11:34 am

Re: Makemkv - Kodi 18 add-on/bluray decryption + playback

Post by henryjfry »

OK I can confirm that MakeMKV does not work for OSMC (Vero 4k - ArmHF) as MakeMKV-BIN cannot be build on ARM systems.

For information about how to install:
Ok so i attempted to build MakeMkv (and also build FFMPEG with libfdk-aac) and install it on my system to get bluray playback working in Kodi and unfortunately it didn't work (im on an ARMHF processor)

So this is the method i followed:

Code: Select all

#####download tarballs for makemkv-bin, makemkv-oss and ffmpeg

wget https://www.makemkv.com/download/makemkv-bin-1.14.7.tar.gz

wget https://www.makemkv.com/download/makemkv-oss-1.14.7.tar.gz

wget https://ffmpeg.org/releases/ffmpeg-4.2.2.tar.bz2

#####install dependencies

sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev zlib1g-dev

#####extract tarballs to home directory

tar xzf makemkv-bin-1.14.7.tar.gz

tar xzf makemkv-oss-1.14.7.tar.gz

tar xjf ffmpeg-4.2.2.tar.bz2

#####dependancy needed for FFMPEG

sudo apt-get install libfdk-aac-dev

#####Build FFMPEG (took a good 1-2 hours)

cd /home/osmc/ffmpeg-4.2.2/

./configure --prefix=/tmp/ffmpeg --enable-static --disable-shared --enable-pic --enable-libfdk-aac --enable-cross-compile --arch=armel --target-os=linux

make

make install

#####Build makemkv-oss

cd /home/osmc/makemkv-oss-1.14.7/

PKG_CONFIG_PATH=/tmp/ffmpeg/lib/pkgconfig ./configure --prefix=/usr

make

sudo make install

#####GOT AN ERROR BUILDING MAKEMKV-BIN==>MakeMKV is currently not available for architecture aarch64

#cd /home/osmc/makemkv-bin-1.14.7/

#./configure --prefix=/usr

#make

#sudo make install

#####ERROR==>MakeMKV is currently not available for architecture aarch64. Stop.

rm -rf /tmp/ffmpeg

#####UPDATE SIMLINKS FOR LIBMMBD

cd /usr/lib/arm-linux-gnueabihf

sudo mv libaacs.so.0 libaacs.so.0.bak

sudo mv libbdplus.so.0 libbdplus.so.0.bak

sudo ln -s /usr/lib/libmmbd.so.0 libaacs.so.0

sudo ln -s /usr/lib/libmmbd.so.0 libbdplus.so.0

So i was able to build FFMPEG and MAKEMKV-OSS but i was unable to build MAKEMKV-BIN for ARMHF and this is actually the important part of the software so for any ARM Kodi setup MAKEMKV WILL NOT WORK.

At this point i saw that libmmbd had been installed and I attempted simlinking libaacs.so.0 and libbdplus.so.0 anyway, but all that gave me were kodi smiley face errors when it tried to play any bluray and it attempted to decrypt aacs. Either due to missing components (makemkv-bin not installed?) or just unsupported on this system.
henryjfry
Posts: 19
Joined: Sat Jan 04, 2020 11:34 am

Re: Makemkv - Kodi 18 add-on/bluray decryption + playback

Post by henryjfry »

SO if you are on a PC or PC type processor (X86_X64/AMD64 etc) the above will work and/or you can install the precompiled versions from heyarje (and some tips below if you are having trouble getting them installed from there. I got them installed on an ARM system which I would say is in no way advisable, see all the random crap i had to do before it installed, probably more straightforward if the system is actually supported)

So I was able to get makemkv-bin and makemkv-oss installed from here: http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu

Code: Select all

#####add the repo to your sources list

sudo nano /etc/apt/sources.list

deb http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu zesty main

#####add the PUBKEY for "ppa.launchpad.net/heyarje"

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8540356019F7E55B
At this point on a supported system "sudo apt-get update && sudo apt-get install makemkv-bin makemkv-oss" should work

But to get it to install on mine...

Code: Select all

#####I needed to add the amd64 architecture as they are compiled for a different system (probably not #####a good idea to try this but i just wanted to see if it would work, it doesnt)

sudo dpkg --add-architecture amd64

#####I then had to install a bunch of dependencies to get it to install (again because im on ARMHF #####and these MakeMKV files have been compiled for amd64)

#####So the following is just a dump of my bash history - Notice all the "Fix Broken Installs" - #####If you absolutely want to install makemkv on an unsupported processor, FOLLOW AT YOUR PERIL!

cd ~/

wget https://launchpad.net/~heyarje/+archive/ubuntu/makemkv-beta/+files/makemkv-bin_1.14.7-1~xenial_amd64.deb

sudo dpkg -i /home/osmc/makemkv-bin_1.14.7-1~xenial_amd64.deb

sudo apt-get install makemkv-bin

sudo apt --fix-broken install

sudo dpkg -i /home/osmc/makemkv-bin_1.14.7-1~xenial_amd64.deb

wget https://launchpad.net/~heyarje/+archive/ubuntu/makemkv-beta/+files/makemkv-oss_1.14.7-1~xenial_amd64.deb

sudo dpkg -i /home/osmc/makemkv-oss_1.14.7-1~xenial_amd64.deb

sudo apt-get update && sudo apt-get install makemkv-bin makemkv-oss

sudo apt --fix-broken install

sudo apt-get update && sudo apt-get install makemkv-bin makemkv-oss

sudo apt-get install libssl1

wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb

sudo dpkg -i /home/osmc/libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb

sudo apt-get update && sudo apt-get install makemkv-bin makemkv-oss

wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb

sudo dpkg -i /home/osmc/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb

sudo apt-get install libc6

sudo apt --fix-broken install

sudo dpkg -i /home/osmc/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb

sudo apt-get update && sudo apt-get install makemkv-bin makemkv-oss


So after this attempting to play a bluray and it looks like it might work but nothing plays, presumably because it is trying to launch makemkv-bin and it wont load as it has not been compiled for ARMHF - (/usr/bin/makemkv: cannot execute binary file: Exec format error)



So i just put my simlinks back to the original libaacs.so.0.5.1 for my version of Kodi:

Code: Select all

cd /usr/lib/arm-linux-gnueabihf

sudo rm libaacs.so.0

sudo ln -s /usr/lib/arm-linux-gnueabihf/libaacs.so.0.5.1 libaacs.so.0
So just doing the install doesnt appear to have broken anything but it doesnt work. :-(
archer72
Posts: 6
Joined: Sun Jun 16, 2019 11:04 am

Re: Makemkv - Kodi 18 add-on/bluray decryption + playback

Post by archer72 »

I recently set up Kodi, and would be interested in ripping Blu-rays on ARM.

See this forum topic:

https://www.makemkv.com/forum/viewtopic.php?t=6632
Post Reply