Synology Mediainfo

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Synology Mediainfo

Post by sanmar »

Hi,

i got the following error:

Code: Select all

xbmc@NAS:~$ filebot -script fn:sysinfo
FileBot 4.6.1 (r3315)
JNA Native: 4.0.1
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'zen': Native library (linux-x86/libzen.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.5
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 14 MB Used Memory
OS: Linux (i386)
Package: SPK
Data: /volume1/@appstore/filebot/data/xbmc
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+

--- UPDATE AVAILABLE: FileBot 4.7 (r3923) ---

Done ヾ(@⌒ー⌒@)ノ
i changed the
SYNO_LIBRARY_PATH="/volume1/@appstore/filebot:/usr/local/mediainfo/lib"

and uploaded the libmediainfo.so from https://github.com/filebot/filebot/tree ... linux-i686

previosly i have installed the mediainfo package from synology but since some days/weeks it wont work anymore. so this is why i try the changes from the libary.

can anyone help?

thanks in advance.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

Code: Select all

Unable to load library 'zen': Native library (linux-x86/libzen.so) not found
So libmediainfo.so and libzen.so are in the library path?


PS: Using the @appstore folder is probably a bad idea, since that one belongs to DSM. Make your own folder.
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

Hi rednoah

i reinstalled the mediainfo package from SynoCommunity.

and changed the path in the filebot.sh to:
SYNO_LIBRARY_PATH="/usr/local/mediainfo/lib"

the symlink works and in the lib folder include:

libzen.so.0.0.0
libz.so.1.2.8
libmedainfo.so.0.0.0
libmediainfo.so.0
libmediainfo.so
libz.so.1
libz.so
libzen.so.0
libzen.so

with admin user the same error:

Code: Select all

admin@NAS:~$ filebot -script fn:sysinfo
FileBot 4.6.1 (r3315)
JNA Native: 4.0.1
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.5
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 37 MB Used Memory
OS: Linux (i386)
Package: SPK
Data: /volume1/@appstore/filebot/data/admin
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+

--- UPDATE AVAILABLE: FileBot 4.7 (r3923) ---

Done ヾ(@⌒ー⌒@)ノ

sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

Update:

i updated the the filebot spk.

i used an old ressource, so i changed it from:

https://packages.filebot.net/syno/

to

https://app.filebot.net/syno/

an now i can update to filebot version 4.7 i also installed chromaprint and mediainfo from synocommunity.
but i receive the same error:

Code: Select all

admin@NAS:~$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'zen': Native library (linux-x86/libzen.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 38 MB Used Memory
OS: Linux (i386)
Package: SPK
Data: /volume1/@appstore/filebot/data/admin
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+
Done ヾ(@⌒ー⌒@)ノ


i changed many times the path and tried different mediainfo libaries always the same error :(

thanks in advance for any hint.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

and uploaded the libmediainfo.so
What about the libzen.so native library?

Please run ls -l /path/to/my/lib/folder and post the output.
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

sanmar wrote:Hi rednoah

libzen.so.0.0.0
libz.so.1.2.8
libmedainfo.so.0.0.0
libmediainfo.so.0
libmediainfo.so
libz.so.1
libz.so
libzen.so.0
libzen.so

here one more with your instruction:

Code: Select all

admin@NAS:~$ ls -l /usr/local/mediainfo/lib
total 6572
lrwxrwxrwx 1 root root      21 May 26  2015 libmediainfo.so -> libmediainfo.so.0.0.0
lrwxrwxrwx 1 root root      21 May 26  2015 libmediainfo.so.0 -> libmediainfo.so.0.0.0
-rwxr-xr-x 1 root root 6341080 May 26  2015 libmediainfo.so.0.0.0
lrwxrwxrwx 1 root root      15 May 26  2015 libzen.so -> libzen.so.0.0.0
lrwxrwxrwx 1 root root      15 May 26  2015 libzen.so.0 -> libzen.so.0.0.0
-rwxr-xr-x 1 root root  269880 May 26  2015 libzen.so.0.0.0
lrwxrwxrwx 1 root root      13 May 26  2015 libz.so -> libz.so.1.2.8
lrwxrwxrwx 1 root root      13 May 26  2015 libz.so.1 -> libz.so.1.2.8
-rwxr-xr-x 1 root root  112328 May 26  2015 libz.so.1.2.8
admin@NAS:~$
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

Alright, I guess the SynoCommunity binaries are broken. You might want to report the issue:
https://github.com/SynoCommunity/spksrc/issues

In the meanwhile you can try to use the binaries (BOTH libmediainfo.so and libzen.so are required) from here:
https://github.com/filebot/filebot/tree ... linux-i686
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

thx rednoah i tried this already.

Code: Select all

admin@NAS: ls -l /volume1/Verwaltung/FilebotMediainfo/lib
total 6064
-rwxrwxrwx 1 admin users 5914292 Jul  2 12:32 libmediainfo.so
-rwxrwxrwx 1 admin users  293840 Jul  2 12:32 libzen.so

filebot.sh the following

Code: Select all

# add 3rd party packages to the library path by default
SYNO_FPCALC="/usr/local/chromaprint/bin/fpcalc"
SYNO_LIBRARY_PATH="/volume1/Verwaltung/FilebotMediainfo/lib"

Version output always the same :-(:

Code: Select all

admin@NAS:~$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 17 MB Used Memory
OS: Linux (i386)
Package: SPK
Data: /volume1/@appstore/filebot/data/admin
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+
Done ヾ(@⌒ー⌒@)ノ


i dont know what i can do ?

thanks in advance.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

Since you're using a 64-bit system, why not use 64-bit Java and 64-bit MediaInfo?

Since you use the SynoCommunity binaries, that's probably gonna be native 64-bit for your platform, so Java must be 64-bit as well (a 32-bit process can't load 64-bit native code and vice versa).

Actually, my Java package should force you to use 64-bit Java. Check "Package Center" -> "Oracle Java SE" -> "View Log" and see what it says.
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

ok i did it. i deinstalled the other java libaries. but the same error.

Code: Select all

admin@NAS:~$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'zen': Native library (linux-x86-64/libzen.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 14 MB Used Memory
OS: Linux (amd64)
Package: SPK
Data: /volume1/@appstore/filebot/data/admin
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

Remove all the existing mediainfo related libraries, and then try again with the 64-bit ones:
https://github.com/filebot/filebot/tree ... inux-amd64
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

omg i think i did it.

Code: Select all

admin@NAS:~$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.73
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 444 MB Max Memory / 15 MB Used Memory
OS: Linux (amd64)
Package: SPK
Data: /volume1/@appstore/filebot/data/admin
uname: Linux NAS 3.10.77 #7393 SMP Thu Jun 2 19:50:06 CST 2016 x86_64 GNU/Linux synology_cedarview_1513+
Done ヾ(@⌒ー⌒@)ノ

for all my last steps:

deinstall all java packages (synology, synocommunity,rednoah)
deinstall filebot
deinstall oracle java se from rednoah
deinstall mediainfo from synocomunity

ok now installed synology java8 package and downloaded jdk-8u92-linux-x64.tar.gz and uploaded it.
next i reinstalled filebot 4.7 with the necessary oracle java se
and the last step i reinstalled mediainfo from synocommunity.

and tada it worked. i dont know why but maybe this could help anyone.

thanks rednoah for your support.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

rednoah wrote:Remove all the existing mediainfo related libraries, and then try again with the 64-bit ones:
https://github.com/filebot/filebot/tree ... inux-amd64
same idea ;-) thanks
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology Mediainfo

Post by rednoah »

i reinstalled mediainfo from synocommunity.
Well, I guess that means the MediaInfo package works correctly after all. :lol:
:idea: Please read the FAQ and How to Request Help.
sanmar
Posts: 15
Joined: 17 Jul 2014, 14:10

Re: Synology Mediainfo

Post by sanmar »

rednoah wrote:
i reinstalled mediainfo from synocommunity.
Well, I guess that means the MediaInfo package works correctly after all. :lol:

i think it too.

one last question: after i renamed all the files are user:root and group root

but i logged in and executed with xbmc user. is it possible to set the user and group after renaming ?

thanks again.
Post Reply