title: ffmpeg convert a series of images to video - with crossfade or any other transition between every two frames
body: <p>I am currently able to convert a series of images to video, but I do also need to add transitions / animation in between them.</p>
  
  <pre><code>String[] ffmpegCommand = {"/data/data/mypackage/app_bin/ffmpeg", "-y",
  "-qscale", "1", "-r", "" + framerate, "-i", "/data/data/mypackage/app_ipImg/image%3d.jpg",
  "-t", "" + (((total_images) * delay_of_each_frame_in_seconds) + 4), //"-s",heightwidth,
  "-vcodec", "libx264", "-s", "640x480",
   Environment.getExternalStorageDirectory() + "/photo_directory/myVideo.mp4"};
  </code></pre>
  
  <p><strong>The above command is working for me to create video from image series</strong></p>
  
  <p><strong>But</strong></p>
  
  <p><strong>Now, I do want to add fade or other transition / animation to be displayed in final video before each of the frames</strong>.</p>
  
  <p>I googled a lot, but didn't find any solution to this trouble, yet.</p>
  
  <p>Please suggest me the way.</p>
  
  <p>Thanks in advance.</p>