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