Dump last frame of video file using ffmpeg/mencoder/transcode et. al

后端 未结 5 1654
执笔经年
执笔经年 2021-01-01 18:21

I\'d like to grab the last frame in a video (.mpg, .avi, whatever) and dump it into an image file (.jpg, .png, w

5条回答
  •  灰色年华
    2021-01-01 18:22

    One thing I have not seen mentioned is that the expected frame count can be off if the file contains dupes. If your method of counting frames is causing your image extraction command to come back empty, this might be what is mucking it up.

    I have developed a short script to work around this problem. It is posted here.

提交回复
热议问题