I have a video.mp4 file i want to get last frame from video/mp4 file and save as a image in local. If it is possible then please suggest me.




ffmpeg -sseof -3 -i input -update 1 -q:v 1 last.jpg

This will seek to the last three seconds of the input and output all frames. But since -update 1 is set, each frame will be overwritten to the same file, leaving only the last frame remaining.

| improve this answer | |
  • This isn't a problem to me, but for some reason the PNG version of this -- ffmpeg -sseof -3 -i input -update 1 -vframes 1 last.png -- doesn't work. – Rublacava Jul 2 at 10:22
  • Share full log. – Gyan Jul 2 at 18:54
  • ffmpeg -sseof -3 -i AVI300.avi -update 1 -vframes 1 last.png = ffmpeg version N-91990-g49c67e79ca Copyright (c) 2000-2018 the FFmpeg developers\built with gcc 8.2.1 (GCC) 20180813\[...]\-sseof value seeks to before start of file AVI300.avi; ignored\Input #0, avi, from 'AVI300.avi':\Duration: 00:00:02.60, start: 0.000000, bitrate: 36 kb/s[...] - not the full log, but it has the important parts I think. I tried ffmpeg -sseof -3 -i input -update 1 -vframes 1 last.png with a .mov video and it also didn't work. – Rublacava Jul 10 at 21:12
  • Open a new Q and include command and full log. – Gyan Jul 11 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.