Mediainfo on Filebot 4.8.0 on CentOS

All your suggestions, requests and ideas for future development
Post Reply
redbull666
Donor
Posts: 58
Joined: 08 Jan 2014, 20:45

Mediainfo on Filebot 4.8.0 on CentOS

Post by redbull666 »

I am running Centos (CentOS Linux release 7.5.1804), and not a Deb-based linux.

On FileBot 4.8.0, my Mediainfo is no longer loading. Possibly related to the above?

Code: Select all

[11:24 redbull@tyr ~] >  filebot -script fn:sysinfo
FileBot 4.8.0 (r5356)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path (/home/redbull/filebot/jar/FileBot_4.8.0.jar)
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/redbull/.filebot/????
WARNING: sun.jnu.encoding = ANSI_X3.4-1968
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedConstructor$1 (file:/home/redbull/filebot/jar/FileBot_4.8.0.jar) to constructor java.awt.GraphicsEnvironment()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedConstructor$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Script Bundle: 2018-03-16 (r516)
Groovy: 2.4.13
JRE: Java(TM) SE Runtime Environment 10.0.1
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 2 GB Max Memory / 27 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux tyr 4.13.4-1-pve #1 SMP PVE 4.13.4-26 (Mon, 6 Nov 2017 11:23:55 +0100) x86_64 x86_64 x86_64 GNU/Linux
[/quote]
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by rednoah »

Yes, there's quite a lot of warnings and things not working.

MediaInfo related features require working libjnidispatch and libmediainfo libraries.
:idea: Please read the FAQ and How to Request Help.
redbull666
Donor
Posts: 58
Joined: 08 Jan 2014, 20:45

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by redbull666 »

Well, I did a fresh Debian 9 install and installed the Filebot 4.8.0 Debian package.

Still get:

Code: Select all

FileBot 4.8.0 (r5356)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/FileBot_4.8.0.jar)
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedConstructor$1 (file:/usr/share/filebot/jar/FileBot_4.8.0.jar) to constructor java.awt.GraphicsEnvironment()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedConstructor$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Script Bundle: 2018-03-16 (r516)
Groovy: 2.4.13
JRE: Java(TM) SE Runtime Environment 10.0.1
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 7 GB Max Memory / 28 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux vali 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64 GNU/Linux

Is there some install step I am missing? Or is this a different issue? For example I am using Java 10 in this one.

Separate install of "apt-get libjna-java mediainfo" does not help.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by rednoah »

1.

Code: Select all

JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/FileBot_4.8.0.jar)
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
I don't know. There seem to be quite a few issues. Make sure that libjnidispatch and libmediainfo are in the library path. You can check filebot.sh and see if you see anything that doesn't make sense there. Other than that I have no idea.


2.

Code: Select all

Unicode Filesystem: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/redbull/.filebot/????
WARNING: sun.jnu.encoding = ANSI_X3.4-1968
This one is strange, because it means that locale and $LANG aren't set and configured properly. But I've not seen that to be an issue with proper Debian / Ubuntu systems. I've seen it with minimal embedded Linux systems though.
:idea: Please read the FAQ and How to Request Help.
redbull666
Donor
Posts: 58
Joined: 08 Jan 2014, 20:45

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by redbull666 »

I fixed 2) indeed, found solution on the forum. Seems this Debian LXC template does not set locale correctly by default.

But 1) is a mystery, I am using the untouched .deb package, this layout:

Code: Select all

./lib
./lib/libjnidispatch.so
./lib/lib7-Zip-JBinding.so
./lib/fpcalc
./lib/libzen.so
./lib/libmediainfo.so
./bin
./bin/filebot.sh
./jar
./jar/FileBot_4.8.0.jar
To be sure I also linked the libs in /lib64, no change.

filebot.sh looks OK to me, it is untouched regardless:

Code: Select all

./lib
./lib/libjnidispatch.so
./lib/lib7-Zip-JBinding.so
./lib/fpcalc
./lib/libzen.so
./lib/libmediainfo.so
./bin
./bin/filebot.sh
./jar
./jar/FileBot_4.8.0.jar
redbull666
Donor
Posts: 58
Joined: 08 Jan 2014, 20:45

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by redbull666 »

PS. I switched to Filebot 4.7.9 and the problem is gone:

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-16 (r516)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 10.0.1
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 7 GB Max Memory / 55 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux vali 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64 GNU/Linux
Perhaps related to the new folder layout in 4.8? I guess I stick to 4.7.9 for now, as I am starting to lose mah mind :)

Now it also works on the CentOS container again.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Mediainfo on Filebot 4.8.0 on CentOS

Post by rednoah »

Most likely. The layout has changed quite a bit and hasn't been thoroughly tested on different platforms.
:idea: Please read the FAQ and How to Request Help.
Post Reply