如何使用的ffmpeg在Android如何使用、ffmpeg、Android

2023-09-14 00:04:07 作者:Night owl(夜猫)

我要创建JPEG和音频文件,视频文件。 我编译FFmpeg的以Android和我有libffmpeg.so,和OBJ与ithers资源文件夹。

I want to create video file from Jpeg and audio file. I've compiled FFMpeg to android and I've got libffmpeg.so, and obj folder with ithers resources.

不过,如何使用它? 我需要做的USE命令,如:的ffmpeg -i image.jpeg -i audio.mp3 out.avi 请大家帮帮忙。

But how to use it? What I need to do for use command like: "ffmpeg -i image.jpeg -i audio.mp3 out.avi" Please help.

推荐答案

您将需要包括 JNI 的包装方法,你可以从Java调用,这将反过来调用FFmpeg的功能。

You will need to include JNI wrapper methods that you can call from Java, that will in turn invoke the FFmpeg functions.