Instant blu-ray playback in plex with makemkv


I'm happy to test it. I'll be home most of the evening, but I'm going out at 11:59 pm and won't be back home until 12:01 am. ;)

I have another general question. Any ideas what the CPU requirements for this would be? Viable on a previous generation mini (1.86)?

My quad-core hackintosh handled it perfectly, but my MacBook Air 1.83/9400m did not, both using VLC. I didn’t try any of the other players.

does VLC take advantage of multi-core setups? I always notice that Plex outperforms VLC

Decompress and double-click to install.

This should solve the input format problem.

bluray.plexapp.zip (1.61 KB)

Interesting hardware possibility:



http://www.amexdigital.com/Press_Release-E_BD-UG1%20Mac%20mini%20Blu-ray%20Drive%20Upgrade%20Kit.htm



for the living room. I’ve been looking at PS3s recently just for BluRay support so this whole development has got me very interested.

I still get the “Could not determine input format” error.

I should have checked this forum earlier. I’ve been working on a plug-in for Plex that allows you to launch your blu-ray player (or dvd) streaming from with inside Plex and navigate to the title you want to play. basically after you navigate through the options it’ll launch makemkvcon after you select the disc you want to stream. everything has been working great so far except for closing makemkvcon after I’m done or if I close Plex. I’m new to Plex plug-in development. so far I haven’t found anything that I can use to help cleanup and close makemkvcon using the Plex API.



Any Ideas? After I have that piece working better I’ll release what ever I have done so far.



thx



-Nate

you dont have to use only the plex framework stuff, you can import any standard python module (or include a nonstandard/custom one inside the plugin bundle). the plugin framework’s helper module (i think what you used for starting makemkvcon) is just a wrapper for os.popen . for finer control you can use python’s standard subprocess module (recomended) or os.popen (depreciated)



I'm currently using subprocess to launch makemkvcon. The problem is closing the program. If i quit plex. activity monitor is still showing its as running and has a lock on the drive so no other application can use it. it would be nice if the API had some hook to indicate the plugin is being unloaded or the application is being closed so i can release the disc and program. right now its launching makemkvcon from /Applications/MakeMKV.app/Contents/MacOS/makemkvcon its not in the helpers

ok, much simpler :



import os

os.system(‘killall makemkvcon’)



edit: oh, i see, nevermind, your’re trying to figure out a way for the plugin to tell WHEN to kill it.



Yes.. WHEN is the problem. Was thinking of maybe making a timer to check if it's still playing. A bit sloppy but best I've been able to come up with so far.

maybe just add an extra button at the bottom of the plugin menu to kill it and release the drive and eject the disc?


If it helps we can add a "control" URL so, for example, accessing /control/stop.html would stop streaming server. Also I wonder if running plex on one computer and makemkv on another is going to be a popular scenario and how plugin should be configured. Is there some network message that can be broadcasted by makemkv and picked up by plex? Does plex supports this concept at all?


I don't see having a URL to stop Makemkv as being something that is needed. What I would personally like through the server is a better way to discover which discs are available. Say if I have two bu-ray drives and a dvd drive on my server. It would be nice if the server could tell me which drives are available to me and actually switch streaming to that drive. If the server is remotely i have no way of doing this. If it is local I can scan which drives are available and launch it. Although its a pain.

This is how it works right now. upon first load I scan for all optical media. I then create an array based on the items I find. disc:0, disc:1 etc. This is a pain because disc:0 doesn't really correlate to anything. other than the first drive found. If i go back to the choose drive menu. makemkv still has a hold on the disc. So if I scan again all my discovered drives are all out of order. So I have to remember where the drive was originally located. This isn't really a problem. just a big pain. then if they switch to a drive I have to shut everything down and relaunch 'makemkvcon stream disc:$'

so features i would like are:
Better way to discover which discs are available
Better way of switching which disc to stream



I was thinking about this myself. I was planning on making a settings window where they can define the location of makemkv. Maybe we can allow them to enter an IP number of the server too. Then I can check if it is running and show that too. Is the server always going to be running on port 51000 or will they ever be able to change that?

Also I noticed in the headers this
MakeMKV v1.4.10 beta darwin(x86-release), UPnP/1.0, Portable SDK for UPnP devices/1.4.7
Are you planning on making this into a full UPnP device? sure would be cool and nice for other devices.

And last.. Thanks for MakeMKV. Been playing with it for a long time and think its a great product. Let me know if you need any help on the server side of things.

-Nate
[n8o.org](http://n8o.org)

n8o, this should work as a timer



os.system("while [ 0 -eq 0 ]
do
ps -A | grep ‘[/]Plex.app’
if [ “${?}” -ne “0” ]; then
killall makemkvcon; exit;fi;sleep 5
done
")




ahh.. very nice! thanks.

@Mike C
I found something that may be considered a bug. when the streaming server launches it binds to your ip. so if I go to http://localhost:51000/ and click on any link. The urls will redirect me to http://10.0.0.5:51000/my_url_request. would be nice if those links were relative. I found this to be an issue when I was switching wireless and got a new ip. I could no longer go to the server at the old ip address the site was directing me to.

-Nate
n8o.org

n8o, any chance you’d like to post your plug-in? It sounds like it’s far ahead of mine.

Nate, generally all you ask for is in plans but exact timeframe is unknown.



“Soon” makemkv will support “non-direct” access mode when discs are accessed as regular files without exclusive lock and unmount. This functionality will have its price as direct access is required to bypass DVD region lock, but it is irrelevant for blu-ray. Together with “list” command for console version this feature should solve disc access problems.



Streaming server in fact binds to 0.0.0.0 so you can access it even if your IP has changed. The links are not updated automatically and it is something looked at.



I'm still working through some last few bugs. Unfortunately I haven't been able to work on it the last couple of days. I'll try and wrap up what I have done and post a beta back here in the next couple of days.

-Nate
[n8o.org](http://n8o.org)