I have hundreds of videos in a folder that I want to make a gif for. Each videos length is different but all videos are longer than 30 seconds. I want to take 10 3 second gif images from a video over the course of the video. For example if the video is 25 minutes long a 3 second recorded gif should be taken every 2.5 minutes (150 seconds).
The finished gifs must also have the same name as the video but ending in .gif all videos are .mp4
The gifs should be 560x340
It would be nice to do this with one command to.