Howto: Create working OE-BluRay player

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
fowii
Posts: 1
Joined: Sun Aug 30, 2015 6:09 pm

Howto: Create working OE-BluRay player

Post by fowii »

I have worked on that for about 1 week to fix all the problems. Here is an solution for always up to date openelec with build in BluRay support.
This should be possible to be done by every lightly advanced linux user. Just follow every single step with your brain turned on.

Basic information: We will compile recent version of openelec with build in makemkv functionality from source.
wiki.openelec.tv/index.php?title=Compile_from_source

go to your home directory: cd ~
copy openelec source: git clone github.com/OpenELEC/OpenELEC.tv.git
cd OpenELEC.tv/packages/addons/
git clone github.com/OpenELEC/unofficial-addons
cd unofficial-addons/addons/multimedia/makemkv/
you can simply update to recent makemkv version by editing one line for example 1.9.2 to 1.9.5 in this file: nano package.mk
cd ~/OpenELEC.tv
scripts/create_addon makemkv
make clean
cd ~
mkdir makemkv
unpack now ~/OpenELEC.tv/target/addons/6.0/Generic/x86_64/lib.multimedia.makemkv/lib.multimedia.makemkv-6.0.0.zip (the bin and lib directorys inside) to ~/makemkv/bin and ~/makemkv/lib
create a licence textfile with recent makemkv licence key you can get from here for free while in beta www.makemkv.com/forum2/viewtopic.php?f=5&t=1053 : nano ~/makemkv/settings.conf
(settings.conf should look then like that: app_Key="T-xxxxxxxx" )

now we modify openelec to build with makemkv:
cd packages/multimedia/libaacs/
nano package.mk -> the last part should look like this:
post_makeinstall_target() {
mkdir -p $INSTALL/usr/config/aacs
cp -P ../KEYDB.cfg $INSTALL/usr/config/aacs
ln -sf /usr/lib/libmmbd.so.0 $INSTALL/usr/lib/libaacs.so
ln -sf /usr/lib/libmmbd.so.0 $INSTALL/usr/lib/libaacs.so.0
cp ~/makemkv/bin/makemkvcon.bin $INSTALL/usr/bin/makemkvcon
cp ~/makemkv/lib/* $INSTALL/usr/lib/
mkdir $INSTALL/storage/
mkdir $INSTALL/storage/.MakeMKV
cp ~/makemkv/settings.conf $INSTALL/storage/.MakeMKV/
}

cd ../libbdplus/
nano package.mk
add this to the end of the file:
post_makeinstall_target() {
ln -sf /usr/lib/libmmbd.so.0 $INSTALL/usr/lib/libbdplus.so
ln -sf /usr/lib/libmmbd.so.0 $INSTALL/usr/lib/libbdplus.so.0
}

now build the openelec image. I just tested x86_64. Maybe its also working on ARM.
cd ~/OpenELEC.tv
PROJECT=Generic ARCH=x86_64 make image

you can get then prowdly your self compiled image from OpenELEC.tv/target (the img.gz file) and use it for installation.
Dont forget that you have to be connected to the internet to playback bluray because makemkv have to check the licence.

This work and text is been written and done under CC-BY-SA-4.0 . Have fun with this.
Post Reply