create thumbnails from big movies with FFmpeg takes too long

后端 未结 3 1292
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 03:34

I\'m using this shell command to make thumbnail from VIDEO_FILE from 123 second and save it to THUMBNAIL_FILE.

ffmpeg -i VIDEO_FILE  -r 1 -ss 123 -f image2 THUMB         


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 03:43

    it has happened to me also, changing the argument order fixes this problem. tested on a 1.4GB 90 minute mp4 video - took about 1-2 seconds. before that it took MINUTES...

    try this:

    ffmpeg -ss 123 -i "VIDEO_FILE" "THUMBNAIL_FILE" -r 1 -vframes 1 -an -vcodec mjpeg
    

提交回复
热议问题