title: how to merge audio file with new video file?is it possible in android?
body: <p>i successfully got video from sequence of images using javacv in android.now i have problem that is how to merge audio to that newly created video.is it possible in android or javacv integration?</p>
  
  <pre><code>Here is my code,
  
  
              String path ="/mnt/sdcard/Video_images"; 
  
  
  
      File folder = new File(path);
  
  
      File[]    listOfFiles = folder.listFiles();  
          if(listOfFiles.length&gt;0)
          {
  
  
        iplimage = new opencv_core.IplImage[listOfFiles.length];
  
  
         for (int j = 0; j &lt; listOfFiles.length; j++) {
  
           String files="";       
  
         if (listOfFiles[j].isFile()) 
         {
         files = listOfFiles[j].getName();
         System.out.println(" j " +j   + listOfFiles[j]);
           }   
  
  
          String[] tokens = files.split("\\.(?=[^\\.]+$)");
         String name=tokens[0]; 
  
      Toast.makeText(getBaseContext(), "size"+listOfFiles.length, Toast.LENGTH_SHORT).show();    
  
  
  
  
        iplimage[j]=cvLoadImage("/mnt/sdcard/Video_images/"+name+".jpg");
  
  
         }
  
      } 
  
  //         
  
  
                                   FFmpegFrameRecorder recorder = new    
                      FFmpegFrameRecorder("/mnt/sdcard/Video_images      
  
                     /output"+System.currentTimeMillis()+".mp4",200,150);                                                                                      
  
           try {
               recorder.setVideoCodec(a); //CODEC_ID_MPEG4 //CODEC_ID_MPEG1VIDEO
  
               recorder.setFrameRate(24);                     
               recorder.setPixelFormat(PIX_FMT_YUV420P); //PIX_FMT_YUV420P
  
  
               recorder.start();
  
  
              for (int i=0;i&lt;iplimage.length;i++)
  
                 {
  
                   recorder.record(iplimage[i]);
  
  
  
                  }
               recorder.stop();
              }
           catch (Exception e){
               e.printStackTrace();
             }
  </code></pre>
  
  <p>in this code,how to merge my audio file?</p>