RuntimeError: Not compiled with video_reader support, to enable video_reader support, please install ffmpeg (version 4.2 is currently supported) and build torchvision from source

Hi, I was trying to read a video file using torchvision.io, i have followed what’s given in the docs and i get the following error-
CODE ----
reader=torchvision.io.VideoReader(video_path,‘video’)
reader.seek(2.0)
frame=next(reader)
ERROR-
RuntimeError: Not compiled with video_reader support, to enable video_reader support, please install ffmpeg (version 4.2 is currently supported) and build torchvision from source.

Can anyone tell how to debug this in colab?

As the error message explains the pre-built binaries do not seem to support the video reader, so you would need to isntall the ffmpeg dependency and build torchvision from source.