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
dgktkr Offline
Junior Member
Posts: 13
Joined: Jul 2012
Reputation: 1
Post: #441
For people struggling with getting makemkvbluray to work on XBMC 11.0, here is another method that works for me and uses the latest version of makemkvbluray, which is found on github.

With your browser, go to

https://github.com/abultman/plugin.makem...82e566afb6

On the right side of the page, click on the text "Downloads". That takes you to another page that has a button labeled "Download as zip" on the upper left. Click on that. Once it is downloaded, change the name of the file to plugin.makemkvbluray.zip. Now fire up XBMC and execute "Install from a zip file", browsing to where the plugin is located in your file system.

dgktkr
find quote
tismon Offline
Junior Member
Posts: 40
Joined: Jan 2012
Reputation: 0
Post: #442
(2012-06-30 18:37)magnetism Wrote:  Do you have more than one optical drive?

Huh, missed another update. Yes, there's a Samsung blu-ray DVD-RW and an ASUS DVD-RW.
Is this a common issue?

EDIT: dgktkr, I still get the script failed issue no matter which route I take. I'll keep at it though.
(This post was last modified: 2012-07-20 07:13 by tismon.)
find quote
optiix Offline
Junior Member
Posts: 39
Joined: Sep 2011
Reputation: 0
Post: #443
(2012-07-20 06:49)tismon Wrote:  
(2012-06-30 18:37)magnetism Wrote:  Do you have more than one optical drive?

Huh, missed another update. Yes, there's a Samsung blu-ray DVD-RW and an ASUS DVD-RW.
Is this a common issue?

EDIT: dgktkr, I still get the script failed issue no matter which route I take. I'll keep at it though.

Try my guide on page 44 tismon. It is step by step.
I also have two drives, one internal and one external asus BD-rom, works great after I did that on page 44!
find quote
dgktkr Offline
Junior Member
Posts: 13
Joined: Jul 2012
Reputation: 1
Post: #444
tismon,

Until you get plugin.mkamkvbluray working, you might look into the method I posted in another thread. http://forum.xbmc.org/showthread.php?tid=136623

dgktkr

PS I have two optical drives and the latest plugin (from github) works fine. At least one older version has disc:0 hardcoded in, but for the latest one it seems to automatically find the correct drive.

(2012-07-20 06:49)tismon Wrote:  EDIT: dgktkr, I still get the script failed issue no matter which route I take. I'll keep at it though.
(This post was last modified: 2012-07-21 23:07 by dgktkr.)
find quote
nosaj56 Offline
Junior Member
Posts: 11
Joined: May 2004
Reputation: 0
Post: #445
I downloaded abultman-plugin.makemkvbluray-dab2624.zip from github. I installed the latest version of MakeMKV. I tried to make my temp folder not read only, but that doesn't seem to stick. here's my error when trying to use the addon in XBMC:

Code:
19:29:04 T:6452  NOTICE: Thread Jobworker start, auto delete: true
19:29:05 T:2104  NOTICE: Previous line repeats 1 times.
19:29:05 T:2104  NOTICE: Thread XBPyThread start, auto delete: false
19:29:05 T:2104  NOTICE: -->Python Interpreter Initialized<--
19:29:05 T:2104  NOTICE: [BR 1] Starting the BluRay script
19:29:05 T:2104  NOTICE: [BR 1] args
19:29:05 T:2104  NOTICE: [BR 1] plugin://plugin.makemkvbluray/
19:29:05 T:2104  NOTICE: [BR 1] 0
19:29:05 T:2104  NOTICE: [BR 1]
19:29:05 T:2104  NOTICE: [BR 1] done args
19:29:05 T:2104  NOTICE: [BR 1] Staring
19:29:05 T:2104  NOTICE: [BR-settings 1] reading settings
19:29:05 T:2104  NOTICE: [BR-settings 1] raw param string:
19:29:05 T:2104  NOTICE: [BR-settings 1] reading settings
19:29:05 T:2104  NOTICE: [BR-settings 1] raw param string:
19:29:05 T:2104  NOTICE: [BR 1] mode: None
19:29:05 T:2104  NOTICE: [BR 1] Showing categories
19:29:05 T:2104  NOTICE: [BR-makemkvinteraction 1] attempting linux kill of makemkvcon
19:29:05 T:2104  NOTICE: [BR-makemkvinteraction 1] Linux call successful
19:29:05 T:2104  NOTICE: [BR-makemkvinteraction 1] attempting windows kill of makemkvcon
19:29:05 T:2104  NOTICE: [BR-makemkvinteraction 1] Windows call successful
19:29:05 T:2104   ERROR: Error Type: <type 'exceptions.IOError'>
19:29:05 T:2104   ERROR: Error Contents: (13, 'Permission denied', 'c:\\users\\xxx\\appdata\\local\\temp\\tmpenzd8_')
19:29:05 T:2104   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\abultman-plugin.makemkvbluray-dab2624\default.py", line 194, in <module>
                                                mydisplay.handleListing()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\abultman-plugin.makemkvbluray-dab2624\default.py", line 88, in handleListing
                                                self.CATEGORIES()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\abultman-plugin.makemkvbluray-dab2624\default.py", line 151, in CATEGORIES
                                                disclist = self.makemkv.discList()
                                              File "C:\Users\xxx\AppData\Roaming\XBMC\addons\abultman-plugin.makemkvbluray-dab2624\resources\lib\makemkv.py", line 15, in discList
                                                tmpf = open(tmpf.name)
                                            IOError: (13, 'Permission denied', 'c:\\users\\xxx\\appdata\\local\\temp\\tmpenzd8_')
19:29:05 T:5464   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.makemkvbluray
19:29:05 T:5464   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.makemkvbluray) failed
19:29:05 T:3928  NOTICE: Thread Background Loader start, auto delete: false
19:32:36 T:6676   ERROR: CAESinkWASAPI::AddPackets: Endpoint Buffer timed out
19:32:36 T:6676   ERROR: CSoftAE::RunOutputStage - sink error - reinit flagged
19:32:40 T:6676  NOTICE: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized Successfully!!!
19:32:44 T:6676   ERROR: CAESinkWASAPI::AddPackets: Endpoint Buffer timed out
19:32:44 T:6676   ERROR: CSoftAE::RunOutputStage - sink error - reinit flagged
19:32:47 T:6676  NOTICE: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized Successfully!!!

thank you.
find quote
Agin Offline
Junior Member
Posts: 27
Joined: Jul 2010
Reputation: 0
Location: Norway
Video  RE: [LINUX] HOW-TO playback Blu-ray Disc in XBMC for Linux with MakeMKV (Plugin Addon) Post: #446
Might be covered before; this addon will also work for playback of «ancient» HD DVDs Big Grin
To avoid the pulldown flag problem (29.97fps instead of the actual 23.976fps), a workaround is to make the official Executor addon
run a script before starting the Bluray/MakeMKV addon.


Disclaimer: USE AT YOUR OWN RISK!!!

Edit the programs.cfg file in /.xbmc/userdata/addon_data/plugin.program.executor/
to make the script available from Executor:
Code:
[Script Name]
exec = /bin/bash /path.to.script/script.sh

The script itself:
Code:
export display=:0
sleep 1
/usr/lib/xbmc/xbmc-xrandr -r 24




Thanks goes to Fritsch and Spiff.

HTPC: FSC Scaleo Evi // E6400 // 2GB // N210 512MB Silent/LP // OCZ Vertex3 60GB // LG GGW-H20L HD DVD/Blu-ray drive | Ubuntu 12.04.1 LTS // xbmc 11.0
XBMC Addons: Blu-ray player with MakeMKV | BBC iPlayer | Crackle | GrooveShark | Last.FM | ListenLiveEU | MPD Client | NRK | Pandora | Shoutcast | VEVO | Vimeo | YouTube
NAS: Netgear ReadyNas NV+ 1GB
(This post was last modified: 2012-09-20 22:35 by Agin.)
find quote
fritsch Offline
Team-XBMC Member
Posts: 1,400
Joined: Aug 2011
Reputation: 40
Location: Karlsruhe
Post: #447
@Agin:

What you are doing is, that you force the TV back to 24hz after the mode switch has happened. That is not a good idea, as xbmc (mainline) gets absolutely no knowledge that this refresh has been altered again. It would be better, if you workaround it with a advancedsettings.xml, that has such part of content:

Code:
<video>
  <adjustrefreshrate>
  <override>
  <fpsmin>29.90</fpsmin>
  <fpsmax>29.99</fpsmax>
  <refresh>23.976</refresh>
  </adjustrefreshrate>
</video>

Play a bit with these values. Make sure that you stay below 30.00 to keep 60i working. Also I am not sure about the <refresh>23.976</refresh>. You can verify by running: DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr while playing a movie. Also make sure that the advancedsettings.xml is correct. this video tags have to go under the root element, which is <advancedsettings.xml>
(This post was last modified: 2012-10-22 23:37 by fritsch.)
find quote
LJ50 Offline
Junior Member
Posts: 9
Joined: Dec 2012
Reputation: 1
Post: #448
Appreciate the thread is for Linux users, however I have seen some Windows users having some success with this addon so thought I'd give it a try. I've used the v1.1, with the edit suggested by dgktkr.

Although MakeMKV is installed correctly (can rip using it) and the Plugin appears to be installed correctly (can adjust/change settings) the plugin just doesn't seem to "call" makemkvcon.exe (as I'm running a x64 bit system I also tried settled MakeMKVcon64.exe, but again with no joy). The XBMC log indicates that it's not even trying to run the addon, it simply states that the disc is protected by AACS and exits. There is no reference to "MakeMKV" (and therefore plugin.video.makemkvbluray) anywhere in the XBMC log file at all.

I'm relatively new to all this, so I may just have wasted my time doing something that was never going to work, so my thanks to anyone who can confirm whether the plugin and MakeMKV should or shouldn't work with Windows 8 x64 and Frodo RC2.
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #449
Sounds like you're trying to just play the disk, that's not hownit works. You have to run the addon
find quote
LJ50 Offline
Junior Member
Posts: 9
Joined: Dec 2012
Reputation: 1
Post: #450
I am an absolute muppet! Of course. I thought the addon would be triggered by the Play Disc command, but obviously not.

Unfortunately, it's still not working. See below the relevant lines of code from the XBMC log. Any advice on what's gone wrong would be gratefully received.

Thanks again.

Code:
21:56:26 T:5948   ERROR: C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py:5: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.'
                                              BASE_RESOURCE_PATH = os.path.join( os.getcwd(), "resources" )
21:56:26 T:5948  NOTICE: [BR 1] Starting the BluRay script
21:56:26 T:5948  NOTICE: [BR 1] Staring
21:56:26 T:5948  NOTICE: [BR-settings 1] reading settings
21:56:26 T:5948  NOTICE: [BR-settings 1] raw param string:
21:56:26 T:5948  NOTICE: [BR-settings 1] reading settings
21:56:26 T:5948  NOTICE: [BR-settings 1] raw param string:
21:56:26 T:5948  NOTICE: [BR 1] mode: None
21:56:26 T:5948  NOTICE: [BR 1] Showing categories
21:56:26 T:5948  NOTICE: [BR-makemkvinteraction 1] attempting linux kill of makemkvcon
21:56:26 T:5948  NOTICE: [BR-makemkvinteraction 1] Linux call successful
21:56:26 T:5948  NOTICE: [BR-makemkvinteraction 1] attempting windows kill of makemkvcon
21:56:26 T:5948  NOTICE: [BR-makemkvinteraction 1] Windows call successful
21:56:26 T:5948   ERROR: C:\Program Files (x86)\XBMC\system\python\Lib\tempfile.py:162: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.'
                                              dirlist.append(_os.getcwd())
21:56:26 T:5948   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: (13, 'Permission denied', 'c:\\users\\htpc\\appdata\\local\\temp\\tmp7t3pyh')
                                            Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 196, in <module>
                                                mydisplay.handleListing()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 88, in handleListing
                                                self.CATEGORIES()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 153, in CATEGORIES
                                                disclist = self.makemkv.discList()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\resources\lib\mak​emkv.py", line 17, in discList
                                                tmpf = open(tmpf.name)
                                            IOError: (13, 'Permission denied', 'c:\\users\\htpc\\appdata\\local\\temp\\tmp7t3pyh')
                                            -->End of Python script error report<--
find quote
Post Reply