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


- magnetism - 2010-02-02

hippojay Wrote:Hi,

Nice work, but I'd been having problems getting this to work with ripped BD file structures. It looks like the problem is file name and spaces. I've fixed it by popping a couple of double quotes around the filename:

mkvStart = '"%s" stream file:\"%s\"' %(self.settings.mkvLocation, choice[:-15])

I did that initially as well but ran into issues on my linux machine with that. Will need to investigate before I'll make the change.

Quote:There is also another problem in that sometimes makemkvcon is using the next available port (51001) rather than 51000. This might account for any "hangs" awaiting a stream. Some sort of port detection might help (perhaps utilising the PID of the makemkvcon process - sorry I can't help with any actual code, but I've never looked a python before - so i'd be doing all this through shell commands..)..

EDIT: something like this, but it's real hacky:
PPID = subprocess.Popen('makemkvcon stream file:\"/home/xbmc/data/BluRay/\"', shell=True)
PID = subprocess.Popen('ps --ppid %s' %(PPID.pid) + ' | grep makemkvcon | awk \'{print $1}\'' ,shell=True )
PORT = subprocess.Popen('netstat -alpt | grep %s ' %(PID) + ' | awk \'{print $4}\' | cut -f2 -d:' ,shell=True)
print PORT

as you can see, this is my first python script Smile

I'd like to have a more reliable method for local port detection for sure, but somehow this doesn's seem like 'it' to me at the moment (Also, it's not very crossplatform...). Also, the script should be terminating any running makemkvcon before starting another, so what process is still using that port in your case?


- pinthenet - 2010-02-03

I'm trying to get this working on an Asrock ION 330 BD with Ubuntu and XBMC9.11 but I can only run makemkvcon as root and not as the xbmc user. Does aynone have any tips?

Also, the makemkv GUI doesn't work as xbmc-user or root (segfault & Fatal error popup) and makemkvcon does a segfault as xbmc-user.

I'll try adding a sudo to the script tomorrow, but I'd like to get the GUI working as well.

I've got the latest 1.4.12 makemkv installed

Thanks in advance

John


- Phantasm4489 - 2010-02-04

pinthenet Wrote:I'm trying to get this working on an Asrock ION 330 BD with Ubuntu and XBMC9.11 but I can only run makemkvcon as root and not as the xbmc user. Does aynone have any tips?

Also, the makemkv GUI doesn't work as xbmc-user or root (segfault & Fatal error popup) and makemkvcon does a segfault as xbmc-user.

I'll try adding a sudo to the script tomorrow, but I'd like to get the GUI working as well.

I've got the latest 1.4.12 makemkv installed

Thanks in advance

John

This may or may not be related to a similar problem I was having.

Both GUI and console versions were giving segfault for me.

I had to downgrade to 1.4.11 and now both work fine.


- pinthenet - 2010-02-04

I'll give it a try. I had other issues with 1.4.11 but I think they were caused by a slightly loose contact on the drive as there were also problems with DVDs crashing or not being read
1.4.11 GUI did work though
Thanks
John


- pinthenet - 2010-02-04

Ah, just remembered - the reason I upgraded from 1.4.11 is that it wouldn't start anymore - 'Beta version too old'.


- Phantasm4489 - 2010-02-04

pinthenet Wrote:Ah, just remembered - the reason I upgraded from 1.4.11 is that it wouldn't start anymore - 'Beta version too old'.

I do remember reading on the MakeMKV site that the beta versions do timeout and you can just reinstall to reset the timeout. So re-installing 1.4.11 should fix that.


- pinthenet - 2010-02-04

sorry, home now & found that my 'old' 1.4.11 was actualy a 1.4.9:o
Built 1.4.11 and all works fine....


- idioteque - 2010-02-04

I have created a Blu-ray Disc image test file to test Bluray disk file structure reading

http://forum.xbmc.org/showthread.php?tid=69009

See what you all can make of it


- magnetism - 2010-02-04

idioteque Wrote:I have created a Blu-ray Disc image test file to test Bluray disk file structure reading

http://forum.xbmc.org/showthread.php?tid=69009

See what you all can make of it
Why? Is there a problem with it and this script?


- Phantasm4489 - 2010-02-04

magnetism Wrote:Why? Is there a problem with it and this script?

worked fine for me.


- magnetism - 2010-02-04

Phantasm4489 Wrote:worked fine for me.

Well, good. I'm just a bit confused about the original post? Not sure what the relevance is.


- Phantasm4489 - 2010-02-04

magnetism Wrote:Well, good. I'm just a bit confused about the original post? Not sure what the relevance is.

oh apart from the fact that the folder in the zip file had a space in it. Once that was removed it worked fine. That has already been discussed in this thread though. Other than that I have no idea what the relevance was either.


- batrad - 2010-02-05

Appreciate if someone can help me

I'm using the prebuid image for the ION that has the scripts installed from
http://www.xbmcfreak.nl/xbmcfreak-live-svn-versie-27338/
I have also tried v10 and v11 of the ISO's with similar results

System Info
XBMC PRE 10.5. r27338
Transparency! 2.11 Skin
4GB Memory
XBMC Live installed on 8GB CF /SATA adapter on ASUS ION Motherboard
LiteON 4X BluRay Reader LH401S

I'm unable to play any BluRay disc I have
If I connect the same burner to my windows PC, I'm able to play the movie or extract an ISO from it. I have also tried playing the ISO off a network share, no luck..

The script completes 100% and then stops with no output

Log file attached (hope I got the link right..)

http://pastebin.com/m45280236

If I try to play the steam via a web browser on my PC after the script completes 100% I get an error
http://192.168.1.119:8080/xbmcCmds/xbmcHttp?command=PlayFile(http://192.168.1.119:51000/stream/title0.m2ts;1)
Error:Could not play file

If I try to connect to the page to browse the file structure
http://192.168.1.119:51000/

I get an error.. page not found

I can connect to the XBMC on this IP to transfer files from my desktop with WinSCP


Am new with Linux and don't know which way to turn to fix this issue...


Thanks


- Phantasm4489 - 2010-02-05

it maybe be streaming to a different port for some reason (port is already in use for example). You could try using netstat to get a list of all open ports and see what port it is outputting to.


- batrad - 2010-02-05

success..

I followed the instructions on the makemv site to downgrade the package down to 1.4.11 and now I'm able to stream from Disc... Big Grin

cryptic, but a little search helped...

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

Unfortunately, I'm still unable to stream via a share.. Sad

Did see some threads about spaces in the script.. appreciate if someone can share the updated script that may help

Thanks