title: Join images and audio to result video
body: <p>I have a lot of images with different sizes (i.e. 1024x768 and 900x942) and an audio file (audio.mp3) of 30 seconds and I need to create a video from them.</p>
  
  <p>I'm trying it now with: result%d.png (1 to 4) and audio.mp3</p>
  
  <pre><code>ffmpeg -y -i result%d.png -i audio.mp3 -r 30 -b 2500k -vframes 900
  -acodec libvo_aacenc -ab 160k video.mp4
  </code></pre>
  
  <p>The video <strong>video.mp4</strong> has 30 seconds but the 3 first images is showed very quickly when the last image remains until the end of the audio.</p>
  
  <p>Each image needs to be showed in a equal time until the end of the audio. Anyone knows how to do it?</p>
  
  <p>The number of the images will vary sometimes.</p>