title: FFmpeg - Transition Effect Between Images of Video Slideshow
body: <p>Trying to get the perfect command for image animation effects.</p>
  
  <p>This is my command to create video from images, but I want to add image transition effect (example is fadein/fadeout) between two images.</p>
  
  <pre><code>public static String[] cmdCreateVideo(int frame,String videoSource, String outPut){
      float duration_frame=1.0F;
      if (frame&lt;= 20) {
          duration_frame = 1.0F;
      }else {
          duration_frame = 0.6F;
      }
      String str5 = "-framerate 1/" + duration_frame + " -start_number 0 -i " + videoSource + " -vcodec mpeg4 -q:v 3 -r 20 -vf scale=480x800 " +outPut;
      return str5.split(" ");
  }
  </code></pre>