We can do more than just download a video.
Here is a command that we can get images from the i-frames of the downloaded video:
$ ffmpeg -i YosemiteHDI.mp4 -f image2 -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync vfr iframes/yi%03d.png
Using the select filter again, the following command selects only frames that have more than 50% of changes compared to previous scene and generates pngs.
$ ffmpeg -i YosemiteHDI.mp4 -vf "select=gt(scene\,0.5), scale=640:360" -vsync vfr scenechange/yosemiteThumb%03d.png
The command stores the extracted frames into scenechage folder.
By using scene change method, we created fewer number of images (22 compared with 116 i-frame selection) while capturing significant scene changes:
We can make an image composed of the images like we produced by the extraction.
Please visit YouTube mosaic-tile page
Click the app icons listed below to see what PyGoogle can does.