Page 1 of 1

WARNING: Failed to preload libzen

Posted: 30 Apr 2014, 00:06
by davidh2k
I'm trying to fix the Error "WARNING: Failed to preload libzen". I'm running filebot on a Debian Wheezy. I have a 64 bit system, filebot was installed as a 64bit version and carries the neccessary libs with it. I also have Java 64bit installed on my System.

If I now try to rename/move a file with a flag that needs mediainfo my machine presents me the error:

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# filebot -rename . --db thetvdb --format "/media/d3c21c66-af4b-41d4-b098-462e83fa641d/Serien/{n}/Staffel {s} EN {vc}/{n.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\").replace(':',' -')} - {s00e00} - {t.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\")}" -non-strict -r
Rename episodes using [TheTVDB]
Auto-detected query: [Continuum, cntmn]
Fetching episode data for [Continuum]
Fetching episode data for [Continuum (Web Series)]
Apr 30, 2014 1:59:35 AM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
Warnung: Failed to preload libzen
Stripping invalid characters from new path: /media/d3c21c66-af4b-41d4-b098-462e83fa641d/Serien/Continuum/Staffel 3 EN /Continuum - S03E04 - A Minute Changes Everything
[MOVE] Rename [/root/.pyload/Downloads/cntmn-3x04-wb8/Continuum - S03E04 - A Minute Changes Everything.mkv] to [/media/d3c21c66-af4b-41d4-b098-462e83fa641d/Serien/Continuum/Staffel 3 EN/Continuum - S03E04 - A Minute Changes Everything.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# ls /usr/share/filebot/
bin  FileBot.jar  icon.svg  lib7-Zip-JBinding.so  libmediainfo.so  libzen.so
root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# ls /usr/share/filebot/ -la
insgesamt 32508
drwxr-xr-x   3 root root     4096 Sep 22  2013 .
drwxr-xr-x 220 root root    12288 Apr 25 20:04 ..
drwxr-xr-x   2 root root     4096 Apr 30 01:51 bin
-rw-r--r--   1 root root 26227675 Aug  7  2013 FileBot.jar
-rw-r--r--   1 root root     5976 Mai 20  2012 icon.svg
-rw-r--r--   1 root root  2288945 Nov  3  2012 lib7-Zip-JBinding.so
-rw-r--r--   1 root root  4464152 Okt 25  2012 libmediainfo.so
-rw-r--r--   1 root root   271448 Okt 25  2012 libzen.so
I also copied the libs to /usr/lib. No change.

Any suggestion how to fix this are welcome. :)

Greetings
David

Re: WARNING: Failed to preload libzen

Posted: 30 Apr 2014, 01:57
by rednoah
Did you check the FAQ?

Have you installed the .deb file? Or portable? Or the jar?

Where did you get the native libraries from? Have you tried grabbing the latest binaries from MediaInfo homepage?

I need at least the output of this script:

Code: Select all

filebot -script fn:sysinfo

Re: WARNING: Failed to preload libzen

Posted: 30 Apr 2014, 12:17
by davidh2k
Yes I did check the FAQ. It states that the files have to be there, best place where the binary is. I also found a suggestion from you to place the libs inside /usr/lib. (Suggested here: http://www.filebot.net/forums/viewtopic.php?t=98&p=2615)

I used the libs from http://sourceforge.net/p/filebot/code/H ... ib/native/ to place them inside /usr/lib. But my filebot also had the libs onboard in the folder. I installed via the deb file: http://downloads.sourceforge.net/projec ... _amd64.deb

I also read to take care that both mediainfo and java are the same bit version. Thats why I posted the java version output.

Heres the output you requested:

Code: Select all

root@chap:~# filebot -script fn:sysinfo
FileBot 3.62 (r1687)
JNA Native: 3.5.0
Apr 30, 2014 2:10:20 PM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
Warnung: Failed to preload libzen
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': libzen.so.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, Datei oder Verzeichnis nicht gefunden
Extended Attributes: DISABLED
Groovy Engine:
Java(TM) SE Runtime Environment 1.7.0_51 (headless)
64-bit Java HotSpot(TM) 64-Bit Server VM
Linux (amd64)

--- UPDATE AVAILABLE: FileBot 4.0 (r2052) ---

Done ヾ(@⌒ー⌒@)ノ
root@chap:~#
Interesting that he can find 7-Zip-JBinding but not mediainfo nor fpcalc.

Greetings
David

Re: WARNING: Failed to preload libzen

Posted: 30 Apr 2014, 17:27
by rednoah
OK, that's very strange. If it can load 7-Zip-JBinding then the arch can't be the issue.

What's weird is that it says libzen.so.0 so you could try renaming or linking libzen.so to libzen.so.0 and see what happens.

EDIT:
Also if the library is not compatible it'll often say something stupid and misleading like "file not found". The deb packages bundles the libraries compiled for Ubuntu and hopefully work for other Linux flavours.

You can try grabbing the libs for your exact distro from here:
http://mediaarea.net/en/MediaInfo/Download

Re: WARNING: Failed to preload libzen

Posted: 30 Apr 2014, 20:41
by davidh2k
Thank you. Symlinking did not help either but installing the libs from http://mediaarea.net/en/MediaInfo/Download/Debian at least enabled the use of mediainfo.

But, on the installation it told me that all libs aren't ELF files cause of a bad header (wrong magic bytes on the beginning of the file)?!

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# dpkg -i *.deb
(Lese Datenbank ... 185972 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von libmediainfo0 0.7.68-1 (durch libmediainfo0_0.7.68-1_amd64.Debian_7.0.deb) ...
Ersatz für libmediainfo0 wird entpackt ...
Vormals nicht ausgewähltes Paket libzen0 wird gewählt.
Entpacken von libzen0 (aus libzen0_0.4.29-1_amd64.Debian_7.0.deb) ...
libzen0 (0.4.29-1) wird eingerichtet ...
ldconfig: /usr/lib/libmediainfo.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

ldconfig: /usr/lib/libzen.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

ldconfig: /usr/lib/lib7-Zip-JBinding.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

libmediainfo0 (0.7.68-1) wird eingerichtet ...
ldconfig: /usr/lib/libmediainfo.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

ldconfig: /usr/lib/libzen.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

ldconfig: /usr/lib/lib7-Zip-JBinding.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# filebot -script fn:sysinfo
FileBot 3.62 (r1687)
JNA Native: 3.5.0
Apr 30, 2014 10:29:34 PM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
Warnung: Failed to preload libzen
MediaInfo: MediaInfoLib - v0.7.68
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, Datei oder Verzeichnis nicht gefunden
Extended Attributes: DISABLED
Groovy Engine:
Java(TM) SE Runtime Environment 1.7.0_51 (headless)
64-bit Java HotSpot(TM) 64-Bit Server VM
Linux (amd64)

--- UPDATE AVAILABLE: FileBot 4.0 (r2052) ---

Done ヾ(@⌒ー⌒@)ノ
But renaming now works with the {vf} flag and he outputs the resolution correctly. Alltough he still fails to preload libzen.

Code: Select all

root@chap:~/.pyload/Downloads/cntmn-3x04-wb8# filebot -rename . --db thetvdb --format "/media/d3c21c66-af4b-41d4-b098-462e83fa641d/Serien/{n}/Staffel {s} EN {vf}/{n.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\").replace(':',' -')} - {s00e00} - {t.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\")}" -non-strict -r
Rename episodes using [TheTVDB]
Auto-detected query: [Continuum, cntmn]
Fetching episode data for [Continuum]
Fetching episode data for [Continuum (Web Series)]
Apr 30, 2014 10:33:46 PM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
Warnung: Failed to preload libzen
[MOVE] Rename [/root/.pyload/Downloads/cntmn-3x04-wb8/Continuum - S03E04 - A Minute Changes Everything.mkv] to [/media/d3c21c66-af4b-41d4-b098-462e83fa641d/Serien/Continuum/Staffel 3 EN 1080p/Continuum - S03E04 - A Minute Changes Everything.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
So the problem is solved for now, at least the flag I wanted to use now works. If you still have some suggestions what could be wrong or the root cause of the above error messages I'm happy to try out more suggestions.

Greetings
David

Re: WARNING: Failed to preload libzen

Posted: 01 May 2014, 02:09
by rednoah
That "preload libzen" is only required if you don't have the libraries installed, but only lying around in the filebot library folder. It seems to work just fine, so ignore that warning.

Re: WARNING: Failed to preload libzen

Posted: 02 May 2014, 00:41
by davidh2k
Okay, thanks again for your help.

Greetings
David