pytorch / pytorch/vision

Fails to build with ffmpeg 8

Open
#9,233 5 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.