I have a numpy queue with a thousand pictures in it.
output = videoOutput("test.mp4", argv=["--frameRate 10"])
for it in img_list:
cuda_img = cudaFromNumpy(it)
output.Render(cuda_img)
In theory, the video should be 100s, but in practice it is only 1s, and many of those frames are missing.
I tried to add delay and it worked fine.
output = videoOutput("test.mp4", argv=["--frameRate 10"])
for it in img_list:
cuda_img = cudaFromNumpy(it)
output.Render(cuda_img)
time.sleep(0.1)
Please tell me how to make videoOutput work properly without delay.
Hi,
Please find below for an example:
Please try to setup the framerate in the same manner as the bitrate.
For example:
# output
output = videoOutput(args.output,
argv=sys.argv,
options={
'frameRate': 10,
'bitrate': 2500000,
'codec': 'h264'
})
Thanks.
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.