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

  Thread Rating:
  • 13 Votes - 4.23 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #391
fiveisalive Wrote:Tried the 1.1 version on Linux with 1.7.0 on Dharma 10.1, got the following:

Code:
6:36:18 T:139820424746752 M:3163836416   ERROR: Error Type: exceptions.TypeError
16:36:18 T:139820424746752 M:3163836416   ERROR: Error Contents: NamedTemporaryFile() got an unexpected keyword argument 'delete'
16:36:18 T:139820424746752 M:3163836416   ERROR: Traceback (most recent call last):
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 196, in ?
                                                mydisplay.handleListing()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 88, in handleListing
                                                self.CATEGORIES()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 153, in CATEGORIES
                                                disclist = self.makemkv.discList()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/resources/lib/makemkv.py", line 13, in discList
                                                tmpf = tempfile.NamedTemporaryFile(delete=True)
                                            TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'
16:

Looking at http://docs.python.org/library/tempfile.html it appears that the "delete" parameter was added in Python 2.6, but by default Dharma/10.1 builds against a bundled version of Python 2.4.

Yes, this new version will work with eden only. Sorry.
find quote
fiveisalive Offline
Fan
Posts: 370
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #392
magnetism Wrote:Yes, this new version will work with eden only. Sorry.

Can't you create compatibility code? If it's only that one change that's needed, I can easily create a patch and post it on github that will use a fallback method to create the tempfile.
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #393
fiveisalive Wrote:Can't you create compatibility code? If it's only that one change that's needed, I can easily create a patch and post it on github that will use a fallback method to create the tempfile.

Well, no. Or rather I could, but:

- Eden is close, since we're in beta 1 now
- I don't have a 10.1 release to test it against
- I don't have time

so I don't want to.

Patches welcome though, so feel free to shoot me a pull request.
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,684
Joined: Jun 2009
Reputation: 39
Post: #394
Really chauffed yoy're working on this again Big Grin

Quick test on my Win7 laptop I get a script failed message with the following error in log
Code:
17:47:39 T:5076  NOTICE: -->Python Interpreter Initialized<--
17:47:39 T:5076   ERROR: Error Type: <type 'exceptions.ImportError'>
17:47:39 T:5076   ERROR: Error Contents: No module named settings
17:47:39 T:5076   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Bruce\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 20, in <module>
                                                import settings, file, mkvparser, brlog, makemkv
                                            ImportError: No module named settings
17:47:39 T:4168   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.makemkvbluray
17:47:39 T:4168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.makemkvbluray) failed
17:47:40 T:3968  NOTICE: -->Python Interpreter Initialized<--

As soon as I can prize wife off the TV I'll try it on my main linux machine.
Just an observation but I notice you've dropped the ".video." from the plugin name, I'm just checking so as to get my menu shortcut correct.

Noli illegitimi carborundum
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #395
Mudislander Wrote:Really chauffed yoy're working on this again Big Grin

Quick test on my Win7 laptop I get a script failed message with the following error in log
Code:
17:47:39 T:5076  NOTICE: -->Python Interpreter Initialized<--
17:47:39 T:5076   ERROR: Error Type: <type 'exceptions.ImportError'>
17:47:39 T:5076   ERROR: Error Contents: No module named settings
17:47:39 T:5076   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Bruce\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 20, in <module>
                                                import settings, file, mkvparser, brlog, makemkv
                                            ImportError: No module named settings
17:47:39 T:4168   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.makemkvbluray
17:47:39 T:4168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.makemkvbluray) failed
17:47:40 T:3968  NOTICE: -->Python Interpreter Initialized<--

As soon as I can prize wife off the TV I'll try it on my main linux machine.
Just an observation but I notice you've dropped the ".video." from the plugin name, I'm just checking so as to get my menu shortcut correct.

Hmm, strange. I don't have that problem. Settings is from my own plugin, so that should work. Unless
Code:
os.path.join( xbmcaddon.Addon().getAddonInfo('path'), "resources" )
doesn't work on windows as it should..

You're on eden-pre?
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #396
Oh, and regarding the .video. thing. I never had it locally .... So I guess I changed it a long time ago here.. It might make more sense to include it actually since it is a video plugin.
Something to ponder Wink
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,684
Joined: Jun 2009
Reputation: 39
Post: #397
Quote:You're on eden-pre?

Yep Eden Beta 1 - compiled 24th Dec

Noli illegitimi carborundum
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #398
Mudislander Wrote:Yep Eden Beta 1 - compiled 24th Dec

Right, I've made a small change, since the path calculation wasn't using my plugin ID. I've pushed it to github, so if you've got access you can get a new version now. Otherwise you'll have to wait a while.
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,684
Joined: Jun 2009
Reputation: 39
Post: #399
Thanks, I'll get it shortly.

Noli illegitimi carborundum
find quote
LastCoder Offline
Fan
Posts: 434
Joined: Dec 2011
Reputation: 0
Post: #400
Hi,

very cool addon .. helps me increasing WAF for my HTPC Laugh

Unfortunately

- the latest addon version (plugin.makemkvbluray-1.1) raises script error (XBMC PVR Eden Beta Build 4. Jan 2012),

- the one from the #1 post here starts without error, the first minutes the drive is reading and working, something happens - but doesn't stream (nothing happens, XBMC freezes)

MakeMKV itself works, dumping and even streaming, tested with MPlayer ..

If you need log-info, plz tell where to find, I'll post it ..

So long

LastCoder

Ubuntu 12.04 LTS Server, Xfce, XBMC Gotham, Skin reFred, tvheadend tv backend
ASUS P8H61-M LE/USB3, Celeron G530, Geforce 210, 4 GB DDR3 RAM
16 GB CnMemory 300x CF, 1 TB Samsung 2,5" HDD
iHOS104 BluRay Drive, TT DVBS2-1600
Silverstone GD05B Case, Sony PS3 BD Remote control, Logitech Cordless Mediaboard Pro for PS3
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #401
You can try getting the github version.
find quote
LastCoder Offline
Fan
Posts: 434
Joined: Dec 2011
Reputation: 0
Post: #402
Sad nope ...

[INDENT]22:20:43 T:2977086320 NOTICE: [BR 1] Showing categories done
22:20:45 T:2977086320 NOTICE: -->Python Interpreter Initialized<--
22:20:45 T:2977086320 NOTICE: [BR 1] Starting the BluRay script
22:20:45 T:2977086320 NOTICE: [BR 1] args
22:20:45 T:2977086320 NOTICE: [BR 1] plugin://plugin.makemkvbluray/
22:20:45 T:2977086320 NOTICE: [BR 1] 0
22:20:45 T:2977086320 NOTICE: [BR 1] ?mode=1&autoplay=True&disc=0
22:20:45 T:2977086320 NOTICE: [BR 1] done args
22:20:45 T:2977086320 NOTICE: [BR 1] Staring
22:20:45 T:2977086320 NOTICE: [BR-settings 1] reading settings
22:20:45 T:2977086320 NOTICE: [BR-settings 1] raw param string: ?mode=1&autoplay=True&disc=0
22:20:45 T:2977086320 NOTICE: [BR-settings 1] reading settings
22:20:45 T:2977086320 NOTICE: [BR-settings 1] raw param string: ?mode=1&autoplay=True&disc=0
22:20:45 T:2977086320 NOTICE: [BR 1] mode: 1
22:20:45 T:2977086320 NOTICE: [BR 1] Entering Disc mode
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] Starting stream on disc 0 with local url http://127.0.0.1:51000/
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] Starting makemkvcon -r --cache=128 stream disc:0
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] attempting linux kill of makemkvcon
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] Linux call successful
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] attempting windows kill of makemkvcon
22:20:45 T:2977086320 NOTICE: [BR-makemkvinteraction 1] Windows call successful
22:22:46 T:3018491664 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.makemkvbluray/?mode=1&autoplay=True&disc=0][/INDENT]

First everthing seems to be fine .. getting an "open disc" dialog, the drive starts working (guess the progressbar is still in work) works, works .. get "Playback not possible" ... as said, with makemkv and mplayer streaming works ..

So long

LastCoder

Ubuntu 12.04 LTS Server, Xfce, XBMC Gotham, Skin reFred, tvheadend tv backend
ASUS P8H61-M LE/USB3, Celeron G530, Geforce 210, 4 GB DDR3 RAM
16 GB CnMemory 300x CF, 1 TB Samsung 2,5" HDD
iHOS104 BluRay Drive, TT DVBS2-1600
Silverstone GD05B Case, Sony PS3 BD Remote control, Logitech Cordless Mediaboard Pro for PS3
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #403
Hmm, from the looks of that log file it is killing the stream after it started... That's not good.
Windows, right?
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #404
Scratch that, it's just the logging that logs stuff to soon...

Did you change the default port of makemkv by any chance? If you run that command it prints

makemkvcon -r --cache=128 stream disc:0

What does the commandline tell you?
find quote
LastCoder Offline
Fan
Posts: 434
Joined: Dec 2011
Reputation: 0
Post: #405
Hi magnetism,

it's running on linux (Xbuntu 11.10), I installed makemkv following these instructions

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

and I didn't change anything of the standard settings of makemkv (will prove it just to be on the safe side) ...

will try
Code:
makemkvcon -r --cache=128 stream disc:0
today evening and report ...

btw. "opening/browing" instead of "playing" the disc fails too ..

So long

LastCoder

Ubuntu 12.04 LTS Server, Xfce, XBMC Gotham, Skin reFred, tvheadend tv backend
ASUS P8H61-M LE/USB3, Celeron G530, Geforce 210, 4 GB DDR3 RAM
16 GB CnMemory 300x CF, 1 TB Samsung 2,5" HDD
iHOS104 BluRay Drive, TT DVBS2-1600
Silverstone GD05B Case, Sony PS3 BD Remote control, Logitech Cordless Mediaboard Pro for PS3
find quote
Post Reply