ffmpeg for android(使用教程:“ffmpeg和Android.mk”) [英] ffmpeg for a android (using tutorial: "ffmpeg and Android.mk")

查看:413
本文介绍了ffmpeg for android(使用教程:“ffmpeg和Android.mk”)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个android编译ffmpeg。我已经找到了这个主题的几个帖子,但这些帖子似乎都不起作用。如果试图建立ffmpeg喜欢它发布在[1]。有没有人使用这些教程成功编译ffmpeg?
我不知道如何实现步骤4到5。

I am trying to compile ffmpeg for a android. I have found several posts on this theme but non of these seems to work. If tried to build ffmpeg like it is posted on [1]. Did anybody successfully compile ffmpeg using theses tutorial? I am not sure how to realize step 4 to 5.


STEP4:配置...

STEP4: Configuring ...

STEP5:cd到您的NDK根目录,键入make TARGET_ARCH = arm APP = ffmpeg-org

STEP5: cd to your NDK root dir, type make TARGET_ARCH=arm APP=ffmpeg-org

在我看来,构建像这样的应用程序在第5步的教程中解释需要一些以前的步骤。不幸的是,我没有应用程序在文件夹中。我正在使用当前的Android ndk版本3,并检查出[3]和[4]中的实际ffmpeg版本。我感谢每一个建议。

It seems to me that building an application like it is explained in the tutorial in step 5 need some previous steps. Unfortunately I have no app in the folder to make. I am using the current android ndk release 3 and checked out the actual ffmpeg releases from [3] and [4]. I am thankful for every advice.

[1] http://slworkthings.wordpress.com/

[2] < a href =http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android =nofollow noreferrer> http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android

[3] http://ffmpeg.org/download.html

[1] http://slworkthings.wordpress.com/
[2] http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android
[3] http://ffmpeg.org/download.html

推荐答案

环顾网络。我发现唯一的工作解决方案是由Bambuser提供,它将ffmpeg移植到Android应用程序中。

After looking around the net. The only working solution I found is supplied by Bambuser which ported ffmpeg to use in their android application.

代码在这里: http://bambuser.com/opensource

基本上你将.so文件复制到你的jni / lib目录以及您可能需要的任何.h文件,通过javah创建一个JNI包装器,并且它可以工作。

Basically you copy the .so files to your jni/lib directory, along with any .h files you might need, create a JNI wrapper through javah, and it works.

编辑:

由于这篇文章是为几个打包的ffmpeg项目编写的,所以最简单的编译和使用之一就是: https://github.com/guardianproject/android-ffmpeg

Since this post was written a few packaged ffmpeg projects for android surfaced, one of the easiest ones to compile and use is here: https://github.com/guardianproject/android-ffmpeg .

它采用在运行时静态编译通过shell命令运行的二进制(而不是库)的方法。搜索github for'&$ code> android ffmpeg '用于叉和相关项目。

It takes the approach of statically compiling a binary (not a library) that is ran through shell command in run time. Search github for 'android ffmpeg' for forks and related projects.

没有找到基于JNI的打包方法

Did not find a well packaged method based JNI implementation, though.

这篇关于ffmpeg for android(使用教程:“ffmpeg和Android.mk”)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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