UnsatisfiedLinkError with humble-video on maven repo.

987 views
Skip to first unread message

taktod

unread,
Oct 4, 2014, 5:35:38 AM10/4/14
to xuggle...@googlegroups.com
hi, this is taktod.

On my project, I tried to use humble-video from maven repository.
on linux(CentOS release 6.3) I got link error.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.ttProject.humble.test.MutedSampleTest
18:22:23,454 [main] ERROR [JNILibraryLoader] - Could not load library: humblevideo; version: 0.
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.436 sec <<< FAILURE! - in com.ttProject.humble.test.MutedSampleTest
DBL(com.ttProject.humble.test.MutedSampleTest)  Time elapsed: 4.278 sec  <<< ERROR!
java.lang.UnsatisfiedLinkError: no humblevideo in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at io.humble.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:268)
at io.humble.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:171)
at io.humble.ferry.JNILibrary.load(JNILibrary.java:152)
at io.humble.ferry.FerryJNI.<clinit>(FerryJNI.java:16)
at io.humble.ferry.Ferry.<clinit>(Ferry.java:24)
at io.humble.video.VideoJNI.<clinit>(VideoJNI.java:19)
at io.humble.video.AudioFormat$Type.<clinit>(AudioFormat.java:213)
at com.ttProject.humble.test.MutedSampleTest.DBL(MutedSampleTest.java:20)

S16(com.ttProject.humble.test.MutedSampleTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class io.humble.video.AudioFormat$Type
at com.ttProject.humble.test.MutedSampleTest.S16(MutedSampleTest.java:26)


Results :

Tests in error: 
  MutedSampleTest.DBL:20 » UnsatisfiedLink no humblevideo in java.library.path
  MutedSampleTest.S16:26 NoClassDefFound Could not initialize class io.humble.vi...

with xuggle 5.4 from xuggle-repo(http://xuggle.googlecode.com/svn/trunk/repo/share/java/). there is no link error.

any idea?

thanks in advance.

taktod

Art Clarke

unread,
Oct 6, 2014, 12:31:07 AM10/6/14
to xuggler-users
Hmm.... possibly libc issues. two suggestions:

1) can you share your pom.xml for your class?
2) can you turn up logging to trace level for all io.humble classes?

basically with option 2, I want to see if it even finds the embedded libraries.

- Art


--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xuggler-user...@googlegroups.com.
To post to this group, send email to xuggle...@googlegroups.com.
Visit this group at http://groups.google.com/group/xuggler-users.
For more options, visit https://groups.google.com/d/optout.



--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.

taktod

unread,
Oct 7, 2014, 6:58:06 AM10/7/14
to xuggle...@googlegroups.com
Hi Art.

thank you for reply.
I'll send the log file with trace level logging.

I hope this log will help to fix this issue.

taktod


2014年10月6日月曜日 13時31分07秒 UTC+9 Art Clarke:
output.log

Art Clarke

unread,
Oct 7, 2014, 3:28:11 PM10/7/14
to xuggler-users
So the reason is this:
14:42:02,992 [main] DEBUG [JNILibrary] - Failure: library load of library: humblevideo; url: /tmp/humble3737670391981859354.tmp; error: java.lang.UnsatisfiedLinkError: /tmp/humble3737670391981859354.tmp: /lib64/libm.so.6: version `GLIBC_2.15' not found (required by /tmp/humble3737670391981859354.tmp)

Cent-Os 6.3 has an older version of lib-c I suspect than Ubuntu 12.14. My bet is Cent-OS 7 will work.

- Art

Kelvin Abrokwa

unread,
Feb 16, 2016, 1:03:06 PM2/16/16
to xuggler-users
Hi Art,

I'm having a similar problem running a humble-video application that borrows heavily from one of the demo apps.

I get the following running from Eclipse IDE:

```
09:41:02.251 [Thread-1] DEBUG io.humble.ferry.JNILibrary - Failure: library load of library: humblevideo; url: /var/folders/w5/chr3jbh91szd_5yzs6zm38lh0000gn/T/humble1170071018226156370.tmp; error: {}
java.lang.UnsatisfiedLinkError: /private/var/folders/w5/chr3jbh91szd_5yzs6zm38lh0000gn/T/humble1170071018226156370.tmp: dlopen(/private/var/folders/w5/chr3jbh91szd_5yzs6zm38lh0000gn/T/humble1170071018226156370.tmp, 1): no suitable image found. Did find:
/private/var/folders/w5/chr3jbh91szd_5yzs6zm38lh0000gn/T/humble1170071018226156370.tmp: mach-o, but wrong architecture
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at io.humble.ferry.JNILibrary.doJNILoad(JNILibrary.java:203)
at io.humble.ferry.JNILibrary.unpackLibrary(JNILibrary.java:287)
at io.humble.ferry.JNILibrary.loadFromClasspath(JNILibrary.java:189)
at io.humble.ferry.JNILibrary.load(JNILibrary.java:168)
at io.humble.ferry.JNILibrary.load(JNILibrary.java:149)
at io.humble.ferry.FerryJNI.<clinit>(FerryJNI.java:16)
at io.humble.ferry.Ferry.<clinit>(Ferry.java:24)
at io.humble.video.VideoJNI.<clinit>(VideoJNI.java:19)
at io.humble.video.Demuxer.make(Demuxer.java:128)
at Dashboard.VideoStreamPlayer.playVideo(VideoStreamPlayer.java:84)
at Dashboard.VideoStreamPlayer.init(VideoStreamPlayer.java:289)
at Dashboard.Main$VideoPlayerThread.run(Main.java:32)
at java.lang.Thread.run(Thread.java:745)
```

Any ideas?

Thank you :)

- Kelvin

Li Bin

unread,
Jul 21, 2016, 1:53:33 PM7/21/16
to xuggler-users
Hi, Kelvi,
I ran into the same problem. Ubuntu 14.04 and humblevideo 0.2.1. Have you fixed your problem and how ?

Thanks a lot.

Kelvin Abrokwa

unread,
Jul 21, 2016, 2:12:25 PM7/21/16
to xuggler-users
Unfortunately, I was not able to fix the problem.

Good luck!

raviteja yakkaladevi

unread,
Feb 19, 2018, 1:59:49 PM2/19/18
to xuggler-users
I got the error fixed by adding humble-video-arch-x86_64-pc-linux-gnu6-0.2.1.jar to classpath. Try adding this jar or the one corresponding to your OS.
Reply all
Reply to author
Forward
0 new messages