使用FFmpeg与Android-NDK [英] Using FFmpeg with Android-NDK
问题描述
我想使用 FFmpeg
与 Android-NDK
,我在本节非常基础,我需要一些帮助和我在网上研究这个话题,但没有令人满意的解决方案。
1 - 如何使用 FFmpeg
通过Windows操作系统。 (我不想使用Ubuntu,请不要建议。)
2 - 如何插入 FFmpeg
命令通过 NDK
?
最后通知:我使用 android-ndk-r7b
和
Cygwin
。
任何建议将不胜感激。
从你的问题,很难说出你想要/需要什么,所以这里有一些一般的信息: / p>
- 使用ffmpeg与android
- 很好的说明基于ndkr5的adnroid上的ffmpeg
- 另一个很好的起点,用于构建Android的ffmpeg
- 有助于建立ffmpeg for Android的信息,请参阅 here ,这里和这里
- 确保您使用Windows路径而不是
/ cydrive ...
当执行ffmpeg / android / cygwin / windows dev
如果您需要进一步的帮助,请详细说明您想要实现的内容,什么是不工作的...
更新 - 根据评论:
要在Android上使用ffmpeg通过命令行您需要使用 getRuntime.exec将ffmpeg复制到应用程序的
然后你可以运行ffmpeg与以下行,例如:文件
目录和 chmod 755
()
进程p =运行时。 getRuntime()。exec(/ data / data / yourpackagename / files / ffmpeg -i infile.mp4 outfile.mp4)
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 - How can I use FFmpeg
through Windows OS. (I do not want to use Ubuntu, please do not suggest.)
2 - How can I inset FFmpeg
commands via NDK
?
Last notice : I using android-ndk-r7b
and Cygwin
.
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...
UPDATE - as per comments:
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屋!