

Then I realized that I need to manually install ffmpeg package to get this work.įirstly I tried conda install: conda install ffmpeg=4.2=h677a3f5_0Īfter this is done, I re-built the torchvision package with MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py develop

RuntimeError: Not compiled with video_reader support, to enable video_reader support, please install ffmpeg (version 4.2 is currently supported) andbuild torchvision from source. Video = torchvision.io.VideoReader(video_path, stream)įile "/Users/sallysyw/workspace/vision/torchvision/io/_init_.py", line 104, in _init_

DescriptionĪt first, I was trying to import the API directly, but hitting this issue: File "/Users/sallysyw/workspace/vision/gallery/plot_video_api.py", line 36, in

Recently I’ve been trying to use the torchvision.io.VideoReader API on my MacOS machine.
