[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: 3 Guest(s)
Thread Closed 
[PC Tool] Convert your Yamj Jukebox to NMJ & Create a Photo NMJ (Update 08.12.2010)
11-09-2010, 09:39 PM (This post was last modified: 12-08-2010 01:34 PM by werner.)
Post: #1
[PC Tool] Convert your Yamj Jukebox to NMJ & Create a Photo NMJ (Update 08.12.2010)
This program is developed for the purpose of populating data into the NMJ Database
and pre-generate poster/preview/thumbnail size images from the original images.

Quote:UPDATE: 08 Dez. 2010
1. Take out the Season Number behind the Show SearchTitle for TV video type.

Quote:UPDATE: 30 Nov. 2010
1. Change the VIDEO SIZE from kilobytes to bytes.
2. Tested on YAMJ v1.9 r1500, v2.0 r1668 and v2.2 r1925

Quote:UPDATE 14 Nov. 2010
1. Fix the problem when running with empty value for yamj.versions in video.properties file.
2. New releaseDate parser to cater for all kind of possibilities of Date pattern.


IMPORTANT
1. You can always use an empty OUTPUT folder for try run.
2. You should "BACKUP" if you try run on your existing original NMJ DB.

Third Party Libraries Used
1. metadata extractor (http://www.drewnoakes.com/code/exif/)
- For extracting JPEG image metadata into the NMJ DB.
2. Apache Commons libraries (http://commons.apache.org/)
3. Apache Log4j (http://logging.apache.org/log4j/)

Tested On
1. System with 800MHz CPU and 512MB RAM.
2. Java 6.
3. YAMJ - moviejukebox v1.9 r1500 and v2.0 r1668 (http://code.google.com/p/moviejukebox/)
- the Versions V1.9_1500|V2.0_1668 is hardcoded in video.properties
- to try on other YAMJ version, please change the "yamj.versions" value in video.properties accordingly.
- empty "yamj.versions" value to disable YAMJ version validation.
4. Currently support JPG/JPEG image only.


Usage
- If you are in Linux system please use the init.sh, video.sh and photo.sh instead of the *.bat files.

A. Run with UI

YAMJ to NMJ
[Image: attachment.php?aid=161]

PHOTO to NMJ
[Image: attachment.php?aid=166]

1. Edit init.bat
- change JAVA_HOME and MAX_MEMORY according to your requirement.

2. Run video.bat or photo.bat
- for VIDEO:
- YAMJ Jukebox Source Path: This is the Jukebox Path when completed running YAMJ.
- YAMJ NMJ Path: This must be exactly the same as <nmtpath>../</nmtpath> value configured in your YAMJ libraries.xml.
- NMJ DB Destination Path: Destination Output Path of the NMJ db.
- for PHOTO:
- Photo Source Path: Root path where all the photos will be scanned.
- NMJ DB Destination Path: Destination Output Path of the NMJ db.


B. Run Video (YAMJ) to NMJ DB without UI
1. Edit video.properties
- change the property values according to your requirement.
2. Edit video.bat
- change UI to no
- change JAVA_HOME, MAX_MEMORY according to your requirement.
3. Run the video.bat


C. Run Photo to NMJ DB without UI
1. Edit photo.properties
- change the property values according to your requirement.
2. Edit photo.bat
- change UI to no
- change JAVA_HOME, MAX_MEMORY according to your requirement.
3. Run the photo.bat


Notes
A. All the logging messages will be write into tonmjdb.log for debugging purpose.

B. If media.db already exists, you will be ask whether to overwrite, merge or quit.
1. overwrite (fresh start)
- Remember to BACKUP, you will lost previously generated data.
- for VIDEO:
> will remove all the data in VIDEO tables.
> will remove poster and thumbnail folders generated previously in nmj_database/media/video folder.
- for PHOTO:
> will remove all the data in PHOTO tables.
> will remove preview and thumbnail folders generated previously in nmj_database/media/photo folder.
2. merge
- will not remove any existing data in database and also poster/preview/thumbnail images generated previously.
- will skip particular video/photo data if already exists in the database.
- will skip generating particular poster/preview/thumnail image if already exists.
3. quit (Default action)
- quit immediately.


C. NMJ DB version must be supported in order to Overwrite or Merge


Attached File(s) Thumbnail(s)
       

.zip  tonmjdb_1.8.0-20101208.zip (Size: 3.42 MB / Downloads: 841)

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
[+] 10 users say Thank You to werner for this post
11-10-2010, 10:39 AM (This post was last modified: 11-10-2010 11:58 AM by werner.)
Post: #2
RE: [PC Tool] Convert your Yamj Jukebox to NMJ & Create a Photo NMJ
For Mac OS users, you will follow the same instructions for Linux users. Familiarity with terminal is required as there's no formal GUI for it yet.

You however need to edit the init.sh file to properly point where Java is located on a Mac OS X system.

The following is taken from my own init.sh file using the latest version of Mac OS X (10.6.4) with all Software updates as of this writing;

Take note of the JAVA_HOME variable

Code:
#!/bin/sh

# -- (c) 2010 Syabas Technology Inc. --

# -- java home directory where java.exe is located --
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/


# -- run with UI (yes / no) --
UI=yes

# -- maximum memory in MB to run this program --
MAX_MEMORY=256


# -- required libraries --
LIB=lib
CLP=.
CLP=$CLP:$LIB/com.syabas.tonmjdb-1.8.0-20101018.jar
CLP=$CLP:$LIB/commons-io-1.4.jar
CLP=$CLP:$LIB/commons-lang-2.4.jar
CLP=$CLP:$LIB/commons-logging-1.1.1.jar
CLP=$CLP:$LIB/log4j-1.2.15.jar
CLP=$CLP:$LIB/sqlitejdbc-v056.jar
CLP=$CLP:$LIB/metadata-extractor-2.4.0-beta-1.jar

You then edit the video.properties file to ensure that the YAMJ version is supported.

Code:
yamj.versions=V1.9_1500|V2.2 BETA_1848|V2.2 BETA_1868|V2.2 BETA_1876|V2.0_1668

You can just add yours to the end of the line and save it.

To run it, use ./video.sh



Here is the best way imo to view and move hidden files in OSX

- Download exclude files: http://www.networkedmediatank.com/attach...hp?aid=159

- Unzip download.

- View hidden files:
Open Terminal (Applications/Utilities/Terminal)
Copy and Paste
Code:
defaults write com.apple.Finder AppleShowAllFiles TRUE

killall Finder
Press Return

All hidden files should now appear in finder and desktop etc.
Navigate to downloaded exclude folder.
Duplicate (command + D) and move/drag .no_nmj files to destinations.

Back to terminal:
Copy and Paste
Code:
defaults write com.apple.Finder AppleShowAllFiles FALSE

killall Finder
Press Return
------------------------------------------------------------
Now all hidden files will be hidden again. You don't have to hide all files again but it is recommended.

WARNING: Be careful not to delete or move any other hidden files other than .no_nmj ones unless you know what you are doing.

A200 connected to 32" Samsung UA32C5000
C200 connected to Denon 1610 AVR and 42" LG 42LH50YR
Encore ENHGS-500 5 port Gigabit switch.
Find all posts by this user
12-08-2010, 01:34 PM
Post: #3
RE: [PC Tool] Convert your Yamj Jukebox to NMJ & Create a Photo NMJ (Update 08.12.2010)
New Version uploaded.

Regards,
Werner

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
[+] 1 user says Thank You to werner for this post
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [NMJ v2] NMJToolbox2 - Windows Editor for NMJv2 A/C300 & A400 - 1.4.0.4 Update 19/5/2013 Rom 2,147 213,447 Today 12:40 AM
Last Post: choufleuri
Video [NMJ v2] Introducing NMJ Explorer - a NMJ Navigator for your iPhone or iPod touch produde 71 4,687 05-20-2013 09:40 PM
Last Post: Cappy1
  NMJ Guide to severall disks databases billgatos 243 57,847 05-15-2013 07:49 AM
Last Post: scottdca
  How To: Schedule an nmj DB update yahavrave 6 1,020 05-13-2013 11:43 PM
Last Post: yahavrave
  [NMJ v1] NMJToolbox - A Windows editor for the NMJ (Updated 15/10/2012 v1.0.4.6) Rom 1,297 365,894 04-23-2013 03:49 PM
Last Post: spursman
  [NMJ v2] How to scan the NMJ database remotely on A300 (NMJ V2) pedro75 73 10,655 02-17-2013 11:18 AM
Last Post: racquemis
  [NMJ v1] [NMJ v2] NMJManager [Web based] - v1.0.6 Updated on 4th Jan vaidyasr 453 123,819 02-07-2013 07:45 AM
Last Post: vaidyasr
  [SCRIPT] script to automatically update NMJ blankser 16 5,965 02-03-2013 12:39 PM
Last Post: blankser
  My Movies for NMJ - 20 Step Guide (Beta) Binnerup 302 92,086 02-02-2013 12:41 PM
Last Post: Patatorz
  [GUIDE] Launch NMJ automatically accident 81 44,098 12-28-2012 01:56 PM
Last Post: accident

Forum Jump: