Closed christophfink closed 1 month ago
Are you using ffmpeg7, the 12
series still needs ffmpeg 6 or ffmpeg 5
No, it’s ffmpeg 6.1.1
(edit: but I see that ffmpeg 7 is in the staging repositories for Arch, so this will, indeed, be an issue over here in a matter of days or weeks)
Try applying this diff:
--- a/av/bitstream.pxd
+++ b/av/bitstream.pxd
@@ -5,7 +5,7 @@ from av.packet cimport Packet
cdef class BitStreamFilterContext:
- cdef const lib.AVBSFContext *ptr
+ cdef lib.AVBSFContext *ptr
cpdef filter(self, Packet packet=?)
cpdef flush(self)
Thanks, with this change it builds successfully
Try applying this diff:
--- a/av/bitstream.pxd +++ b/av/bitstream.pxd @@ -5,7 +5,7 @@ from av.packet cimport Packet cdef class BitStreamFilterContext: - cdef const lib.AVBSFContext *ptr + cdef lib.AVBSFContext *ptr cpdef filter(self, Packet packet=?) cpdef flush(self)
If this fix is required on the 12.x series it's a shame you prematurely dropped Python 3.8..
@jlaine Not an issue if you make separate branches
This isn't worth making a new release over. Debian distros still use gcc 12, Mac and Windows are unaffected, the AUR people will apply a patch. Plus each release takes an ungodly amount of space on PyPI.
the AUR people will apply a patch I did already: https://aur.archlinux.org/packages/python-av
Overview
PyAV 12.1.0 does not build on my system (Arch Linux, Python 3.12, GCC 14.1.1)
Expected behavior
python setup.py build_ext
finishes successfullyActual behavior
python setup.py build_ext
fails with a GCC errorBuild report:
Investigation
I tried to build the previous version of PyAV 12.0.0 with the same toolchain to ensure that this is not connected to a recent GCC upgrade (or changed libraries). It built successfully.
Reproduction
python setup.py build_ext
Versions
Research
I have done the following: