简体   繁体   中英

How to create a video from a series of images with transition

I want to create a video from a series of images and add a transition between the images (eg, fade in and fade out). I'm looking for a Java solution and not a C++ one (FFmpeg or anything else).

I checked out JCodec and MediaCodec, but none of those support image transitions.

Have you already tried it with OpenCV for Java? OpenCV offers almost everything you need for such a task. To the transitions you would have to worry about then manually with image blending. But that can be solved with OpenCV too. Just take a look at the documentary

EDIT:

It looks like the Java API lacks the appropriate module that can encode a sequence of images. You can fade images in any case. Take a look at the tutorial . This means you would have to crossfade the images with OpenCV and then use another API (eg jcodec) to make a video from the images you create.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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