Android, split gif to frames with ffmpeg

徘徊边缘 提交于 2019-12-21 20:27:38

问题


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

library I use is com.writingminds:FFmpegAndroid:0.3.2

What should Ido to get all frames with normal quality


回答1:


Use

ffmpeg -i path/to/gif -vsync 0 path/to/output$03d.png


来源:https://stackoverflow.com/questions/39944653/android-split-gif-to-frames-with-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!