title: FFMPEG:Multiple Image frames + 1 Audio =1 Video
body: <p>I am using this library <a href="https://github.com/pvskalyan/Android-MJPEG-Video-Capture-FFMPEG?source=c" rel="nofollow">Android-MJPEG-Video-Capture-FFMPEG</a>  to and getting the frames with using the camera..I am Using below FFMPEG command for this</p>
  
  <pre><code>String[] ffmpegCommand = {
                      "/data/data/com.mobvcasting.mjpegffmpeg/ffmpeg", "-r",
                      "" + p.getPreviewFrameRate(), "-b", "1000000",
                      "-vcodec", "mjpeg", "-i",
                      TEMPIMAGEPATH + "frame_%05d.jpg", "-i",
                      VIDEOPATH + "video.mov" };
  </code></pre>
  
  <p>Its working fine..while getting the frames i am also recording the audio.now i want to add audio to the output video..I have tried with this command but its not working..</p>
  
  <pre><code>String[] ffmpegCommand = {
                      "/data/data/com.mobvcasting.mjpegffmpeg/ffmpeg", "-r",
                      "" + p.getPreviewFrameRate(), "-b", "1000000",
                      "-vcodec", "mjpeg", "-acodec", "copy", "-i",
                      TEMPIMAGEPATH + "frame_%05d.jpg", "-i",
                      VIDEOPATH + "audio.mp4", VIDEOPATH + "video.mov" };
  </code></pre>
  
  <p>searched in google but no working solutions found..</p>
  
  <p>QUESTION::</p>
  
  <pre><code>what is the correct command for combining audio and frames into video??
  </code></pre>