Ask Your Question
-1

Movie from images

asked 2013-05-31 16:17:12 -0600

Math03 gravatar image

updated 2013-06-01 11:04:33 -0600

Hi,

I try to convert some images into movie on Android device.

Is that possible without using JNI?

Any clues on how i could achieve that?

Edit : For now, i have an array of the images in a Mat array. I have to create a new movie file and then write all frame in it. So i guess i need to instanciate some kind of encoder and pass it all Mat elements, but i don't find anything like it in the documentation. CameraBridgeViewBase seems to be for camera use. Apparently it's possible using VideoCapture(String filename), but it's seems you can't do that in Android.

Thanks.

Math.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-31 16:48:58 -0600

MysticBE gravatar image

yes it's possible without the JNI, just use the OpenCV Library 2.4.5 and you can work with Java wrappers instead. You should check out the samples in OpenCV-2.4.5-android-sdk\samples. I think tutorial 1 would help you out.

edit flag offensive delete link more

Comments

Ok, i look at tutorial 1, but that doesn't really help me, i don't need the camera. The images i want in the movie are already in memory.

For now, i have an array of the images in a Mat array. I have to create a new movie file and then write all frame in it. So i guess i need to instanciate some kind of encoder and pass it all Mat element, but i don't find anything like it in the documentation.

CameraBridgeViewBase and VideoCapture seems to be for camera use. Apparently it's possible using VideoCapture(String filename), but it's seems you can't do that in Android.

I find VideoWriter but did'nt succeed calling it from JAVA code.

Math03 gravatar imageMath03 ( 2013-06-01 04:23:18 -0600 )edit

Tutorial 1 was just to show you that you can work with Java wrappers instead of JNI, I get that the code does not help you, it was just an answer on your first question. Can't help you for the rest, still learning it all myself

MysticBE gravatar imageMysticBE ( 2013-06-01 08:11:48 -0600 )edit

Ok thanks for the help :)

Math03 gravatar imageMath03 ( 2013-06-01 11:01:26 -0600 )edit

Question Tools

Stats

Asked: 2013-05-31 16:17:12 -0600

Seen: 497 times

Last updated: Jun 01 '13