微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Android上的Xuggler

我试图在 Android上使用Xuggler将WAV文件转换为M4A.

我在java构建路径中使用了xuggle-xuggler-noarch-5.4.jar

并将xuggle-xuggler-arch-i686-pc-linux-gnu.jar中的libxuggler.so文件复制到我的android应用程序中的libs文件夹中.

在我的主要活动中,我有一个静态初始化程序,尝试System.loadlibrary(“libxuggler”)

但是我只是得到这些信息和错误消息

I/dalvikvm(27614): Could not find method com.xuggle.mediatool.ToolFactory.makeReader,referenced from method com.example.quality.MainActivity.convertToMP3
W/dalvikvm(27614): VFY: unable to resolve static method 3376: Lcom/xuggle/mediatool/ToolFactory;.makeReader (Ljava/lang/String;)Lcom/xuggle/mediatool/IMediaReader;
W/dalvikvm(27614): Unable to resolve superclass of Lcom/example/quality/MainActivity$6; (485)
W/dalvikvm(27614): Link of class 'Lcom/example/quality/MainActivity$6;' Failed
W/dalvikvm(27614): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/example/quality/MainActivity;
W/dalvikvm(27614): Class init Failed in newInstance call (Lcom/example/quality/MainActivity;)
W/dalvikvm(27614): threadid=1: thread exiting with uncaught exception (group=0x40acf228)

我的System.loadlibrary调用失败了

UnsatisfiedLinkError: Couldn't load libxuggle: findLibrary returned null

是否可以在Android上使用Xuggler

我做错了什么?

我没做什么?

解决方法

来自Art Clarke的xuggler-users组有一个解释:

I have not attempted to port xuggler to android,but if someone is interested all jvm related code is in the ‘ferry’ module. Memory mgmt is particularly complicated and hard,but in theory a port would be possible.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐