如何使机器人像flipagram从组图像视频 [英] How to make a video from set of images in android like flipagram

查看:124
本文介绍了如何使机器人像flipagram从组图像视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经寻找解决方案,并发现 - Java的简历 - FFmpeg的

I have searched for the solution and found - Java CV - FFmpeg

需要一步一步地将它们集成这样

Need step by step to integrate them like this

推荐答案

的步骤整合FFMPEG

(1)从这里下载的ffmpeg: http://bambuser.com/opensource 。它 包含的脚本打造FFMPEG为Android。

(1.) Download ffmpeg from here: http://bambuser.com/opensource. It contains scripts to build ffmpeg for android.

(2)修改build.sh。替换com.bambuser.broadcaster你的包名。您还需要设置FFmpeg的标志,以便于codeCS你感兴趣

(2.) Modify build.sh. Replace "com.bambuser.broadcaster" with your package name. You also need to set the ffmpeg flags to enable to codecs you're interested in.

(3)运行build.sh,并复制生成/ ffmpeg的目录复制到您的应用程序的JNI / lib目录下。

(3.) Run build.sh, and copy the build/ffmpeg directory into your apps jni/lib directory.

(4)使用fasaxc的Makefile从SO职务。

(4.) Use fasaxc's makefile from the SO post.

(5)建立在你的JNI目录native.c文件和一个Java包装。首先,你可以模拟后HELLO-JNI NDK样本(/样本/ HELLO-JNI)。

(5.) Create a native.c file in your jni directory and a java wrapper. To start with you can model it after hello-jni in NDK samples (/samples/hello-jni).

包含头文件在你的native.c文件中是这样的:#includelibav codeC / AV codec.h。再给你需要的功能:AV codec_register_all(),等等...

(6.) Include headers in your native.c file like this: #include "libavcodec/avcodec.h". And call the functions you need: avcodec_register_all(), etc...

(7)包括在你的根活动的机库中加入:     静态{         System.loadLibraries();     }

(7.) Include the native libraries in your root activity by adding: static { System.loadLibraries(""); }

此外,还有是刘绯澎的博客的一个重要环节 - 的 http://www.roman10.net/how-to-build-ffmpeg-for-android/

这篇关于如何使机器人像flipagram从组图像视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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