spiritualized / libprick Goto Github PK
View Code? Open in Web Editor NEWGenerate metadata-independent sha256 hashes of audio/video streams
Generate metadata-independent sha256 hashes of audio/video streams
fred@デブ狸~/Workspace/smarthash/dist/smarthash% pacman -Qi ffmpeg
Name : ffmpeg
Version : 2:6.0-4
Description : Complete solution to record, convert and stream audio and video
Architecture : x86_64
URL : https://ffmpeg.org/
Licenses : GPL3
Groups : None
Provides : libavcodec.so=60-64 libavdevice.so=60-64 libavfilter.so=9-64 libavformat.so=60-64 libavutil.so=58-64 libpostproc.so=57-64 libswresample.so=4-64 libswscale.so=7-64
Depends On : alsa-lib aom bzip2 fontconfig fribidi gmp gnutls gsm jack lame libass.so=9-64 libavc1394 libbluray.so=2-64 libbs2b.so=0-64 libdav1d.so=6-64 libdrm
libfreetype.so=6-64 libgl libiec61883 libjxl.so=0.8-64 libmfx libmodplug libopenmpt.so=0-64 libpulse librav1e.so=0-64 libraw1394 librsvg-2.so=2-64 libsoxr
libssh libtheora libva.so=2-64 libva-drm.so=2-64 libva-x11.so=2-64 libvdpau libvidstab.so=1.1-64 libvorbisenc.so=2-64 libvorbis.so=0-64 libvpx.so=8-64
libvulkan.so libwebp libx11 libx264.so=164-64 libx265.so=199-64 libxcb libxext libxml2 libxv libxvidcore.so=4-64 libzimg.so=2-64 ocl-icd opencore-amr
openjpeg2 opus sdl2 speex srt svt-av1 v4l-utils vmaf xz zlib
Optional Deps : avisynthplus: AviSynthPlus support [installed]
intel-media-sdk: Intel QuickSync support
ladspa: LADSPA filters
nvidia-utils: Nvidia NVDEC/NVENC support [installed]
Required By : blender-git chromaprint chromium ffmpegthumbs ffms2 firefox gst-libav jami-daemon kfilemetadata kpipewire mpv obs-studio opencv peek qt5-webengine
qt6-multimedia-ffmpeg qt6-webengine unpaper xine-lib
Optional For : alsa-plugins audacity gegl kdenlive krita libde265 mlt python-matplotlib tinycompress vtk xmms2
Conflicts With : None
Replaces : None
Installed Size : 37.08 MiB
Packager : Maxime Gauduin <[email protected]>
Build Date : Mon 20 Mar 2023 09:44:43 AM EDT
Install Date : Tue 21 Mar 2023 08:28:13 AM EDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
fred@デブ狸~/Workspace/smarthash/dist/smarthash% ./smarthash
Traceback (most recent call last):
File "smarthash.py", line 6, in <module>
ModuleNotFoundError: No module named 'libprick'
[419467] Failed to execute script 'smarthash' due to unhandled exception!
fred@デブ狸~/Workspace/smarthash/dist/smarthash% pip install libprick
Defaulting to user installation because normal site-packages is not writeable
Collecting libprick
Using cached libprick-1.1.0-py3-none-any.whl
Collecting av==8.0.2
Using cached av-8.0.2.tar.gz (2.3 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: av
Building wheel for av (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [158 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/av
copying av/deprecation.py -> build/lib.linux-x86_64-cpython-310/av
copying av/datasets.py -> build/lib.linux-x86_64-cpython-310/av
copying av/__main__.py -> build/lib.linux-x86_64-cpython-310/av
copying av/__init__.py -> build/lib.linux-x86_64-cpython-310/av
creating build/lib.linux-x86_64-cpython-310/av/video
copying av/video/__init__.py -> build/lib.linux-x86_64-cpython-310/av/video
creating build/lib.linux-x86_64-cpython-310/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-x86_64-cpython-310/av/subtitles
creating build/lib.linux-x86_64-cpython-310/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-x86_64-cpython-310/av/sidedata
creating build/lib.linux-x86_64-cpython-310/av/filter
copying av/filter/__init__.py -> build/lib.linux-x86_64-cpython-310/av/filter
creating build/lib.linux-x86_64-cpython-310/av/data
copying av/data/__init__.py -> build/lib.linux-x86_64-cpython-310/av/data
creating build/lib.linux-x86_64-cpython-310/av/container
copying av/container/__init__.py -> build/lib.linux-x86_64-cpython-310/av/container
creating build/lib.linux-x86_64-cpython-310/av/codec
copying av/codec/__init__.py -> build/lib.linux-x86_64-cpython-310/av/codec
creating build/lib.linux-x86_64-cpython-310/av/audio
copying av/audio/__init__.py -> build/lib.linux-x86_64-cpython-310/av/audio
running build_ext
running config
PyAV: 8.0.2 (unknown commit)
Python: 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201]
platform: Linux-6.2.8-zen1-1-zen-x86_64-with-glibc2.37
extension_extra:
include_dirs: [b'include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: []
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.2
PYAV_VERSION_STR="8.0.2"
writing build/temp.linux-x86_64-cpython-310/include/pyav/config.h
running cythonize
Compiling av/utils.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/utils.pyx
Compiling av/stream.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/stream.pyx
Compiling av/plane.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/plane.pyx
Compiling av/packet.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/packet.pyx
Compiling av/option.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/option.pyx
Compiling av/logging.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/logging.pyx
Compiling av/frame.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/frame.pyx
Compiling av/format.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/format.pyx
Compiling av/error.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/error.pyx
Compiling av/dictionary.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/dictionary.pyx
Compiling av/descriptor.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/descriptor.pyx
Compiling av/bytesource.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/cpython/buffer.pxd.
[1/1] Cythonizing av/bytesource.pyx
Compiling av/buffer.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/buffer.pyx
Compiling av/_core.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/_core.pyx
Compiling av/video/stream.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/stream.pyx
Compiling av/video/reformatter.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/reformatter.pyx
Compiling av/video/plane.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/plane.pyx
Compiling av/video/frame.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/frame.pyx
Compiling av/video/format.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/format.pyx
Compiling av/video/codeccontext.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/video/codeccontext.pyx
Compiling av/subtitles/subtitle.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/subtitles/subtitle.pyx
Compiling av/subtitles/stream.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/subtitles/stream.pyx
Compiling av/subtitles/codeccontext.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/subtitles/codeccontext.pyx
Compiling av/sidedata/sidedata.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/sidedata/sidedata.pyx
Compiling av/sidedata/motionvectors.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/sidedata/motionvectors.pyx
Compiling av/filter/pad.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/filter/pad.pyx
Compiling av/filter/link.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/filter/link.pyx
Compiling av/filter/graph.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/filter/graph.pyx
Compiling av/filter/filter.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/filter/filter.pyx
Compiling av/filter/context.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/filter/context.pyx
Compiling av/data/stream.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/data/stream.pyx
Compiling av/container/streams.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/container/streams.pyx
Compiling av/container/pyio.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/container/pyio.pyx
Compiling av/container/output.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/container/output.pyx
Compiling av/container/input.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/container/input.pyx
Compiling av/container/core.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/container/core.pyx
Compiling av/codec/context.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing av/codec/context.pyx
Compiling av/codec/codec.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/codec/codec.pyx
Compiling av/audio/stream.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/stream.pyx
Compiling av/audio/resampler.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/resampler.pyx
Compiling av/audio/plane.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/plane.pyx
Compiling av/audio/layout.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/layout.pyx
Compiling av/audio/frame.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/frame.pyx
Compiling av/audio/format.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/format.pyx
Compiling av/audio/fifo.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/fifo.pyx
Compiling av/audio/codeccontext.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/stdint.pxd.
[1/1] Cythonizing av/audio/codeccontext.pyx
building 'av.utils' extension
creating build/temp.linux-x86_64-cpython-310/src
creating build/temp.linux-x86_64-cpython-310/src/av
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -Iinclude -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -c src/av/utils.c -o build/temp.linux-x86_64-cpython-310/src/av/utils.o
gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto build/temp.linux-x86_64-cpython-310/src/av/utils.o -L/usr/lib -L/usr/lib -lavutil -lavdevice -lswresample -lavformat -lavfilter -lswscale -lavcodec -o build/lib.linux-x86_64-cpython-310/av/utils.cpython-310-x86_64-linux-gnu.so
building 'av.stream' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -Iinclude -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -c src/av/stream.c -o build/temp.linux-x86_64-cpython-310/src/av/stream.o
src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
src/av/stream.c:2369:27: error: ‘struct AVStream’ has no member named ‘codec’
2369 | switch (__pyx_v_c_stream->codec->codec_type) {
| ^~
src/av/stream.c: In function ‘__pyx_f_2av_6stream_6Stream__init’:
src/av/stream.c:2987:29: error: ‘struct AVStream’ has no member named ‘codec’
2987 | __pyx_t_1 = __pyx_v_stream->codec;
| ^~
src/av/stream.c:3107:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
3107 | __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:3800:130: error: ‘struct AVStream’ has no member named ‘codec’
3800 | __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)
| ^~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: av, libprick
Attempting uninstall: av
Found existing installation: av 10.0.0
Uninstalling av-10.0.0:
Successfully uninstalled av-10.0.0
Running setup.py install for av ... error
error: subprocess-exited-with-error
× Running setup.py install for av did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/av
copying av/deprecation.py -> build/lib.linux-x86_64-cpython-310/av
copying av/datasets.py -> build/lib.linux-x86_64-cpython-310/av
copying av/__main__.py -> build/lib.linux-x86_64-cpython-310/av
copying av/__init__.py -> build/lib.linux-x86_64-cpython-310/av
creating build/lib.linux-x86_64-cpython-310/av/video
copying av/video/__init__.py -> build/lib.linux-x86_64-cpython-310/av/video
creating build/lib.linux-x86_64-cpython-310/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-x86_64-cpython-310/av/subtitles
creating build/lib.linux-x86_64-cpython-310/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-x86_64-cpython-310/av/sidedata
creating build/lib.linux-x86_64-cpython-310/av/filter
copying av/filter/__init__.py -> build/lib.linux-x86_64-cpython-310/av/filter
creating build/lib.linux-x86_64-cpython-310/av/data
copying av/data/__init__.py -> build/lib.linux-x86_64-cpython-310/av/data
creating build/lib.linux-x86_64-cpython-310/av/container
copying av/container/__init__.py -> build/lib.linux-x86_64-cpython-310/av/container
creating build/lib.linux-x86_64-cpython-310/av/codec
copying av/codec/__init__.py -> build/lib.linux-x86_64-cpython-310/av/codec
creating build/lib.linux-x86_64-cpython-310/av/audio
copying av/audio/__init__.py -> build/lib.linux-x86_64-cpython-310/av/audio
running build_ext
running config
PyAV: 8.0.2 (unknown commit)
Python: 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201]
platform: Linux-6.2.8-zen1-1-zen-x86_64-with-glibc2.37
extension_extra:
include_dirs: [b'include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: []
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.2
PYAV_VERSION_STR="8.0.2"
writing build/temp.linux-x86_64-cpython-310/include/pyav/config.h
running cythonize
building 'av.utils' extension
creating build/temp.linux-x86_64-cpython-310/src
creating build/temp.linux-x86_64-cpython-310/src/av
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -Iinclude -Ibuild/temp.linux-x86_64-cpython-310/include -I/usr/include/python3.10 -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -c src/av/utils.c -o build/temp.linux-x86_64-cpython-310/src/av/utils.o
gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto build/temp.linux-x86_64-cpython-310/src/av/utils.o -L/usr/lib -L/usr/lib -lswresample -lswscale -lavcodec -lavfilter -lavutil -lavformat -lavdevice -o build/lib.linux-x86_64-cpython-310/av/utils.cpython-310-x86_64-linux-gnu.so
building 'av.stream' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -Iinclude -Ibuild/temp.linux-x86_64-cpython-310/include -I/usr/include/python3.10 -I/usr/include/python3.10 -Ibuild/temp.linux-x86_64-cpython-310/include -c src/av/stream.c -o build/temp.linux-x86_64-cpython-310/src/av/stream.o
src/av/stream.c: In function ‘__pyx_f_2av_6stream_wrap_stream’:
src/av/stream.c:2369:27: error: ‘struct AVStream’ has no member named ‘codec’
2369 | switch (__pyx_v_c_stream->codec->codec_type) {
| ^~
src/av/stream.c: In function ‘__pyx_f_2av_6stream_6Stream__init’:
src/av/stream.c:2987:29: error: ‘struct AVStream’ has no member named ‘codec’
2987 | __pyx_t_1 = __pyx_v_stream->codec;
| ^~
src/av/stream.c:3107:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
3107 | __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:3800:130: error: ‘struct AVStream’ has no member named ‘codec’
3800 | __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)
| ^~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of av
Moving to /home/fred/.local/bin/pyav
from /tmp/pip-uninstall-kc45kq4j/pyav
Moving to /home/fred/.local/lib/python3.10/site-packages/av-10.0.0.dist-info/
from /home/fred/.local/lib/python3.10/site-packages/~v-10.0.0.dist-info
Moving to /home/fred/.local/lib/python3.10/site-packages/av.libs/
from /home/fred/.local/lib/python3.10/site-packages/~v.libs
Moving to /home/fred/.local/lib/python3.10/site-packages/av/
from /home/fred/.local/lib/python3.10/site-packages/~v
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> av
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.