简体   繁体   English

如何在Android中使用ffmpeg二进制文件?

[英]How to use ffmpeg binary in android?

I want make a video from images. 我想用图像制作视频。 I see in some posts ( Using FFmpeg with Android-NDK , Create a Video file from images using ffmpeg images-using-ffmpeg) That use command line, is the best choice?? 我在一些帖子中看到( 将FFmpeg与Android-NDK结合 使用,使用ffmpeg images-using-ffmpeg 从图像创建视频文件 )使用命令行,是最佳选择? it's possible? 这是可能的?

How are build ffmpeg.so? 如何构建ffmpeg.so? How I can add to the project? 如何添加到项目中?

This is the command that pretenfi use: 这是pretenfi使用的命令:

ffmpeg -r 1 -pattern_type glob -i '*.jpg' out.mp4

thanks very much. 非常感谢。 I have 2 weeks search! 我有2周的搜索时间!

Sorry for my English. 对不起我的英语不好。

Definitely, using command line is the simplest way. 绝对,使用命令行是最简单的方法。 It's also most secure. 这也是最安全的。 The main drawback is that launching it every time is slower that with shared lib. 主要缺点是每次使用共享库启动它的速度都较慢。 In your case, you run time-consuming tasks relatively rarely, and the inputs and outputs are already on the file system, so with command line you will be served better. 就您而言,您执行耗时的任务相对很少,并且输入和输出已经在文件系统上,因此使用命令行可以为您提供更好的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM