title: Android, split gif to frames with ffmpeg
body: <p>I need to split my gif file to separate frames of any format (gif, png, doesnt matter). </p>
  
  <p><code>ffmpeg -i path/to/gif -c:v gif -f image2 path/to/output$03d.gif</code></p>
  
  <p>this command really splits gif to frames, but only first frame have a normal quality. All other frames looks like some damaged images</p>
  
  <p><a href="https://i.stack.imgur.com/dlQwv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dlQwv.jpg" alt="enter image description here"></a></p>
  
  <p>library I use is com.writingminds:FFmpegAndroid:0.3.2</p>
  
  <p>What should Ido to get all frames with normal quality</p>