title: ffmpeg: Convert gif to video
body: <p>I want to convert a gif file to a video with ffmpeg.
  I'm using:</p>
  
  <pre><code>ffmpeg -y -i /gif/583fd7661b46d.gif -strict -2 -an -b:v 32M /gif/mp4/583fd7661b46d.avi
  </code></pre>
  
  <p>The duration of my gif in photoshop is 27 seconds, but the duration of the video "583fd7661b46d.avi" generated is 15 seconds.
  How can I get the same duration of my gif in the video generated?</p>
  
  <p>I execute this:</p>
  
  <pre><code>ffplay file.gif
  </code></pre>
  
  <p>It steel read without stoping and the "M-V" is incremented
  <a href="https://i.stack.imgur.com/4xf1S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4xf1S.png" alt="enter image description here"></a></p>