如何在Android Studio项目中使用最新的FFMPEG? [英] How to use latest FFMPEG in Android Studio project?

查看:372
本文介绍了如何在Android Studio项目中使用最新的FFMPEG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的任务,可以从多个图像和一个音频文件制作视频,经过大量搜索后发现可以使用FFMPEG,但是遗憾的是,没有针对FFMPEG的更新教程,只有很少但过时的教程,其中大多数是不工作. 正如我按照教程

I have a simple task to make a video from multiple images and an audio file, After searching a lot found that its possible with FFMPEG, Unfortunately there are no updated tutorials for FFMPEG, there are few but outdated and most of them are not working. As I have compiled FFMPEG for Android using NDK android-ndk-r10e and ffmpeg-2.8.6 on my MAC with Android Studio following the tutorial http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ It makes the .so files as

现在我不知道要怎么做才能将其集成到我的Android项目中,我已经检查过了,

Now I can't understand what should I do to integrate this in my Android project, I have also checked,

如何在android studio中使用Ffmpeg?

如何在android中使用ffmpeg?

Android上的FFmpeg

主要是这个

http://www.roman10.net/how-to-build-android-applications-based-on-ffmpeg-by-an-example/

https://github.com/roman10/android-ffmpeg-tutorial

但是它不起作用并且有错误无法解决.任何人都可以提及使用FFMPEG .so文件时应遵循的一些步骤,如所附图片所示.

But its not working and having errors with no way to resolve this. Can anyone please mention some steps that should be followed to use FFMPEG .so files as in image attached.

推荐答案

有一个非常简单的解决方案,有一个针对Android的预编译库,如下所示

There's a very easy solution for this, There's a precompiled library for android, as below https://github.com/WritingMinds/ffmpeg-android-java Simply include this as a gradle project in your code and add few methods as per their documentation and you are done with FFMPEG commands in android. This library is not very updated and have some missing features but still its good to use for many simple tasks.

这篇关于如何在Android Studio项目中使用最新的FFMPEG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆