libjnidispatch.so is missing in filebot.jar (version 4.7.7)

All your suggestions, requests and ideas for future development
Post Reply
river
Posts: 17
Joined: 22 Sep 2016, 07:05

libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

I am on armv7h device with archlinux.
I updated filebot to 4.7.7-2 (as per aur) and I am getting following error.

Code: Select all

{duration} => Expression yields empty value: Binding "duration": Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path ([file:/usr/share/java/filebot/filebot.jar])
This error breaks video codec detection, If I downgrade to 4.7.5 no error.
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

The old jar accidentally shipped with native code for all platforms. This issue has been fixed.

If your package doesn't ship with all the native libraries, then you may need to grab them from here:
https://github.com/filebot/filebot/tree ... nux-armv7l
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

Where should I put those file?
I have downloaded and placed those file in /user/share/java/filebot and chmod to 755 but I still have above error.
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

Anywhere in LD_LIBRARY_PATH is fine.

Make sure the following options are set:

Code: Select all

-Djna.nosys=false -Djna.nounpack=true
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

It took me some time to implement your suggestion, now no errors; but video codec detection is still broken.
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

Please run filebot -script fn:sysinfo and post the output.
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

Here is output

Code: Select all

 ~  $  LD_LIBRARY_PATH=/usr/share/java/filebot filebot -script fn:sysinfo
Picked up _JAVA_OPTIONS: -Djna.nosys=false -Djna.nounpack=true
FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.64
Apache Commons VFS: [zip, rar]
Chromaprint: 1.4.1
Extended Attributes: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 8 Core / 247 MB Max Memory / 16 MB Used Memory
OS: Linux (arm)
Package: PORTABLE
Data: /home/alarm/.config/filebot
uname: Linux odroid 3.10.104-4-ARCH #1 SMP PREEMPT Sun Jan 1 18:12:52 MST 2017 armv7l GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

Looks good. What's not working at this point?

If you're worried about MediaInfo, run filebot -mediainfo /some/media/file and see what happens.
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

output of 4.7.5

Code: Select all

$-filebot -mediainfo /media/My_Book/media/tv_1_old/Arrow/Season01/Arrow.S01E01.Pilot.x264-HiSD.mkv
Arrow.S01E01.Pilot.x264-HiSD [720x576 x264 5.1 AC3 42m]
output of 4.7.7

Code: Select all

$-LD_LIBRARY_PATH=/usr/share/java/filebot filebot -mediainfo /media/My_Book/media/tv_1_old/Arrow/Season01/Arrow.S01E01.Pilot.x264-HiSD.mkv
Picked up _JAVA_OPTIONS: -Djna.nosys=false -Djna.nounpack=true
Arrow.S01E01.Pilot.x264-HiSD [720x576 AVC 5.1 AC3 0m]
4.7.7 not able to find video codec (x264) and displaying wrong video length.
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

Please post the sysinfo output of both versions.

e.g.

Code: Select all

FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.64
Presumably, different versions of libmediainfo.so are used in different tests.
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

I copied libmediainfo.so and libzen.so from my system lib folder and it is working.

Code: Select all

$  LD_LIBRARY_PATH=/usr/share/java/filebot filebot -mediainfo /media/My_Book/media/tv_1_old/Arrow/Season01/Arrow.S01E01.Pilot.x264-HiSD.mkv
Picked up _JAVA_OPTIONS: -Djna.nosys=false -Djna.nounpack=true
Arrow.S01E01.Pilot.x264-HiSD [720x576 x264 5.1 AC3 42m]
here is sysinfo after replacement of libmediainfo.so and libzen.so

Code: Select all

$  LD_LIBRARY_PATH=/usr/share/java/filebot filebot -script fn:sysinfo
Picked up _JAVA_OPTIONS: -Djna.nosys=false -Djna.nounpack=true
FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.91
.
.
Sysinfo of filebot version 4.7.5

Code: Select all

$  filebot -script fn:sysinfo
FileBot 4.7.5 (r4600)
JNA Native: 4.0.1
MediaInfo: 0.7.91
.
.
So, github page has old version of libmediainfo.so and libzen.so (MediaInfo: 0.7.64)
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by rednoah »

There are no official libmediainfo builds for any of the arm* architectures, so the arm binary gets updated rarely to never. The portable filebot.sh should be configured so that it'll prefer any libmediainfo installed on your system before it'll default to the one in the application folder.
:idea: Please read the FAQ and How to Request Help.
river
Posts: 17
Joined: 22 Sep 2016, 07:05

Re: libjnidispatch.so is missing in filebot.jar (version 4.7.7)

Post by river »

I am just tinkerer not and expert so this solution I will never be able to figure out, it took me an hour to implement LD_LIBRARY_PATH. At this moment it started working so I am happy.
I hope that all these solutions gets implemented in aur package soon.
Thank you for your help.
Post Reply