-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use VideoReader due to ffmpeg issue #4218
Comments
I'm having the same issue. I don't know how to fix it for now :/ With some versions of ffmpeg, I even get a sefault in ffmpeg:
|
@NicolasHug for FFMPEG, 4.3 is known to have a segfault, that's why we're only supporting 4.2 for now. I'll try to get my hands on a mac to investigate @sallysyw 's issue today |
One way to go around it is to install ffmpeg 4.4 (eg with brew or from source) and comment out the ffmpeg check part in the setup.py (l351-362). With that I can read videos flawlessly |
Not really - Edgar is on vacation, but I've booked him for Thursday to go over this and make a well documented issue that we can hopefully take to Francisco, Ralf and the pytorch builder team. Basically, the errors (that I understand so far are the following)
My workaround is to install 4.2.x from conda-forge and try to link everything against it manually. @vmoens 's suggestion worked for me on a mac when 4.4. was installed from brew. But it's not the neatest solution. |
@bjuncek did you mean this pytorch/builder#554? What I glean from the current repo is that custom builds for windows/mac may never return. |
Hi; I am having the same problem, when trying to work on some videos.This is what I get: 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. I tried to install torchvision and latest version of ffmpeg from the source. I am still getting the same error. |
Hi @kilicsedat : ATM there are a few gotchas (for more detailed info check the setup.py).
What OS are you building it on? |
Hey experts,
Recently I've been trying to use the
torchvision.io.VideoReader
API on my MacOS machine.Description
At first, I was trying to import the API directly, but hitting this issue:
Then I realized that I need to manually install ffmpeg package to get this work.
Firstly I tried conda install:
After this is done, I re-built the torchvision package with
Then I tried
this time I'm hitting a new error:
I also tried the following options:
However, neither of them solves the issue, I'm still getting the python frames error.
Can anyone help? Thanks a lot!
Environment
Results:
The text was updated successfully, but these errors were encountered: