Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The PyAV library does not install properly for version 7.0.1 #619

Closed
4 of 6 tasks
necronomican opened this issue Apr 7, 2020 · 17 comments
Closed
4 of 6 tasks

The PyAV library does not install properly for version 7.0.1 #619

necronomican opened this issue Apr 7, 2020 · 17 comments
Labels

Comments

@necronomican
Copy link

necronomican commented Apr 7, 2020

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.

@mikeboers
Copy link
Member

This looks like PyAV is building against FFmpeg 3.x.

You have an FFmpeg 4.1.3 from anaconda. Is there an FFmpeg 3.x from the OS as well?

@necronomican
Copy link
Author

necronomican commented Apr 7, 2020

Yes there was a ffmpeg 3.x but uninstalled it and installed 4.1.3. I uninstalled it and installed the latest ffmpeg

ffmpeg -version
ffmpeg version 4.2.2-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/usr --extra-version='0york0~18.04' --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-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --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
 
(kyc_webrtc_env) dartnixtrix@dartnixtrix-ThinkPad-E470:~/Software/av-7.0.1$ which ffmpeg
/usr/bin/ffmpeg

still fails with the same error while installing

@necronomican
Copy link
Author

Here is the error file and environment.yml after a fresh environment creation using anaconda.

Error While Installing

Collecting av==7.0.1
  Using cached av-7.0.1.tar.gz (2.3 MB)
Building wheels for collected packages: av
  Building wheel for av (setup.py): started
  Building wheel for av (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/dartnixtrix/anaconda3/envs/webrtcenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z_hem9ao/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z_hem9ao/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-938fpmj7
       cwd: /tmp/pip-install-z_hem9ao/av/
  Complete output (237 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/av
  copying av/__main__.py -> build/lib.linux-x86_64-3.7/av
  copying av/datasets.py -> build/lib.linux-x86_64-3.7/av
  copying av/deprecation.py -> build/lib.linux-x86_64-3.7/av
  copying av/__init__.py -> build/lib.linux-x86_64-3.7/av
  creating build/lib.linux-x86_64-3.7/av/container
  copying av/container/__init__.py -> build/lib.linux-x86_64-3.7/av/container
  creating build/lib.linux-x86_64-3.7/av/sidedata
  copying av/sidedata/__init__.py -> build/lib.linux-x86_64-3.7/av/sidedata
  creating build/lib.linux-x86_64-3.7/av/data
  copying av/data/__init__.py -> build/lib.linux-x86_64-3.7/av/data
  creating build/lib.linux-x86_64-3.7/av/filter
  copying av/filter/__init__.py -> build/lib.linux-x86_64-3.7/av/filter
  creating build/lib.linux-x86_64-3.7/av/codec
  copying av/codec/__init__.py -> build/lib.linux-x86_64-3.7/av/codec
  creating build/lib.linux-x86_64-3.7/av/audio
  copying av/audio/__init__.py -> build/lib.linux-x86_64-3.7/av/audio
  creating build/lib.linux-x86_64-3.7/av/subtitles
  copying av/subtitles/__init__.py -> build/lib.linux-x86_64-3.7/av/subtitles
  creating build/lib.linux-x86_64-3.7/av/video
  copying av/video/__init__.py -> build/lib.linux-x86_64-3.7/av/video
  running build_ext
  running config
  PyAV: 7.0.1 (unknown commit)
  Python: 3.7.7 (default, Mar 26 2020, 15:48: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"
  writing build/temp.linux-x86_64-3.7/include/pyav/config.h
  running cythonize
  building 'av.utils' extension
  creating build/temp.linux-x86_64-3.7/src
  creating build/temp.linux-x86_64-3.7/src/av
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/utils.c -o build/temp.linux-x86_64-3.7/src/av/utils.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/utils.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/utils.cpython-37m-x86_64-linux-gnu.so
  building 'av.plane' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/plane.c -o build/temp.linux-x86_64-3.7/src/av/plane.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/plane.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/plane.cpython-37m-x86_64-linux-gnu.so
  building 'av.stream' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/stream.c -o build/temp.linux-x86_64-3.7/src/av/stream.o
  src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
  src/av/stream.c:2279:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
     switch (__pyx_v_c_stream->codec->codec_type) {
     ^~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:671:
  /usr/include/x86_64-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:2889:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
     __pyx_t_1 = __pyx_v_stream->codec;
     ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:671:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/stream.c:3012:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       __pyx_t_7 = __pyx_v_self->_codec_context->codec;
                 ^
  src/av/stream.c: In function ‘__pyx_f_2av_6stream_6Stream__finalize_for_output’:
  src/av/stream.c:3698:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
     __pyx_t_8 = __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_8 == ((int)-1))) __PYX_ERR(0, 142, __pyx_L1_error)
     ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/stream.c:671:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/stream.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/stream.cpython-37m-x86_64-linux-gnu.so
  building 'av.logging' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/logging.c -o build/temp.linux-x86_64-3.7/src/av/logging.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/logging.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/logging.cpython-37m-x86_64-linux-gnu.so
  building 'av.bytesource' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/bytesource.c -o build/temp.linux-x86_64-3.7/src/av/bytesource.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/bytesource.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/bytesource.cpython-37m-x86_64-linux-gnu.so
  building 'av.option' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/option.c -o build/temp.linux-x86_64-3.7/src/av/option.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/option.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/option.cpython-37m-x86_64-linux-gnu.so
  building 'av.descriptor' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/descriptor.c -o build/temp.linux-x86_64-3.7/src/av/descriptor.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/descriptor.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/descriptor.cpython-37m-x86_64-linux-gnu.so
  building 'av.buffer' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/buffer.c -o build/temp.linux-x86_64-3.7/src/av/buffer.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/buffer.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/buffer.cpython-37m-x86_64-linux-gnu.so
  building 'av.packet' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/packet.c -o build/temp.linux-x86_64-3.7/src/av/packet.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/packet.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/packet.cpython-37m-x86_64-linux-gnu.so
  building 'av.frame' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/frame.c -o build/temp.linux-x86_64-3.7/src/av/frame.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/frame.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/frame.cpython-37m-x86_64-linux-gnu.so
  building 'av.enum' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/enum.c -o build/temp.linux-x86_64-3.7/src/av/enum.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/enum.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/enum.cpython-37m-x86_64-linux-gnu.so
  building 'av.dictionary' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/dictionary.c -o build/temp.linux-x86_64-3.7/src/av/dictionary.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/dictionary.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/dictionary.cpython-37m-x86_64-linux-gnu.so
  building 'av.format' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/format.c -o build/temp.linux-x86_64-3.7/src/av/format.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/format.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/format.cpython-37m-x86_64-linux-gnu.so
  building 'av._core' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/_core.c -o build/temp.linux-x86_64-3.7/src/av/_core.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/_core.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/_core.cpython-37m-x86_64-linux-gnu.so
  building 'av.error' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/error.c -o build/temp.linux-x86_64-3.7/src/av/error.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/error.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/error.cpython-37m-x86_64-linux-gnu.so
  building 'av.container.input' extension
  creating build/temp.linux-x86_64-3.7/src/av/container
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/input.c -o build/temp.linux-x86_64-3.7/src/av/container/input.o
  src/av/container/input.c: In function ‘__pyx_f_2av_9container_5input_14InputContainer_flush_buffers’:
  src/av/container/input.c:4812:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             __pyx_t_5 = (__pyx_v_stream->codec != 0);
             ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/container/input.c:670:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4818:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             __pyx_t_5 = (__pyx_v_stream->codec->codec != 0);
             ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/container/input.c:670:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4824:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
             __pyx_t_5 = ((__pyx_v_stream->codec->codec_id != AV_CODEC_ID_NONE) != 0);
             ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/container/input.c:670:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4834:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
               avcodec_flush_buffers(__pyx_v_stream->codec);
               ^~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/container/input.c:670:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/input.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/container/input.cpython-37m-x86_64-linux-gnu.so
  building 'av.container.output' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/output.c -o build/temp.linux-x86_64-3.7/src/av/container/output.o
  src/av/container/output.c: In function ‘__pyx_pf_2av_9container_6output_15OutputContainer_4add_stream’:
  src/av/container/output.c:2909:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
     __pyx_t_9 = __pyx_v_stream->codec;
     ^~~~~~~~~
  In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                   from src/av/container/output.c:670:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/output.c:2930:5: warning: ‘avcodec_copy_context’ is deprecated [-Wdeprecated-declarations]
       (void)(avcodec_copy_context(__pyx_v_codec_context, __pyx_v_template->_codec_context));
       ^
  In file included from src/av/container/output.c:669:0:
  /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
   int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
       ^~~~~~~~~~~~~~~~~~~~
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/output.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/container/output.cpython-37m-x86_64-linux-gnu.so
  building 'av.container.pyio' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/pyio.c -o build/temp.linux-x86_64-3.7/src/av/container/pyio.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/pyio.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/container/pyio.cpython-37m-x86_64-linux-gnu.so
  building 'av.container.core' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/core.c -o build/temp.linux-x86_64-3.7/src/av/container/core.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/core.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/container/core.cpython-37m-x86_64-linux-gnu.so
  building 'av.container.streams' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/streams.c -o build/temp.linux-x86_64-3.7/src/av/container/streams.o
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/streams.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/container/streams.cpython-37m-x86_64-linux-gnu.so
  building 'av.sidedata.sidedata' extension
  creating build/temp.linux-x86_64-3.7/src/av/sidedata
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/sidedata/sidedata.c -o build/temp.linux-x86_64-3.7/src/av/sidedata/sidedata.o
  src/av/sidedata/sidedata.c: In function ‘__pyx_pf_2av_8sidedata_8sidedata_8SideData_2__repr__’:
  src/av/sidedata/sidedata.c:2713:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(((unsigned int)__pyx_v_self->ptr->data)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 64, __pyx_L1_error)
                                                ^
  gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/sidedata/sidedata.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -o build/lib.linux-x86_64-3.7/av/sidedata/sidedata.cpython-37m-x86_64-linux-gnu.so
  building 'av.sidedata.motionvectors' extension
  gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/sidedata/motionvectors.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/data/stream.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/filter.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/link.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/context.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/pad.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/graph.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/codec/context.o -lavutil -lavdevice -lswresample -lavfilter -lavformat -lswscale -lavcodec -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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
  Running setup.py clean for av
Failed to build av
Installing collected packages: av
    Running setup.py install for av: started
    Running setup.py install for av: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/dartnixtrix/anaconda3/envs/webrtcenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z_hem9ao/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z_hem9ao/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gvs381yg/install-record.txt --single-version-externally-managed --compile --install-headers /home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m/av
         cwd: /tmp/pip-install-z_hem9ao/av/
    Complete output (237 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/av
    copying av/__main__.py -> build/lib.linux-x86_64-3.7/av
    copying av/datasets.py -> build/lib.linux-x86_64-3.7/av
    copying av/deprecation.py -> build/lib.linux-x86_64-3.7/av
    copying av/__init__.py -> build/lib.linux-x86_64-3.7/av
    creating build/lib.linux-x86_64-3.7/av/container
    copying av/container/__init__.py -> build/lib.linux-x86_64-3.7/av/container
    creating build/lib.linux-x86_64-3.7/av/sidedata
    copying av/sidedata/__init__.py -> build/lib.linux-x86_64-3.7/av/sidedata
    creating build/lib.linux-x86_64-3.7/av/data
    copying av/data/__init__.py -> build/lib.linux-x86_64-3.7/av/data
    creating build/lib.linux-x86_64-3.7/av/filter
    copying av/filter/__init__.py -> build/lib.linux-x86_64-3.7/av/filter
    creating build/lib.linux-x86_64-3.7/av/codec
    copying av/codec/__init__.py -> build/lib.linux-x86_64-3.7/av/codec
    creating build/lib.linux-x86_64-3.7/av/audio
    copying av/audio/__init__.py -> build/lib.linux-x86_64-3.7/av/audio
    creating build/lib.linux-x86_64-3.7/av/subtitles
    copying av/subtitles/__init__.py -> build/lib.linux-x86_64-3.7/av/subtitles
    creating build/lib.linux-x86_64-3.7/av/video
    copying av/video/__init__.py -> build/lib.linux-x86_64-3.7/av/video
    running build_ext
    running config
    PyAV: 7.0.1 (unknown commit)
    Python: 3.7.7 (default, Mar 26 2020, 15:48: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"
    writing build/temp.linux-x86_64-3.7/include/pyav/config.h
    running cythonize
    building 'av.utils' extension
    creating build/temp.linux-x86_64-3.7/src
    creating build/temp.linux-x86_64-3.7/src/av
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/utils.c -o build/temp.linux-x86_64-3.7/src/av/utils.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/utils.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/utils.cpython-37m-x86_64-linux-gnu.so
    building 'av.plane' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/plane.c -o build/temp.linux-x86_64-3.7/src/av/plane.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/plane.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/plane.cpython-37m-x86_64-linux-gnu.so
    building 'av.stream' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/stream.c -o build/temp.linux-x86_64-3.7/src/av/stream.o
    src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
    src/av/stream.c:2279:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
       switch (__pyx_v_c_stream->codec->codec_type) {
       ^~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/stream.c:671:
    /usr/include/x86_64-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:2889:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
       __pyx_t_1 = __pyx_v_stream->codec;
       ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/stream.c:671:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/stream.c:3012:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
         __pyx_t_7 = __pyx_v_self->_codec_context->codec;
                   ^
    src/av/stream.c: In function ‘__pyx_f_2av_6stream_6Stream__finalize_for_output’:
    src/av/stream.c:3698:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
       __pyx_t_8 = __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_8 == ((int)-1))) __PYX_ERR(0, 142, __pyx_L1_error)
       ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/stream.c:671:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/stream.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/stream.cpython-37m-x86_64-linux-gnu.so
    building 'av.logging' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/logging.c -o build/temp.linux-x86_64-3.7/src/av/logging.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/logging.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/logging.cpython-37m-x86_64-linux-gnu.so
    building 'av.bytesource' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/bytesource.c -o build/temp.linux-x86_64-3.7/src/av/bytesource.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/bytesource.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/bytesource.cpython-37m-x86_64-linux-gnu.so
    building 'av.option' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/option.c -o build/temp.linux-x86_64-3.7/src/av/option.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/option.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/option.cpython-37m-x86_64-linux-gnu.so
    building 'av.descriptor' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/descriptor.c -o build/temp.linux-x86_64-3.7/src/av/descriptor.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/descriptor.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/descriptor.cpython-37m-x86_64-linux-gnu.so
    building 'av.buffer' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/buffer.c -o build/temp.linux-x86_64-3.7/src/av/buffer.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/buffer.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/buffer.cpython-37m-x86_64-linux-gnu.so
    building 'av.packet' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/packet.c -o build/temp.linux-x86_64-3.7/src/av/packet.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/packet.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/packet.cpython-37m-x86_64-linux-gnu.so
    building 'av.frame' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/frame.c -o build/temp.linux-x86_64-3.7/src/av/frame.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/frame.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/frame.cpython-37m-x86_64-linux-gnu.so
    building 'av.enum' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/enum.c -o build/temp.linux-x86_64-3.7/src/av/enum.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/enum.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/enum.cpython-37m-x86_64-linux-gnu.so
    building 'av.dictionary' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/dictionary.c -o build/temp.linux-x86_64-3.7/src/av/dictionary.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/dictionary.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/dictionary.cpython-37m-x86_64-linux-gnu.so
    building 'av.format' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/format.c -o build/temp.linux-x86_64-3.7/src/av/format.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/format.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/format.cpython-37m-x86_64-linux-gnu.so
    building 'av._core' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/_core.c -o build/temp.linux-x86_64-3.7/src/av/_core.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/_core.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/_core.cpython-37m-x86_64-linux-gnu.so
    building 'av.error' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/error.c -o build/temp.linux-x86_64-3.7/src/av/error.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/error.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/error.cpython-37m-x86_64-linux-gnu.so
    building 'av.container.input' extension
    creating build/temp.linux-x86_64-3.7/src/av/container
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/input.c -o build/temp.linux-x86_64-3.7/src/av/container/input.o
    src/av/container/input.c: In function ‘__pyx_f_2av_9container_5input_14InputContainer_flush_buffers’:
    src/av/container/input.c:4812:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
               __pyx_t_5 = (__pyx_v_stream->codec != 0);
               ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/container/input.c:670:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4818:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
               __pyx_t_5 = (__pyx_v_stream->codec->codec != 0);
               ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/container/input.c:670:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4824:11: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
               __pyx_t_5 = ((__pyx_v_stream->codec->codec_id != AV_CODEC_ID_NONE) != 0);
               ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/container/input.c:670:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4834:13: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
                 avcodec_flush_buffers(__pyx_v_stream->codec);
                 ^~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/container/input.c:670:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/input.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/container/input.cpython-37m-x86_64-linux-gnu.so
    building 'av.container.output' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/output.c -o build/temp.linux-x86_64-3.7/src/av/container/output.o
    src/av/container/output.c: In function ‘__pyx_pf_2av_9container_6output_15OutputContainer_4add_stream’:
    src/av/container/output.c:2909:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
       __pyx_t_9 = __pyx_v_stream->codec;
       ^~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51:0,
                     from src/av/container/output.c:670:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/output.c:2930:5: warning: ‘avcodec_copy_context’ is deprecated [-Wdeprecated-declarations]
         (void)(avcodec_copy_context(__pyx_v_codec_context, __pyx_v_template->_codec_context));
         ^
    In file included from src/av/container/output.c:669:0:
    /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
     int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
         ^~~~~~~~~~~~~~~~~~~~
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/output.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/container/output.cpython-37m-x86_64-linux-gnu.so
    building 'av.container.pyio' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/pyio.c -o build/temp.linux-x86_64-3.7/src/av/container/pyio.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/pyio.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/container/pyio.cpython-37m-x86_64-linux-gnu.so
    building 'av.container.core' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/core.c -o build/temp.linux-x86_64-3.7/src/av/container/core.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/core.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/container/core.cpython-37m-x86_64-linux-gnu.so
    building 'av.container.streams' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/container/streams.c -o build/temp.linux-x86_64-3.7/src/av/container/streams.o
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/container/streams.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/container/streams.cpython-37m-x86_64-linux-gnu.so
    building 'av.sidedata.sidedata' extension
    creating build/temp.linux-x86_64-3.7/src/av/sidedata
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -Ibuild/temp.linux-x86_64-3.7/include -c src/av/sidedata/sidedata.c -o build/temp.linux-x86_64-3.7/src/av/sidedata/sidedata.o
    src/av/sidedata/sidedata.c: In function ‘__pyx_pf_2av_8sidedata_8sidedata_8SideData_2__repr__’:
    src/av/sidedata/sidedata.c:2713:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(((unsigned int)__pyx_v_self->ptr->data)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 64, __pyx_L1_error)
                                                  ^
    gcc -pthread -shared -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/sidedata/sidedata.o -lswresample -lavcodec -lavutil -lswscale -lavformat -lavdevice -lavfilter -o build/lib.linux-x86_64-3.7/av/sidedata/sidedata.cpython-37m-x86_64-linux-gnu.so
    building 'av.sidedata.motionvectors' extension
    gcc -pthread -B /home/dartnixtrix/anaconda3/envs/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/sidedata/motionvectors.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/data/stream.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/filter.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/link.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/context.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/pad.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/filter/graph.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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/webrtcenv/compiler_compat -L/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,-rpath=/home/dartnixtrix/anaconda3/envs/webrtcenv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/av/codec/context.o -lswresample -lavcodec -lavutil -lswscale -lavformat -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/webrtcenv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.7/include -Iinclude -I/usr/include/x86_64-linux-gnu -I/home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m -I/home/dartnixtrix/anaconda3/envs/webrtcenv/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: Command errored out with exit status 1: /home/dartnixtrix/anaconda3/envs/webrtcenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z_hem9ao/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z_hem9ao/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gvs381yg/install-record.txt --single-version-externally-managed --compile --install-headers /home/dartnixtrix/anaconda3/envs/webrtcenv/include/python3.7m/av Check the logs for full command output.

Env File

name: webrtcenv
channels:
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - ca-certificates=2020.1.1=0
  - certifi=2020.4.5.1=py37_0
  - ld_impl_linux-64=2.33.1=h53a641e_7
  - libedit=3.1.20181209=hc058e9b_0
  - libffi=3.2.1=hd88cf55_4
  - libgcc-ng=9.1.0=hdf63c60_0
  - libstdcxx-ng=9.1.0=hdf63c60_0
  - ncurses=6.2=he6710b0_0
  - openssl=1.1.1f=h7b6447c_0
  - pip=20.0.2=py37_1
  - python=3.7.7=hcf32534_0_cpython
  - readline=8.0=h7b6447c_0
  - setuptools=46.1.3=py37_0
  - sqlite=3.31.1=h7b6447c_0
  - tk=8.6.8=hbc83047_0
  - wheel=0.34.2=py37_0
  - xz=5.2.4=h14c3975_4
  - zlib=1.2.11=h7b6447c_3
  - pip:
    - crc32c==2.0
    - pyee==7.0.1
prefix: /home/dartnixtrix/anaconda3/envs/webrtcenv

@mikeboers
Copy link
Member

Okay. Thanks. I'm gonna go make a note in #605

@necronomican
Copy link
Author

Alright. Thanks. I will try to do something to resolve this on my system. Will share it here if it's somehow a fault on my end.

@necronomican
Copy link
Author

Oh and thank you for the prompt response mate!

@RobertSwirsky
Copy link

I've been trying to install aiortc==0.9.27 for the past several days here with little luck. aiortc has a dependency on PyAV. For some reason there's no "official" repo that has a built ffmpeg for centos 7 so I had to build one by hand.

I tried these instructions from #510

Building ffmpeg with the flag --enable-shared
Check ffmpeg is running, maybe the lib path is missing (add /usr/local/lib to LD_LIBRARY_PATH)
Clone PyAV
Comment out line 95 in setup.py
source scripts/activate.sh
make

with little success. Now I'm getting errors like this when linking against the shared ffpmeg libraries that got built:

/bin/ld: /usr/local/lib/libswscale.a(rgb_2_rgb.o): relocation R_X86_64_32 against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libswscale.a(scale.o): relocation R_X86_64_32 against `.rodata' can not be used when making a sh
ared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libswscale.a(yuv2rgb.o): relocation R_X86_64_32S against symbol `ff_dither8' can not be used whe
n making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libswscale.a(yuv_2_rgb.o): relocation R_X86_64_32 against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libswscale.a(gamma.o): relocation R_X86_64_32S against `.text' can not be used when making a sha
red object; recompile with -fPIC
/bin/ld: /usr/local/lib/libswscale.a(hscale.o): relocation R_X86_64_32S against `.text' can not be used when making a sh
ared object; recompile with -fPIC
/bin/ld: final link failed: Nonrepresentable section on output

Not sure what next step should be. I'm going to try forcing in that -fPIC option but I think I'm down a rathole!

@jlaine
Copy link
Member

jlaine commented Apr 22, 2020

You are linking against a static FFmpeg (see: libswscale.a, not libswscale.so.X) which is not supported as stated in #510

@jlaine
Copy link
Member

jlaine commented Apr 26, 2020

As of PyAV 8.0.0, binary wheels are provided which will greatly simplify installation and should solve your issue.

@jlaine jlaine closed this as completed Apr 26, 2020
@youben11
Copy link

@jlaine the binary wheels are unfortunately note compatible with all linux distribution (needs manylinux2014 and manylinux1 maybe?). I'm running ubuntu 18.04 with python 3.7 and I can't install it

@thmiller
Copy link

thmiller commented Sep 2, 2020

@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/

@genekogan
Copy link

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

@tushar-semwal
Copy link

same issue as @genekogan. Were you able to solve @genekogan ?

@genekogan
Copy link

@tushar-semwal I ended up installing it from source and that worked for me.

@AbdallahAlhaddad
Copy link

AbdallahAlhaddad commented Jan 22, 2021

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: [email protected]: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

@cartovarc
Copy link

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 autopep8 Cython editorconfig flake8 isort numpy Pillow sphinx

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 -xjf 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: [email protected]: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

Thanks!

@neilyoung
Copy link

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 autopep8 Cython editorconfig flake8 isort numpy Pillow sphinx

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 -xjf 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: [email protected]: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

Thanks!

Did not work for me, unfortunately. Looked good anyway...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests