PyAV-Org / PyAV

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

FOO does not build. failed building wheel for av in colab #610

Closed faraazc closed 4 years ago

faraazc commented 4 years ago

Overview

Unable to install av in Google Colab, compilation fails with below error

src/av/codec/codec.c:6056:36: error: ‘AV_CODEC_CAP_HARDWARE’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?

Expected behavior

pip Install should succeed

Actual behavior

pip install fails. Looks like compilation issue.

Build report:

Created temporary directory: /tmp/pip-ephem-wheel-cache-vxhp5o_x
Created temporary directory: /tmp/pip-req-tracker-lnik108s
Created requirements tracker '/tmp/pip-req-tracker-lnik108s'
Created temporary directory: /tmp/pip-install-7zew0set
1 location(s) to search for versions of av:
* https://pypi.org/simple/av/
Getting page https://pypi.org/simple/av/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/av/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/av/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/av/
  Found link https://files.pythonhosted.org/packages/dd/d0/2920e0095d2a60616d53aeed09aafc5ec50fa3d18b611e2135d927ae928b/av-0.1.0.tar.gz#sha256=239afbe55efc3fa780c67308429062f787a740a6956e782bedeab38eb29a4a0e (from https://pypi.org/simple/av/), version: 0.1.0
  Found link https://files.pythonhosted.org/packages/20/dc/9d9c9e9113d98acae227a89c918912f925b733398f59ad0f6a76e52767f7/av-0.2.0.tar.gz#sha256=cc125e91eaff23273e45c7181ba1a2ba95a7b4446fec4ffc0ba3cec1fb1e835e (from https://pypi.org/simple/av/), version: 0.2.0
  Found link https://files.pythonhosted.org/packages/79/7a/25a6ff1b6ff16a3eeea6e418c82b6e4b0e12d7df0d52dee5eb49a56e6053/av-0.2.1.tar.gz#sha256=781bf2d571edda27827c7a1b6cdf3c8fe31a2c264022b75bcff74d8239e87d15 (from https://pypi.org/simple/av/), version: 0.2.1
  Found link https://files.pythonhosted.org/packages/de/dd/fb3d9a2998c2e7fc00ec878f158ae072883bfd9ee76e956742177b89729e/av-0.2.2.tar.gz#sha256=e2b14b01a90cbcf46540a0dae10cc6402a6a335b7798adbcf2c3189d6a417f31 (from https://pypi.org/simple/av/), version: 0.2.2
  Found link https://files.pythonhosted.org/packages/04/d6/f2439a382b91ac4f1d8e9ddc091d47ab1b3ba0678cda3f03720d61a245a5/av-0.2.3.tar.gz#sha256=6a38ef0b6921011fdcadd1665c48eb767840bd982ec2512e1bc8fe5f45597fa0 (from https://pypi.org/simple/av/), version: 0.2.3
  Found link https://files.pythonhosted.org/packages/b2/77/d47ea02082998cf62d7dbd763c053c8fc72d94fcdbefa5ead4df869cb396/av-0.2.4.tar.gz#sha256=bdc7e2e213cb9041d9c5c0497e6f8c47e84f89f1f2673a46d891cca0fb0d19a0 (from https://pypi.org/simple/av/), version: 0.2.4
  Found link https://files.pythonhosted.org/packages/c6/38/ed0967de72aea2c345f37d197dbbcff82044c30948415338f3d5bb851584/av-0.3.0.tar.gz#sha256=eb5809fd6b6b6c1b969310eaec404785eeb22b9e580588ac47c974dd2f29df2b (from https://pypi.org/simple/av/), version: 0.3.0
  Found link https://files.pythonhosted.org/packages/86/0d/6e624954a2ca9b08c9f71cfae7bd6cadc4f44d64e129518f9eaaadfb5179/av-0.3.1.tar.gz#sha256=62fc6ea38c3b2f04fb112935ebebfdd00d94b8d32f3103e583e9bb5342f17272 (from https://pypi.org/simple/av/), version: 0.3.1
  Found link https://files.pythonhosted.org/packages/ea/da/3548407a1d9083222c79e38c04d07996cd0959f5486d34d6cf2cc4d395f4/av-0.3.2.tar.gz#sha256=a3f06019e477378c2f20c74b8b7a6b3f3ecd9eb493883ba6db9cc3245b169297 (from https://pypi.org/simple/av/), version: 0.3.2
  Found link https://files.pythonhosted.org/packages/4f/d0/da5d76dd445046b8740a09e3280a63a7f0a2f89c036ecddfc0d5ce287f9a/av-0.3.3.tar.gz#sha256=bb6a6abcae38087efe6eb4f8b29dcfbbb7b161b3177babb89fa754d9053e901c (from https://pypi.org/simple/av/), version: 0.3.3
  Found link https://files.pythonhosted.org/packages/de/31/93a0a291dd47117f46eb8e581d16736de01371af528730372d1d3267419d/av-0.4.0.tar.gz#sha256=25b1b403367aa5abd98d76d50a4142a99bdd6a47aaad973eb0de930237cd6139 (from https://pypi.org/simple/av/), version: 0.4.0
  Found link https://files.pythonhosted.org/packages/52/56/3ed0d68acc9d1faa92b15e7012c68fad5f21c0405315c90b337104ba7f29/av-0.4.1.tar.gz#sha256=bf9a8d113392c6a445f424e16f9e64ac53d1db1548731e6326763d555647c24f (from https://pypi.org/simple/av/), version: 0.4.1
  Found link https://files.pythonhosted.org/packages/f7/68/d53190991ad079c86dc1d79a7ec1bf91a06adb84fd77d7aaf6bd298c8041/av-0.5.0.tar.gz#sha256=e2cf3964752d0f0ac7cf854d98278e5a67c5a7d9f33d475af0134cc87e518527 (from https://pypi.org/simple/av/), version: 0.5.0
  Found link https://files.pythonhosted.org/packages/26/ae/c2244fd3914e9b5b44670c0976ecc27a8be509de5d9716f4f504a1ef7110/av-0.5.1.tar.gz#sha256=1420a54b2561571dc27685f615748ea94edde1326d2d12d86005f2cf3a14d50a (from https://pypi.org/simple/av/), version: 0.5.1
  Found link https://files.pythonhosted.org/packages/7f/c5/cd544d291c915ec89d011bcb822c6cce59015030ff4795c0662fee8130b6/av-0.5.2.tar.gz#sha256=1723204427659e8e448313aea6c877df2b9b451a58114e44b4a82e5fd8268184 (from https://pypi.org/simple/av/), version: 0.5.2
  Found link https://files.pythonhosted.org/packages/87/dc/d6b42cf8610f39b94bf60dd7d88d687cbdb01a88470786c4d4082d1f1a0b/av-0.5.3.tar.gz#sha256=198719246335103e8c16a50c1f269359b4d52c7c38586f39629d0b869c5bb64c (from https://pypi.org/simple/av/), version: 0.5.3
  Found link https://files.pythonhosted.org/packages/83/23/43d9e41121339c1b30a8c35e0be9b66c0804b09da4daf5fb8d67913e9093/av-6.0.0.tar.gz#sha256=9037d73d7a812c3dc75d9cc27d03215483c9e782eae63a07142c0725c6bd2df0 (from https://pypi.org/simple/av/), version: 6.0.0
  Found link https://files.pythonhosted.org/packages/15/80/edc9e110b2896ebe16863051e68bd4786efeda71ce94b81a048d146062cc/av-6.1.0.tar.gz#sha256=3f24d6f25dd56130fb47e8dfecf0af327299831cdba19fe0a74ec96abc37ad40 (from https://pypi.org/simple/av/), version: 6.1.0
  Found link https://files.pythonhosted.org/packages/05/e4/205b787753d25da5d927b59b7cf59c0b7563e3d18f35d228101658792c05/av-6.1.2.tar.gz#sha256=eebbb56eeae650b1fc551f94d51aee39b487bf4df73c39daea186c5d2950650f (from https://pypi.org/simple/av/), version: 6.1.2
  Found link https://files.pythonhosted.org/packages/84/77/0be0fdaa3b7912c184705a4545ae6f1e9e47ab9e3834a3ef5caf2d7ca1e7/av-6.2.0.tar.gz#sha256=4fb03da095773d283cff051e16cf6af1208b39bf62b97f6c4ef4b22e151ea3f2 (from https://pypi.org/simple/av/), version: 6.2.0
  Found link https://files.pythonhosted.org/packages/63/9e/1204d33e416b2d8343bb6f27a6c93c46a56d0f5d7e38ff7ad15e36ec7563/av-7.0.0.tar.gz#sha256=3cacc7e6ec70b00792e9938edac1c8b6d21b3883c1b83486794adfc74b5fe5f3 (from https://pypi.org/simple/av/), version: 7.0.0
  Found link https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz#sha256=fb13afa8967d112f3f78ee6ded1082546c32462dfdfa8dac81c9539f5bda0a83 (from https://pypi.org/simple/av/), version: 7.0.1
Given no hashes to check 22 links for project 'av': discarding no candidates
Using version 7.0.1 (newest of versions: 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 6.0.0, 6.1.0, 6.1.2, 6.2.0, 7.0.0, 7.0.1)
Collecting av
  Created temporary directory: /tmp/pip-unpack-w19ir6tz
  Looking up "https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz" in the cache
  Current age based on date: 2562
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 2562
  Using cached https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz
  Added av from https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz#sha256=fb13afa8967d112f3f78ee6ded1082546c32462dfdfa8dac81c9539f5bda0a83 to build tracker '/tmp/pip-req-tracker-lnik108s'
    Running setup.py (path:/tmp/pip-install-7zew0set/av/setup.py) egg_info for package av
    Running command python setup.py egg_info
    running egg_info
    creating /tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info
    writing /tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/dependency_links.txt
    writing entry points to /tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/entry_points.txt
    writing top-level names to /tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/top_level.txt
    writing manifest file '/tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/SOURCES.txt'
    reading manifest file '/tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file '/tmp/pip-install-7zew0set/av/pip-egg-info/av.egg-info/SOURCES.txt'
  Source in /tmp/pip-install-7zew0set/av has version 7.0.1, which satisfies requirement av from https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz#sha256=fb13afa8967d112f3f78ee6ded1082546c32462dfdfa8dac81c9539f5bda0a83
  Removed av from https://files.pythonhosted.org/packages/8e/7a/be91247d5d1613ce3a77d2a2d85211017536558c055b6f904eb38f21e2dc/av-7.0.1.tar.gz#sha256=fb13afa8967d112f3f78ee6ded1082546c32462dfdfa8dac81c9539f5bda0a83 from build tracker '/tmp/pip-req-tracker-lnik108s'
Building wheels for collected packages: av
  Created temporary directory: /tmp/pip-wheel-ag8x44ou
  Building wheel for av (setup.py) ...   Destination directory: /tmp/pip-wheel-ag8x44ou
  Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zew0set/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-ag8x44ou --python-tag cp36
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/av
  copying av/datasets.py -> build/lib.linux-x86_64-3.6/av
  copying av/deprecation.py -> build/lib.linux-x86_64-3.6/av
  copying av/__init__.py -> build/lib.linux-x86_64-3.6/av
  copying av/__main__.py -> build/lib.linux-x86_64-3.6/av
  creating build/lib.linux-x86_64-3.6/av/data
  copying av/data/__init__.py -> build/lib.linux-x86_64-3.6/av/data
  creating build/lib.linux-x86_64-3.6/av/container
  copying av/container/__init__.py -> build/lib.linux-x86_64-3.6/av/container
  creating build/lib.linux-x86_64-3.6/av/filter
  copying av/filter/__init__.py -> build/lib.linux-x86_64-3.6/av/filter
  creating build/lib.linux-x86_64-3.6/av/codec
  copying av/codec/__init__.py -> build/lib.linux-x86_64-3.6/av/codec
  creating build/lib.linux-x86_64-3.6/av/audio
  copying av/audio/__init__.py -> build/lib.linux-x86_64-3.6/av/audio
  creating build/lib.linux-x86_64-3.6/av/subtitles
  copying av/subtitles/__init__.py -> build/lib.linux-x86_64-3.6/av/subtitles
  creating build/lib.linux-x86_64-3.6/av/sidedata
  copying av/sidedata/__init__.py -> build/lib.linux-x86_64-3.6/av/sidedata
  creating build/lib.linux-x86_64-3.6/av/video
  copying av/video/__init__.py -> build/lib.linux-x86_64-3.6/av/video
  running build_ext
  running config
  PyAV: 7.0.1 (unknown commit)
  Python: 3.6.9 (default, Nov  7 2019, 10:44:02) \n[GCC 8.3.0]
  platform: Linux-4.14.137+-x86_64-with-Ubuntu-18.04-bionic
  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.6/include/pyav/config.h
  running cythonize
  Compiling av/buffer.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/buffer.pyx
  Compiling av/format.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/format.pyx
  Compiling av/logging.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/logging.pyx
  Compiling av/packet.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/packet.pyx
  Compiling av/option.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/option.pyx
  Compiling av/dictionary.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/dictionary.pyx
  Compiling av/descriptor.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/descriptor.pyx
  Compiling av/plane.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/plane.pyx
  Compiling av/frame.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/frame.pyx
  Compiling av/bytesource.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/cpython/buffer.pxd.
  [1/1] Cythonizing av/bytesource.pyx
  Compiling av/utils.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/utils.pyx
  Compiling av/stream.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/stream.pyx
  Compiling av/error.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/error.pyx
  Compiling av/_core.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/_core.pyx
  Compiling av/data/stream.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/data/stream.pyx
  Compiling av/container/input.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/container/input.pyx
  Compiling av/container/output.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/container/output.pyx
  Compiling av/container/pyio.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/container/pyio.pyx
  Compiling av/container/streams.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/container/streams.pyx
  Compiling av/container/core.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/container/core.pyx
  Compiling av/filter/filter.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/filter/filter.pyx
  Compiling av/filter/context.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/filter/context.pyx
  Compiling av/filter/graph.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/filter/graph.pyx
  Compiling av/filter/pad.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/filter/pad.pyx
  Compiling av/filter/link.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/filter/link.pyx
  Compiling av/codec/codec.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/codec/codec.pyx
  Compiling av/codec/context.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/codec/context.pyx
  Compiling av/audio/layout.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/layout.pyx
  Compiling av/audio/format.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/format.pyx
  Compiling av/audio/plane.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/plane.pyx
  Compiling av/audio/frame.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/frame.pyx
  Compiling av/audio/codeccontext.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/codeccontext.pyx
  Compiling av/audio/fifo.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/fifo.pyx
  Compiling av/audio/resampler.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/resampler.pyx
  Compiling av/audio/stream.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/audio/stream.pyx
  Compiling av/subtitles/codeccontext.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/subtitles/codeccontext.pyx
  Compiling av/subtitles/stream.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/subtitles/stream.pyx
  Compiling av/subtitles/subtitle.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/string.pxd.
  [1/1] Cythonizing av/subtitles/subtitle.pyx
  Compiling av/sidedata/sidedata.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/sidedata/sidedata.pyx
  Compiling av/sidedata/motionvectors.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/sidedata/motionvectors.pyx
  Compiling av/video/format.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/format.pyx
  Compiling av/video/reformatter.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/reformatter.pyx
  Compiling av/video/plane.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/plane.pyx
  Compiling av/video/frame.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/frame.pyx
  Compiling av/video/codeccontext.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/codeccontext.pyx
  Compiling av/video/stream.pyx because it depends on /usr/local/lib/python3.6/dist-packages/Cython/Includes/libc/stdint.pxd.
  [1/1] Cythonizing av/video/stream.pyx
  building 'av.buffer' extension
  creating build/temp.linux-x86_64-3.6/src
  creating build/temp.linux-x86_64-3.6/src/av
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/buffer.c -o build/temp.linux-x86_64-3.6/src/av/buffer.o
  x86_64-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-x86_64-3.6/src/av/buffer.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/buffer.cpython-36m-x86_64-linux-gnu.so
  building 'av.format' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/format.c -o build/temp.linux-x86_64-3.6/src/av/format.o
  x86_64-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-x86_64-3.6/src/av/format.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/format.cpython-36m-x86_64-linux-gnu.so
  building 'av.logging' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/logging.c -o build/temp.linux-x86_64-3.6/src/av/logging.o
  x86_64-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-x86_64-3.6/src/av/logging.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/logging.cpython-36m-x86_64-linux-gnu.so
  building 'av.packet' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/packet.c -o build/temp.linux-x86_64-3.6/src/av/packet.o
  x86_64-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-x86_64-3.6/src/av/packet.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/packet.cpython-36m-x86_64-linux-gnu.so
  building 'av.option' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/option.c -o build/temp.linux-x86_64-3.6/src/av/option.o
  x86_64-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-x86_64-3.6/src/av/option.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/option.cpython-36m-x86_64-linux-gnu.so
  building 'av.dictionary' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/dictionary.c -o build/temp.linux-x86_64-3.6/src/av/dictionary.o
  x86_64-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-x86_64-3.6/src/av/dictionary.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/dictionary.cpython-36m-x86_64-linux-gnu.so
  building 'av.descriptor' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/descriptor.c -o build/temp.linux-x86_64-3.6/src/av/descriptor.o
  x86_64-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-x86_64-3.6/src/av/descriptor.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/descriptor.cpython-36m-x86_64-linux-gnu.so
  building 'av.plane' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/plane.c -o build/temp.linux-x86_64-3.6/src/av/plane.o
  x86_64-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-x86_64-3.6/src/av/plane.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/plane.cpython-36m-x86_64-linux-gnu.so
  building 'av.enum' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/enum.c -o build/temp.linux-x86_64-3.6/src/av/enum.o
  x86_64-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-x86_64-3.6/src/av/enum.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/enum.cpython-36m-x86_64-linux-gnu.so
  building 'av.frame' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/frame.c -o build/temp.linux-x86_64-3.6/src/av/frame.o
  x86_64-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-x86_64-3.6/src/av/frame.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/frame.cpython-36m-x86_64-linux-gnu.so
  building 'av.bytesource' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/bytesource.c -o build/temp.linux-x86_64-3.6/src/av/bytesource.o
  x86_64-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-x86_64-3.6/src/av/bytesource.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/bytesource.cpython-36m-x86_64-linux-gnu.so
  building 'av.utils' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/utils.c -o build/temp.linux-x86_64-3.6/src/av/utils.o
  x86_64-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-x86_64-3.6/src/av/utils.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/utils.cpython-36m-x86_64-linux-gnu.so
  building 'av.stream' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/stream.c -o build/temp.linux-x86_64-3.6/src/av/stream.o
  src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
  src/av/stream.c:2276: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:668:
  /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:2886: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:668:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/stream.c:3009: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:3695: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:668:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  x86_64-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-x86_64-3.6/src/av/stream.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/stream.cpython-36m-x86_64-linux-gnu.so
  building 'av.error' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/error.c -o build/temp.linux-x86_64-3.6/src/av/error.o
  x86_64-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-x86_64-3.6/src/av/error.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/error.cpython-36m-x86_64-linux-gnu.so
  building 'av._core' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/_core.c -o build/temp.linux-x86_64-3.6/src/av/_core.o
  x86_64-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-x86_64-3.6/src/av/_core.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/_core.cpython-36m-x86_64-linux-gnu.so
  building 'av.data.stream' extension
  creating build/temp.linux-x86_64-3.6/src/av/data
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/data/stream.c -o build/temp.linux-x86_64-3.6/src/av/data/stream.o
  x86_64-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-x86_64-3.6/src/av/data/stream.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/data/stream.cpython-36m-x86_64-linux-gnu.so
  building 'av.container.input' extension
  creating build/temp.linux-x86_64-3.6/src/av/container
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/input.c -o build/temp.linux-x86_64-3.6/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:4809: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:667:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4815: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:667:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4821: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:667:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/input.c:4831: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:667:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  x86_64-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-x86_64-3.6/src/av/container/input.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/container/input.cpython-36m-x86_64-linux-gnu.so
  building 'av.container.output' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/output.c -o build/temp.linux-x86_64-3.6/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:2906: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:667:
  /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
       AVCodecContext *codec;
                       ^~~~~
  src/av/container/output.c:2927: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:666:0:
  /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
   int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
       ^~~~~~~~~~~~~~~~~~~~
  x86_64-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-x86_64-3.6/src/av/container/output.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/container/output.cpython-36m-x86_64-linux-gnu.so
  building 'av.container.pyio' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/pyio.c -o build/temp.linux-x86_64-3.6/src/av/container/pyio.o
  x86_64-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-x86_64-3.6/src/av/container/pyio.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/container/pyio.cpython-36m-x86_64-linux-gnu.so
  building 'av.container.streams' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/streams.c -o build/temp.linux-x86_64-3.6/src/av/container/streams.o
  x86_64-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-x86_64-3.6/src/av/container/streams.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/container/streams.cpython-36m-x86_64-linux-gnu.so
  building 'av.container.core' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/core.c -o build/temp.linux-x86_64-3.6/src/av/container/core.o
  x86_64-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-x86_64-3.6/src/av/container/core.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/container/core.cpython-36m-x86_64-linux-gnu.so
  building 'av.filter.filter' extension
  creating build/temp.linux-x86_64-3.6/src/av/filter
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/filter.c -o build/temp.linux-x86_64-3.6/src/av/filter/filter.o
  x86_64-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-x86_64-3.6/src/av/filter/filter.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/filter/filter.cpython-36m-x86_64-linux-gnu.so
  building 'av.filter.context' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/context.c -o build/temp.linux-x86_64-3.6/src/av/filter/context.o
  x86_64-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-x86_64-3.6/src/av/filter/context.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/filter/context.cpython-36m-x86_64-linux-gnu.so
  building 'av.filter.graph' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/graph.c -o build/temp.linux-x86_64-3.6/src/av/filter/graph.o
  x86_64-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-x86_64-3.6/src/av/filter/graph.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/filter/graph.cpython-36m-x86_64-linux-gnu.so
  building 'av.filter.pad' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/pad.c -o build/temp.linux-x86_64-3.6/src/av/filter/pad.o
  x86_64-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-x86_64-3.6/src/av/filter/pad.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/filter/pad.cpython-36m-x86_64-linux-gnu.so
  building 'av.filter.link' extension
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/link.c -o build/temp.linux-x86_64-3.6/src/av/filter/link.o
  x86_64-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-x86_64-3.6/src/av/filter/link.o -lavcodec -lavutil -lavfilter -lavdevice -lswresample -lswscale -lavformat -o build/lib.linux-x86_64-3.6/av/filter/link.cpython-36m-x86_64-linux-gnu.so
  building 'av.codec.codec' extension
  creating build/temp.linux-x86_64-3.6/src/av/codec
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/x86_64-linux-gnu -Iinclude -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/codec/codec.c -o build/temp.linux-x86_64-3.6/src/av/codec/codec.o
  src/av/codec/codec.c: In function ‘__pyx_pymod_exec_codec’:
  src/av/codec/codec.c:6056: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:6056:36: note: each undeclared identifier is reported only once for each function it appears in
  src/av/codec/codec.c:6077: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 'x86_64-linux-gnu-gcc' failed with exit status 1
error
  ERROR: Failed building wheel for av
  Running setup.py clean for av
  Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  running clean
  removing 'build/temp.linux-x86_64-3.6' (and everything under it)
  removing 'build/lib.linux-x86_64-3.6' (and everything under it)
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.6' does not exist -- can't clean it
  removing 'build'
Failed to build av
Installing collected packages: av
  Created temporary directory: /tmp/pip-record-__50fu7b
    Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zew0set/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-__50fu7b/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/av
    copying av/datasets.py -> build/lib.linux-x86_64-3.6/av
    copying av/deprecation.py -> build/lib.linux-x86_64-3.6/av
    copying av/__init__.py -> build/lib.linux-x86_64-3.6/av
    copying av/__main__.py -> build/lib.linux-x86_64-3.6/av
    creating build/lib.linux-x86_64-3.6/av/data
    copying av/data/__init__.py -> build/lib.linux-x86_64-3.6/av/data
    creating build/lib.linux-x86_64-3.6/av/container
    copying av/container/__init__.py -> build/lib.linux-x86_64-3.6/av/container
    creating build/lib.linux-x86_64-3.6/av/filter
    copying av/filter/__init__.py -> build/lib.linux-x86_64-3.6/av/filter
    creating build/lib.linux-x86_64-3.6/av/codec
    copying av/codec/__init__.py -> build/lib.linux-x86_64-3.6/av/codec
    creating build/lib.linux-x86_64-3.6/av/audio
    copying av/audio/__init__.py -> build/lib.linux-x86_64-3.6/av/audio
    creating build/lib.linux-x86_64-3.6/av/subtitles
    copying av/subtitles/__init__.py -> build/lib.linux-x86_64-3.6/av/subtitles
    creating build/lib.linux-x86_64-3.6/av/sidedata
    copying av/sidedata/__init__.py -> build/lib.linux-x86_64-3.6/av/sidedata
    creating build/lib.linux-x86_64-3.6/av/video
    copying av/video/__init__.py -> build/lib.linux-x86_64-3.6/av/video
    running build_ext
    running config
    PyAV: 7.0.1 (unknown commit)
    Python: 3.6.9 (default, Nov  7 2019, 10:44:02) \n[GCC 8.3.0]
    platform: Linux-4.14.137+-x86_64-with-Ubuntu-18.04-bionic
    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.6/include/pyav/config.h
    running cythonize
    building 'av.buffer' extension
    creating build/temp.linux-x86_64-3.6/src
    creating build/temp.linux-x86_64-3.6/src/av
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/buffer.c -o build/temp.linux-x86_64-3.6/src/av/buffer.o
    x86_64-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-x86_64-3.6/src/av/buffer.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/buffer.cpython-36m-x86_64-linux-gnu.so
    building 'av.format' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/format.c -o build/temp.linux-x86_64-3.6/src/av/format.o
    x86_64-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-x86_64-3.6/src/av/format.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/format.cpython-36m-x86_64-linux-gnu.so
    building 'av.logging' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/logging.c -o build/temp.linux-x86_64-3.6/src/av/logging.o
    x86_64-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-x86_64-3.6/src/av/logging.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/logging.cpython-36m-x86_64-linux-gnu.so
    building 'av.packet' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/packet.c -o build/temp.linux-x86_64-3.6/src/av/packet.o
    x86_64-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-x86_64-3.6/src/av/packet.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/packet.cpython-36m-x86_64-linux-gnu.so
    building 'av.option' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/option.c -o build/temp.linux-x86_64-3.6/src/av/option.o
    x86_64-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-x86_64-3.6/src/av/option.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/option.cpython-36m-x86_64-linux-gnu.so
    building 'av.dictionary' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/dictionary.c -o build/temp.linux-x86_64-3.6/src/av/dictionary.o
    x86_64-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-x86_64-3.6/src/av/dictionary.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/dictionary.cpython-36m-x86_64-linux-gnu.so
    building 'av.descriptor' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/descriptor.c -o build/temp.linux-x86_64-3.6/src/av/descriptor.o
    x86_64-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-x86_64-3.6/src/av/descriptor.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/descriptor.cpython-36m-x86_64-linux-gnu.so
    building 'av.plane' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/plane.c -o build/temp.linux-x86_64-3.6/src/av/plane.o
    x86_64-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-x86_64-3.6/src/av/plane.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/plane.cpython-36m-x86_64-linux-gnu.so
    building 'av.enum' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/enum.c -o build/temp.linux-x86_64-3.6/src/av/enum.o
    x86_64-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-x86_64-3.6/src/av/enum.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/enum.cpython-36m-x86_64-linux-gnu.so
    building 'av.frame' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/frame.c -o build/temp.linux-x86_64-3.6/src/av/frame.o
    x86_64-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-x86_64-3.6/src/av/frame.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/frame.cpython-36m-x86_64-linux-gnu.so
    building 'av.bytesource' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/bytesource.c -o build/temp.linux-x86_64-3.6/src/av/bytesource.o
    x86_64-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-x86_64-3.6/src/av/bytesource.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/bytesource.cpython-36m-x86_64-linux-gnu.so
    building 'av.utils' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/utils.c -o build/temp.linux-x86_64-3.6/src/av/utils.o
    x86_64-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-x86_64-3.6/src/av/utils.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/utils.cpython-36m-x86_64-linux-gnu.so
    building 'av.stream' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/stream.c -o build/temp.linux-x86_64-3.6/src/av/stream.o
    src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
    src/av/stream.c:2276: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:668:
    /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:2886: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:668:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/stream.c:3009: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:3695: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:668:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    x86_64-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-x86_64-3.6/src/av/stream.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/stream.cpython-36m-x86_64-linux-gnu.so
    building 'av.error' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/error.c -o build/temp.linux-x86_64-3.6/src/av/error.o
    x86_64-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-x86_64-3.6/src/av/error.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/error.cpython-36m-x86_64-linux-gnu.so
    building 'av._core' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/_core.c -o build/temp.linux-x86_64-3.6/src/av/_core.o
    x86_64-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-x86_64-3.6/src/av/_core.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/_core.cpython-36m-x86_64-linux-gnu.so
    building 'av.data.stream' extension
    creating build/temp.linux-x86_64-3.6/src/av/data
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/data/stream.c -o build/temp.linux-x86_64-3.6/src/av/data/stream.o
    x86_64-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-x86_64-3.6/src/av/data/stream.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/data/stream.cpython-36m-x86_64-linux-gnu.so
    building 'av.container.input' extension
    creating build/temp.linux-x86_64-3.6/src/av/container
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/input.c -o build/temp.linux-x86_64-3.6/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:4809: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:667:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4815: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:667:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4821: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:667:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/input.c:4831: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:667:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    x86_64-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-x86_64-3.6/src/av/container/input.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/container/input.cpython-36m-x86_64-linux-gnu.so
    building 'av.container.output' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/output.c -o build/temp.linux-x86_64-3.6/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:2906: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:667:
    /usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
         AVCodecContext *codec;
                         ^~~~~
    src/av/container/output.c:2927: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:666:0:
    /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
     int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
         ^~~~~~~~~~~~~~~~~~~~
    x86_64-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-x86_64-3.6/src/av/container/output.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/container/output.cpython-36m-x86_64-linux-gnu.so
    building 'av.container.pyio' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/pyio.c -o build/temp.linux-x86_64-3.6/src/av/container/pyio.o
    x86_64-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-x86_64-3.6/src/av/container/pyio.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/container/pyio.cpython-36m-x86_64-linux-gnu.so
    building 'av.container.streams' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/streams.c -o build/temp.linux-x86_64-3.6/src/av/container/streams.o
    x86_64-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-x86_64-3.6/src/av/container/streams.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/container/streams.cpython-36m-x86_64-linux-gnu.so
    building 'av.container.core' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/container/core.c -o build/temp.linux-x86_64-3.6/src/av/container/core.o
    x86_64-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-x86_64-3.6/src/av/container/core.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/container/core.cpython-36m-x86_64-linux-gnu.so
    building 'av.filter.filter' extension
    creating build/temp.linux-x86_64-3.6/src/av/filter
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/filter.c -o build/temp.linux-x86_64-3.6/src/av/filter/filter.o
    x86_64-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-x86_64-3.6/src/av/filter/filter.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/filter/filter.cpython-36m-x86_64-linux-gnu.so
    building 'av.filter.context' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/context.c -o build/temp.linux-x86_64-3.6/src/av/filter/context.o
    x86_64-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-x86_64-3.6/src/av/filter/context.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/filter/context.cpython-36m-x86_64-linux-gnu.so
    building 'av.filter.graph' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/graph.c -o build/temp.linux-x86_64-3.6/src/av/filter/graph.o
    x86_64-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-x86_64-3.6/src/av/filter/graph.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/filter/graph.cpython-36m-x86_64-linux-gnu.so
    building 'av.filter.pad' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/pad.c -o build/temp.linux-x86_64-3.6/src/av/filter/pad.o
    x86_64-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-x86_64-3.6/src/av/filter/pad.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/filter/pad.cpython-36m-x86_64-linux-gnu.so
    building 'av.filter.link' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/filter/link.c -o build/temp.linux-x86_64-3.6/src/av/filter/link.o
    x86_64-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-x86_64-3.6/src/av/filter/link.o -lavutil -lavdevice -lavcodec -lavformat -lavfilter -lswscale -lswresample -o build/lib.linux-x86_64-3.6/av/filter/link.cpython-36m-x86_64-linux-gnu.so
    building 'av.codec.codec' extension
    creating build/temp.linux-x86_64-3.6/src/av/codec
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -Iinclude -I/usr/include/x86_64-linux-gnu -Ibuild/temp.linux-x86_64-3.6/include -I/usr/include/python3.6m -Ibuild/temp.linux-x86_64-3.6/include -c src/av/codec/codec.c -o build/temp.linux-x86_64-3.6/src/av/codec/codec.o
    src/av/codec/codec.c: In function ‘__pyx_pymod_exec_codec’:
    src/av/codec/codec.c:6056: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:6056:36: note: each undeclared identifier is reported only once for each function it appears in
    src/av/codec/codec.c:6077: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 'x86_64-linux-gnu-gcc' failed with exit status 1
    Running setup.py install for av ... error
Cleaning up...
  Removing source in /tmp/pip-install-7zew0set/av
Removed build tracker '/tmp/pip-req-tracker-lnik108s'
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zew0set/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-__50fu7b/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py", line 153, in _main
    status = self.run(options, args)
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py", line 455, in run
    use_user_site=options.use_user_site,
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/__init__.py", line 62, in install_given_reqs
    **kwargs
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/req_install.py", line 888, in install
    cwd=self.unpacked_source_directory,
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 275, in runner
    spinner=spinner,
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zew0set/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zew0set/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-__50fu7b/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Investigation

{{ What you did to isolate the problem. }}

Reproduction

{{ Steps to reproduce the behavior. }}

Versions

Research

I have done the following:

Additional context

{{ Add any other context about the problem here. }}

mikeboers commented 4 years ago

PyAV does not support FFmpeg < 4.0