[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)
Post Reply 
Installing YAMJ (on QNAP)
05-28-2012, 11:18 AM (This post was last modified: 06-01-2012 06:44 AM by Omertron.)
Post: #1
Installing YAMJ (on QNAP)
Hi everyone

I have spent over a week with the yamj.qpkg and still don't fully understand it as I cannot seem to get it working. Seems to install ok, but nothing ekse works properly after that. I have asked for help on both this forum + the qnap forum but no joy.

My question is, could someone give me a step by step (dummies) guide how you manually install and setup the official release on a qnap (ts-112) machine. I have read countless guides but my head is spinning as I'm unsure which versions to use, where/how to install and what changes to make.

I really have done a lot of reading and tried may times myself but I seem to be confusing myself even more in doing so.

Have an a-300

Really grateful to anyone that can help
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 11:35 AM
Post: #2
RE: Installing YAMJ
I don't have a qnap, or the package that you mentioned, so I can't help with specifics, although I do understand your pain as I had to do the same with my Synology, so I can offer you generic help for a headless linux machine.

Firstly you have to have java installed and know where it is installed (as you will need to modify the moviejukebox.sh file).

Secondly, installing YAMJ is as simple as getting the zip file and unpacking it to a directory.
Code:
wget http://moviejukebox.googlecode.com/files/moviejukebox_v2.6.1.zip
unzip moviejukebox_v2.6.1.zip

Once that has unpacked you can move the directory wherever makes sense of your machine, personally, I'd make it accessible to other machines on your network so you can update it from your main PC.

If you can run "java -version" from the command line and have it return a result, try just running the "moviejukebox.sh" file and see if you get the help message.

Code:
./moviejukebox.sh

if not, edit the file and change the path to the java command.
Your goal is to get the YAMJ help text up because that means everything is roughly working as expected.

Once you've done that, configuring YAMJ is easy ;-)

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 12:40 PM (This post was last modified: 05-28-2012 12:45 PM by shengabpy.)
Post: #3
RE: Installing YAMJ
hi Omertron,

Using WinSCP I created a folder on the NAS and copied all the unzipped contents into

/share/HDA_DATA/.qpkg/Yamj

I then ran/executed "/usr/local/jre/bin/java -version" which returned

/share/HDA_DATA/.qpkg/Yamj$ /usr/local/jre/bin/java -version
java version "1.7.0"
Java™ SE Runtime Environment for Embedded (build 1.7.0-b147, headless)
Java HotSpot™ Client VM (build 21.0-b17, mixed mode)

but it also gave me this error

command /usr/local/jre/bin/java-version
failed with return code 0 and error message
java version "1.70"
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 12:58 PM
Post: #4
RE: Installing YAMJ
Well, it means that java is installed and working Wink

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 01:21 PM
Post: #5
RE: Installing YAMJ
Omertron, you cant believe what s breath of fresh air you are to me right now.

Running ./moviejukebox.sh returns

/share/HDA_DATA/.qpkg/Yamj$ ./moviejukebox.sh
-sh: line 61: ./moviejukebox.sh: No such file or directory

Is this to do with having to edit the command path ?

/usr/local/jre/bin/java
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 01:36 PM
Post: #6
RE: Installing YAMJ
No, it means one of two things; you are not in the same directory as "moviejukebox.sh" file or that file is not executable.

Code:
ls moviejukebox.sh
will answer the first
Code:
chmod 755 moviejukebox.sh
will fix the second.

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 01:49 PM
Post: #7
RE: Installing YAMJ
Omertron, got it.

It was the permissions.

Underneath the following, got all the help commands

Revision: r3087
Build Date: 2012-05-20 17:01:02

Java Version: 1.7.0

Processing started at Mon May 28 12:48:16 GMT 2012

Using properties file ./properties/moviejukebox-default.properties
Using properties file ./moviejukebox.properties
Warning (non-fatal): User properties file './moviejukebox.properties', not found.
Using properties file ./skins/default/skin.properties
Using properties file ./skins/default/skin-user.properties
Warning (non-fatal): User properties file './skins/default/skin-user.properties', not found.
Using properties file ./skins/default/overlay/overlay.properties
Using properties file ./properties/apikeys.properties

Skin Name : Default
Skin Version: 2.7.0 (21-03-2012)
This is the default skin provided with YAMJ

No library root found!

Usage:

Generates an HTML library for your movies library.

MovieJukebox libraryRoot [-o jukeboxRoot]
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 03:08 PM
Post: #8
RE: Installing YAMJ
Ok, so now you just need to create your library.xml file and possibly a personal command file (so it's not overwritten when you update YAMJ).

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Omertron for this post
05-28-2012, 03:57 PM
Post: #9
RE: Installing YAMJ
(05-28-2012 03:08 PM)Omertron Wrote:  Ok, so now you just need to create your library.xml file and possibly a personal command file (so it's not overwritten when you update YAMJ).

Omertron, thanks for your patience

I created a library.xml in the root of the Yamj folder and :

<libraries>
<library>
<path>/share/Test/</path>
<playerpath>/file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Test/</playerpath>
<exclude name="sample,tmp/,temp/,RECYCLER/,RECYCLE.BIN/"/>
<description></description>
<prebuf></prebuf>
<scrapeLibrary>true</scrapeLibrary>
</library>
</libraries>

I also created a run_yamj.sh and :

./MovieJukebox.sh library.xml -o /output/path

Is this correct ?
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 04:15 PM
Post: #10
RE: Installing YAMJ
Looks good. You probably want to "-o /share/Test"

Just check that when you look at "/share/Test" you get the same sub-path as when you browse to the "Test" share on the PCH.

By that I mean, that whatever files are in "/share/Test" you see the same files and folders in the "Test" share on the PCH.

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 04:48 PM
Post: #11
RE: Installing YAMJ
(05-28-2012 04:15 PM)Omertron Wrote:  Looks good. You probably want to "-o /share/Test"

Just check that when you look at "/share/Test" you get the same sub-path as when you browse to the "Test" share on the PCH.

By that I mean, that whatever files are in "/share/Test" you see the same files and folders in the "Test" share on the PCH.

getting closer :-)

changed to -o /share/Test

Ran ./run_yamj.sh

It created both an index.htm file and a test/Jukebox folder in /Test on the NAS. Using the YAMJ app on the PCH, I add Jukebox, go to the Test share < enter>, nothing happens, I can see the two movie folders plus the Jukebox folder, scroll down to Jukebox < enter> and still nothing !

This is what I got running run_yamj.sh

Code:
/share/HDA_DATA/.qpkg/Yamj$ ./run_yamj.sh
Yet Another Movie Jukebox 2.7-SNAPSHOT
~~~ ~~~~~~~ ~~~~~ ~~~~~~~ ~~~~~~~~~~~~
http://code.google.com/p/moviejukebox/
Copyright (c) 2004-2012 YAMJ Members

This software is licensed under a Creative Commons License
See this page: http://code.google.com/p/moviejukebox/wiki/License

  Revision: r3087
Build Date: 2012-05-20 17:01:02

Java Version: 1.7.0

Processing started at Mon May 28 15:39:44 GMT 2012

Using properties file ./properties/moviejukebox-default.properties
Using properties file ./moviejukebox.properties
Warning (non-fatal): User properties file './moviejukebox.properties', not found.
Using properties file ./skins/default/skin.properties
Using properties file ./skins/default/skin-user.properties
Warning (non-fatal): User properties file './skins/default/skin-user.properties', not found.
Using properties file ./skins/default/overlay/overlay.properties
Using properties file ./properties/apikeys.properties

Skin Name   : Default
Skin Version: 2.7.0 (21-03-2012)
This is the default skin provided with YAMJ

LibraryReader: Found media library: /share/Test/
Using 1 processing threads and 1 downloading threads...
See README.TXT for increasing performance using these settings.
Preparing environment...
Initializing...
Scanning library directory /share/HDA_DATA/.qpkg/Yamj/library.xml
Jukebox output goes to /share/HDA_DATA/Test

    Scanning directory #1, 4 files scanned
    Scanning directory #2, 8 files scanned
    Scanning directory #3, 10 files scanned
    Scanning directory #4, 59 files scanned
Found 2 videos in your media library
Stored 63 files in the info cache
Searching for information on the video files...
MediaInfoScanner: Couldn't find CLI mediaInfo executable tool: Video file data won't be extracted
Checking existing video: Coriolanus 2011 LIMITED
Finished: Coriolanus 2011 LIMITED (1/2)
Checking existing video: Ghost Rider Spirit of Vengeance
Finished: Ghost Rider Spirit of Vengeance (2/2)
Indexing libraries...
  Indexing Other...
  Indexing Genres...
  Indexing Title...
  Indexing Certification...
  Indexing Year...
  Indexing Library...
  Indexing Set...
  Sorting Indexes ...
Indexing masters...
Writing Indexes XML...
  Indexing Other (1/7) contains 6 indexes
  Indexing Genres (2/7) contains 4 indexes
  Indexing Title (3/7) contains 2 indexes
  Indexing Certification (4/7) contains 2 indexes
  Indexing Year (5/7) contains 1 index
  Indexing Library (6/7) contains 0 indexes
  Indexing Set (7/7) contains 0 indexes
Writing Category XML...
  Indexing Categories...
Writing Library data...
Writing Indexes HTML...
  Categories...
Copying new files to Jukebox directory...

    Copying directory Jukebox (1/42)
    Copying directory Jukebox (2/42)
    Copying directory Jukebox (3/42)
    Copying directory Jukebox (4/42)
    Copying directory Jukebox (5/42)
    Copying directory Jukebox (6/42)
    Copying directory Jukebox (7/42)
    Copying directory Jukebox (8/42)
    Copying directory Jukebox (9/42)
    Copying directory Jukebox (10/42)
    Copying directory Jukebox (11/42)
    Copying directory Jukebox (12/42)
    Copying directory Jukebox (13/42)
    Copying directory Jukebox (14/42)
    Copying directory Jukebox (15/42)
    Copying directory Jukebox (16/42)
    Copying directory Jukebox (17/42)
    Copying directory Jukebox (18/42)
    Copying directory Jukebox (19/42)
    Copying directory Jukebox (20/42)
    Copying directory Jukebox (21/42)
    Copying directory Jukebox (22/42)
    Copying directory Jukebox (23/42)
    Copying directory Jukebox (24/42)
    Copying directory Jukebox (25/42)
    Copying directory Jukebox (26/42)
    Copying directory Jukebox (27/42)
    Copying directory Jukebox (28/42)
    Copying directory Jukebox (29/42)
    Copying directory Jukebox (30/42)
    Copying directory Jukebox (31/42)
    Copying directory Jukebox (32/42)
    Copying directory Jukebox (33/42)
    Copying directory Jukebox (34/42)
    Copying directory Jukebox (35/42)
    Copying directory Jukebox (36/42)
    Copying directory Jukebox (37/42)
    Copying directory Jukebox (38/42)
    Copying directory Jukebox (39/42)
    Copying directory Jukebox (40/42)
    Copying directory Jukebox (41/42)
    Copying directory Jukebox (42/42)
Copying skin files to Jukebox directory (No property file)...
Copying the html directory...

    Copying directory Watched (1/3)
    Copying directory Watched (2/3)
    Copying directory Watched (3/3)

    Copying directory html (2/5)
    Copying directory html (3/5)
    Copying directory html (4/5)
    Copying directory pictures (1/23)
    Copying directory pictures (2/23)
    Copying directory pictures (3/23)
    Copying directory pictures (4/23)
    Copying directory pictures (5/23)
    Copying directory pictures (6/23)
    Copying directory pictures (7/23)
    Copying directory pictures (8/23)
    Copying directory pictures (9/23)
    Copying directory pictures (10/23)
    Copying directory pictures (11/23)
    Copying directory pictures (12/23)
    Copying directory pictures (13/23)
    Copying directory pictures (14/23)
    Copying directory pictures (15/23)
    Copying directory pictures (16/23)
    Copying directory pictures (17/23)
    Copying directory pictures (18/23)
    Copying directory pictures (19/23)
    Copying directory pictures (20/23)
    Copying directory pictures (21/23)
    Copying directory pictures (22/23)
    Copying directory pictures (23/23)

Jukebox cleaning skipped.
Clean up temporary files

MovieJukebox process completed at Mon May 28 15:40:55 GMT 2012
Processing took 00:01:12
Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 05:54 PM
Post: #12
RE: Installing YAMJ
Ok, so you're on an A300, so you need to install the eversion skin system.
Once you've done that (and re-run YAMJ) or whilst you are doing it, you need to download the YAMJ app from the apps market.

Once the YAMJ run has finished, open the App and point it to the Test jukebox and it should start up

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-28-2012, 10:05 PM
Post: #13
RE: Installing YAMJ
(05-28-2012 04:15 PM)Omertron Wrote:  Looks good. You probably want to "-o /share/Test"

Just check that when you look at "/share/Test" you get the same sub-path as when you browse to the "Test" share on the PCH.

By that I mean, that whatever files are in "/share/Test" you see the same files and folders in the "Test" share on the PCH.
Hi Omertron,

Finally got it working and want to thank you very much for that. its a relief after one week of .... frustration.

If i want to add multiple directories to be scanned, do I simply edit the library.xml file as such .....

Code:
<libraries>
    <library>
        <path>/share/Multimedia/Movie/</path>
        <playerpath>/file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Multimedia/Movie/</playerpath>
        <exclude name="sample,tmp/,temp/,RECYCLER/,RECYCLE.BIN/"/>
        <description></description>
        <prebuf></prebuf>
        <scrapeLibrary>true</scrapeLibrary>
    </library>
</libraries>

<libraries>
    <library>
        <path>/share/Multimedia/Series/</path>
        <playerpath>/file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Multimedia/Series/</playerpath>
        <exclude name="sample,tmp/,temp/,RECYCLER/,RECYCLE.BIN/"/>
        <description></description>
        <prebuf></prebuf>
        <scrapeLibrary>true</scrapeLibrary>
    </library>
</libraries>

How does that then work with the run_yamj.sh ? Do I add another line just with the /series path like this ?

Code:
./MovieJukebox.sh library.xml -o /share/Multimedia/Movie/
./MovieJukebox.sh library.xml -o /share/Multimedia/Series/

Thanks once again.
Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 07:08 AM
Post: #14
RE: Installing YAMJ
you want
Code:
<libraries>
    <library>
    </library>

    <library>
    </library>

    <library>
    </library>

</libraries>
That will put them all in the same jukebox

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 08:58 AM
Post: #15
RE: Installing YAMJ
(05-29-2012 07:08 AM)Omertron Wrote:  you want
Code:
<libraries>
    <library>
    </library>

    <library>
    </library>

    <library>
    </library>

</libraries>
That will put them all in the same jukebox

Running a scan as we speak Big Grin

Does running the scan include the movie files again or does it skip and just concentrate on the new series files for example ? Is it possible for future reference that when a new movie or series file is copied to the folder that it scans and updates automatically ?

From what I read, not every skin is compatible with the A-300 and must be flash based. If I find one I like, is it a case of simply copying to the skin folder and editing the path as I did with eversion or am I stuck with that skin ?

Last but not least, how easy is it to compile and install mediainfo ? From what I have also read, it must be the CLI version but I dont have a clue which one I need to use for a headless linux machine.

You have been so helpful its unbelievable
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Banner help - YAMJ with eversion rave777 4 831 Yesterday 08:14 AM
Last Post: Omertron
Sad [YAMJ] YAMJ does not create scan files Jascha 16 372 05-18-2013 05:01 PM
Last Post: jluc2808
  How to Setup Two YAMJ Jukeboxes? Cappy1 17 392 05-16-2013 08:38 PM
Last Post: Cappy1
  YAMJ-EVERSION-A300 Arry 12 385 05-15-2013 12:05 PM
Last Post: Omertron
  YAMJ/ Eversion help flombs 3 280 05-11-2013 11:39 AM
Last Post: flombs
  Auto load YAMJ (using Eversion skin) on PCH A-300 Woodgnome 59 12,281 05-05-2013 02:32 PM
Last Post: BlueWater84
  [YAMJ] JAVA 1.7 update 21 makes YAMJ crash! Specter 9 1,077 04-28-2013 04:52 PM
Last Post: Specter
  YAMJ 2.9 r3675 problem with java Hewon 25 1,527 04-28-2013 04:15 PM
Last Post: Omertron
  YAMJ no longer works at all - USB external drives Bumder 16 1,399 04-26-2013 08:46 PM
Last Post: Aquasport
  [YAMJ] Yamj java problem ? lepermessiah 3 388 04-24-2013 09:15 AM
Last Post: lepermessiah

Forum Jump: