Page 1 of 1

QNAP Install and Setup

Posted: 12 Jan 2015, 16:03
by phifer2088
I have a QNAP TS-651 and I would love to get filebot with a script like the one listed in the link below. It automatically renames your TV shows to a format like this: "The Walking Dead 4x15 Us.mkv", places it in a folder like "TV Shows/The Walking Dead/Season 4/" and automatically downloads subtitles from OpenSubtitles using the video hash. If the TV show or movie is in a zip file, the script automatically extracts it and deletes the zip. Also, after organizing the movies / TV shows, the script triggers XBMC or Plex to re-scan the directories. Right now I am unsure how to even install filebot. I am able to ssh into my nas, but filebot is not listed in the repository after running ipkg update. I am unaware if it is even compatible with my NAS. I would like the system to scan my upload folder that all users have read/write permissions to and then move those files to the multimedia folder where users only have read access. If not I would like to get this running on my Windows PC until it is compatible.
As you can see lots of help is needed.

http://www.webupd8.org/2014/04/organize ... -with.html


QNAP TS-651
IntelĀ® CeleronĀ® 2.41GHz dual-core processor

Re: QNAP Install and Setup

Posted: 12 Jan 2015, 17:45
by rednoah
1.
First you need Java and FileBot working on your NAS. With a normal x86 processor there should be really no issue there. You'll just need some basic Linux skills (i.e. wget Java/FileBot, symlink java/filebot tools into /usr/bin) if there is no package for your platform (i.e. if ipkg doesn't work you can use the portable).

The webupd8.org link will probably not be helpful for setting things up on an embedded device.


2.
Then you want to refer to the amc script for the rest:
viewtopic.php?f=4&t=215

There's lots of different ways to set it up, depending on how you do things it might be slightly different, but in the end it's just a simple cmdline call, so it's extremely flexible, but again some basic Linux skills are needed. ;)

Re: QNAP Install and Setup

Posted: 12 Jan 2015, 20:32
by phifer2088
Java is already installed and is loacted in the application center on my qnap. I have used wget to retrieve the file located at
http://sourceforge.net/projects/filebot ... z/download

I am unsure if that would be the correct file as it is still downloading. I am now thinking I should get the 686 file. The problem is I have no idea what extension is needed for this linux version. The options I have found are listed below.

http://sourceforge.net/projects/filebot ... Bot_4.5.3/

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 05:27
by rednoah
i686 means it's a package for 32-bit Intel x86 CPUs. So the IPKG package should be fine presuming QNAP supports ipkg and you generally know what ipkg is and does.

Assuming java is setup already, this should work:

Code: Select all

wget http://sourceforge.net/projects/filebot/files/filebot/FileBot_4.5.3/filebot_4.5.3_i686.ipk
ipkg install filebot_4.5.3_i686.ipk
filebot -version
Otherwise you can always default the portable package & unpack & symlink to bin & done ~

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 05:47
by phifer2088
Java is installed and works. I am currently at work so I will be working this issue again when I get home. From the way your last line reads it sounds like the portable package could be a better option. Once I have this working I would like to create a install/setup guide from the ground up for novice users like myself. The TS-X51 series has a 64 bit processor. Is the portable 64 bit? Thanks again.

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 06:37
by rednoah
FileBot is platform-independent and only requires Java. The i686 includes the platform-independent core and the optional platform-dependent native libraries for i686 arch.

The optional native libraries are platform-dependent and the portable package simply doesn't include them.

Since you're on x86_64 and QNAP OS probably doesn't ship with compatibility libraries to execute x86 code you'll probably have to start with the portable and set the rest up yourself. The generic 64-bit Linux native libraries should work as well should you need MediaInfo/7zip/AcoustID support.

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 06:48
by phifer2088
I would like to have the MediaInfo/7zip/AcoustID features so I will attempt setting Filebot up this way. Would the setup of each of these install types be similar to each other after being installed?

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 07:13
by rednoah
You get all the native libraries / native tools for your platform from here:
https://sourceforge.net/p/filebot/code/ ... ib/native/

... and put it into the portable folder.

All the executables java/filebot/fpcalc must be linked to bin (e.g. /usr/local/bin) and then it should all work. You can use filebot -script fn:sysinfo for testing.

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 09:06
by phifer2088
I have placed the portable unzipped on my NAS and have also included the additional files into the folder. Now I am working on editing my .profile
Where should the file links be added?

Scratch this working on symlink

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 09:10
by rednoah
Why?

/usr/local/bin is always in the PATH so if you link the executables to /usr/local/bin you don't need to add anything to the PATH.

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 09:28
by phifer2088
rednoah wrote:Why?

/usr/local/bin is always in the PATH so if you link the executables to /usr/local/bin you don't need to add anything to the PATH.
So how do I link the executables? I know my path is /share/homes/admin/FileBot_4.5.3

Is it as simple as ln -s /share/homes/admin/FileBot_4.5.3

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 10:58
by rednoah

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 14:44
by phifer2088
rednoah wrote:i686 means it's a package for 32-bit Intel x86 CPUs. So the IPKG package should be fine presuming QNAP supports ipkg and you generally know what ipkg is and does.

Assuming java is setup already, this should work:

Code: Select all

wget http://sourceforge.net/projects/filebot/files/filebot/FileBot_4.5.3/filebot_4.5.3_i686.ipk
ipkg install filebot_4.5.3_i686.ipk
filebot -version
Otherwise you can always default the portable package & unpack & symlink to bin & done ~

Code: Select all

[~] # filebot -version
FileBot 4.5.3 (r2729) / Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
Now I am working the script. Looking at the link you provided before I have the script below. I will be installing uTorrent or something similar, but where I am now all that traffic is blocked. So I have watched the youtube video and edited the code.

Code: Select all

filebot -script fn:amc --output "/share/Multimedia" --log-file amc.log --action move --conflict override --def music=y --def subtitles=en --def artwork=y --def clean=y -non-strict "/share/Public" --def excludeList=amc.txt
I am being picky now, but can I limit how much artwork is downloaded for each movie? Some had 8 different photos.

Re: QNAP Install and Setup

Posted: 13 Jan 2015, 17:54
by rednoah
It'll probably create files like this:

movie.nfo
disc.png
fanart.jpg
folder.jpg
logo.png
poster.jpg

That's basically one per type. Less would defeat the point. Though, poster.jpg & folder.jpg is the same for compatibility with both Windows and HTPC software.