使用FFmpeg的与Android的NDK [英] Using FFmpeg with Android-NDK

查看:149
本文介绍了使用FFmpeg的与Android的NDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 FFmpeg的的Andr​​oid NDK ,我感到非常基本都在这一节中,我需要一些帮我考证一下这个话题之前,在网络上,但没有得到满意的解决方案。

I want to use FFmpeg with Android-NDK and I am very basic in this section, I need some help and I research about this topic before on the net, but got no satisfactory solution.

1 - 我如何使用 FFmpeg的通过Windows操作系统。 (我不想使用Ubuntu,请不建议。)

1 - How can I use FFmpeg through Windows OS. (I do not want to use Ubuntu, please do not suggest.)

2 - ?我怎样才能镶嵌 FFmpeg的通过 NDK

2 - How can I inset FFmpeg commands via NDK?

最后通知:我用的Andr​​oid NDK-R7B 的Cygwin

任何建议将AP preciated。

Any suggestion would be appreciated.

推荐答案

从你的问题就很难说究竟你想/需要...所以这里是一些基本信息:

From your question it is hard to tell what exactly you want/need... so here is some general information:

  • using ffmpeg with android
  • good stating point for ffmpeg on adnroid based on ndkr5
  • another good starting point for building ffmpeg for android
  • helpful information to build ffmpeg for android see here, here and here
  • maske sure that you use Windows paths instead of /cydrive... when doing ffmpeg/android/cygwin/windows dev

如果您需要进一步的帮助,请解释一下你想要什么来实现的,什么是不工作...

IF you need further help please explain exactly what you want to achieve and what is not working...

更新 - 按评论:

要在Android上通过命令行使用的ffmpeg,你需要复制的ffmpeg到应用程序的文件目录,行chmod 755 它使用 getRuntime.exec(),那么你可以用下面的行例如运行ffmpeg的:

To use ffmpeg via commandline on Android you need to copy ffmpeg into your application's files directory and chmod 755 it using getRuntime.exec() then you can run ffmpeg with the following line for example:

Process p = Runtime.getRuntime().exec("/data/data/yourpackagename/files/ffmpeg -i infile.mp4 outfile.mp4")

这篇关于使用FFmpeg的与Android的NDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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