C:\VideoLAN\VLC>vlc "path\to\video\file.avi"
--video-filter=scene --vout=dummy --start-time=1
--stop-time=5 --scene-ratio=1 --scene-prefix=img-
--scene-path=path\to\destination\ vlc://quit
Since vlc supports most of the popular video formats you can simply change the video file extension and use it directly.