0

I have a folder of mp4 videos on Windows 10. I am trying to find a way to write a .bat file to spit out a jpeg of the last frame of all videos (there is over 100 videos)

I found vlc can dump a jpeg but it looks like it requires a timeindex and since each video ends at a different time this will not work. I couldnt find a "lastFrame" option in the vlc docs.

Is there anything else that can do this that is free? I was surprised to not see this requested that much in my yagooglizing.

Joe
  • 234
  • 5
  • 18
  • Possible duplicate of [Dump last frame of video file using ffmpeg/mencoder/transcode et. al](https://stackoverflow.com/questions/5248283/dump-last-frame-of-video-file-using-ffmpeg-mencoder-transcode-et-al) – genpfault May 15 '19 at 20:20
  • Seems to be linux based as mentioned I need a windows solution. no accepted solution on this question and most answered is using a linux bash script. – Joe May 15 '19 at 21:02

1 Answers1

1

You could extract all the frames as PNG images and then delete every frame except the last one, extraction would look like:

ffmpeg -i video.webm Frame%04d.png

You would need to write your own script to look at the filename, find the one with the largest int value and then delete the others.

MoDJ
  • 4,309
  • 2
  • 30
  • 65
  • that would be an extremely intensive process considering some videos are half an hour to an hour long. I would like to just dump a single image rather than the entire contents – Joe May 15 '19 at 20:58