title: Speed up the FFmpeg process time in Android
body: <p>I want to loop video until the sound stops, everything works good but it takes too much time.
  if my audio file length is 4 minutes then it takes approx of 4 minutes &amp; the size is also too much, here is my command</p>
  
  <pre><code> String[] cmd = new String[]{"-i",audioFile.getAbsolutePath(),"-filter_complex","movie="+videoFile.getAbsolutePath()+":loop=0,setpts=N/(FRAME_RATE*TB)","-c","copy","-y",createdFile.getAbsolutePath()};
  </code></pre>