Page 1 of 1

Mediainfo stopped working after 4.7.5 upgrade

Posted: 30 Nov 2016, 00:21
by Lukeid
Hello,

I had Filebot working with mediainfo:

Code: Select all

FileBot 4.7.2 (r4225)
JNA Native: 4.0.1
MediaInfo: 0.7.64
7-Zip-JBinding: java.lang.UnsatisfiedLinkError: net.sf.sevenzipjbinding.SevenZip.nativeGetVersionMajor()I
Chromaprint: 1.1.0
Extended Attributes: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: net.filebot.media.MetaAttributes(java.io.File)
Script Bundle: 2016-11-07 (r458)
Groovy: 2.4.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_101 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 2 Core / 118 MB Max Memory / 12 MB Used Memory
OS: Linux (arm)
Package: SPK
Data: /volume2/@appstore/filebot/data
uname: Linux DS414j 3.2.40 #5644 SMP Wed Jan 20 22:38:46 CST 2016 armv7l GNU/Linux synology_comcerto2k_ds414j
But after I ugraded to version 4.7.5 it stopped working:

Code: Select all

FileBot 4.7.5 (r4634)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path ([file:/volume2/@appstore/filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
7-Zip-JBinding: java.lang.UnsatisfiedLinkError: net.sf.sevenzipjbinding.SevenZip.nativeGetVersionMajor()I
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-11-26 (r465)
Groovy: 2.4.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_101
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 2 Core / 118 MB Max Memory / 9 MB Used Memory
OS: Linux (arm)
Package: SPK
Data: /volume2/@appstore/filebot/data
uname: Linux DS414j 3.2.40 #5644 SMP Wed Jan 20 22:38:46 CST 2016 armv7l GNU/Linux synology_comcerto2k_ds414j
Done ヾ(@⌒ー⌒@)ノ
I tried to update JAVA and use new filebot.sh but no luck with Mediainfo and JNA:

Code: Select all

FileBot 4.7.5 (r4634)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path ([file:/volume2/@appstore/filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-11-26 (r465)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 118 MB Max Memory / 9 MB Used Memory
OS: Linux (arm)
Package: SPK
Data: /volume2/@appstore/filebot/data/root
uname: Linux DS414j 3.2.40 #5644 SMP Wed Jan 20 22:38:46 CST 2016 armv7l GNU/Linux synology_comcerto2k_ds414j
Done ヾ(@⌒ー⌒@)ノ
If I replace current v4.7.4 jar file with old v4.7.2 jar file I get mediainfo working again.

As I use mediainfo this problem preents me from upgrade to new versions.

Any clue how can I recover mediainfo support? I will apreciate any help.

Thank you very much.

Re: Mediainfo stopped working after 4.7.5 upgrade

Posted: 30 Nov 2016, 12:57
by rednoah
The official 4.7.5 release (r4600) should work.

The issue is caused by libjnidispatch.so not being bundled with the JAR anymore in the latest revision.

Thanks testing the latest revision and for reporting this issue right away! I forgot that the SPK package doesn't ship any of the native libraries... I need to figure out a solution for this case.

Re: Mediainfo stopped working after 4.7.5 upgrade

Posted: 30 Nov 2016, 15:15
by Lukeid
You are right, r4600 works:

Code: Select all

FileBot 4.7.5 (r4600)
JNA Native: 4.0.1
MediaInfo: 0.7.73
Apache Commons VFS: [zip, rar]
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-11-26 (r465)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 118 MB Max Memory / 14 MB Used Memory
OS: Linux (arm)
Package: SPK
Data: /volume2/@appstore/filebot/data/root
uname: Linux DS414j 3.2.40 #5644 SMP Wed Jan 20 22:38:46 CST 2016 armv7l GNU/Linux synology_comcerto2k_ds414j
Done ヾ(@⌒ー⌒@)ノ
Thank you very much for your help. :)