I have hundreds of videos in a folder /home/videos/ and I would like to create a gif for each video.

The gif should be comprised of 10 different screenshots across the videos length. So for example if a video is 30 minutes long a screenshot should be taken every 3 minutes and all the 10 screenshots should be turned into a gif.

The gif must also be called exactly what the video is named. For example '/home/videos/video 1 (test).mp4 gif should be saved to '/home/videos/video 1 (test).gif'

Can I do this with ffmpeg?

  • 1
    Your question is very broad, but you could accomplish this with a combination of batch/bash/PowerShell, this answer and this documentation. – Worthwelle Jul 2 '18 at 22:23
  • That appears to just make a gif for 3 seconds 30 seconds into the video. I want a gif made up of 10 images (2 seconds long each) spread evenly across the length of the video. – rdphelp31 Jul 2 '18 at 22:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.