I try to load a low res, high frequency video into and extract and edit some frames and save them as a gif. checking the length of the loaded video gives me "inf" which can not be true, can it?
filename = 'eye0.mp4'
vid = imageio.get_reader(filename, 'ffmpeg')
If I try to display any of the frames with
pylab.imshow(vid.get_data(range(80,120))
all images not matter which index look the same.
reason might be that the nframes is read out wrong.
vid.get_meta_data()
Output:
{'plugin': 'ffmpeg',
'nframes': inf,
'ffmpeg_version': '4.1 built with gcc 8.2.1 (GCC) 20181017',
'codec': 'mpeg4',
'pix_fmt': 'yuv420p',
'fps': 65535.0,
'source_size': (192, 192),
'size': (192, 192),
'duration': 34.42}
Could it be that this ffmpeg_version format is not supported? If someone could help, much appreciated.