Android Question Create video from photos

Almog

Active Member
Licensed User
Hello,

Does anybody know if there is a way to create video from list of images with milisecond per photo, and also save the video?

Thanks in advance
 

ilan

Expert
Licensed User
Longtime User
i am also looking for a way to do that, i found this thread but i cannot understand how to do that. Erelslink from comment #3 is unclear to me how it show you how to create a video file from an array of bitmaps.

can someone please put some light in the darkness :)
thanx
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
If you want to create a real video then MJPEG is not really suitable. It can be useful if you want to create a short low FPS, silent "video".

i understand, acctually what i wanted to do is creating a slideshow of images with background music and export as a mp4 file. i saw that android has support for it using jcodec. i found this:

https://stackoverflow.com/questions...te-a-video-from-an-array-of-images-in-android

B4X:
import org.jcodec.api.awt.SequenceEncoder;
...
SequenceEncoder enc = new SequenceEncoder(new File("filename"));
// GOP size will be supported in 0.2
// enc.getEncoder().setKeyInterval(25);
for(...) {
    BufferedImage image = ... // Obtain an image to encode
    enc.encodeImage(image);
}
enc.finish();

i think it should be possible to do that with inline java code. i will try and see if i can get it to work.
 
Upvote 0
Top