I am trying to split a video
N being the total number of frames) into contiguous chunks according to a fixed number of frames (say
M = 100).
Specifically this process should yield:
video_0.avi: Frames 0 to
It is important that each chunk
video_*.avi has exactly
M frames. Therefore, the last chunk can be discarded if
N is not divisible by
I found related issues (e.g. Split video file into pieces with ffmpeg) but find myself struggling to replace the specification in seconds with the number of frames.