[Filebot 4.5]Wrong MediaInfoLib path in i686 ipk file!

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
AnGeL
Posts: 11
Joined: 25 Mar 2014, 23:31

[Filebot 4.5]Wrong MediaInfoLib path in i686 ipk file!

Post by AnGeL »

Hi rednoah, just to let you know that i've upgraded my synology and i've installed Java SE 8, so i've decided to upgrade to FileBot 4.5!

I've actually tried to install the Filebot package from the syno repo, but i've found out a lot of issues on installing native libraries, so i've decided to use the ipk provided on sourceforge...

It nicely installs ( :D finally! ) but libmediainfo is misplaced in /opt/share/filebot...

Code: Select all

DiskStation> ipkg install filebot_4.5_i686.ipk 
Installing filebot (4.5) to root...
Configuring filebot
Successfully terminated.
DiskStation> filebot
FileBot 4.5 (r2612) / Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)

 --action [move, copy, keeplink,        : Rename action
 symlink, hardlink, test]                  
 --conflict [skip, override, auto,      : Conflict resolution
 fail]                                     
 --db [TheTVDB, AniDB, TVRage] or       : Episode/Movie database
 [TheMovieDB, OMDb] or [xattr]             
 --def [name=value]                     : Define script variables
 --encoding [UTF-8, Windows-1252,       : Output character encoding
 GB18030]                                  
 --filter expression                    : Filter expression
 --format expression                    : Format expression
 --lang 2-letter language code          : Language
 --log [all, fine, info, warning, off]  : Log level
 --log-file path/to/log.txt             : Log file
 --log-lock [yes, no]                   : Lock log file
 --mode [rename, subtitles, sfv]        : Open GUI in single panel mode
 --order [Airdate, Absolute, DVD]       : Episode order
 --output folder                        : Output path
 --q series/movie title                 : Force lookup query
 -check fileset                         : Create/Check verification files
 -clear-cache                           : Clear cached and temporary data
 -clear-prefs                           : Clear application settings
 -extract                               : Extract archives
 -get-missing-subtitles fileset         : Fetch missing subtitles
 -get-subtitles fileset                 : Fetch subtitles
 -help                                  : Print this help message
 -list                                  : Fetch episode list
 -mediainfo                             : Get media info
 -no-analytics                          : Disable analytics
 -no-xattr                              : Disable extended attributes
 -non-strict                            : Enable advanced matching and more
                                          aggressive guess work
 -r                                     : Resolve folders recursively
 -rename fileset                        : Rename episode/movie files
 -script path/to/script.groovy          : Run Groovy script
 -unixfs                                : Do not strip invalid characters from
                                          file paths
 -version                               : Print version identifier
DiskStation> filebot -script fn:sysinfo

Nov 30, 2014 3:41:07 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/opt/share/filebot/FileBot.jar])
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 4 Core / 170 MB Max Memory / 14 MB Used Memory
OS: Linux (i386)
uname: Linux DiskStation 3.2.40 #5004 SMP PREEMPT Thu Nov 6 15:27:20 CST 2014 i686 GNU/Linux synology_evansport_214play
Done ヾ(@⌒ー⌒@)ノ
So i've managed to copy it to linux-x86 subfolder:

Code: Select all

 
DiskStation> cd /opt/share/filebot/
DiskStation> ls
FileBot.jar           data                  lib7-Zip-JBinding.so  libzen.so
bin                   fpcalc                libmediainfo.so
DiskStation> mkdir linux-x86
DiskStation> cp libmediainfo.so ./linux-x86/
DiskStation> filebot -script fn:sysinfo
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 4 Core / 170 MB Max Memory / 11 MB Used Memory
OS: Linux (i386)
uname: Linux DiskStation 3.2.40 #5004 SMP PREEMPT Thu Nov 6 15:27:20 CST 2014 i686 GNU/Linux synology_evansport_214play
Done ヾ(@⌒ー⌒@)ノ

Ta daaaan! Working again like a charm! :)

Hope it will be useful for the next release.

Greetz from your package-fixing friend :lol:
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Filebot 4.5]Wrong MediaInfoLib path in i686 ipk file!

Post by rednoah »

Since jna.library.path is set to /opt/share/filebot whatever you're doing shouldn't be necessary.

This might help finding the underlying issue:

Code: Select all

-Djna.debug_load=true -Djna.debug_load.jna=true
:idea: Please read the FAQ and How to Request Help.
Post Reply