title: Why getting and how to fix the warning/error on ffmpeg : not enough frames to estimate rate; consider increasing probesize?
body: <p>The command I'm using :</p>
  
  <pre><code>ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p camera1.mp4
  </code></pre>
  
  <p>Stream #0: not enough frames to estimate rate; consider increasing probesize</p>
  
  <p>And also :</p>
  
  <p>Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.</p>
  
  <p>And then all the time :</p>
  
  <p>Past duration 0.810524 too large</p>
  
  <p>Some info :</p>
  
  <blockquote>
    <p>ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p camera1.mp4
    ffmpeg version N-81045-g450cf40 Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 28.100 / 55. 28.100
      libavcodec     57. 50.100 / 57. 50.100
      libavformat    57. 42.100 / 57. 42.100
      libavdevice    57.  0.102 / 57.  0.102
      libavfilter     6. 47.100 /  6. 47.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  1.100 /  2.  1.100
      libpostproc    54.  0.100 / 54.  0.100
    [gdigrab @ 00000000026a24a0] Capturing whole desktop as 1920x1080x32 at (0,0)</p>
  </blockquote>