English > Development

Kroozbox - PVD to media theatre solution

<< < (11/27) > >>

cwdean:

--- Quote from: Nono on January 26, 2009, 03:35:13 pm ---Hmmm... I think you are missing the most important point of Kroozbox. (maybe you should read the manual  ;) )

If I understand you, you first enter the movies in PVD and then move your hard disk to your PCH.... ouch - not good - it defeats the purpose.

Kroozbox is build to deliver the movie to the PCH through the network. Do NOT unplug your hard disk from your computer where Kroozbox is running, just leave it there. Selecting the movie from kroozbox will deliver it to the PCH.

Now, there are situations where the movie you enter in PVD might not be find at the same drive/location by Kroozbox. For instance, on my system I use PVD on my personal computer that sees the movies on drive "m:". The database is physicaly located on a hard disk on my home server that is using "e:" as drive letter (where the movies are). Kroozbox is also running on this home server. In essence, the PVD database have the movies entered on drive "m:" but Kroozbox must get them on drive "e:".

There are multiple ways to adjust this. The simplest way is to adjust the value of "dbaseMediaRoot" and "localMediaRoot" in the corresponding kroozbox.properties. In my example, I would set "dbaseMediaRoot = m:/" and "localMediaRoot = e:/". You could adjust that and have "localMediaRoot = USB_DRIVE_A-1:/" or something like that. But you would miss some of the important feature of Kroozbox (delivering to multiple medias, etc) and you would have to alwyas move your hard disk (yurk).
You could also use the "mediaLinkPathTable" and/or the "mediaPathTable" correspondance tables, but these should be use for more complex re-mapping where you have multiple hard disks on different drive assignments or exotic network.

But I think that in your case, you just have to plug and play.... isn't it working properly when you start the movie ? (from browser or PCH).

--- End quote ---

Nono,

I can't seem to get Kroozbox to stream my movies.  I'm certain it's something that I have misconfigured.  I have PVD and Kroozbox both running on the same server.  The media files are located on drive G: ... so both the database and Kroozbox would find the media on drive G.  Thus I have "dbaseMediaRoot = G:/" and "localMediaRoot = G:/".  I can successfully watch movies locally from the server using my browser, but if I try to stream a movie from PCH the television (browser) just flickers and nothing happens.

Any suggestions on what I should change?

Thanks!
CD

Nono:
Few points:

* Run Kroozbox using the startme.bat - Not as a service. Service may not have access to G:. Is G: a local drive or a network mapped drive? (i'm guessing a USB external drive - but still try with startme instead - you'll have the screen output). Be sure NOT to have multiple Kroozbox running at the same time on the same machine (one as a service and one with startme for instance) - that would break communication.

* Since Kroozbox is running on same machine as PVD you don't need to setup the localMediaRoot and the dbaseMediaRoot properties. Just comment them out (with # in front). Mind you, it should not hurt.

* Are your movies ISO files or VIDEO_TS? what are the extensions (.AVI, .MKV)? Are you able to watch those movies on the PCH through other means (share or..) ? (just checking here if the format is proper for the PCH and if the PCH is properly working with those).

* You may have change something else.... what about re-installing completely and just change the "dbName" value (to point to database) in .\templates\PVDTemplate-HD\Kroozbox.properties file!? That's really the only change you should need to do.

* You could always set "debug = true" in .\templates\PVDTemplate-HD\Kroozbox.properties file, restart Kroozbox and look at the Kroozbox screen output when you click on the link of the movie to play. Post it here.

* Is your PCH firmware up to date? It shoudl work with older firmware but I have no way to test.


cwdean:

--- Quote from: Nono on January 28, 2009, 03:09:31 pm ---Few points:

* Run Kroozbox using the startme.bat - Not as a service. Service may not have access to G:. Is G: a local drive or a network mapped drive? (i'm guessing a USB external drive - but still try with startme instead - you'll have the screen output). Be sure NOT to have multiple Kroozbox running at the same time on the same machine (one as a service and one with startme for instance) - that would break communication.

* Since Kroozbox is running on same machine as PVD you don't need to setup the localMediaRoot and the dbaseMediaRoot properties. Just comment them out (with # in front). Mind you, it should not hurt.

* Are your movies ISO files or VIDEO_TS? what are the extensions (.AVI, .MKV)? Are you able to watch those movies on the PCH through other means (share or..) ? (just checking here if the format is proper for the PCH and if the PCH is properly working with those).

* You may have change something else.... what about re-installing completely and just change the "dbName" value (to point to database) in .\templates\PVDTemplate-HD\Kroozbox.properties file!? That's really the only change you should need to do.

* You could always set "debug = true" in .\templates\PVDTemplate-HD\Kroozbox.properties file, restart Kroozbox and look at the Kroozbox screen output when you click on the link of the movie to play. Post it here.

* Is your PCH firmware up to date? It shoudl work with older firmware but I have no way to test.


--- End quote ---

Hi Nono,

I'm at work right now so I can't try your suggestions, but I will do so as soon as I get home this evening.  In the meantime, to answer a few of your questions:

* Right now I am only using startme.bat (I've uninstalled the service as you recommended in a prior post  ;) )
* I didn't think I needed to set the localMediaRoot and the dbaseMediaRoot properties based on my configuration, but didn't think it would hurt anything either.  I do have some ISO files so tried to base the Kroozbox configuration to support ISOs.
* My movies are primarily WMV files, with some ISO and several .TS thrown in for good measure.  They all work perfectly fine from the USB-attached drive on the PCH.
* It won't hurt me to try re-installing from scratch.  It should only take a few minutes to reconfigure.
* I have the PCH A-110 with the latest firmware (this is confirmed as I'm anxiously awaiting some of the new enhancements with the latest firmware that is imminent).

Another quick question that you may be able to help me with:  I am attempting to modify the MoviesDetails-8 template file to include the Media Label field.  Unfortunately, I cannot seem to get the Firebird ODBC driver to successfully complete a test connection.  I've also installed several Firebird clients but they give me an error message similar to "unsupported on-disk structure".  Can you recommend a good Firebird client and ODBC driver?  Also, would you happen to know the field attribute name for the media label field?

Thanks again for all your help.  I'll let you know how things go this evening.

Regards,
CD

Nono:
Since the PCH cannot display ISO file through HTTP, Kroozbox cannot deliver the stream. So, for ISO file you will have to also modify the globalParam.properties file to put the name of your PCH share as argument for "MyShare" parameter. Create the share on the PCH, mount your share first on the PCH (by just selecting it from top menu) and then use Kroozbox interface. TS folder that's another story...
First test with your WMV files.

Kroozbox is NOT using ODBC. I think you mean for testing your SQL statement before putting it in Kroozbox?
I suggest not to use ODBC bridge if you can. Just install Firebird 2.1 and use something like JDBStudio to connect (free). In JDBStudion the "DB Path" would be the location of your PVD file, user: SYSDBA, password: masterkey.

To get the "Media label" field (is that the one you want) in Kroozbox interface!?
I looked at the database - this value is in the "LABELS" table (mine is always "Multimedia" in PVD frontend). And I cannot see any "relation" to the "MOVIES" table (maybe the "type" column but mine is always empty). Anyway, if the value you want is not in the MOVIES table you will have to create another HTML file after MoviesDetails-8.html (named MoviesDetails-9.html and pushing down all the rest). This file would have the SQL request with the relation with table TYPE. If the value is in MOVIES table then it is just a matter of adding the field in the DBINFO header and putting the reference in the content.

cwdean:

--- Quote from: Nono on January 28, 2009, 05:30:29 pm ---Since the PCH cannot display ISO file through HTTP, Kroozbox cannot deliver the stream. So, for ISO file you will have to also modify the globalParam.properties file to put the name of your PCH share as argument for "MyShare" parameter. Create the share on the PCH, mount your share first on the PCH (by just selecting it from top menu) and then use Kroozbox interface. TS folder that's another story...
First test with your WMV files.

Kroozbox is NOT using ODBC. I think you mean for testing your SQL statement before putting it in Kroozbox?
I suggest not to use ODBC bridge if you can. Just install Firebird 2.1 and use something like JDBStudio to connect (free). In JDBStudion the "DB Path" would be the location of your PVD file, user: SYSDBA, password: masterkey.

To get the "Media label" field (is that the one you want) in Kroozbox interface!?
I looked at the database - this value is in the "LABELS" table (mine is always "Multimedia" in PVD frontend). And I cannot see any "relation" to the "MOVIES" table (maybe the "type" column but mine is always empty). Anyway, if the value you want is not in the MOVIES table you will have to create another HTML file after MoviesDetails-8.html (named MoviesDetails-9.html and pushing down all the rest). This file would have the SQL request with the relation with table TYPE. If the value is in MOVIES table then it is just a matter of adding the field in the DBINFO header and putting the reference in the content.


--- End quote ---

I have Firebird 2.1 installed.  I downloaded JDBStudio based on your recommendation and installed both it and JRE 6.  I'm doing my testing in a Virtual Machine with Windows 2000.  When attempting to connect to my PVD database file using JDBStudio, I get the following error message:

6. 28-01-2009 9:28:55  [USRERROR]  Database connection failed: GDS Exception. 335544379. unsupported on-disk structure for file C:\Documents and Settings\cwdean\My Documents\Personal Video Database\MOVIES.PVD; found 32779.10, support .
Reason: unsupported on-disk structure for file C:\Documents and Settings\cwdean\My Documents\Personal Video Database\MOVIES.PVD; found 32779.10, support .

Any ideas what might be causing this?  Seems like this process should be pretty simple and straight-forward, but for some reason is turning into a bigger challenge than I would have expected.

BTW, when you associate a media file with the PVD record, the Media Label field gets auto-populated with the media disk label (I'm assuming if this is a removable media, which I'm using).  By displaying this on the Kroozbox page I will know which removable media disk the associated movie file is on.

Thanks,
CD

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version