FFMPEG- Convert video to images

后端 未结 3 462
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 08:03

how can i convert a video to images using ffmpeg? Example am having a video with total duration 60 seconds. I want images between different set of duration like between 2-6 seco

3条回答
  •  失恋的感觉
    2021-01-31 08:42

    Official ffmpeg documentation on this: Create a thumbnail image every X seconds of the video

    Output one image every second:

    ffmpeg -i input.mp4 -vf fps=1 out%d.png
    

    Output one image every minute:

    ffmpeg -i test.mp4 -vf fps=1/60 thumb%04d.png
    

    Output one image every 10 minutes:

    ffmpeg -i test.mp4 -vf fps=1/600 thumb%04d.png
    

提交回复
热议问题