Build Error: pyav 13.1.0 for on Windows

I tried use pyAV package, but a build error occurred.
pyAV uses FFmpeg, but ActiveState don’t provide it.

How can I fix this problem on ActiveState Builder.

Looking for help with this package that is failing to build in my project.
====build log==============
copying av\video\reformatter.pxd → build\lib.win-amd64-cpython-311\av\video

copying av\video\stream.pxd → build\lib.win-amd64-cpython-311\av\video

copying av\video_init_.pxd → build\lib.win-amd64-cpython-311\av\video

running build_ext

building ‘av.bitstream’ extension

creating build\temp.win-amd64-cpython-311\Release\src\av

“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe” /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\builds\deps\1\installdir\include -IC:\builds\deps\1\installdir\Include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt” “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt” “-IC:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\compiler\include\intel64_win” -IC:\builds\deps\1\installdir\include /Tcsrc\av\bitstream.c /Fobuild\temp.win-amd64-cpython-311\Release\src\av\bitstream.obj

bitstream.c

src\av\bitstream.c(1245): fatal error C1083: Cannot open include file: ‘libavutil/mathematics.h’: No such file or directory

Changing directory from C:\builds\sources\1\pyav-13.1.0 to C:\builds\sources\1\pyav-13.1.0 …

Build complete.
Archiving output…
No files were produced as a result of this build.
Created 502B archive in 0.0s.
Uploading C:\Users\ContainerAdministrator\AppData\Local\Temp\uploadsujsb665_\CHECKSUM → s3://as-builds/production/language/python/pyav/13.1.0/1/b7d2b575-ccbf-5cd8-a2d9-a49fcb52806d/c79f10d4-c5f3-4feb-8477-48956d83b5f3/CHECKSUM.
Uploaded 64B in 0.08s.
Uploading C:\Users\ContainerAdministrator\AppData\Local\Temp\uploadsujsb665_\artifact.tar.gz → s3://as-builds/production/language/python/pyav/13.1.0/1/b7d2b575-ccbf-5cd8-a2d9-a49fcb52806d/c79f10d4-c5f3-4feb-8477-48956d83b5f3/artifact.tar.gz.
Uploaded 502B in 0.03s.
Uploading C:\builds\meta\1\exitcode → s3://as-builds/production/language/python/pyav/13.1.0/1/b7d2b575-ccbf-5cd8-a2d9-a49fcb52806d/c79f10d4-c5f3-4feb-8477-48956d83b5f3/exitcode.
Uploaded 1B in 0.0s.

Runtime Details

  • Language -
  • Platform - Windows

Failing Packages

  • pyav 13.1.0

Reasons

  • Process 'python C:\builds\builder-deps\1\installdir\usr\lib\ActiveStateWheel\wheel_build.py --build-dir C:\builds\sources\1\pyav-13.1.0 --build-backend setuptools.build_meta:legacy --destination-directory C:\builds\sources\1\pyav-13.1.0 ’ returned with 1!
  • Process 'python C:\builds\builder-deps\1\installdir\usr\lib\ActiveStateWheel\wheel_build.py --build-dir C:\builds\sources\1\pyav-13.1.0 --build-backend setuptools.build_meta:legacy --destination-directory C:\builds\sources\1\pyav-13.1.0 ’ returned with 1!

Additional log

usamimikamen-sk,

Thanks for bringing this to our attention - Currently the platform does not provide you with a way to add a C Library, but this dependency relationship is now added.

It may take some time for the change to surface to users - If you send me a project link, I can update it with the current fix.

Otherwise you can view and fork a working project here:

https://platform.activestate.com/ReadyMade/PyAV/distributions

Note: if you require a different version of FFMPEG, you can require and modify that version.