简体   繁体   English

怎么把BufferedImage转换成AVI?

[英]How to convert BufferedImage to AVI?

This question is an extension to my previous question: 这个问题是我上一个问题的扩展:
Problems associated with my screenshot-taking software 与我的截图软件有关的问题
Now with the problems solved, I want to convert the .png images to .avi file. 现在解决了问题,我想将.png图像转换为.avi文件。 Now the format of images and video doesn't really matter since the images are written to the disk using javax.swing.ImageIO so I can change the save format. 现在图像和视频的格式并不重要,因为图像是使用javax.swing.ImageIO写入磁盘的,所以我可以更改保存格式。 So they are BufferedImage before being made as .png 因此它们在被创建为.png之前是BufferedImage
Most questions here on similar topics were asked to use some 3rd party software and all. 在这里,有关类似主题的大多数问题都被要求使用某些第三方软件。 I want to do it using just Java. 我只想用Java来做。
Where do I begin? 我从哪开始呢?
Can you help me understand this? 能帮我理解吗?

If you don't mind using 3rd party libraries you might want to take look at Xuggler . 如果您不介意使用第三方库,则可能需要看看Xuggler It's a wrapper for ffmpeg that helped me some time ago. 它是ffmpeg的包装,对我有帮助。

Update: This demo might contain all you need: https://github.com/xuggle/xuggle-xuggler/blob/master/src/com/xuggle/mediatool/demos/CaptureScreenToFile.java 更新:此演示可能包含您需要的所有内容: https : //github.com/xuggle/xuggle-xuggler/blob/master/src/com/xuggle/mediatool/demos/CaptureScreenToFile.java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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