imageio.mimsave("video.mp4", result, fps=4) You can change these parameters in the pipeline call: Motion field strength (see the paper, Sect. 3.3.1):motion_field_strength_x and motion_field_strength_y. Default: motion_field_strength_x=12, motion_field_strength_y=12 T and T' (see the paper, Sect. 3.3.1)t0 and t1 in the range {0, ..., num_inference_steps}. Default: t0=45, t1=48 Video length:video_length, the number of frames video_length to be generated. Default: video_length=8 We can also generate longer videos by doing the processing in a chunk-by-chunk manner:   Copied import torch