Converting a series of images to a video in Java?

前端 未结 2 1687
轮回少年
轮回少年 2021-01-01 07:46

Currently, the functioning prototype has everything it needs to work: A semi-transparent window for easy resizing on the place you want to record, multiple threads to manag

相关标签:
2条回答
  • 2021-01-01 08:09

    I suggest to use Xuggler for this. Here's an introduction.

    0 讨论(0)
  • 2021-01-01 08:18

    I'd suggest just learning how to call external programs from your java program. Then you can just run that example program you linked to. Or if you want even more capability, use ffmpeg which will do this automatically from the command line as well:

    ffmpeg -i screencapture%d.jpg -vcodec mpeg4 outfile.avi
    

    ffmpeg allows you to customize a lot of things about the output video. Just check out the documentation for all the options.

    The Java command Runtime.getRuntime().exec(...) will let you run whatever command line you pass it. There are many examples of how to do this if you Google it.

    0 讨论(0)
提交回复
热议问题