Java library for creating videos
I would like to know where to find third-party java libraries, specifically I'm looking for something that could generate a video开发者_C百科 from photos, something like power point but for videos... Any suggestion?
The Java Media Framework is an abandoned Sun API that is capable of turning images into MOV format video.
JMF provides some sample code called JpegImagesToMovie(1) that did just that, but it assumed that each JPEG was a single image in a constant frame rate animation. In other words, if the animation was to display one image for two seconds, then spend the next second fading into the next image, and the end result was to be replayed at 10 FPS, then it would take 30 images. It would be the programmer's responsibility to provide the individual images, and image transition frames.
(1) I'd have linked to the Sun version, but since the changeover to Oracle, all the JMF sample code seems to have disappeared.
精彩评论