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.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...