title: Add transition effects and audio to the video which is created by still images in opencv
body: <p>I am using opencv and successfully created a video file using number of images. Now i want to add some effects to the images, Transition effects as we mostly have in slide shows e.g. FadeIn or FadeOut. And a background audio also. Is it possible to do with the opencv??</p>
  
  <p>Also i want to show one image at one second delay? the below code is showing four images in one second. I am new to opencv so please help with that.</p>
  
  <pre><code>import cv
  
  im1 = cv.LoadImage("Sunset.jpg")
  im2 = cv.LoadImage("Blue hills.jpg")
  im3 = cv.LoadImage("Water lilies.jpg")
  im4 = cv.LoadImage("Winter.jpg")
  
  fps = 4.0
  frame_size = cv.GetSize(im1)
  
  writer = cv.CreateVideoWriter("out.avi", -1, fps, frame_size, True)
  
  for i in range(4):
      print cv.WriteFrame(writer, eval('im' + str(i+1)))
  
  del writer
  </code></pre>