deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.69k stars 1.98k forks source link

p1ch4/X_video_cockatoo.ipynb issue #86

Open danli349 opened 2 years ago

danli349 commented 2 years ago

Hi,

import imageio

reader = imageio.get_reader('../data/p1ch4/video-cockatoo/cockatoo.mp4')
meta = reader.get_meta_data()
meta
{'plugin': 'ffmpeg',
 'nframes': inf,
 'ffmpeg_version': '4.2.2 built with gcc 9.2.1 (GCC) 20200122',
 'codec': 'h264',
 'pix_fmt': 'yuv444p',
 'audio_codec': 'mp3',
 'fps': 20.0,
 'source_size': (1280, 720),
 'size': (1280, 720),
 'rotate': 0,
 'duration': 14.0}

Can anyone tell me why the 'nframes': inf, is inf? Thanks a lot.