J'ai fait fork du projet aiortc pour la raspberry pi avec utilisation de l'encodage matériel :
https://github.com/jpiat/aiortc
peux tu essayer l'exemple examples/picam et me dire si ça fonctionne chez toi ?
pour installer (dans le répertoire du projet)
sudo apt install libffi-dev libopus-dev libvpx-dev libsrtp2-dev libavdevice-dev libavfilter-dev
git clone https://github.com/jpiat/aiortc
cd aiortc/
python3 setup.py bdist_wheel
sudo pip3 install dist/*.whl
cd examples/picam
python3 webcam.py
Ouvrir un navigateur (chrome ou chromium sur PC ou chrome sur Android) sur un PC/smartphone connecté au même réseau :
http://ip:8080
cliquer sur start
===Tentative d'installation sur Buster et Erreurs===
J'ai du installer les paquets libavdevice-dev libavfilter-dev, mais voici le résumé de l'erreur obtenue après:
src/av/codec/codec.c:6117:36: error: ‘AV_CODEC_CAP_HARDWARE’ undeclared (first use in this function)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
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)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Détails:
sudo pip3 install dist/*.whl
/usr/lib/python3/dist-packages/OpenSSL/_util.py:6: CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python.
from cryptography.hazmat.bindings.openssl.binding import Binding
Processing ./dist/aiortc-1.0.0-cp35-cp35m-linux_armv7l.whl
Collecting pyee>=6.0.0 (from aiortc==1.0.0)
Using cached https://files.pythonhosted.org/packages/0d/0a/933b3931107e1da186963fd9bb9bceb9a613cff034cb0fb3b0c61003f357/pyee-8.1.0-py2.py3-none-any.whl
Requirement already satisfied: cffi>=1.0.0 in /usr/local/lib/python3.5/dist-packages (from aiortc==1.0.0)
Collecting crc32c (from aiortc==1.0.0)
Using cached https://www.piwheels.org/simple/crc32c/crc32c-2.2-cp35-cp35m-linux_armv7l.whl
Collecting dataclasses (from aiortc==1.0.0)
Using cached https://files.pythonhosted.org/packages/26/2f/1095cdc2868052dd1e64520f7c0d5c8c550ad297e944e641dbf1ffbb9a5d/dataclasses-0.6-py3-none-any.whl
Collecting pylibsrtp>=0.5.6 (from aiortc==1.0.0)
Requirement already satisfied: cryptography>=2.2 in /usr/local/lib/python3.5/dist-packages (from aiortc==1.0.0)
Collecting av<9.0.0,>=8.0.0 (from aiortc==1.0.0)
Using cached https://files.pythonhosted.org/packages/08/bf/83b16b2ef4f414e1a127d484e1617d14c2e09c2b258dd6df4780a9dbb4d7/av-8.0.2.tar.gz
Collecting aioice<0.7.0,>=0.6.17 (from aiortc==1.0.0)
Using cached https://files.pythonhosted.org/packages/8b/86/e3cdf660b67da7a9a7013253db5db7cf786a52296cb40078db1206177698/aioice-0.6.18-py3-none-any.whl
Requirement already satisfied: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.0.0->aiortc==1.0.0)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography>=2.2->aiortc==1.0.0)
Collecting netifaces (from aioice<0.7.0,>=0.6.17->aiortc==1.0.0)
Using cached https://www.piwheels.org/simple/netifaces/netifaces-0.10.9-cp35-cp35m-linux_armv7l.whl
Building wheels for collected packages: av
Running setup.py bdist_wheel for av ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wmhrif23/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/tmpwoqxzm5jpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.5/av
copying av/datasets.py -> build/lib.linux-armv7l-3.5/av
copying av/__init__.py -> build/lib.linux-armv7l-3.5/av
copying av/__main__.py -> build/lib.linux-armv7l-3.5/av
creating build/lib.linux-armv7l-3.5/av/video
copying av/video/__init__.py -> build/lib.linux-armv7l-3.5/av/video
creating build/lib.linux-armv7l-3.5/av/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.5/av/audio
creating build/lib.linux-armv7l-3.5/av/codec
copying av/codec/__init__.py -> build/lib.linux-armv7l-3.5/av/codec
creating build/lib.linux-armv7l-3.5/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.5/av/container
creating build/lib.linux-armv7l-3.5/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.5/av/subtitles
creating build/lib.linux-armv7l-3.5/av/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.5/av/data
creating build/lib.linux-armv7l-3.5/av/filter
copying av/filter/__init__.py -> build/lib.linux-armv7l-3.5/av/filter
creating build/lib.linux-armv7l-3.5/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.5/av/sidedata
running build_ext
running config
PyAV: 8.0.2 (unknown commit)
Python: 3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]
platform: Linux-4.19.66-v7+-armv7l-with-debian-9.11
extension_extra:
library_dirs: []
include_dirs: [b'include', b'/usr/include/arm-linux-gnueabihf']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
runtime_library_dirs: []
define_macros: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.2
PYAV_VERSION_STR="8.0.2"
writing build/temp.linux-armv7l-3.5/include/pyav/config.h
running cythonize
building 'av.option' extension
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/av
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/option.c -o build/temp.linux-armv7l-3.5/src/av/option.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/option.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/option.cpython-35m-arm-linux-gnueabihf.so
building 'av.frame' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/frame.c -o build/temp.linux-armv7l-3.5/src/av/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/frame.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.bytesource' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/bytesource.c -o build/temp.linux-armv7l-3.5/src/av/bytesource.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/bytesource.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/bytesource.cpython-35m-arm-linux-gnueabihf.so
building 'av.utils' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/utils.c -o build/temp.linux-armv7l-3.5/src/av/utils.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/utils.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/utils.cpython-35m-arm-linux-gnueabihf.so
building 'av.descriptor' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.5/src/av/descriptor.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/descriptor.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/descriptor.cpython-35m-arm-linux-gnueabihf.so
building 'av.packet' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/packet.c -o build/temp.linux-armv7l-3.5/src/av/packet.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/packet.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/packet.cpython-35m-arm-linux-gnueabihf.so
building 'av.buffer' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/buffer.c -o build/temp.linux-armv7l-3.5/src/av/buffer.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/buffer.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/buffer.cpython-35m-arm-linux-gnueabihf.so
building 'av.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/plane.c -o build/temp.linux-armv7l-3.5/src/av/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/plane.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.dictionary' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/dictionary.c -o build/temp.linux-armv7l-3.5/src/av/dictionary.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/dictionary.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/dictionary.cpython-35m-arm-linux-gnueabihf.so
building 'av._core' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/_core.c -o build/temp.linux-armv7l-3.5/src/av/_core.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/_core.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/_core.cpython-35m-arm-linux-gnueabihf.so
building 'av.enum' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/enum.c -o build/temp.linux-armv7l-3.5/src/av/enum.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/enum.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/enum.cpython-35m-arm-linux-gnueabihf.so
building 'av.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/stream.c -o build/temp.linux-armv7l-3.5/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/stream.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.error' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/error.c -o build/temp.linux-armv7l-3.5/src/av/error.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/error.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/error.cpython-35m-arm-linux-gnueabihf.so
building 'av.logging' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/logging.c -o build/temp.linux-armv7l-3.5/src/av/logging.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/logging.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/logging.cpython-35m-arm-linux-gnueabihf.so
building 'av.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/format.c -o build/temp.linux-armv7l-3.5/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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_muxer_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~
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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_demuxer_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~~~
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));
^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/format.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.frame' extension
creating build/temp.linux-armv7l-3.5/src/av/video
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/frame.c -o build/temp.linux-armv7l-3.5/src/av/video/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/frame.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/plane.c -o build/temp.linux-armv7l-3.5/src/av/video/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/plane.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.codeccontext' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/codeccontext.c -o build/temp.linux-armv7l-3.5/src/av/video/codeccontext.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/codeccontext.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/codeccontext.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.reformatter' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/reformatter.c -o build/temp.linux-armv7l-3.5/src/av/video/reformatter.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/reformatter.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/reformatter.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/stream.c -o build/temp.linux-armv7l-3.5/src/av/video/stream.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/stream.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/format.c -o build/temp.linux-armv7l-3.5/src/av/video/format.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/format.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/video/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.frame' extension
creating build/temp.linux-armv7l-3.5/src/av/audio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/frame.c -o build/temp.linux-armv7l-3.5/src/av/audio/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/frame.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.layout' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/layout.c -o build/temp.linux-armv7l-3.5/src/av/audio/layout.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/layout.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/layout.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.resampler' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/resampler.c -o build/temp.linux-armv7l-3.5/src/av/audio/resampler.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/resampler.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/resampler.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/plane.c -o build/temp.linux-armv7l-3.5/src/av/audio/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/plane.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.codeccontext' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/codeccontext.c -o build/temp.linux-armv7l-3.5/src/av/audio/codeccontext.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/codeccontext.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/codeccontext.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/stream.c -o build/temp.linux-armv7l-3.5/src/av/audio/stream.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/stream.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.fifo' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/fifo.c -o build/temp.linux-armv7l-3.5/src/av/audio/fifo.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/fifo.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/fifo.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/format.c -o build/temp.linux-armv7l-3.5/src/av/audio/format.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/format.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/audio/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.codec.context' extension
creating build/temp.linux-armv7l-3.5/src/av/codec
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/codec/context.c -o build/temp.linux-armv7l-3.5/src/av/codec/context.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/codec/context.o -lavcodec -lavutil -lswresample -lavfilter -lswscale -lavformat -lavdevice -o build/lib.linux-armv7l-3.5/av/codec/context.cpython-35m-arm-linux-gnueabihf.so
building 'av.codec.codec' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5m -I/usr/include/arm-linux-gnueabihf -Ibuild/temp.linux-armv7l-3.5/include -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/codec/codec.c -o build/temp.linux-armv7l-3.5/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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~
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)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
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)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: pyee, crc32c, dataclasses, pylibsrtp, av, netifaces, aioice, aiortc
Running setup.py install for av ... /
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wmhrif23/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-n289jlki-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.5/av
copying av/datasets.py -> build/lib.linux-armv7l-3.5/av
copying av/__init__.py -> build/lib.linux-armv7l-3.5/av
copying av/__main__.py -> build/lib.linux-armv7l-3.5/av
creating build/lib.linux-armv7l-3.5/av/video
copying av/video/__init__.py -> build/lib.linux-armv7l-3.5/av/video
creating build/lib.linux-armv7l-3.5/av/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.5/av/audio
creating build/lib.linux-armv7l-3.5/av/codec
copying av/codec/__init__.py -> build/lib.linux-armv7l-3.5/av/codec
creating build/lib.linux-armv7l-3.5/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.5/av/container
creating build/lib.linux-armv7l-3.5/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.5/av/subtitles
creating build/lib.linux-armv7l-3.5/av/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.5/av/data
creating build/lib.linux-armv7l-3.5/av/filter
copying av/filter/__init__.py -> build/lib.linux-armv7l-3.5/av/filter
creating build/lib.linux-armv7l-3.5/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.5/av/sidedata
running build_ext
running config
PyAV: 8.0.2 (unknown commit)
Python: 3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]
platform: Linux-4.19.66-v7+-armv7l-with-debian-9.11
extension_extra:
library_dirs: []
include_dirs: [b'include', b'/usr/include/arm-linux-gnueabihf']
runtime_library_dirs: []
define_macros: []
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.2
PYAV_VERSION_STR="8.0.2"
writing build/temp.linux-armv7l-3.5/include/pyav/config.h
running cythonize
building 'av.option' extension
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/av
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/option.c -o build/temp.linux-armv7l-3.5/src/av/option.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/option.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/option.cpython-35m-arm-linux-gnueabihf.so
building 'av.frame' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/frame.c -o build/temp.linux-armv7l-3.5/src/av/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/frame.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.bytesource' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/bytesource.c -o build/temp.linux-armv7l-3.5/src/av/bytesource.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/bytesource.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/bytesource.cpython-35m-arm-linux-gnueabihf.so
building 'av.utils' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/utils.c -o build/temp.linux-armv7l-3.5/src/av/utils.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/utils.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/utils.cpython-35m-arm-linux-gnueabihf.so
building 'av.descriptor' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.5/src/av/descriptor.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/descriptor.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/descriptor.cpython-35m-arm-linux-gnueabihf.so
building 'av.packet' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/packet.c -o build/temp.linux-armv7l-3.5/src/av/packet.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/packet.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/packet.cpython-35m-arm-linux-gnueabihf.so
building 'av.buffer' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/buffer.c -o build/temp.linux-armv7l-3.5/src/av/buffer.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/buffer.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/buffer.cpython-35m-arm-linux-gnueabihf.so
building 'av.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/plane.c -o build/temp.linux-armv7l-3.5/src/av/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/plane.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.dictionary' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/dictionary.c -o build/temp.linux-armv7l-3.5/src/av/dictionary.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/dictionary.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/dictionary.cpython-35m-arm-linux-gnueabihf.so
building 'av._core' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/_core.c -o build/temp.linux-armv7l-3.5/src/av/_core.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/_core.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/_core.cpython-35m-arm-linux-gnueabihf.so
building 'av.enum' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/enum.c -o build/temp.linux-armv7l-3.5/src/av/enum.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/enum.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/enum.cpython-35m-arm-linux-gnueabihf.so
building 'av.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/stream.c -o build/temp.linux-armv7l-3.5/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/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/arm-linux-gnueabihf/libavdevice/avdevice.h:51:0,
from src/av/stream.c:673:
/usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/stream.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.error' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/error.c -o build/temp.linux-armv7l-3.5/src/av/error.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/error.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/error.cpython-35m-arm-linux-gnueabihf.so
building 'av.logging' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/logging.c -o build/temp.linux-armv7l-3.5/src/av/logging.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/logging.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/logging.cpython-35m-arm-linux-gnueabihf.so
building 'av.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/format.c -o build/temp.linux-armv7l-3.5/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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_muxer_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~
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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_demuxer_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~~~
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));
^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/format.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.frame' extension
creating build/temp.linux-armv7l-3.5/src/av/video
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/frame.c -o build/temp.linux-armv7l-3.5/src/av/video/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/frame.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/plane.c -o build/temp.linux-armv7l-3.5/src/av/video/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/plane.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.codeccontext' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/codeccontext.c -o build/temp.linux-armv7l-3.5/src/av/video/codeccontext.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/codeccontext.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/codeccontext.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.reformatter' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/reformatter.c -o build/temp.linux-armv7l-3.5/src/av/video/reformatter.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/reformatter.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/reformatter.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/stream.c -o build/temp.linux-armv7l-3.5/src/av/video/stream.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/stream.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.video.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/video/format.c -o build/temp.linux-armv7l-3.5/src/av/video/format.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/video/format.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/video/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.frame' extension
creating build/temp.linux-armv7l-3.5/src/av/audio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/frame.c -o build/temp.linux-armv7l-3.5/src/av/audio/frame.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/frame.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/frame.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.layout' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/layout.c -o build/temp.linux-armv7l-3.5/src/av/audio/layout.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/layout.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/layout.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.resampler' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/resampler.c -o build/temp.linux-armv7l-3.5/src/av/audio/resampler.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/resampler.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/resampler.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.plane' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/plane.c -o build/temp.linux-armv7l-3.5/src/av/audio/plane.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/plane.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/plane.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.codeccontext' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/codeccontext.c -o build/temp.linux-armv7l-3.5/src/av/audio/codeccontext.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/codeccontext.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/codeccontext.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.stream' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/stream.c -o build/temp.linux-armv7l-3.5/src/av/audio/stream.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/stream.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/stream.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.fifo' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/fifo.c -o build/temp.linux-armv7l-3.5/src/av/audio/fifo.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/fifo.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/fifo.cpython-35m-arm-linux-gnueabihf.so
building 'av.audio.format' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/audio/format.c -o build/temp.linux-armv7l-3.5/src/av/audio/format.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/audio/format.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/audio/format.cpython-35m-arm-linux-gnueabihf.so
building 'av.codec.context' extension
creating build/temp.linux-armv7l-3.5/src/av/codec
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/codec/context.c -o build/temp.linux-armv7l-3.5/src/av/codec/context.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/av/codec/context.o -lswscale -lswresample -lavcodec -lavdevice -lavfilter -lavutil -lavformat -o build/lib.linux-armv7l-3.5/av/codec/context.cpython-35m-arm-linux-gnueabihf.so
building 'av.codec.codec' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -Iinclude -I/usr/include/arm-linux-gnueabihf -I/usr/include/python3.5m -Ibuild/temp.linux-armv7l-3.5/include -c src/av/codec/codec.c -o build/temp.linux-armv7l-3.5/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’ [-Wimplicit-function-declaration]
__pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));
^~~~~~~~~~~~~~~~
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)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
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)
__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wmhrif23/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-n289jlki-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-wmhrif23/av/
pi@localhost:~/aiortc $
===tentative d'install sur rapsberry os frais===
activation avec raspi-config de camera + i2c + gpio
utilisation de virtual environnement:
sudo apt install python3-venv
sudo apt install libffi-dev libopus-dev libvpx-dev libsrtp2-dev libavdevice-dev libavfilter-dev
git clone https://github.com/jpiat/aiortc
cd aiortc/
#a faire hors du venv
python3 setup.py bdist_wheel
python3 -m venv env
source env/bin/activate
pip install -U pip
pip3 install picamera aiohttp
pip3 install dist/*.whl
cd examples/picam
python3 webcam.py
quand j'essaie d'accéder au flux depuis chromium:, le navigateur affiche:
InvalidStateError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': The RTCPeerConnection's signalingState is 'closed'.
Dans la console du serveur:
RTCSessionDescription(sdp='v=0\r\no=- 3814293272 3814293272 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=msid-semantic:WMS *\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 102 121 125 107\r\nc=IN IP4 0.0.0.0\r\na=sendonly\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=mid:0\r\na=msid:977d94a4-f9cb-4fec-8276-cce2d86a91ca c9f9986f-c51c-4488-91bf-c574c8e9de4c\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=rtcp-mux\r\na=ssrc-group:FID 3993481588 1511147880\r\na=ssrc:3993481588 cname:1e466b92-ae4f-46f9-8a4d-dc61b7c6c20a\r\na=ssrc:1511147880 cname:1e466b92-ae4f-46f9-8a4d-dc61b7c6c20a\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:102 H264/90000\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:102 goog-remb\r\na=fmtp:102 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42001f\r\na=rtpmap:121 rtx/90000\r\na=fmtp:121 apt=102\r\na=rtpmap:125 H264/90000\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=rtcp-fb:125 goog-remb\r\na=fmtp:125 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42e01f\r\na=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=125\r\na=ice-ufrag:cNsc\r\na=ice-pwd:VMfoDhCzEu56IYZMQ1aw8P\r\na=fingerprint:sha-256 A4:7F:99:62:0E:5A:C3:C8:C7:70:4D:4A:71:62:B6:51:E6:AB:55:C1:48:DF:F3:0C:5B:CF:A7:FB:2C:30:EE:8F\r\na=setup:active\r\n', type='answer')
ICE connection state is checking
En cochant STUN server, ca fonctionne.
====Activation décodage matériel dans chromium browser====
https://www.linuxuprising.com/2018/08/how-to-enable-hardware-accelerated.html