3

I need to split my gif file to separate frames of any format (gif, png, doesnt matter).

ffmpeg -i path/to/gif -c:v gif -f image2 path/to/output$03d.gif

this command really splits gif to frames, but only first frame have a normal quality. All other frames looks like some damaged images

enter image description here

library I use is com.writingminds:FFmpegAndroid:0.3.2

What should Ido to get all frames with normal quality

P. Ilyin
  • 761
  • 10
  • 28

1 Answers1

8

Use

ffmpeg -i path/to/gif -vsync 0 path/to/output%03d.png
evandrix
  • 6,041
  • 4
  • 27
  • 38
Gyan
  • 85,394
  • 9
  • 169
  • 201