installing on Dreamhost shared server; mediainfo woes

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
chazlarson
Posts: 2
Joined: 12 Jun 2013, 23:33

installing on Dreamhost shared server; mediainfo woes

Post by chazlarson »

I've got the portable version unzipped in my bin library, and the amd64 .so files in that same directory. I'm getting "invalid ELF header" when attempting to load MediaInfo. I'm sure I'm missing something really basic. Help?

The i386 .so files give me a similar error.

Thanks.

Code: Select all

[libreville]$ ls -al /home/chazlarson/bin
total 48916
drwxrwxr-x  4 chazlarson pg597354     4096 Jun 12 16:10 .
drwx--x--- 58 chazlarson adm          4096 Jun 12 16:06 ..
-rw-r--r--  1 chazlarson pg597354    41472 Apr 13 03:03 FileBot.exe
-rw-r--r--  1 chazlarson pg597354 26095416 Apr 13 03:03 FileBot.jar
-rw-r--r--  1 chazlarson pg597354      883 Apr 13 03:03 FileBot.l4j.ini
-rw-rw-r--  1 chazlarson pg597354 23808350 Apr 12 12:10 FileBot_3.6-portable.zip
drwxrwxr-x  3 chazlarson pg597354       14 Jun 12 15:55 cache
-rwxrwxr-x  1 chazlarson pg597354       52 Feb  1 10:36 dbu.sh
-rwxrwxr-x  1 chazlarson pg597354    24407 Feb  1 09:22 dropboxupload.sh
-rw-r--r--  1 chazlarson pg597354      507 Apr 13 03:03 filebot.cmd
-rwxr-xr-x  1 chazlarson pg597354      835 Apr 13 03:03 filebot.sh
-rw-rw-r--  1 chazlarson pg597354     1213 Jun 12 15:55 history.xml
-rwxrwxr-x  1 chazlarson pg597354    16535 Jun 12 16:29 lib7-Zip-JBinding.so
-rwxrwxr-x  1 chazlarson pg597354    16697 Jun 12 16:29 libmediainfo.so
-rwxrwxr-x  1 chazlarson pg597354    16668 Jun 12 16:29 libzen.so
-rw-rw-r--  1 chazlarson pg597354      263 Jun 12 16:24 prefs.properties
drwxrwxr-x  3 chazlarson pg597354       35 Jun 12 15:55 temp
[libreville]$ cat /home/chazlarson/bin/filebot.sh 
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

# force JVM language and encoding settings
export LANG=en_US.utf8

java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=false -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=portable -Dapplication.analytics=true -Dapplication.warmup=false "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory "-Dnet.sourceforge.tuned.prefs.file=$dir_bin/prefs.properties" -jar "$dir_bin/FileBot.jar" "$@"
[libreville]$ filebot.sh -script fn:sysinfo
FileBot 3.6 (r1600)
JNA Native: 3.5.0
Jun 12, 2013 4:32:10 PM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
WARNING: Failed to preload libzen
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': /home/chazlarson/bin/libmediainfo.so: invalid ELF header
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: /home/chazlarson/bin/lib7-Zip-JBinding.so: /home/chazlarson/bin/lib7-Zip-JBinding.so: invalid ELF header (Possible cause: endianness mismatch)
Extended Attributes: DISABLED
Java(TM) SE Runtime Environment 1.6.0_07 (headless)
64-bit Java HotSpot(TM) 64-Bit Server VM
Linux (amd64)
Done ヾ(@⌒ー⌒@)ノ
[libreville]$ 
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: installing on Dreamhost shared server; mediainfo woes

Post by rednoah »

No idea. Probably just doesn't work on this particular system. Actually mediainfo nor 7z-bindings both don't seem to load so i guess the native code is incompatible.

You'd have to compile mediainfo yourself if you wanna make it work. Or check with mediainfo people if there's precompiled native libs.
:idea: Please read the FAQ and How to Request Help.
chazlarson
Posts: 2
Joined: 12 Jun 2013, 23:33

Re: installing on Dreamhost shared server; mediainfo woes

Post by chazlarson »

Thanks! Actually, on running it against some files on my DH server, it got killed for excessive resource usage [or something it called did], so I think I'll just mount the DH filesystem on my seedbox and run filebot from there when I've got new files to process.

Awesome work on this.
Post Reply