Android的ffmpeg的JNI的简单包装 [英] Android ffmpeg simple JNI wrapper

查看:155
本文介绍了Android的ffmpeg的JNI的简单包装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图使用现在用了一段时间的命令行访问的ffmpeg的二进制还是一无所获(使用的Runtime.exec)
它看起来像只有这样我就可以把它用C使用的包装访问使用JNI内置的ffmpeg库工作...
主要问题:我有没有codeD C现在超过一年半的几十年,不知道从哪里开始...

I've been trying to use an ffmpeg binary with command line access for a while now and getting nowhere (Using runtime.exec) It looks like the only way I'll be able to get it to work is using a wrapper in C to access the built ffmpeg libraries using JNI... Main problem: I haven't coded C for more than one and a half decades now and wouldn't know where to begin...

我只需要3操作,我需要添加音频视频文件,我需要连接两个视频文件,如果可能的话,我需要90度旋转剪辑(但我没有这个做)...

I just need 3 operations, I need to add audio to a video file, I need to concatenate two video files and if possible I need to rotate a clip by 90 degrees (but I could do without this)...

没有人有任何的例子code,可以为我工作,或者一些好的地方开始(我已经用尽了许多不同的谷歌搜索结果第一页的无果)...

Does anyone have any example code that could work for me, or some good places to start (I've already exhausted much of the first pages of various google results to no avail)...

任何帮助将大大AP preciated!

Any help would be greatly appreciated!

推荐答案

有许多开源项目使用,但为了简单起见,您可以从的这里

There are many open source projects available, But for simplicity, You can start from here

这篇关于Android的ffmpeg的JNI的简单包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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