title: how to create video from multiple sequence of images using FFMpeg?
body: <p>Hello all i am new in android developing. I want to create video from sequence of images. And i already fetch images from the specific folder which is resides in external memory card in android devices but i do not know how to use FF MPEG library to convert images into a video file. i had much tried to find out solution but yet i could not get the solution.
  Any help would be appreciated and Thanks in advance. </p>
  
  <p>I implement below code but it does not working.</p>
  
  <p>private void convertImg_to_vid() {</p>
  
  <pre><code>    // TODO Auto-generated method stub
      Process chperm;
      try {
          chperm=Runtime.getRuntime().exec("su");
            DataOutputStream os = 
                new DataOutputStream(chperm.getOutputStream());
  
                os.writeBytes("ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg\n");
                os.flush();
  
                chperm.waitFor();
  
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (InterruptedException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  </code></pre>