PyAV-Org / PyAV

Pythonic bindings for FFmpeg's libraries.
https://pyav.basswood-io.com/
BSD 3-Clause "New" or "Revised" License
2.44k stars 359 forks source link

does not build against ffmpeg 7 #1463

Closed dadosch closed 1 month ago

dadosch commented 1 month ago

Overview

A build of PyAV with ffmpeg 7.0.1 fails with the following error:

src/av/frame.c:3811:38: Fehler: »struct AVFrame« hat kein Element namens »channel_layout«; meinten Sie »ch_layout«?
src/av/frame.c:3821:36: Fehler: »struct AVFrame« hat kein Element namens »channels«

The error translates to "has no member named …" and is related to the deprecation of channel_layout and channels some time ago and it's removal now with ffmpeg 7.

https://github.com/FFmpeg/FFmpeg/commit/65ddc74988245a01421a63c5cffa4d900c47117c

The installed ffmpeg version is 7.0.1

Expected behavior

Build should succeed.

Actual behavior

See error above.

Build report:

pip install av --no-binary av

Investigation

see above

Reproduction

Build PyAV from source with ffmpeg 7 libraries.

Versions

Research

I have done the following:

Additional context

otakutyrant commented 1 month ago

According to PyAV Release Schedule, it doesn't support ffmpeg 7 until 13.0.0 which is released on September/October 2024.

WyattBlue commented 1 month ago

Fixed on the main branch.