Ffmpeg solution should work well.
For someone who is having problems with the selection filter "eq (pict_type \, PICT_TYPE_I)", you can try the filter like "eq (pict_type \, I)". This was interrupted for some time, so some versions of ffmpeg might not recognize the constant. The correction can be seen here .
The last team that worked for me was:
ffmpeg -vf select='eq(pict_type\,I)' -i yourVideo.mp4 -vsync 2 -s 160x90 -f image2 thumbnails-%02d.jpeg
sanchitarora
source share