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. 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. So they are BufferedImage before being made as .png
Most questions here on similar topics were asked to use some 3rd party software and all. I want to do it using just Java.
Where do I begin?
Can you help me understand this?
- 1Going over kr.forums.oracle.com/forums/thread.jspa?threadID=1262127 and the answer provided there is simply so genius!Dummy Derp– Dummy Derp2012-09-12 11:25:46 +00:00Commented Sep 12, 2012 at 11:25
Add a comment |
1 Answer
If you don't mind using 3rd party libraries you might want to take look at Xuggler. It's a wrapper for ffmpeg that helped me some time ago.
Update: This demo might contain all you need: https://github.com/xuggle/xuggle-xuggler/blob/master/src/com/xuggle/mediatool/demos/CaptureScreenToFile.java
7 Comments
Dummy Derp
It looks daunting. The tutorials, too!
DerMike
I agree, the online tutorials are sub par.
Dummy Derp
please lets stick to the java that comes from Oracle :p
DerMike
Alright, never trust a file format you have not parsed yourself. ;)
Dummy Derp
never try to learn something advanced about Java when you haven't even done the basics well :p
|