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
Gryph Offline
Senior Member
Posts: 154
Joined: May 2009
Reputation: 0
Location: Melbourne / Australia
Post: #11
Nice ... Thanks for this info.

You can also stream the movie if you have the folders, or ISO on your machine.

From the first post, instead of:
makemkvcon stream disc:0

You can do:
makemkvcon stream file:"/directory/to/BMDV/CERT/"

or:
makemkvcon stream iso:"/directory/to/filename.iso"

It would be great to be able to have this added into your script, if I had any know how to do this, I'd help out.
find quote
3choTh1s Offline
Junior Member
Posts: 4
Joined: Oct 2009
Reputation: 0
Post: #12
When I try to use magnetism's great script for running bluray movies through makemkv and then streamed to xbmc, it seems to kill all audio from my system. First I see the video and then no sound with a "Failed to initialize audio device" error. After I stop the video there is no audio from anything. No system sounds, no navigation noises, and when I exit xbmc, ubuntu has no audio either. So when I say audio killed I mean totally. The only way I've found to get it back is to reboot my computer.

I'm running Ubuntu 9.04(i686) 32-bit, up to date as of 1-19-2010(yesterday). My xbmc version is SVN r27017 from the PPA. Also if this helps I've previously uninstalled pulseaudio as it was acting up whenever I put the machine to sleep and wake it up the sound would be gone. So far alsa has been working great and I can play any other video just fine audio and all.

Also to note is that I'm relying on the system to decode the audio and downmix to 2 ch, since I don't have a receiver and it's being outputed via analog.

Debug log:
http://pastebin.com/m27faf2a1

If there is anyone who could help me(maybe it's just the way I have my computer set up) I would be very much obliged.
find quote
TeknoJnky Offline
Fan
Posts: 423
Joined: Aug 2008
Reputation: 0
Post: #13
I have the same (or similar) issue on appletv/osx, losing all audio until reboot after playing kill bill vol 1 bluray m2ts.

http://forum.xbmc.org/showpost.php?p=488...stcount=36
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #14
I'm on holiday ATM, so no access to my dev machine. I'll look in to supporting other makemkv modes once I'm back.
Some support for browsing discs etc should also be possible etc.
find quote
hewittd Offline
Junior Member
Posts: 6
Joined: Nov 2009
Reputation: 0
Post: #15
Thanks very much for making more work for me! I just pulled my Blu-Ray/HD-DVD combo drive out of my Linux HTPC box and put it in my Windows server, and I was opening BR's over a SMB share...now I have to put it back again!

Can't wait to try it out!
find quote
rodercot Offline
Donor
Posts: 795
Joined: Feb 2008
Reputation: 25
Location: Ottawa, Canada
Post: #16
Hey guys,

Anyone have any ideas, the script is failing for me. It will launch and then fail almost immediately.

When I run makemkv and load up the disk from the desktop then click on stream it is loading up at http://localhost:51003 for all the blu-rays I have tested.
The weird thing is that if I reboot Gone in Sixty Seconds will play then if I try another disk it fails.

I am rebooting now and I am going to look at the Gi60s bd and see what it's address is after a clean boot.

OK, I booted up and checked the disk after a clean boot and sure enough the address is 51000 not 51003, so if I try and play the disk now it will stream then if I stop it and load another disk it will fail as the stream for the new disk is at 51003 it seems.

***EDIT*** So in trying to diagnose this, I loaded up MKV grabbed The Fifth Element, loaded up the disk, read it. loaded up xbmc switched to window mode loaded up firefox and the http play line. started the stream and watched, it actually starts to buffer the file for some reason and then to the point it crashes xbmc (kills it) and then just continually buffers for about 5 minutes straight but completely takes over the machine while it is doing so.

I am wondering if it is an issue with the blu-ray reader or not enough memory, The reader is only a 4 times. I am going to try that movie in my LG combo reader in my windows machine. Nope no luck that way either. it just crashes xbmc and continues buffering.

***EDIT*** Well I have tried about 15 Movies now and the only one I can get to work ON A CLEAN BOOT is Gone in 60 Seconds. All the others either go into a buffering state and basically freeze the system from other functions or run the script count to 100 and then the script closes. this is on an IONITX-F-E with 2GB Ram and the Liteon 4x blu reader.

I have googled for any issues surrounding this drive, firmware etc and i have found nothing, I think I will up the ram to 4 and try it out. If I run tops remotely while it is trying to buffer or play the stream it just pegs everything. ***EDIT***

Regards,

Dave
(This post was last modified: 2010-01-23 14:31 by rodercot.)
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #17
What's your CPU usage like while trying to playback? Maybe MakeMKV takes too much of the atoms power which prevents XBMC from working with it?

I'm running on a C2D 5200 myself and have not had problems.
find quote
Shank Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #18
magnetism Wrote:Ok, download this zip file with the packaged script:

http://www.bultsblog.com/BluRay-script.zip
  • Unzip the contents to your script dir
  • Load a blu ray
  • Browse to the script in XBMC and start it (BluRay)
  • Wait for it.... The script will
    [INDENT]- Kill any still running makemkvcon
    - start a new makemkvcon to stream disc:0
    - Wait for max 2 minutes for the stream to become available on HTTP
    - Run the title0 stream.
    [/INDENT]
  • Hopefully, watch the movie.
Let me know if it works for you.

Maybe im missing something. In my case the script only says - Waiting for stream. I am using a Asrock 330 with built in BD-player.
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #19
Did you install makemkv? If so, which version do you have?
find quote
Shank Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #20
magnetism Wrote:Did you install makemkv? If so, which version do you have?

Wow... Im so stupid, i presumed that was included in the script...
find quote
Post Reply