2

I have the following exmaple code:

import numpy as np
writer = imageio.get_writer('test.mp4', fps=1)

max = 800
resolution = 256

for idx in range(1, max):
    img = np.zeros((resolution,resolution))
    img[: int((idx / max) * resolution), : int((idx / max) * resolution)] = 255
    img = img.astype(np.uint8)
    writer.append_data(img)

writer.close()

The video is just black for fps == 1

What am I missing here? I cannot see any clues in the documentation saying I cannot have fps = 1?

EDIT

For fps >= 10 it seems to be fine.

palimboa
  • 171
  • 10

0 Answers0