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

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

问题描述

我想使用 FFmpeg Android-NDK ,我在本节非常基础,我需要一些帮助和我在网上研究这个话题,但没有令人满意的解决方案。



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



2 - 如何插入 FFmpeg 命令通过 NDK



最后通知:我使用 android-ndk-r7b Cygwin



任何建议将不胜感激。

解决方案

从你的问题,很难说出你想要/需要什么,所以这里有一些一般的信息: / p>



如果您需要进一步的帮助,请详细说明您想要实现的内容,什么是不工作的...



更新 - 根据评论:



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

 进程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:

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屋!

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