FileBot 4.8.5 (r6034)
JNA Native: java.lang.UnsatisfiedLinkError: Could not find JNA native support
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: Version 16.02 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE )
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-02-20 (r548)
Groovy: 2.5.5
JRE: OpenJDK Runtime Environment 1.8.0_181
JVM: 32-bit OpenJDK Client VM
CPU/MEM: 4 Core / 224 MB Max Memory / 12 MB Used Memory
OS: Linux (arm)
HW: **** 4.14.94-v7+ #1193 SMP Tue Jan 22 15:34:30 GMT 2019 armv7l G NU/Linux
DATA: /home/pi/.filebot
Package: DEB
License: FileBot License *****
Done ヾ(@⌒ー⌒@)ノ
I have tried sudo apt-get install libjna-java but I still get the same JNA Native error.
Is anyone able to point me in the right direction in resolving this?
libchromaprint-tools is already the newest version (1.4.2-1).
libchromaprint-tools set to manually installed.
libjna-jni is already the newest version (4.2.2-3).
libjna-jni set to manually installed.
libmediainfo0v5 is already the newest version (0.7.91-1).
libmediainfo0v5 set to manually installed.
openjdk-8-jre is already the newest version (8u181-b13-2~deb9u1).
openjdk-8-jre set to manually installed.
openjfx is already the newest version (8u111-b14-1).
You might need to enable non-free packages for that one. It should be in some repository, but that repository may not be enabled by default on vanilla Debian.
find /usr -iname "jnidispatch*" doesn't find anything. So that means it's not installed then? I did search the entire file system too and couldn't find anything still
##########:~ $ filebot -script fn:sysinfo FileBot 4.8.5 (r6176)
JNA Native: java.lang.UnsatisfiedLinkError: Could not find JNA native support
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: java.io.IOException: Cannot run program "7z": error=2, No such file or directory
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-03-01 (r555)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 1.8.0_181
JVM: 32-bit OpenJDK Client VM
CPU/MEM: 4 Core / 224 MB Max Memory / 14 MB Used Memory
OS: Linux (arm)
HW: ########### 4.14.94-v7+ #1193 SMP Tue Jan 22 15:34:30 GMT 2019 armv7l GNU/Linux
DATA: /home/pi/.filebot
Package: DEB
License: FileBot License #############
Done ヾ(@⌒ー⌒@)ノ
Well, I guess this is tricky. The libraries in the repository too outdated.
What version of Debian / Raspbian are you using? Is there a new version available?
You could try to replace the jna.jar that ships with FileBot with the jna.jar that comes bundled with the OS repository, and see if that works. Might work. Might not.
I copied jna.jar from Filebot folder to Java folder, then copied https://github.com/filebot/filebot/blob ... ispatch.so to /usr/lib/arm-linux-gnueabihf/jni. Then renamed the file libjnidispatch.system.so. It's no longer erroring so I assume it's fixed?
Auto-detect movie from context: [/mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4]
InvocationTargetException
You can play with different options to narrow down what works and what doesn't. I can't seem reproduce this particular issue. I've tried with the file paths in your logs and amc script with typical options works just fine there.
InvocationTargetException
Suppressed Exception: net.filebot.format.SuppressedThrowables: Expression yields empty value: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
net.filebot.format.SuppressedThrowables: Expression yields empty value: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:163)
at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:129)
at net.filebot.cli.CmdlineOperations.formatMatches(CmdlineOperations.java:571)
at net.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:487)
at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:92)
at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:362)
at Script1$_run_closure52.doCall(Script1.groovy:387)
at Script1.run(Script1.groovy:349)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:162)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
at net.filebot.Main.main(Main.java:131)
Caused by: net.filebot.format.BindingException: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
at net.filebot.format.ExpressionBindings.get(ExpressionBindings.java:70)
at net.filebot.format.ExpressionFileFormat$1.get(ExpressionFileFormat.java:22)
at net.filebot.format.PrivilegedInvocation$1.run(PrivilegedInvocation.java:34)
at net.filebot.format.PrivilegedInvocation.invoke(PrivilegedInvocation.java:30)
at com.sun.proxy.$Proxy18.get(Unknown Source)
at Script2.run(Script2.groovy:1)
at net.filebot.format.SecureCompiledScript$1.run(SecureCompiledScript.java:88)
at net.filebot.format.SecureCompiledScript.eval(SecureCompiledScript.java:84)
at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:147)
... 12 more
Caused by: java.lang.reflect.InvocationTargetException
at net.filebot.format.ExpressionBindings.get(ExpressionBindings.java:58)
... 20 more
Caused by: net.filebot.mediainfo.MediaInfoException: Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
at net.filebot.format.MediaBindingBean.lambda$getMediaInfo$33(MediaBindingBean.java:1231)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54)
at net.filebot.format.MediaBindingBean.getMediaInfo(MediaBindingBean.java:1227)
at net.filebot.format.MediaBindingBean.getMediaInfo(MediaBindingBean.java:1249)
at net.filebot.format.MediaBindingBean.getVideoFormat(MediaBindingBean.java:368)
... 21 more
Looks like MediaInfo doesn't work for this particular file.
Either because MediaInfo is just generally broken on your device / CPU architecture, OR because this specific file is just broken. Have you tested with a variety of other files?
You can just do filebot -mediainfo -r /media/files for a quick check of mediainfo for various files.
Yes, look like the video file is corrupt, or at least somehow odd, making it impossible for MediaInfo read the file headers.
AFAIK, packages are usually quite outdated, so there's a good chance newer versions of libmediainfo.so already fix the issue. If you compile the latest and greatest yourself it might work.
Try to check this file with FileBot 4.8.5 for Windows or macOS and see if it works. Those builds include the latest MediaInfo libraries and don't rely on system packages.