4

可能重复:
适用于 android 的 ffmpeg(使用教程:“ffmpeg 和 Android.mk”)

我已经尝试了几种在android中运行FFMPEG的东西,在整个网络上搜索,没有有效或直接的解决方案可用。裁判这个和相关的虽然非常有帮助。

此外,目前我能够在 Ubuntu 12 中构建 FFMPEG。创建了所有 .SO 二进制文件。

我的问题是,如何更改 ffmeg.c 文件以使我能够传递 ffmpeg 命令?

根据通过以下步骤这是可能的。

通过上面的设计,对 ffmpeg.c 的更改很简单。

Change the main(int argc, char **argv) function prototype to a java JNI interface prototype that Android java code can call.
Change the output to stdout to the text files we created.
Comment out a few lines that cause the compilation error.

但我无法更改主要内容以及它将如何。

请帮助我。如果有人已经实现了这件事。

4

0 回答 0