Fails to build with ffmpeg 8
Open
@NicolasHug is already working on this.
Since Oct 1, 2025.
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
🐛 Describe the bug
Attempting to rebuild our torchvision packages at Arch Linux against ffmpeg 8 fails with:
/build/torchvision/src/python-vision-0.23.0/torchvision/csrc/io/decoder/video_stream.cpp: In member function ‘virtual void ffmpeg::VideoStream::setHeader(ffmpeg::DecoderHea
der*, bool)’:
/build/torchvision/src/python-vision-0.23.0/torchvision/csrc/io/decoder/video_stream.cpp:125:32: error: ‘AVFrame’ {aka ‘struct AVFrame’} has no member named ‘key_frame’
125 | header->keyFrame = frame_->key_frame;
| ^~~~~~~~~
Versions
0.23.0 but does not seemed to be fixed on master either
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.