Kodi Community Forum
Linux HOW-TO playback Blu-ray Disc in XBMC for Linux with MakeMKV (Plugin Addon) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: Linux HOW-TO playback Blu-ray Disc in XBMC for Linux with MakeMKV (Plugin Addon) (/showthread.php?tid=67420)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


- Dougie085 - 2010-07-10

I'm running linux, I went to addons on XBMC and told it to install from zip which is what I did.

MakeMKV works fine for me.


- speed32219 - 2010-07-12

magnetism Wrote:You mean something like this:

* Unzip/Install the plugin in your plugin/video path to make it act as a video plugin

As it has been saying on the first post for quite a while now?

Laugh

Yeah, go ahead and have a laugh on me, I wasn't laughing for a couple of days. Sad

But now I can! Smile

This and launcher are the best plugins available, period. Now I just need to add the copy/backup function and all will be wonderful. Smile


- linuxluemmel - 2010-07-13

In this case have a look on my addon.
It produces a backup of bluray and dvd's
http://code.google.com/p/swiss-army-knife/
It use makemkvcon and hanbrake and dd


- Lev00 - 2010-07-18

I registered just to say thanks, this plug-in is awesome. Big Grin


- warbeast - 2010-08-10

Hi Magnetism,
first things first: GREAT WORK!
Took me one minute tu get the plugin up and running (using Ubuntu64 with the stable xbmc on a zotac box).
Just one thing gave me an headache: When I tried to play Bluerays from my disk, It just wouldnt load them. The solution is quite simple:
just replace the line
mkvStart = '"%s" stream %s:%s' %(mystarter.settings.mkvLocation,
type, choice)

with
mkvStart = '"%s" stream %s:\'%s\'' %(mystarter.settings.mkvLocation,
type, choice)

the missing \' produced an error when trying to play BD directories containing a space in the path. should work well on Linux and Mac, maybe the third unmentionable OS needs another treatment Smile

keep on the good work!


- speed32219 - 2010-08-10

warbeast Wrote:Hi Magnetism,
first things first: GREAT WORK!
Took me one minute tu get the plugin up and running (using Ubuntu64 with the stable xbmc on a zotac box).
Just one thing gave me an headache: When I tried to play Bluerays from my disk, It just wouldnt load them. The solution is quite simple:
just replace the line
mkvStart = '"%s" stream %s:%s' %(mystarter.settings.mkvLocation,
type, choice)

with
mkvStart = '"%s" stream %s:\'%s\'' %(mystarter.settings.mkvLocation,
type, choice)

the missing \' produced an error when trying to play BD directories containing a space in the path. should work well on Linux and Mac, maybe the third unmentionable OS needs another treatment Smile

keep on the good work!

If someone were to use cut and paste, they will have a problem with your entry. I think the double quote would cause some type of problem. \'%s\''


- galleren - 2010-08-21

Are there any news on how to get this to work by playing back BD discs from a windows (7) share?

I can browse easily using the PlayFileLocation option in the bluray plugin, but when i select the index.bdmv of the ripped dics, it just gives me a status bar going up to 100% (also saying 0 items retrieved) and then nothing happens.

I also tried mounting my share (//xxxxx/movies/) to /mnt/xxxxx and tried it that way, but the same thing happens.

Any ideas?


Video does not play smoothly... - mundus - 2010-09-11

Hi,

I got the script working now by reinstalling makevm. However the video and sound are pausing momentarily every 1-2 seconds. I'm running XBMC on Ubuntu 10.04.1 LTS on Asrock ION 330HT-BD. I'm playing the video directly from the Blu-Ray disk.

Any pointers where to start analysing this?

Thanks!


Error playing file - Xandu - 2010-09-17

Hey all,

I tried using the makemkv plugin (Dharma version someone in topic created) on Windows and XMBC Dharma. I set everything up as described but when i want to play a file it says "Running makeMKV ended abnormally. Is it installed?" Well it is indeed installed and i check the XBMC log and the path to start up makeMKV is the right one too. (If i copy and paste it in CMD it starts the server just fine)

The weird thing is, when i set it up manually (through the makeMKV GUI) it works just fine. No problem at all. Only problem with this is that it requires me to manually select the video and set it to stream which makes it a bit obsolete as i can do that with TotalMedia Theathre too.

After this weird problem i took a look at the default.py file. (I dont know python but do some basic programming in other languages). And the problem seems te be this line:
urllib.urlretreive(self.settings.rootURL)
in context:
Code:
while True:  
        try:
      _log.info(self.settings.rootURL)
          [b]urllib.urlretrieve(self.settings.rootURL)[/b]
          ready = True
          break;
        except IOError:
      _log.info("Error")
          pass
As you can see i logged some things to check if the URL it wanted to load was the right one. Which is the case, when running it local the URL is http://127.0.0.1:51000/ (makeMKV tells me the streaming server is at this ip too if i start it manually)

But when I run the makeMKV plugin with these logs in it, the XBMC log looks like this:
Code:
11:20:46 T:4360 M:1570910208   ERROR: Texture manager unable to load file: C:\Users\Wesley\AppData\Roaming\XBMC\addons\plugin.video.makemkv\fanart.jpg
11:20:47 T:3792 M:1570807808   ERROR: XFILE::CFile::Delete - Error deleting file C:\Users\Wesley\AppData\Roaming\XBMC\userdata\Thumbnails\9\9647183a.png
11:20:47 T:3792 M:1570795520   ERROR: XFILE::CFile::Delete - Error deleting file special://masterprofile/Thumbnails/9/9647183a.png
11:20:47 T:4148 M:1569226752  NOTICE: -->Python Interpreter Initialized<--
11:20:48 T:4148 M:1566265344  NOTICE: [BR 1] Starting the BluRay script
11:20:48 T:4148 M:1566265344  NOTICE: [BR 1] Staring
11:20:48 T:4148 M:1566265344  NOTICE: [BR-settings 1] reading settings
11:20:48 T:4148 M:1566253056  NOTICE: [BR 1] mode: None
11:20:48 T:3792 M:1566638080   ERROR: Unable to lookup host: 'plugin.video.makemkv'
11:20:55 T:2156 M:1567567872   ERROR: Previous line repeats 3 times.
11:41:44 T:3096 M:1464238080  NOTICE: -->Python Interpreter Initialized<--
11:41:44 T:3096 M:1463947264  NOTICE: [BR 1] Starting the BluRay script
11:41:44 T:3096 M:1463947264  NOTICE: [BR 1] Staring
11:41:44 T:3096 M:1463947264  NOTICE: [BR-settings 1] reading settings
11:41:44 T:3096 M:1463939072  NOTICE: [BR 1] mode: 2
11:41:44 T:3096 M:1463939072  NOTICE: [BR 1] Entering Browse mode
11:41:54 T:3096 M:1461907456  NOTICE: [BR 1] Staring
11:41:54 T:3096 M:1461907456  NOTICE: [BR-settings 1] reading settings
11:41:54 T:3096 M:1461907456  NOTICE: [BR 1] "F:\MakeMKV\makemkvcon.exe" stream iso:"H:\Movies\HD\Fast and Furious (2009) (Blue-ray, 1080p)\Fast and Furious.iso"
11:41:54 T:3096 M:1461907456  NOTICE: [BR 1] "F:\MakeMKV\makemkvcon.exe" stream iso:"H:\Movies\HD\Fast and Furious (2009) (Blue-ray, 1080p)\Fast and Furious.iso"
11:41:54 T:3096 M:1461903360  NOTICE: [BR 1] Running makemkvcon locally
11:41:54 T:3096 M:1461903360  NOTICE: [BR 1] attempting linux kill of makemkvcon
11:41:54 T:3096 M:1460260864  NOTICE: [BR 1] Linux call successful
11:41:54 T:3096 M:1460264960  NOTICE: [BR 1] attempting windows kill of makemkvcon
11:41:54 T:3096 M:1455968256  NOTICE: [BR 1] Windows call successful
11:41:54 T:3096 M:1455968256  NOTICE: [BR 1] "F:\MakeMKV\makemkvcon.exe" stream iso:"H:\Movies\HD\Fast and Furious (2009) (Blue-ray, 1080p)\Fast and Furious.iso"
11:41:54 T:3096 M:1456934912  NOTICE: [BR 1] http://127.0.0.1:51000/
11:41:55 T:3096 M:1457221632  NOTICE: [BR 1] Error
11:41:57 T:3344 M:1457233920   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.makemkv/?mode=2&autoplay=True]
11:41:57 T:4392 M:1457233920   ERROR: Unable to lookup host: 'plugin.video.makemkv'

Can anyone tell whats wrong and causing the error? Because i cant seem to figure it out with my limited python knowlage.

Thx,
Xandu

EDIT: BTW i got phython 2.7 installed on my system, i dont know if this makes any difference.


- linuxluemmel - 2010-09-20

I have created debian files for makemkv 1.6.0.
I use this tool inside my addon.
Before I integrate this version inside my script I need some testers.....
32 Bit is ready to test ... 64 comes tomorrow.
Regards Hans


- Krautmaster - 2010-09-23

thanks @ all for this great plugin (but not tested yet Big Grin)

@linuxluemmel

of course i can thest this addon for you, if you tell me what to do Wink
Im running on a watercooled htpc with a L5630 ES, 4 GB ram, a TT 320 DVB-S2 card, SSD and a HD2600.

Ubuntu 10.04.1 + XBMC 32591 Hepi build ink pvr testing.

Works really fine, dvds are working out of box but when i enter i blueray disc i can choose "play" but nothing happen...

Does anybody have a short step by step tot / post to fix that problem?

Do i only have to install your addon out of zip or will i need somthing else?

Greed and Thanks!


Problem with running in shell - Xandu - 2010-09-24

Hey,

I've been looking into the code some more and i know where the problem i posted 3 posts back lies. The subprocess.Popen runs the makemkvcon in shell mode. This somehow starts makemkvcon on my system but then terminates it immediately after starting it. When i set it to shell=false, it works just fine.

Does anybody else have this problem and maybe someone who knows why it terminates right after starting?

Ps. its on windows 7 x64 so maybe that has something to do with it.


- linuxluemmel - 2010-09-25

The 32 bit debian is ready
http://swiss-army-knife.googlecode.com/files/makemkv-1.6.0-32.tar.gz

As soon I'm back in switzerland the 64 bit debian files will follow .....


- linuxluemmel - 2010-09-25

I guess the combination of the addon from Magnetism (excellent work btw)

* to view Bluray

And the use of my own addon http://code.google.com/p/swiss-army-knife/

* to backup dvd and bluray

is for some users a so called must-have-feature .... including me


- ijd2010 - 2010-09-29

magnetism Wrote:I am updating this first post as a placeholder for the current state of development of the plugin. The original script I've now abandoned as a development platform, I'll keep the script location up for a while though until we know that the plugin is fully functional.

Ok, now for the new: I've released a version of the BluRay video plugin. Please be aware that this is still somewhat a development version. I've tested as well as I could on vista and did play a disc on Linux so I'm reasonably comfortable that it will work. However, until you've tested for your self I would urge you to keep a copy of the original script around so you can switch back to that.

If you have any feedback, suggestions or bugreports please use this thread so we can all share, thanks!


Requirements

* A working install of MakeMKV. If you're installing under Linux, make sure you install both the source and the binary package, otherwise the commandline tool won't be there.
* A BluRay source, either a disc or iso's or something.. (What's the point otherwise...)


Install the plugin

* Download the current version of the plugin here
* Unzip/Install the plugin in your plugin/video path to make it act as a video plugin


Use the plugin
Browse to your video plugins and if all went well with the installation a BluRay plugin should now be selectable. Enter it and play some BluRay's.. Initially there are 3 sources options and a selection to go to the plugin settings. Source options are:

* Disc, play a disc insterted into your BluRay drive (can also be a DVD if you really want to..)
* Filelocation, browse for a filelocation in your video sources and use it as a BluRay source. Selections can be either and ISO image or an index.bdmv file if the dir has been extracted. Note: Since the actual streaming of the image is delegated to the makemkvcon executable only files accessible at the filesystem level can be used. If you've used an XBMC selected samba source, iso files from this location won't work.
* Remote, you can let it connect to a remote machine with the stream setup already.


All three source options have both a 'play' and 'browse' selection. If you choose 'play' the plugin will automatically determine the longest running feature on the disc and start playback of that. Handy if the bluray has only one main feature (ie movies). If you choose 'browse' the plugin will display a selection of chapters on the disc and let's you select the one you want to play. Handy if you're looking at a series BluRay with multiple episode.
Unfortunately there is not a lot of information available on the streams when selection browse. This is because the MakeMKV streamer doesn't supply any more info unfortunately.

Explanation of the settings:
Settings are divided into three sections

* General Settings

o MakeMKV location. -> Point to your makemkvcon executable. If it is on your path the default should be fine, otherwise just browse to the correct location and select it.
o Seconds to wait for stream -> Tell the script how long it should wait for makemkv to finish parsing the disc/iso before calling it quits and exiting. Default is 2 minutes.
o Local portnumber -> If running makemkvcon locally this is the portnumber that the script will listen to. Default should be fine

* Browseable Options

o Enable disc support -> Turn on or off disc support
o Enable File location support -> Turn on or off support for browsing to ISOs and directory structures for playback
o Enable Remote location support -> Turn on or off support for streaming from a remote location

* Remote Setup
This section will only show up if you've enabled remote location support. Enter the ip address and portnumber of the remote makemkv stream location.


Changelog

0.1a

* Fixed code issue with exception handling causing real error to be 'forgotten'
* Fixed issue with logging code which preventen discs from streaming (oops, already!)


0.1

* Initial release of the plugin, based on the script code that has gone before
* Main feature selection now more 'intelligent' by selecting longest stream
* Changed settings around to make more sense by allowing source categories


===== OLD Script:

Location to get the old script: http://www.bultsblog.com/BluRay-script.zip


==== OLD first post starts here

Just a heads up that I've succeeded in playing back an original Blu Ray disk in the blu ray drive using XBMC. It's not as user friendly as is could be yet, but at least it's now possible.

Steps:
- Install MakeMKV
- Insert Blu ray
- makemkvcon stream disc:0
- Get a browser somewhere and point it to:
Code:
http://192.168.0.103:8080/xbmcCmds/xbmcHttp?command=PlayFile(http://192.168.0.103:51000/stream/title0.m2ts;1)
Assuming of course you're xbmc is at that IP.
- Watch the movie....

You can browse the Blu Ray index by pointing to http://192.168.0.103:51000/ By the way.

Now to figure out how to pour this into a plugin somehow...

I apologise if this was already widely known, but it was new to me.
Hi.

Any ideas how to get your plugin installed with XBMC Dharma? I'd like to try it out. I'm currently using the Live version of Dharma.

Thanks,

--Ian