title: How can i use ffmpeg.exe command line to create a video file from number of images on hard disk?
body: <p>In command prompt window i typed in the directory of the images:</p>
  
  <p>D:\SavedScreenshots>ffmpeg.exe  -r 3 -i Imgp%04d.bmp -s 720x480 test.avi</p>
  
  <p>The images file are Bmp type.
  The first image file name is: screenshot0.bmp
  The last one is: screenshot168.bmp</p>
  
  <p>Example of one image details: Width 1920 Height 1080 Bit Depth 32</p>
  
  <p>The ffmpeg.exe file is in the same directory of the images.</p>
  
  <p>In the prompt windows console ouput i see:</p>
  
  <p>[image2 @ 00000000025624a0] Could find no file with path 'Imgp%04d.bmp' and index in the range 0-4
  Imgp%04d.bmp: No such file or directory</p>
  
  <p>Then how should i do it the command line ?</p>
  
  <p>I found the problem and now it's working but it's very strange.</p>
  
  <p>In c# i create the screenshots of my desktop this images on the hard disk i want to create video file from.
  In c# i did in a timer tick event:</p>
  
  <pre><code>int count = 0;
          private void timer1_Tick(object sender, EventArgs e)
          {
              Bitmap bmp = new Bitmap(sc.CaptureScreen());
              bmp.Save(@"D:\SavedScreenshots\screenshot" + count + ".bmp");
              bmp.Dispose();
              count ++;
          }
  </code></pre>
  
  <p>This saved the images on the hard disk all of them in sizes between 129-132kb each file. I could edit/open the images and see them no problems but ffmpeg could not handle them gave me this error.</p>
  
  <p>Now i changed the code in the c# to this:</p>
  
  <pre><code>bmp.Save(@"D:\SavedScreenshots\screenshot" + count + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp);
  </code></pre>
  
  <p>I added the part: System.Drawing.Imaging.ImageFormat.Bmp</p>
  
  <p>Now each image file it's size is about 7MB !!!!
  And now ffmpeg can handle it with the command line:</p>
  
  <pre><code>ffmpeg.exe -framerate 3 -i screenshot%d.bmp -vf scale=ntsc,setdar=16/9 test.avi
  </code></pre>
  
  <p>I wonder why when the images size was 130KB ffmpeg couldn not handle it didn't find the files or directory and when they are 7MB it does find and create the video file ?</p>
  
  <p>Even now when i type as command line:</p>
  
  <pre><code>ffmpeg  -i screenshot%03.bmp -s 720x480 test.avi
  </code></pre>
  
  <p>I'm getting erorr not such file or directory</p>
  
  <p>Only when i type: </p>
  
  <pre><code>ffmpeg  -i screenshot%d.bmp -s 720x480 test.avi
  </code></pre>
  
  <p>It's working.</p>
  
  <p>Why when doing screenshot%3.bmp it's not working but screenshot%d.bmp does working ?</p>
  
  <p>Also doing screenshot0.bmp worked. Only screenshot%3.bmp not working.
  And in all examples i saw i had to make screenshot%3 or %2 but they give me the error no such directory file.</p>