【问题标题】:Is there are way to save all the frames of a GIF into PNGs using ffmpeg?有没有办法使用 ffmpeg 将 GIF 的所有帧保存到 PNG 中?
【发布时间】:2021-02-23 17:28:02
【问题描述】:

我的文件系统上有一个.gif 文件,我希望它的所有帧都保存为.png 文件。如何使用 ffmpeg 做到这一点?

【问题讨论】:

    标签: image ffmpeg png gif


    【解决方案1】:

    According to the docs-vsync 0 确保“每个帧都通过其时间戳从多路复用器传递到多路复用器。” frame%d.png 然后将每个帧存储为一个文件,其中%d 将替换为帧号。

    ffmpeg -i your_file.gif -vsync 0 frame%d.png

    【讨论】:

      最近更新 更多