title: How to create a video from images with FFmpeg?
body: <pre><code>ffmpeg -r 1/5 -start_number 2 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
  </code></pre>
  
  <p>This line worked fine but I want to create a video file from images in another folder.
  Image names in my folder are:</p>
  
  <pre><code>img001.jpg
  img002.jpg
  img003.jpg
  ...
  </code></pre>
  
  <p>How could I input images files from a different folder? Example: <code>C:\mypics</code></p>
  
  <p>I tried this command but <code>ffmpeg</code> generated a video with the first image (img001.jpg) only.</p>
  
  <pre><code>ffmpeg -r 1/5 -start_number 0 -i C:\myimages\img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
  </code></pre>