[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Kroozbox localMediaRoot not working
06-10-2009, 06:11 PM
Post: #1
Kroozbox localMediaRoot not working
I have been running Kroozbox on my PCH-110 for a while now and never had a problem with this before. I just installed v2.0 on my Vista box and set everything up. Weird thing is the localMediaRoot value is not being added into my link location.

I tried getting the PVDLinkRelocation.properties and PVDMediaLocation.properties files to do the substitution after commenting out the dbaseMediaRoot and localMediaRoot values, but that didn't work either.

When I pull up the file in the browser, I get something like:
http://192.168.1.50:9008/&media=%2FBabyl...n%20AD.mkv for .mkv or .avi files.

ISO files bring up: file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Server:Movies/%2FA%20Mighty%20Wind%2FA%20Mighty%20Wind.iso and they work fine.

I have listed my config below. If anyone can help, it would be appreciated.

Video Database - PVD 0.9.9.10
Movie Link in PVD - N:\Movies
UNC Movie Location - \\Server\Movies (Windows 2003 Server)
SMB Share on PCH - Server:Movies

kroozbox.properties file:
dbaseMediaRoot = N:/Movies
localMediaRoot = //Server/Movies
#mediaPathTable
#mediaLinkPathTable
Find all posts by this user
06-10-2009, 09:42 PM
Post: #2
RE: Kroozbox localMediaRoot not working
Hi,

Some clarifications:
dbaseMediaRoot ---> will remove the drive:path specified in the full location of the movie from PVD (and create link from that).
localMediaRoot ---> will add the specified drive:path to the beginning of the &media= value when requested from the browser to reconstruct the real location
mediaLinkPathTable ---> In the pointed file you set any link transformation (result seen in the browser link).
mediaPathTable ---> In the pointed file you set server side path transformation (you won't see any differences in the browser link - all Kroozbox internal)

You have to be carreful when using dbaseMediaRoot,localMediaRoot in combination with the transformation tables. It can become confusing.
So, as a rule, if you only have simple video file (mkv, avi, etc) on only one drive use dbaseMediaRoot and localMediaRoot (if necessary).
If you have ISO, VIDEO_TS and need to access them through a share (or anything else that need share access) or have multiple drives and access PVD from a different computer then the one running Kroozbox (so the drive letter are different), you would use teh transformation table (mediaLinkPathTable preferably - easier to debug).
Even more confused (I just reread myself confused )!? forget about dbaseMediaRoot and localMediaRoot - just use transformation table.

OK, lets try this,

Are the movies seen by Kroozbox at the same location as in PVD (n:\movies)?
If yes, just comment out dbaseMediaRoot and localMediaRoot in your Kroobox.properties *and* comment out "mediaPathTable" and "mediaLinkPathTable" for now (seems to be already commented out). Yes, that will probably break your ISO link but this is the way to go. All avi, mkv, etc are working properly now. Restart kroozbox, test with STARTME (instead of the service - juuuust to be sure - service might gives issue with UAC and firewall setting).

Now you have to adjust "PVDLinkRelocation.properties" for ISO and whatever is using share. Open in browser look at the link and spot what should be transform. You would get something like:
file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/N:/Movies/Movies/...

So you put the following in "PVDLinkRelocation.properties":
N:/Movies = Server/Movies
N%3A%2FMovies = Server/Movies
N:\Movies = Server/Movies
N%3A%5CMovies = Server/Movies

Line 2 to 4 is to ensure that it will change any UUEncoding as well... the transformations table is quite strict.

Restart is see result in browser - readjust if necessary (the "N:" migh be "n:").
You can always set the flag "debug=true" in krozbox.properties and restart Kroozbox to see output when a call to the link is done - kroozbox will tell you whats happening on the console window.

Make sense?
Find all posts by this user
06-10-2009, 11:57 PM
Post: #3
RE: Kroozbox localMediaRoot not working
lol, yeah it can be confusing. I thought I had it figured out, and with your explanation it is even clearer. The transformation table probably wasn't working because I wasn't including the UUEncoded transformation. After adding that in, the transformation is working but the ISOs are broken.

What I have done that actually solves the problem (although it is a bit of a hack) and allows me to play all of my media using the SMB share which is a bit faster is this:

In the globalParam.properties file, I have modified the PVD-MediaLinkStart to look the same as the PVD-MediaLinkStartForISO parameter. In the kroozbox.Properties I kept just the dbaseMediaRoot = N:/Movies/. Everything is now working perfectly as well as avi and mkv files loading almost instantly where before I used to see the "Buffering" message for a few seconds.

I am going to play around some more with the transformations as it seems more flexible. I was just confused as to why localMediaRoot wasn't doing what it was supposed to and like it had in the four previous versions that I have run. Oh, well, it is working the way I want so I am happy.

Thanks for taking the time to put a nice reply together.

Regards,
Shawn
Find all posts by this user
06-11-2009, 02:41 AM
Post: #4
RE: Kroozbox localMediaRoot not working
good. thanks.

I will probably update the transformation mechanism in the next release to be more permissive (no uuencoding discrimination).

Nono
Find all posts by this user
[+] 1 user says Thank You to Nono for this post
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Kroozbox- Personal Video Database - PVD (or any DB) and Music Jukebox to Popcorn Hour Nono 383 156,519 07-03-2012 01:52 PM
Last Post: Paul_T
  Kroozbox - still alive beyond 2.0a? triodusiecle 4 1,637 06-10-2011 01:48 AM
Last Post: triodusiecle
  Kroozbox, MyMovies Template, and Blu-ray video Freway01 14 3,462 04-13-2010 12:01 AM
Last Post: Freway01
  Kroozbox and MyMovies 3 jtyles 5 2,228 04-01-2010 01:57 AM
Last Post: Freway01
  [kroozbox] Multiple databases & parental controls rkhames 12 2,720 03-15-2010 01:08 AM
Last Post: Nono
  HDX-1000 with MLMJ not working Please HELP!! flimsy 2 1,662 02-11-2010 11:50 AM
Last Post: chris57
  Kroozbox For My Movies on WHS Freway01 0 2,128 11-14-2009 06:07 PM
Last Post: Freway01
  Kroozbox release 2.0 (can also serve YAMJ) Nono 83 24,504 08-29-2009 04:46 PM
Last Post: Nono
  Kroozbox and parental controls rkhames 2 1,405 05-31-2009 02:12 AM
Last Post: rkhames
  Kroozbox white screen on series.. Verisutha 2 1,205 05-07-2009 01:50 PM
Last Post: Nono

Forum Jump: