We have a set of listed resources available on the website. Our primary means of support is our discussion forum:
/vision/torchvision/csrc/cpu/video_reader/FfmpegHeaders.h:4:10: fatal error: libavcodec/avcodec.h: No such file or directory
#include
^~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
Hi,
It looks like you don't have ffmpeg available in your system, or the include files are not in the expected directory.
Can you give more information about your system?
Also, if you don't need ffmpeg and the video reading functionality, you can just disable this branch https://github.com/pytorch/vision/blob/cca0c77a9ac5aa782b0811d850f246d73b0b4a1b/setup.py#L132
with a False, so that the video reading functionality won't be compiled.
Plus, we have recently fixed some issues with our nightly packages, so by tomorrow we should have new nightly packages available, so that you can avoid compiling torchvision yourself.
thanks , I no need for ffmpeg at this time. I only use for image.
This issue appears to be stale, so I'm closing it. If you think it should remain open, feel free to reopen it.
Most helpful comment
Hi,
It looks like you don't have ffmpeg available in your system, or the include files are not in the expected directory.
Can you give more information about your system?
Also, if you don't need ffmpeg and the video reading functionality, you can just disable this branch https://github.com/pytorch/vision/blob/cca0c77a9ac5aa782b0811d850f246d73b0b4a1b/setup.py#L132
with a
False, so that the video reading functionality won't be compiled.Plus, we have recently fixed some issues with our nightly packages, so by tomorrow we should have new nightly packages available, so that you can avoid compiling torchvision yourself.