My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
NMTServer_Installation  
02 - NMTServer Install Guide
Featured
Updated Nov 27, 2009 by NMTSer...@gmail.com

NMTSERVER INSTALLATION

1. Requirements

Important: If you don't have a networked setup and a windows pc which is switched on when you want to watch a movie then NMTServer is not suitable for your setup.

  • NMTServer only runs on MS Windows: Windows Vista / Windows XP / Windos Home Server
  • A working YAMJ setup, You must use YAMJ version 1.0.17 or up. If you have never used YAMJ before then first get YAMJ to work without NMTServer.
  • Only for HD Displays, the skin will not fit on an SD tv.
  • A networked NMT setup, NMTServer always runs on your Windows computer (so not on the NMT, your NAS, an Apple or some linux). You still can have your movies stored on the NMT, but NMTServer needs to run on your computer and must be active while you browse your movies.

A Step By Step installation guide for YAMJ can be found here:
http://code.google.com/p/moviejukebox/wiki/StepByStepInstall

More information aboutt YAMJ can be found in the YAMJ Wiki:
http://code.google.com/p/moviejukebox/w/list

2. Quick Setup

Before you start make sure you already have a fully functioning stand alone YAMJ setup.

  1. Unzip the nmtserver package to e.g c:\moviedb
  2. Start the main executable NMTServer.exe
  3. Goto the "YAMJ Control" tab
  4. Select your YAMJ properties file, usually named "moviejukebox.properties" located in YAMJ folder. (Note: NMTServer v1.73 and latest YAMJ: Select the default properties file from the YAMJ proiperties folder)
  5. Verify and or change the output folder, point this to your existing YAMJ root. For myiHome this is: C:\Program Files\myiHome\webapps\ROOT\feature\myiHome-moviejukebox
  6. Note: if you store your YAMJ files on a network drive, make sure to make a drive mapping. Eg. if the YAMJ output folder is: \\hpmediasmart\Videos\Movies then make a mapping e.g. Z:\Video\Movies and use that path in NMTServer. NMTServer can not read from a network path.
  7. Verify and or change the YAMJ libraries files. The libraries files is used to translate the NMT file paths to the PC file paths.
  8. Browse to http://127.0.0.1 on your PC to test it (you can change the default port on the settings tab)
  9. Add a link in your index.htm on the Popcorn Hour to the server http://YOUR.PC/. Or add a WebService on the Popcorn hour: (Name1: NMTServer, URL1: IP adres of your PC)
  10. Goto the Music Jukebox tab, press the Help button and setup the Music Jukebox.

3. Detailed Setup

Before you start make sure you already have a fully functioning stand alone YAMJ setup.

  1. First make sure you have a working YAMJ setup so that everything works just fine either with the .html pages loaded on the PCH hard disk or with the .html served using some web server e.g myiHome.
  2. Unzip the NMTServer package, you you get something like this:
  3.     c:\NMTServer\
              NMTServer.exe
              Config.ini
              ...
        c:\NMTServer\Data
        c:\NMTServer\Watched
        c:\NMTServer\Deleted
        c:\NMTServer\Skins
        c:\NMTServer\Skins\Default\...
  4. Launch the main executable: NMTServer.exe
    • In the title bar of the NMTServer you see your PC IP adres, eg "IP: 192.168.1.101", make a note of this you need it later.
  5. Setup YAMJ
    • Goto the "YAMJ Control" tab
    • Select your YAMJ properties file, usually named "moviejukebox.properties" located in YAMJ folder. (Note: NMTServer v1.73 and latest YAMJ: Select the default properties file from the YAMJ proiperties folder)
    • Verify and or change the Output folder, point this to your existing YAMJ root. For myiHome this is: C:\Program Files\myiHome\webapps\ROOT\feature\myiHome-moviejukebox.
    • Verify and or change the YAMJ libraries files. The libraries files is used to translate the NMT file paths to the PC file paths.
    Note: if you store your YAMJ files on a network drive, make sure to make a drive mapping. Eg. if the YAMJ output folder is: \\hpmediasmart\Videos\Movies then make a mapping e.g. Z:\Video\Movies and use that path in NMTServer. NMTServer can not read from a network path.
  6. Test if the server works, browse to http://127.0.0.1 on your PC. If you get an error at startup of NMTServer, then change the server port to a free port on the settings tab.
  7. At this point your PC setup is nearly complete. Time to setup the Popcorn Hour. If the term "custom index.html" does not mean anything to you then setup a new webservice on the PCH:
    • Press "Source" on the remote, this will launch the //Web Services page on the PCH
    • Navigate to "Add/Edit", press "Enter", this will launch the //Edit Service page
    • Enter "nmtserver" in Name1
    • Enter "http://192.168.1.101" in URL1, assuming 192.168.1.101 is the IP of your PC.
    • Navigate to the "save" button and press enter
    • Navigate to the "cancel" button and press enter
    You should now see "nmtserver" in the Web Services list. Navigate to nmtserver and press enter. You should now see the home page of the NMTServer. If you want to learn more about "custom index.html" then goto http://www.networkedmediatank.com/ and search the forum.
  8. You can rebuild the thumbnails and poster files using the recommended settings via the NMTServer gui.
  9. Optional: Goto the Music JukeBox tab, and press the help button for instructions how to setup the Music Jukebox.

After this run YAMJ once with "Force Thumbnail Overwrite" and "Force Poster Overwrite" to true. Also check the boxes "Use recommend skin settings" and "Use recommended YAMJ settings". If in your existing YAMJ setup you use .png images then select 'force .jpeg images' on the settings tab.

Also recommended is to use the Box Covers addon utility, this will put the thumbnails and posters in a transparent box which looks much nicer. Read the BoxCover addon installation for further instructions.

4. Setup tips.

1. Mount all your disks as folders under windows.

E.g.

c:\media\Disk1
c:\media\Disk2
c:\media\Disk3
c:\media\Disk4

This way you prevent any mounting problem later on (can not play file errors).

The NMT server can only mount one share at the time, so if you have multiple shares on the NMT then the movies from one share will play but the others won't unless you manually mount the share (via the build in file browser of the NMT). This is a pain and with the mouning disks as folders under windows workaround you can avoid this problem.

The NMT will automatically mount a share when you navigate to it, but if you use NMTServer or standalone YAMJ then you don't use the build in navigation and thus the shares do not get mounted.

You will know when you have a mounting problem when movies from one share will play but all the other movies from another share wont play. To verify that you have a mounting problem, navigate to the unmounted share using the NMT file browser so the share gets mounted then go back to the NMTServer via a webservice link and try to play the movie again.

For more on mounting see http://www.networkedmediatank.com/showthread.php?tid=20270 .It's also possible to mount network drives as folders with the use of mklink, see here http://www.networkedmediatank.com/showthread.php?tid=20270&pid=175746#pid175746

1.1 make only one share called "media".

Only create one share on the NMT and just call it "media", point the media share on the NMT to c:\media .

Grant the windows role "Everyone" full access to your drives (via right-click properties). Not always needed but this will prevent what seems to be empty folders.

2. Keep it simple.

Once you mounted all your disks as folders your library file must looks something like this:

<?xml version="1.0" encoding="utf-8"?>
<libraries>
	<library>
		<path>c:\media\</path>
		<nmtpath>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/media/</nmtpath>
		<exclude name="sample,tmp/,temp/"/>
        </library>
</libraries>

3. Avoid spaces.

Don't use spaces in path names. Most of the time it will work, but sometimes it doesn't. Even better don't use any special characters in file paths. Also be aware of case sensitivity in most YAMJ config files.

4. Get YAMJ to work first.

First run YAMJ without NMTServer. If everything works with the standard YAMJ skin, then clear the output path and rerun with NMTServer using the recommended settings.

5. Baby steps.

Only when everything works correctly start to experiment with advanced features like multiple YAMJ setups, boxcovers, eXtreme movie manager integration etc.

6. Custom index.htm.

If you have a custom index.htm then store it on c:\media. This way when you navigate to the index on the NMT the media share get automatically mounted.

If you also want to share the static YAMJ pages so you can view then on the NMT then make a folder like so:

c:\media\YAMJ\jukebox

Set the YAMJ output to c:\media\YAMJ, not to c:\media, because if you set it to c:\media the the YAMJ index.htm will overwrite your custom index.htm.

So you will end up with something like this:

c:\media\index.htm       <-- your custom index
c:\media\disk1\...       <-- movie files, mounts to a disk
c:\media\disk2\...       <-- movie files, mounts to a disk
c:\media\disk3\...       <-- movie files, mounts to a disk
c:\media\disk4\...       <-- movie files, mounts to a disk
c:\media\YAMJ\index.htm  <-- index generated by YAMJ
c:\media\YAMJ\jukebox\   <-- contains YAMJ output *.html, *.jpg, *.xml etc.

7. Let NMTServer control YAMJ.

You can launch YAMJ without NMTServer without any problems, but its easier to scan for new movies if YAMJ is launched via NMTServer. This way the movies automatically get reloaded after a scan, movie file dates are retrieved for the new category and movie file sizes can be determined.

8. Example basic custom index.htm.

<html>
  <head>
  </head>

  <style>
    a { color: #ffffff; }
  </style>

<body bgcolor="#000000">

<a href="http://192.168.1.101">Launch NMTServer</a><br>
<a href="http://192.168.1.101/start_movies.html">- Movies</a><br>
<a href="http://192.168.1.101/start_tv.html">- TV</a><br>
<a href="http://192.168.1.101/start_music.html">- Music</a><br>
<br>
<a href="http://localhost.drives:8883/NETWORK_SHARE/media/">Browse All Files</a><br> 
<a href="http://localhost.drives:8883/NETWORK_SHARE/media/?filter=1">Browse Music Files</a><br>
<a href="http://localhost.drives:8883/NETWORK_SHARE/media/?filter=2">Browse Photos Files</a><br>
<a href="http://localhost.drives:8883/NETWORK_SHARE/media/?filter=3">Browse Video Files</a><br>
<a href="http://localhost.drives:8883/HARD_DISK/">Browse HD</a><br> 
</body>
</html>

You have to modify the ip address 192.168.1.101 to the address of your computer. If you want to automatically start NMTServer then add this in the head section:

  <head>
    <meta http-equiv="refresh" content="15;http://192.168.1.101">
  </head>

This will launch NMTServer automatically after 15 seconds.

Btw, with Kdoske NMT Customizer you can create a much better index.htm in a very user friendly way, see http://www.networkedmediatank.com/showthread.php?tid=10029.

The links to NMTServer are:

http://192.168.1.101                     <-- Default link

http://192.168.1.101/start_movies.html   <-- Go directly to movies
http://192.168.1.101/start_tv.html       <-- Go directly to TV shows
http://192.168.1.101/start_music.html    <-- Go directly to the Music Jukebox 

If you have a non-default port, e.g. port 4000 instead of the default 80 then the links become:

http://192.168.1.101:4000

http://192.168.1.101:4000/start_movies.html
http://192.168.1.101:4000/start_tv.html
http://192.168.1.101:4000/start_music.html

9. Playing 1080p files.

The NMT has a bit of a memory problem, which causes 1080p movies sometimes to fail. However after a reboot of the NMT the 1080p files will play again. To minimize this inconvenient goto the NMT setup, choose NMT Applications and stop every service which you don't need. I only use the NMT for video playback and don't even use the internal HDD anymore so I disabled everything including the Samba and the NFS server.

10. Read the trouble shooting wiki.

If you have setup troubles then read this first: http://code.google.com/p/nmtserver/wiki/NMTServer_Trouble_shooting

If that doesn't solve your problem ask for help here: http://www.networkedmediatank.com/showthread.php?tid=16870

If you have a feature request, then ask for it here: http://code.google.com/p/nmtserver/issues/list

11. Upgrade the NMT firmware to the latest version.

There were some problems with image cashing causing random crashes, these all seem to be resolved in the lastest NMT firmware upgrade. Goto the NMT setup menu, select Maintenance and press 'Check for firmware update'.

12. If you get confused, clear cache and reboot first.

If you are trying out different skins, different boxcovers settings etc. And it appears that your experiments are not visible on the NMT then clear the NMT servers cache. Goto the NMT setup menu, select maintenance, press the filemode button on the remote and select 'Clear cache'. If that didn't help switch the NMT off and on (hard reset).

13. Use a recent version of YAMJ.

If you have troubles with downloading Sample video files, playing movies from index or playing trailers first make sure you use YAMJ version r1001 or up (download at http://omertron.com/pch/YAMJ_Latest ).

If you upgrade YAMJ and have trouble with one of the above features also make sure that you rerun YAMJ with force overwrite XML set to true (or just wipe your jukebox folder and start from a clean setup). Also make sure you use the recommended settings.

Version r1001 will create a playlist for every movie file (.jsp) which is essential for playing from index. The recommended setting will not download any apple trailers but it will create links to the trailes, so you need to connect your NMT to the Internet to play them. Sometimes thetvdb.com is overloaded this might result in errors while downloading the video images, the only thing you can do in these cases is to retry it later.

5. More resources.

NMTServer Trouble shooting: http://code.google.com/p/nmtserver/wiki/NMTServer_Trouble_shooting

NMTForum: http://www.networkedmediatank.com/index.php

NMTServer support thread: http://www.networkedmediatank.com/showthread.php?tid=16870

Music JukeBox Help File: http://www.xs4all.nl/~ithiel/nmt/help.html

Box Covers Setup: http://code.google.com/p/nmtserver/wiki/Box_Covers_Add_On_Installation

Box Covers Help File: http://www.xs4all.nl/~ithiel/nmt/boxcovers_help.html

Home Page: http://www.xs4all.nl/~ithiel/nmt

5. Abbreviations

PCH = Popcorn Hour
YAMJ = Yust another Music Jukebox
NMT = Network Media Tank (e.g. the popcorn Hour)
SD = Standard definition
HD = High Definition


Sign in to add a comment
Powered by Google Project Hosting