-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Latest PyAV version breaks torchvision.io.write_video when writing video with audio #6814
Comments
Duplicate of #6790. Keeping this open for now, because it includes reproduction. |
Thanks for the report and the reproduction @nateraw!
And after inspecting the resulting container, I notice that seems like there is a problem for the stream type during add stream since all the streams go to
Note that in
I think this is a bug in pyav on classification on the stream type, but I am not so sure myself. I will try creating issue on cc @bjuncek @jdsgomes that have more insight on video decoder. |
Nice!! thanks for the update @YosuaMichael :) So after they make a release, what will be done here? I noticed the lines that check the installed version simply link to GitHub. We will want to warn not to install Lines I'm referring to: vision/torchvision/io/video.py Lines 15 to 36 in 7cf0f4c
|
Yeah, it seems we could simply add a version check for |
Update: for now, the pypi/conda-forge pyav wheels still contain this bug.
|
🐛 Describe the bug
Description
It seems the latest PyPi release of PyAV (
av==10.0.0
) breakstorchvision.io.write_video
when writing a video containing audio. If you callwrite_video
without audio array, it still seems to work fine - it's just when an audio array is provided that it breaks.Reproducible Example
Here is a colab notebook reproducing the issue:
Here is that same notebook as GitHub gist: https://gist.github.com/nateraw/1123039fc90cefd90d282cf6c297d1d2
Strack Trace
Temporary Solution
Downgrading to
av==9.2.0
fixed the issue for me.Versions
The text was updated successfully, but these errors were encountered: