# 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

**URL:** <https://discuss.pytorch.org/t/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/170096>\
**Category:** vision\
**Created:** [January 12, 2023, 8:11am UTC](https://discuss.pytorch.org/t/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/170096 "2023-01-12T08:11:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratyush](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@Pratyush](https://discuss.pytorch.org/u/Pratyush)\
**Post date:** [January 12, 2023, 8:11am UTC](https://discuss.pytorch.org/t/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/170096/1 "2023-01-12T08:11:53Z")

</div>

Hi, I was trying to read a video file using [torchvision.io](http://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?

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [January 12, 2023, 8:17am UTC](https://discuss.pytorch.org/t/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/170096/2 "2023-01-12T08:17:45Z")

</div>

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.
