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:

December 2025

S M T W T F S
 12345 6
7 8910111213
14151617181920
21222324252627
28293031   

Expand Cut Tags

No cut tags

Style Credit