User(s) browsing this thread: 3 Guest(s)
|
[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.)
|
|||
|
|||
|
[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 Quote:UPDATE: 30 Nov. 2010 Quote:UPDATE 14 Nov. 2010 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 PHOTO to NMJ 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 ----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
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.)
|
|||
|
|||
|
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/shYou 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_1668You 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 TRUEAll 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------------------------------------------------------------ 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. |
|||
|
12-08-2010, 01:34 PM
|
|||
|
|||
|
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 |
|||
1 user says Thank You to werner for this post |
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]



![[+]](images/collapse_collapsed.gif)
