使用FFmpeg的与Android的NDK [英] Using FFmpeg with Android-NDK
问题描述
我想用 FFmpeg的
与的Android 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
?
最后通知:我用的Android 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:
- 在使用的ffmpeg与Android
- 良好的开始点的基础上ndkr5 在adnroid的ffmpeg
- 另一个很好的起点,为建设ffmpeg的Android版
- 有用的信息来建立的ffmpeg为Android见这里,的这里和<一href="http://ffmpeg-users.933282.n4.nabble.com/Issue-with-cross-compiling-ffmpeg-for-linux-in-windows-td3830825.html">here
- 马斯克确保您使用的Windows路径,而不是
/ cydrive ...
这样做的ffmpeg /安卓/ Cygwin的/ Windows开发人员时,
- 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屋!