Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.
One select expression names every index: a run of consecutive indices as between(n,first,last) and a lone index as eq(n,index), joined by +. -fps_mode passthrough keeps each selected frame once with its own timestamp instead of duplicating or dropping frames to a constant rate. The k-th selected frame, counting from zero in ascending index order, is written as <directory>/s<k>.png with k padded to five digits, in 8-bit RGB.
It throws for an empty list and for an index that is not a whole number of zero or more.
Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.
One
selectexpression names every index: a run of consecutive indices asbetween(n,first,last)and a lone index aseq(n,index), joined by+.-fps_mode passthroughkeeps each selected frame once with its own timestamp instead of duplicating or dropping frames to a constant rate. The k-th selected frame, counting from zero in ascending index order, is written as<directory>/s<k>.pngwithkpadded to five digits, in 8-bit RGB.It throws for an empty list and for an index that is not a whole number of zero or more.