
I very much appreciate the help I've received so far.Use a start-up script to overcome limitations of Motion/FFmpeg and save multiple Raspberry Pi dashboard camera timelapse videos and images, automatically. TLDR How can I batch execute a ffmpeg command (above) on multiple sets of images at once? I am wanting to batch execute this command in each of my folders of images, having it create a video file for each one of the groups of 7. On that post I received great help from the user Gyan, who gave me this command: ffmpeg -framerate 10 -i %d.png -vf "split=2 trim=end_frame=4 trim=start_frame=3,setpts=PTS-STARTPTS,loop=6:4:0,shuffleframes=1 2 3 2 concat=n=2:v=1:a=0" out.mp4. (Please note that that order matters, the numberless file should be the last, but if the files are sorted by alphabetical/date, that should already be the case.)įor each one of these sets of images inside of one of the folders, I am using ffmpeg to make a video file with the guidelines outlined in this post. If one set of these images was named "apple", I would have the following seven images with the following naming structure:Īpple.0_aspect-gigapixel-art-scale-4_00x.png, Apple.1_aspect-gigapixel-art-scale-4_00x.png, Apple.2_aspect-gigapixel-art-scale-4_00x.png, Apple.3_aspect-gigapixel-art-scale-4_00x.png, Apple.4_aspect-gigapixel-art-scale-4_00x.png, Apple.5_aspect-gigapixel-art-scale-4_00x.png Apple_aspect-gigapixel-art-scale-4_00x.png In each folder, the images are in sets of 7, grouped by their name. I have multiple folders each with n images in them, where n is a number divisible by 7.

I'm relatively new to navigating Python libraries, Windows batch processing, and coding as a whole.
