https://github.com/guardianproject/android-ffmpeg-java
是否有任何好的文档可以使用该库代码.没有文档很难使用它. Plz帮助我.
解决方法 我设法让它工作.首先,下载监护人项目ffmpeg library project:
然后在eclipse中导入它. (无需遵循他们的构建过程,NDK只是直接在eclipse中导入他们的项目)
然后右键单击您的主项目(而不是库项目) – >属性 – > AndroID – >图书馆 – >加
然后,以这种方式使用它:
file fileTmp = context.getActivity().getCacheDir(); file fileAppRoot = new file(context.getActivity().getApplicationInfo().dataDir); FfmpegController fc = new FfmpegController(fileTmp,fileAppRoot); final Clip out = new Clip("compiled.mp4"); fc.concatandTrimfilesMP4Stream(vIDeos,out,true,false,new ShellUtils.ShellCallback() { @OverrIDe public voID shellOut(String shellline) { System.out.println("MIX> " + shellline); } @OverrIDe public voID processComplete(int exitValue) { if (exitValue != 0) { System.err.println("concat non-zero exit: " + exitValue); Log.d("ffmpeg","Compilation error. FFmpeg Failed"); } else { if(new file(out.path).exists()) { Log.d("ffmpeg","Success file:"+out.path); } } } });
使用ArrayList< Clip>您想要连接的视频.
总结以上是内存溢出为你收集整理的关于Guardian项目ffmpeg android的文档全部内容,希望文章能够帮你解决关于Guardian项目ffmpeg android的文档所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)