how to create mpeg
video out of list of images using java
codes !
I've tried to use DataOutputStream
but it didn't work and here is a bit of my code :
DataOutputStream dos = new DataOutputStream(new FileOutputStream("s.mpeg"));
DataInputStream dis = new DataInputStream(new FileInputStream("image.jpg"));
while (dis.available()>0)
{
byte data[] = new byte[ dis.available()];
dis.read(data);
dos.write(data);
}
dis.close();
dos.close();
any help please !