SolvedPyAV The PyAV library does not install properly for version 7.0.1

Overview

While installing the PyAV package via. PYPI (pip install av), the build breaks. And it does not install.

Expected behavior

It was expected that the package will install after ffmpeg version > 4 was installed.

Actual behavior

The build/install fails with the following error

Build report:

building 'av.sidedata.motionvectors' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/sidedata/motionvectors.c -o build/temp.linux-x86_64-3.7/src/av/sidedata/motionvectors.o
  src/av/sidedata/motionvectors.c: In function __pyx_pf_2av_8sidedata_13motionvectors_14_MotionVectors_2__repr__:
  src/av/sidedata/motionvectors.c:2345:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(((unsigned int)__pyx_v_self->__pyx_base.ptr->data)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error)
                                                ^
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/sidedata/motionvectors.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/sidedata/motionvectors.cpython-37m-x86_64-linux-gnu.so
  building 'av.data.stream' extension
  creating build/temp.linux-x86_64-3.7/src/av/data
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/data/stream.c -o build/temp.linux-x86_64-3.7/src/av/data/stream.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/data/stream.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/data/stream.cpython-37m-x86_64-linux-gnu.so
  building 'av.filter.filter' extension
  creating build/temp.linux-x86_64-3.7/src/av/filter
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/filter/filter.c -o build/temp.linux-x86_64-3.7/src/av/filter/filter.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/filter.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/filter/filter.cpython-37m-x86_64-linux-gnu.so
  building 'av.filter.link' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/filter/link.c -o build/temp.linux-x86_64-3.7/src/av/filter/link.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/link.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/filter/link.cpython-37m-x86_64-linux-gnu.so
  building 'av.filter.context' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/filter/context.c -o build/temp.linux-x86_64-3.7/src/av/filter/context.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/context.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/filter/context.cpython-37m-x86_64-linux-gnu.so
  building 'av.filter.pad' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/filter/pad.c -o build/temp.linux-x86_64-3.7/src/av/filter/pad.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/pad.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/filter/pad.cpython-37m-x86_64-linux-gnu.so
  building 'av.filter.graph' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/filter/graph.c -o build/temp.linux-x86_64-3.7/src/av/filter/graph.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/graph.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/filter/graph.cpython-37m-x86_64-linux-gnu.so
  building 'av.codec.context' extension
  creating build/temp.linux-x86_64-3.7/src/av/codec
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/codec/context.c -o build/temp.linux-x86_64-3.7/src/av/codec/context.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -L/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/codec/context.o -lswresample -lavutil -lavcodec -lavformat -lswscale -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/codec/context.cpython-37m-x86_64-linux-gnu.so
  building 'av.codec.codec' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -Ibuild/temp.linux-x86_64-3.7/include -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/codec/codec.c -o build/temp.linux-x86_64-3.7/src/av/codec/codec.o
  src/av/codec/codec.c: In function __pyx_pymod_exec_codec:
  src/av/codec/codec.c:6061:36: error: AV_CODEC_CAP_HARDWARE undeclared (first use in this function); did you mean AV_CODEC_CAP_DR1?
     __pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L1_error)
                                      ^~~~~~~~~~~~~~~~~~~~~
                                      AV_CODEC_CAP_DR1
  src/av/codec/codec.c:6061:36: note: each undeclared identifier is reported only once for each function it appears in
  src/av/codec/codec.c:6082:36: error: AV_CODEC_CAP_HYBRID undeclared (first use in this function); did you mean AV_CODEC_CAP_DR1?
     __pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 128, __pyx_L1_error)
                                      ^~~~~~~~~~~~~~~~~~~
                                      AV_CODEC_CAP_DR1
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for av

Investigation

I tried to compile download the av package and compile it using setup.py and the --ffmpeg-dir flag pointing to the ffmpeg directory. Installation fails.

Reproduction

Have not tried on any other system.

Versions

  • OS: Ubuntu 18.04
  • PyAV runtime:
{{ Complete output of `python -m av --version` if you can run it. }}
  • PyAV build:
PyAV: 7.0.1 (unknown commit)
Python: 3.7.6 (default, Jan  8 2020, 19:59:22) \n[GCC 7.3.0]
platform: Linux-5.3.0-40-generic-x86_64-with-debian-buster-sid
extension_extra:
	include_dirs: [b'include', b'/usr/include/x86_64-linux-gnu']
	libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
	library_dirs: []
	define_macros: []
	runtime_library_dirs: []
config_macros:
	PYAV_COMMIT_STR="unknown-commit"
	PYAV_VERSION=7.0.1
	PYAV_VERSION_STR="7.0.1"
  • FFmpeg:
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
configuration: --prefix=/home/dartnixtrix/anaconda3/envs/kyc_webrtc_env --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1556785800657/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame
libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100

Research

I have done the following:

Additional context

I want to use "aiortc", this is a dependency. I have read an issue on PyAV repo. in which it was said "it is broken since 7.0.0". Tried installing 6.2.0 with success. But 7.0.1 is what is needed.

17 Answers

✔️Accepted Answer

Same issue as @genekogan & @tushar-semwal

I've solved the issue by installing ffmpeg version 4.2.4-1 by following these steps:

1. install from pip:

python3 -m pip install Cython numpy Pillow

2. install from apt package manager:

sudo apt install yasm libvpx. libx264. cmake libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config libsrtp2-dev libpython3-dev python3-numpy

3. download & install ffmpeg from source as follows:

tar -xf ffmpeg*
  • go to the directory:
 cd ffmpeg*
  • now build & install it by running the following:
./configure --disable-static --enable-shared --disable-doc

make

sudo make install

sudo ldconfig

4. verify ffmpeg version:

$ ffmpeg

ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 31.100 / 56. 31.100
libavcodec     58. 54.100 / 58. 54.100
libavformat    58. 29.100 / 58. 29.100
libavdevice    58.  8.100 / 58.  8.100
libavfilter     7. 57.100 /  7. 57.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  5.100 /  5.  5.100
libswresample   3.  5.100 /  3.  5.100
libpostproc    55.  5.100 / 55.  5.100

5. now you can install PyAV 8.0.2 using the wheel

python3 -m pip install av

6. now check if PyAV is installed correctly:

$ pyav --version

PyAV v8.0.2
git origin: git@github.com:PyAV-Org/PyAV
git commit: v8.0.2
library configuration: --disable-doc --disable-static --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-shared --enable-version3 --enable-zlib --prefix=/tmp/vendor
library license: GPL version 3 or later
libavcodec     58. 54.100
libavdevice    58.  8.100
libavfilter     7. 57.100
libavformat    58. 29.100
libavutil      56. 31.100
libswresample   3.  5.100
libswscale      5.  5.100

Other Answers:

@youben11 try installing the latest pip. Ubuntu's packaged version of pip (9.0.1) is too old for anything labeled manylinux2010 or later.

https://pip.pypa.io/en/stable/installing/

Oh and thank you for the prompt response mate!

I am also having this issue on the latest pip3 with the binary for PyAV 8.0.2. Trying to install av on Jetson Nano (aarch64).

I gather it may be connected to where ffmpeg is installed (I just used sudo apt get ffmpeg).

python3 -m pip install av
Defaulting to user installation because normal site-packages is not writeable
Collecting av
  Using cached av-8.0.2.tar.gz (2.3 MB)
Building wheels for collected packages: av
  Building wheel for av (setup.py) ... \
|

error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7ou5etxu/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7ou5etxu/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mnd4hlqd
       cwd: /tmp/pip-install-7ou5etxu/av/
  Complete output (199 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/av
  copying av/deprecation.py -> build/lib.linux-aarch64-3.6/av
  copying av/__init__.py -> build/lib.linux-aarch64-3.6/av
  copying av/datasets.py -> build/lib.linux-aarch64-3.6/av
  copying av/__main__.py -> build/lib.linux-aarch64-3.6/av
  creating build/lib.linux-aarch64-3.6/av/subtitles
  copying av/subtitles/__init__.py -> build/lib.linux-aarch64-3.6/av/subtitles
  creating build/lib.linux-aarch64-3.6/av/filter
  copying av/filter/__init__.py -> build/lib.linux-aarch64-3.6/av/filter
  creating build/lib.linux-aarch64-3.6/av/codec
  copying av/codec/__init__.py -> build/lib.linux-aarch64-3.6/av/codec
  creating build/lib.linux-aarch64-3.6/av/sidedata
  copying av/sidedata/__init__.py -> build/lib.linux-aarch64-3.6/av/sidedata
  creating build/lib.linux-aarch64-3.6/av/video
  copying av/video/__init__.py -> build/lib.linux-aarch64-3.6/av/video
  creating build/lib.linux-aarch64-3.6/av/data
  copying av/data/__init__.py -> build/lib.linux-aarch64-3.6/av/data
  creating build/lib.linux-aarch64-3.6/av/container
  copying av/container/__init__.py -> build/lib.linux-aarch64-3.6/av/container
  creating build/lib.linux-aarch64-3.6/av/audio
  copying av/audio/__init__.py -> build/lib.linux-aarch64-3.6/av/audio
  running build_ext
  running config
  PyAV: 8.0.2 (unknown commit)
  Python: 3.6.9 (default, Jul 17 2020, 12:50:27) \n[GCC 8.4.0]
  platform: Linux-4.9.140-tegra-aarch64-with-Ubuntu-18.04-bionic
  extension_extra:
  	include_dirs: [b'include', b'/usr/include/aarch64-linux-gnu']
  	libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
  	library_dirs: []
  	define_macros: []
  	runtime_library_dirs: []
  config_macros:
  	PYAV_COMMIT_STR="unknown-commit"
  	PYAV_VERSION=8.0.2
  	PYAV_VERSION_STR="8.0.2"
  writing build/temp.linux-aarch64-3.6/include/pyav/config.h
  running cythonize
  building 'av.bytesource' extension
  creating build/temp.linux-aarch64-3.6/src
  creating build/temp.linux-aarch64-3.6/src/av
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/bytesource.c -o build/temp.linux-aarch64-3.6/src/av/bytesource.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/bytesource.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/bytesource.cpython-36m-aarch64-linux-gnu.so
  building 'av.format' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/format.c -o build/temp.linux-aarch64-3.6/src/av/format.o
  src/av/format.c: In function __pyx_f_2av_6format_find_output_format:
  src/av/format.c:3150:19: warning: implicit declaration of function av_muxer_iterate; did you mean av_buffer_create’? [-Wimplicit-function-declaration]
       __pyx_v_ptr = av_muxer_iterate((&__pyx_v_opaque));
                     ^~~~~~~~~~~~~~~~
                     av_buffer_create
  src/av/format.c:3150:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
       __pyx_v_ptr = av_muxer_iterate((&__pyx_v_opaque));
                   ^
  src/av/format.c: In function __pyx_f_2av_6format_get_output_format_names:
  src/av/format.c:3301:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
       __pyx_v_ptr = av_muxer_iterate((&__pyx_v_opaque));
                   ^
  src/av/format.c: In function __pyx_f_2av_6format_get_input_format_names:
  src/av/format.c:3440:19: warning: implicit declaration of function av_demuxer_iterate; did you mean av_demuxer_open’? [-Wimplicit-function-declaration]
       __pyx_v_ptr = av_demuxer_iterate((&__pyx_v_opaque));
                     ^~~~~~~~~~~~~~~~~~
                     av_demuxer_open
  src/av/format.c:3440:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
       __pyx_v_ptr = av_demuxer_iterate((&__pyx_v_opaque));
                   ^
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/format.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/format.cpython-36m-aarch64-linux-gnu.so
  building 'av.option' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/option.c -o build/temp.linux-aarch64-3.6/src/av/option.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/option.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/option.cpython-36m-aarch64-linux-gnu.so
  building 'av.frame' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/frame.c -o build/temp.linux-aarch64-3.6/src/av/frame.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/frame.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/frame.cpython-36m-aarch64-linux-gnu.so
  building 'av.packet' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/packet.c -o build/temp.linux-aarch64-3.6/src/av/packet.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/packet.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/packet.cpython-36m-aarch64-linux-gnu.so
  building 'av.stream' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/stream.c -o build/temp.linux-aarch64-3.6/src/av/stream.o
  src/av/stream.c: In function __pyx_f_2av_6stream_wrap_stream:
  src/av/stream.c:2232:3: warning: codec is deprecated [-Wdeprecated-declarations]
     switch (__pyx_v_c_stream->codec->codec_type) {
     ^~~~~~
  In file included from /usr/include/aarch64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:673:
  /usr/include/aarch64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/stream.c: In function __pyx_f_2av_6stream_6Stream__init:
  src/av/stream.c:2850:3: warning: codec is deprecated [-Wdeprecated-declarations]
     __pyx_t_1 = __pyx_v_stream->codec;
     ^~~~~~~~~
  In file included from /usr/include/aarch64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:673:
  /usr/include/aarch64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/stream.c:2970:15: warning: assignment discards const qualifier from pointer target type [-Wdiscarded-qualifiers]
       __pyx_t_6 = __pyx_v_self->_codec_context->codec;
                 ^
  src/av/stream.c: In function __pyx_f_2av_6stream_6Stream__finalize_for_output:
  src/av/stream.c:3663:3: warning: codec is deprecated [-Wdeprecated-declarations]
     __pyx_t_7 = __pyx_f_2av_5error_err_check(avcodec_parameters_from_context(__pyx_v_self->_stream->codecpar, __pyx_v_self->_stream->codec), 0, NULL); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 141, __pyx_L1_error)
     ^~~~~~~~~
  In file included from /usr/include/aarch64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:673:
  /usr/include/aarch64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/stream.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/stream.cpython-36m-aarch64-linux-gnu.so
  building 'av.dictionary' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/dictionary.c -o build/temp.linux-aarch64-3.6/src/av/dictionary.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/dictionary.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/dictionary.cpython-36m-aarch64-linux-gnu.so
  building 'av.descriptor' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/descriptor.c -o build/temp.linux-aarch64-3.6/src/av/descriptor.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/descriptor.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/descriptor.cpython-36m-aarch64-linux-gnu.so
  building 'av.buffer' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/buffer.c -o build/temp.linux-aarch64-3.6/src/av/buffer.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/buffer.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/buffer.cpython-36m-aarch64-linux-gnu.so
  building 'av._core' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/_core.c -o build/temp.linux-aarch64-3.6/src/av/_core.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/_core.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/_core.cpython-36m-aarch64-linux-gnu.so
  building 'av.enum' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/enum.c -o build/temp.linux-aarch64-3.6/src/av/enum.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/enum.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/enum.cpython-36m-aarch64-linux-gnu.so
  building 'av.logging' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/logging.c -o build/temp.linux-aarch64-3.6/src/av/logging.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/logging.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/logging.cpython-36m-aarch64-linux-gnu.so
  building 'av.error' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/error.c -o build/temp.linux-aarch64-3.6/src/av/error.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/error.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/error.cpython-36m-aarch64-linux-gnu.so
  building 'av.utils' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/utils.c -o build/temp.linux-aarch64-3.6/src/av/utils.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/utils.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/utils.cpython-36m-aarch64-linux-gnu.so
  building 'av.plane' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/plane.c -o build/temp.linux-aarch64-3.6/src/av/plane.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/plane.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/plane.cpython-36m-aarch64-linux-gnu.so
  building 'av.subtitles.stream' extension
  creating build/temp.linux-aarch64-3.6/src/av/subtitles
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/subtitles/stream.c -o build/temp.linux-aarch64-3.6/src/av/subtitles/stream.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/subtitles/stream.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/subtitles/stream.cpython-36m-aarch64-linux-gnu.so
  building 'av.subtitles.subtitle' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/subtitles/subtitle.c -o build/temp.linux-aarch64-3.6/src/av/subtitles/subtitle.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/subtitles/subtitle.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/subtitles/subtitle.cpython-36m-aarch64-linux-gnu.so
  building 'av.subtitles.codeccontext' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/subtitles/codeccontext.c -o build/temp.linux-aarch64-3.6/src/av/subtitles/codeccontext.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/subtitles/codeccontext.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/subtitles/codeccontext.cpython-36m-aarch64-linux-gnu.so
  building 'av.filter.graph' extension
  creating build/temp.linux-aarch64-3.6/src/av/filter
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/filter/graph.c -o build/temp.linux-aarch64-3.6/src/av/filter/graph.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/filter/graph.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/filter/graph.cpython-36m-aarch64-linux-gnu.so
  building 'av.filter.filter' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/filter/filter.c -o build/temp.linux-aarch64-3.6/src/av/filter/filter.o
  src/av/filter/filter.c: In function __pyx_f_2av_6filter_6filter_get_filter_names:
  src/av/filter/filter.c:3171:19: warning: implicit declaration of function av_filter_iterate; did you mean av_filter_next’? [-Wimplicit-function-declaration]
       __pyx_v_ptr = av_filter_iterate((&__pyx_v_opaque));
                     ^~~~~~~~~~~~~~~~~
                     av_filter_next
  src/av/filter/filter.c:3171:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
       __pyx_v_ptr = av_filter_iterate((&__pyx_v_opaque));
                   ^
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/filter/filter.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/filter/filter.cpython-36m-aarch64-linux-gnu.so
  building 'av.filter.context' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/filter/context.c -o build/temp.linux-aarch64-3.6/src/av/filter/context.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/filter/context.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/filter/context.cpython-36m-aarch64-linux-gnu.so
  building 'av.filter.link' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/filter/link.c -o build/temp.linux-aarch64-3.6/src/av/filter/link.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/filter/link.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/filter/link.cpython-36m-aarch64-linux-gnu.so
  building 'av.filter.pad' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/filter/pad.c -o build/temp.linux-aarch64-3.6/src/av/filter/pad.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/filter/pad.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/filter/pad.cpython-36m-aarch64-linux-gnu.so
  building 'av.codec.context' extension
  creating build/temp.linux-aarch64-3.6/src/av/codec
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/codec/context.c -o build/temp.linux-aarch64-3.6/src/av/codec/context.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/av/codec/context.o -lavutil -lavfilter -lavcodec -lavformat -lswscale -lswresample -lavdevice -o build/lib.linux-aarch64-3.6/av/codec/context.cpython-36m-aarch64-linux-gnu.so
  building 'av.codec.codec' extension
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/temp.linux-aarch64-3.6/include -I/usr/include/python3.6m -I/usr/include/aarch64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-aarch64-3.6/include -c src/av/codec/codec.c -o build/temp.linux-aarch64-3.6/src/av/codec/codec.o
  src/av/codec/codec.c: In function __pyx_f_2av_5codec_5codec_get_codec_names:
  src/av/codec/codec.c:4003:19: warning: implicit declaration of function av_codec_iterate; did you mean av_codec_next’? [-Wimplicit-function-declaration]
       __pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));
                     ^~~~~~~~~~~~~~~~
                     av_codec_next
  src/av/codec/codec.c:4003:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
       __pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));
                   ^
  src/av/codec/codec.c: In function __pyx_pymod_exec_codec:
  src/av/codec/codec.c:6117:36: error: AV_CODEC_CAP_HARDWARE undeclared (first use in this function); did you mean AV_CODEC_CAP_DR1’?
     __pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
                                      ^~~~~~~~~~~~~~~~~~~~~
                                      AV_CODEC_CAP_DR1
  src/av/codec/codec.c:6117:36: note: each undeclared identifier is reported only once for each function it appears in
  src/av/codec/codec.c:6138:36: error: AV_CODEC_CAP_HYBRID undeclared (first use in this function); did you mean AV_CODEC_CAP_DR1’?
     __pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
                                      ^~~~~~~~~~~~~~~~~~~
                                      AV_CODEC_CAP_DR1
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for av

More Issues: