LAST_FRAME=`ffprobe -show_streams xxx.mp4 2>/dev/null|fgrep nb_frames|head -1|perl -ne '/(\d+)/; print $1-1'`
ffmpeg -i xxx.mp4 -vf "select='eq(n,$LAST_FRAME)'" -vframes 1 last_frame.png
Tags:

January 2026

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Expand Cut Tags

No cut tags

Style Credit