Fastest way to extract frames using ffmpeg?

前端 未结 7 1472
礼貌的吻别
礼貌的吻别 2020-12-07 07:20

Hi I need to extract frames from videos using ffmpeg.. Is there a faster way to do it than this:

ffmpeg -i file.mpg -r 1/1 $filename%03d.jpg
<
7条回答
  •  盖世英雄少女心
    2020-12-07 07:41

    I tried it. 3600 frame in 32 seconds. your method is really slow. You should try this.

    ffmpeg -i file.mpg -s 240x135 -vf fps=1 %d.jpg
    

提交回复
热议问题