Linux HOW-TO playback Blu-ray Disc in XBMC for Linux with MakeMKV (Plugin Addon)

  Thread Rating:
  • 10 Votes - 4.3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Krautmaster Offline
Senior Member
Posts: 198
Joined: Jul 2010
Reputation: 1
Post: #431
=/ my XBMC hangs too

19:09:14 T:14231472 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.makemkvbluray/?mode=1&autoplay=False)
19:09:14 T:14231472 DEBUG: ParentPath = [plugin://plugin.makemkvbluray]
19:09:14 T:2942262128 DEBUG: StartScript - calling plugin BluRay Player with MakeMKV('plugin://plugin.makemkvbluray/','0','?mode=1&autoplay=False')
19:09:14 T:2942262128 INFO: initializing python engine.
19:09:14 T:2942262128 DEBUG: new python thread created. id=6
19:09:14 T:2942262128 DEBUG: WaitOnScriptResult - waiting on the BluRay Player with MakeMKV plugin...
19:09:14 T:2933869424 ERROR: SetThreadInfo: error Permission denied
19:09:14 T:2933869424 NOTICE: Thread XBPyThread start, auto delete: false
19:09:14 T:2933869424 DEBUG: Python thread: start processing
19:09:14 T:2933869424 NOTICE: -->Python Interpreter Initialized<--
19:09:14 T:2933869424 DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/plugin.makemkvbluray/default.py
19:09:14 T:2933869424 DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/plugin.makemkvbluray:/usr/share/xbmc/addons/script.module.simplejson/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:
19:09:14 T:2933869424 DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/plugin.makemkvbluray
19:09:14 T:2933869424 DEBUG: Instantiating addon using automatically obtained id of "plugin.makemkvbluray" dependent on version 1.0 of the xbmc.python api
19:09:14 T:2933869424 NOTICE: [BR 1] Starting the BluRay script
19:09:14 T:2933869424 NOTICE: [BR 1] Staring
19:09:14 T:2933869424 NOTICE: [BR-settings 1] reading settings
19:09:14 T:2933869424 NOTICE: [BR-settings 1] raw param string: ?mode=1&autoplay=False
19:09:14 T:2933869424 NOTICE: [BR 1] mode: 1
19:09:14 T:2933869424 NOTICE: [BR 1] Entering Disc mode
19:09:14 T:2933869424 NOTICE: [BR 1] Staring
19:09:14 T:2933869424 NOTICE: [BR-settings 1] reading settings
19:09:14 T:2933869424 NOTICE: [BR-settings 1] raw param string: ?mode=1&autoplay=False
19:09:14 T:2933869424 NOTICE: [BR 1] "/usr/bin/makemkv" stream disc:0
19:09:14 T:2933869424 DEBUG: unable to load /home/xbmc/.xbmc/addons/plugin.makemkvbluray/resources/language/German/strings.xml: Failed to open file at line 0
19:09:14 T:2933869424 INFO: Loading skin file: DialogProgress.xml
19:09:14 T:2933869424 DEBUG: Load DialogProgress.xml: 2.03ms
19:09:14 T:2933869424 DEBUG: DialogProgress::StartModal called
19:09:14 T:2933869424 DEBUG: ------ Window Init (DialogProgress.xml) ------
19:09:14 T:2933869424 DEBUG: Alloc resources: 0.15ms (0.00 ms skin load)
19:09:14 T:2933869424 NOTICE: [BR 1] Running makemkvcon locally
19:09:14 T:2933869424 NOTICE: [BR 1] attempting linux kill of makemkvcon
19:09:15 T:14231472 DEBUG: ------ Window Init (DialogBusy.xml) ------
19:09:15 T:14231472 DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
19:09:20 T:3001011056 DEBUG: AddOnLog: VDR XVDR Client: SendPing
19:09:44 T:2925476720 DEBUG: Previous line repeats 4 times.
19:09:44 T:2925476720 DEBUG: Thread Jobworker 2925476720 terminating (autodelete)
19:09:44 T:2950654832 DEBUG: Thread Jobworker 2950654832 terminating (autodelete)
19:09:50 T:3001011056 DEBUG: AddOnLog: VDR XVDR Client: SendPing

Did check Disc:0 -> makemkvcon info disc:0 works fine but xbmc hangs / freezes.

Also did the settings,conf - ideas?

Edit:

i renamed the .xbmc folder, instaleld the plugin once again, checked location but any how it still totally freezes while the makemkvcon info command works fine. Think the problem must be located in the Addon for XBMC
(This post was last modified: 2012-04-03 19:35 by Krautmaster.)
find quote
fabridelo Offline
Junior Member
Posts: 5
Joined: Jul 2011
Reputation: 0
Post: #432
Hello

The plugin not work with Eden any idea? (is perfect with Darma)

Regards
find quote
tronic Offline
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
Post: #433
(2012-05-12 00:24)fabridelo Wrote:  Hello

The plugin not work with Eden any idea? (is perfect with Darma)

Regards

Hello everyone.

Recent plugin zip works great with Eden 11 from Stable with 11.10 OO, 12.04 PP and a KDE 4.8. Applied as an add-on using the "...install from a zip file". The issues many have reported similar to "freeze" and others may be relative to procedure used, XBMC and system version and settings, GPU and drivers, the computer, componets, hardware and yes again...procedure or human error. If all is compatible and placed on an already stable system, then all should be good. Keep trying and I wish you all success.

Hoping all the features that are being tested in XBMC 12 Alpha nightlies are a go along with this plugin, then everyone will be very close experiencing all that is Bluray.Big Grin
find quote
fabridelo Offline
Junior Member
Posts: 5
Joined: Jul 2011
Reputation: 0
Post: #434
hello

please, where is the recent plugin version 0.1 or 1.1?

i always have this message
"add-on does not have the correct structure" error.

my system xbmc eden ubuntu 11.04

thanks
find quote
tismon Offline
Junior Member
Posts: 40
Joined: Jan 2012
Reputation: 0
Post: #435
I'm using two systems as listed before that are having two different issues.

Desktop:
i7 920 with 6GB RAM and Win 7 x64 trying to play a blu-ray off of an internal player.
The issue is that it will start the process and displays "Opening stream", then it shows the next screen with "XBMC 2%" at the top before ending with "Running MakeMKV ended abnormally. Is it installed?"
It definitely is installed, and when opened, MakeMKV shows
"Error 'Scsi error - ILLEGAL REQUEST:INVALID COMMAND OPERATION CODE' occurred while issuing SCSI command 46020..00140 to device 'SPTI:\Device\CdRom5'
DEBUG: Code 0 at u;:/02IfFy#P#"$e:213137183
Error 'Scsi error - ILLEGAL REQUEST:INVALID COMMAND OPERATION CODE' occurred while issuing SCSI command 46020..00140 to device 'SPTI:\Device\CdRom5'
DEBUG: Code 0 at u;:/02IfFy#P#"$e:213137183"

MakeMKV seems to work still since I can play it via VLC.


TVPC:
E-450 Foxconn with 4GB RAM and Win 7 x64 trying to play a blu-ray off of an external usb drive
MakeMKV doesn't seem to have any issues with the disc, but XBMC simply freezes when I click on "Play disc"

If anyone could give a bit of help with how this has been solved in the past, I would be very appreciative.
find quote
Ipaddle Offline
Junior Member
Posts: 25
Joined: Jun 2012
Reputation: 0
Post: #436
No hanging - but no stream. Using version 1.1.0 from github and makemkv (ver. 2.1.2).
XBMC with Openelec (eden beta 4).
What about keydb.cfg? Is there an update you have to use?
(This post was last modified: 2012-07-04 11:49 by Ipaddle.)
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #437
(2012-06-21 07:02)tismon Wrote:  I'm using two systems as listed before that are having two different issues.

Desktop:
i7 920 with 6GB RAM and Win 7 x64 trying to play a blu-ray off of an internal player.
The issue is that it will start the process and displays "Opening stream", then it shows the next screen with "XBMC 2%" at the top before ending with "Running MakeMKV ended abnormally. Is it installed?"
It definitely is installed, and when opened, MakeMKV shows
"Error 'Scsi error - ILLEGAL REQUEST:INVALID COMMAND OPERATION CODE' occurred while issuing SCSI command 46020..00140 to device 'SPTI:\Device\CdRom5'
DEBUG: Code 0 at u;:/02IfFy#P#"$e:213137183
Error 'Scsi error - ILLEGAL REQUEST:INVALID COMMAND OPERATION CODE' occurred while issuing SCSI command 46020..00140 to device 'SPTI:\Device\CdRom5'
DEBUG: Code 0 at u;:/02IfFy#P#"$e:213137183"

MakeMKV seems to work still since I can play it via VLC.


TVPC:
E-450 Foxconn with 4GB RAM and Win 7 x64 trying to play a blu-ray off of an external usb drive
MakeMKV doesn't seem to have any issues with the disc, but XBMC simply freezes when I click on "Play disc"

If anyone could give a bit of help with how this has been solved in the past, I would be very appreciative.
Do you have more than one optical drive?
find quote
optiix Offline
Junior Member
Posts: 39
Joined: Sep 2011
Reputation: 0
Post: #438
Hello again magnetism.
Im here once again Tongue

I reinstalled my system some weeks ago with XBMCbuntu abd today I did a github update of the whole system before I was going to try to get your fine Blu-ray player installed again.
I get same error as fabridelo and others; "add-on does not have the correct structure" error. - but not with the last one...

I've tested with all three I could find here in this thread! ->

http://www.bultsblog.com/plugin.makemkvbluray-1.1.zip

http://www.bultsblog.com/BluRay-plugin-v01a.zip

http://www.bultsblog.com/plugin.makemkvbluray.zip

That one gets installed but then the computer freezes. At first the BD-rom spins for like 2 minutes and then it stops and you cant do anything at the screen. You have to either shutdown -r via putty or hold the start button until the electric circutit is cut and then start it again. any dieas why it is doing that. Can it be becuase of my internal DVD rom is messing with it somehow?
(This post was last modified: 2012-07-16 02:37 by optiix.)
find quote
dgktkr Offline
Junior Member
Posts: 13
Joined: Jul 2012
Reputation: 1
Post: #439
optiix --

I'm running Linux:

uname -a
Linux iChakra 3.4.3-1-CHAKRA #1 SMP PREEMPT Tue Jun 19 22:50:27 UTC 2012 i686 GNU/Linux

and XBMC 11.0 compiled March 27 2012, plus Makemkv v1.7.6.

If I download the first file in your post #438, and try to install it from zip in XBMC, I get the same error that you do about the incorrect structure. If I unzip the file before starting XBMC and copy the resulting directory structure to ~/.xbmc/addons, it is enabled when XBMC starts, but when that addon is run, it causes a script error. To fix that I changed line 5 in plugin.makemkvbluray/addon.xml so that 'version="1.1"' is changed to 'version="1.0"'.

One other thing, the default timeout for makemkvcon is 120 seconds. For some of my bluray discs, that is not long enough. I've set 200. You can test that out for yourself by running the GUI version of Makemkv. If makemkvcon completes its preparation sooner than the timeout you specifiy, it is not held back. So, in normal use, there is not a penalty for putting in a long timeout.

Have fun,

dgktkr
find quote
optiix Offline
Junior Member
Posts: 39
Joined: Sep 2011
Reputation: 0
Post: #440
Thanks alot dgktkr, works lika a charm after SSH:ing inside the HTPC and changed it all! Smile

THIS IS FOR XBMCbuntu/ubuntu/kubuntu OR OTHER LINUX BASED INSTALLS!
You are expected to already have installed MakeMKV. Please observe that the first time you start MakeMKV with a Blu-Ray movie inserted it will prompt for your approval of beta trial so first time you will need to get "out of XBMC mode and iside the Windows looking thing Wink

For people that dont even know what SSH is, read on, this is how I (dgktkr) did...
Download putty here: http://www.chiark.greenend.org.uk/~sgtat...nload.html
Double click on it when it is installed. Under "Host name (or IP address)" write your internal IP address to your HTPC you wanna get Blu-Ray script working on.
In my case I wrote "192.168.1.104".
A window with black background and white text will appear. Login with your XBMCbuntu Login and password.

Write: "~/.xbmc/addons"
Write: "ls"
After you have writet "ls" look after a folder named "plugin.makemkvbluray", if there is one write the following: "sudo rm -R plugin.makemkvbluray".
Now write "ls" again and see so that the folder "plugin.makemkvbluray" is gone!
Download the latest Blu-Ray script by writing this: "wget http://www.bultsblog.com/plugin.makemkvbluray-1.1.zip"
[Image: 2lu82d.jpg]

Write: "sudo unzip plugin.makemkvbluray-1.1.zip"

[Image: 2m5xxms.jpg]

Write: "cd plugin.makemkvbluray"
Write: "sudo nano addon.xml"

A text editor will appear, on line five (5) you will see this row: " <import addon="xbmc.python" version="1.1" /> "
You will edit the 1.1 in this line to 1.0, you can just copy this if your lazy..: " <import addon="xbmc.python" version="1.0" /> " <- Without the " "
Okey, your almost done. Nah Im just kidding, you are done Nod
(This post was last modified: 2012-07-20 02:52 by optiix.)
find quote
Post Reply