PyAV-Org / PyAV

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

AV on Jetson Nano Ubuntu 18.04 - fails after install #1362

Closed neilyoung closed 4 months ago

neilyoung commented 4 months ago

IMPORTANT: Be sure to replace all template sections {{ like this }} or your issue may be discarded.

Overview

Conda installation of PyAV doesn't load on Jetson Nano after successful installation

Expected behavior

Should install

Actual behavior

(av) ubuntu@jetson:~/PyAV$ python
Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 13:51:08) 
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import av
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/PyAV/av/__init__.py", line 31, in <module>
    from av.audio.resampler import AudioResampler
  File "av/audio/resampler.pyx", line 1, in init av.audio.resampler
    cimport libav as lib
  File "/home/ubuntu/PyAV/av/filter/__init__.py", line 1, in <module>
    from .filter import Filter, FilterFlags, filter_descriptor, filters_available
  File "av/filter/filter.pyx", line 1, in init av.filter.filter
    cimport libav as lib
  File "av/filter/graph.pyx", line 1, in init av.filter.graph
    import warnings
  File "av/filter/context.pyx", line 1, in init av.filter.context
    from av.audio.frame cimport alloc_audio_frame
  File "av/filter/link.pyx", line 1, in init av.filter.link
    cimport libav as lib
ImportError: /home/ubuntu/PyAV/av/filter/pad.cpython-39-aarch64-linux-gnu.so: undefined symbol: avfilter_filter_pad_count
>>> 

Build report:

ubuntu@jetson:~/PyAV$ conda activate av
(av) ubuntu@jetson:~/PyAV$ conda install av -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 23.9.0
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c conda-forge conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.3.0

## Package Plan ##

  environment location: /home/ubuntu/archiconda3/envs/av

  added / updated specs:
    - av

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    aom-3.8.2                  |       h0425590_0         3.1 MB  conda-forge
    av-11.0.0                  |   py39h645f32a_0        1001 KB  conda-forge
    cairo-1.18.0               |       ha13f110_0         961 KB  conda-forge
    dav1d-1.2.1                |       h31becfc_0         339 KB  conda-forge
    expat-2.6.2                |       h2f0025b_0         125 KB  conda-forge
    ffmpeg-6.1.1               | gpl_h991a198_106         8.9 MB  conda-forge
    font-ttf-ubuntu-0.83       |       h77eed37_1         1.5 MB  conda-forge
    fontconfig-2.14.2          |       ha9a116f_0         274 KB  conda-forge
    freetype-2.12.1            |       hf0a5ef3_2         627 KB  conda-forge
    fribidi-1.0.10             |       hb9de7d4_0         113 KB  conda-forge
    gmp-6.3.0                  |       h2f0025b_1         506 KB  conda-forge
    gnutls-3.7.9               |       hb309da9_0         1.9 MB  conda-forge
    graphite2-1.3.13           |    h2f0025b_1003          97 KB  conda-forge
    harfbuzz-8.3.0             |       hebeb849_0         1.5 MB  conda-forge
    icu-73.2                   |       h787c7f5_0        11.7 MB  conda-forge
    lcms2-2.16                 |       h922389a_0         289 KB  conda-forge
    lerc-4.0.0                 |       h4de3ea5_0         256 KB  conda-forge
    libabseil-20240116.1       | cxx17_h2f0025b_2         1.2 MB  conda-forge
    libass-0.17.1              |       h36b5d3b_1         130 KB  conda-forge
    libblas-3.9.0              |21_linuxaarch64_openblas          14 KB  conda-forge
    libcblas-3.9.0             |21_linuxaarch64_openblas          14 KB  conda-forge
    libdeflate-1.20            |       h31becfc_0          68 KB  conda-forge
    libexpat-2.6.2             |       h2f0025b_0          71 KB  conda-forge
    libgfortran-ng-13.2.0      |       he9431aa_5          23 KB  conda-forge
    libgfortran5-13.2.0        |       h582850c_5         1.0 MB  conda-forge
    libglib-2.80.0             |       h9d8fbc1_1         2.9 MB  conda-forge
    libhwloc-2.9.3             |default_hda148da_1009         2.5 MB  conda-forge
    libiconv-1.17              |       h31becfc_2         689 KB  conda-forge
    libidn2-2.3.7              |       h31becfc_0         135 KB  conda-forge
    libjpeg-turbo-3.0.0        |       h31becfc_1         632 KB  conda-forge
    liblapack-3.9.0            |21_linuxaarch64_openblas          14 KB  conda-forge
    libopenblas-0.3.26         |pthreads_h5a5ec62_0         4.1 MB  conda-forge
    libopenvino-2024.0.0       |       h3e0449b_4         4.4 MB  conda-forge
    libopenvino-arm-cpu-plugin-2024.0.0|       h3e0449b_4         5.9 MB  conda-forge
    libopenvino-auto-batch-plugin-2024.0.0|       hd429f41_4         102 KB  conda-forge
    libopenvino-auto-plugin-2024.0.0|       hd429f41_4         206 KB  conda-forge
    libopenvino-hetero-plugin-2024.0.0|       hc6dd956_4         164 KB  conda-forge
    libopenvino-ir-frontend-2024.0.0|       hc6dd956_4         182 KB  conda-forge
    libopenvino-onnx-frontend-2024.0.0|       h81208d3_4         1.3 MB  conda-forge
    libopenvino-paddle-frontend-2024.0.0|       h81208d3_4         616 KB  conda-forge
    libopenvino-pytorch-frontend-2024.0.0|       h2f0025b_4         937 KB  conda-forge
    libopenvino-tensorflow-frontend-2024.0.0|       h5177828_4         1.1 MB  conda-forge
    libopenvino-tensorflow-lite-frontend-2024.0.0|       h2f0025b_4         427 KB  conda-forge
    libopus-1.3.1              |       hf897c2e_1         321 KB  conda-forge
    libpng-1.6.43              |       h194ca79_0         287 KB  conda-forge
    libprotobuf-4.25.3         |       h648ac29_0         2.5 MB  conda-forge
    libstdcxx-ng-13.2.0        |       h9a76618_5         3.6 MB  conda-forge
    libtiff-4.6.0              |       hf980d43_3         309 KB  conda-forge
    libvpx-1.14.0              |       h2f0025b_0         1.2 MB  conda-forge
    libwebp-base-1.3.2         |       h31becfc_0         355 KB  conda-forge
    libxcb-1.15                |       h2a766a3_0         379 KB  conda-forge
    libxml2-2.12.6             |       h3091e33_1         733 KB  conda-forge
    nettle-3.9.1               |       h9d1147b_0         1.1 MB  conda-forge
    openh264-2.4.1             |       h2f0025b_0         752 KB  conda-forge
    openjpeg-2.5.2             |       h0d9d63b_0         366 KB  conda-forge
    p11-kit-0.24.1             |       h9f2702f_0         4.7 MB  conda-forge
    pcre2-10.43                |       hd0f9c67_0         860 KB  conda-forge
    pillow-10.2.0              |   py39h8ce38d7_0        39.5 MB  conda-forge
    pixman-0.43.4              |       h2f0025b_0         288 KB  conda-forge
    pthread-stubs-0.4          |    hb9de7d4_1001           6 KB  conda-forge
    pugixml-1.14               |       h2f0025b_0         108 KB  conda-forge
    snappy-1.1.10              |       he8610fa_0          37 KB  conda-forge
    svt-av1-1.8.0              |       h2f0025b_0         1.7 MB  conda-forge
    tbb-2021.11.0              |       h2a328a1_1         158 KB  conda-forge
    xorg-kbproto-1.0.7         |    h3557bc0_1002          27 KB  conda-forge
    xorg-libice-1.1.1          |       h7935292_0          59 KB  conda-forge
    xorg-libsm-1.2.4           |       h5a01bc2_0          28 KB  conda-forge
    xorg-libx11-1.8.7          |       h055a233_0         834 KB  conda-forge
    xorg-libxau-1.0.11         |       h31becfc_0          15 KB  conda-forge
    xorg-libxdmcp-1.1.3        |       h3557bc0_0          19 KB  conda-forge
    xorg-libxext-1.3.4         |       h2a766a3_2          50 KB  conda-forge
    xorg-libxrender-0.9.11     |       h7935292_0          37 KB  conda-forge
    xorg-renderproto-0.11.1    |    h3557bc0_1002           9 KB  conda-forge
    xorg-xextproto-7.3.0       |    h2a766a3_1003          30 KB  conda-forge
    xorg-xproto-7.0.31         |    h3557bc0_1007          73 KB  conda-forge
    zlib-1.2.13                |       h31becfc_5          94 KB  conda-forge
    zstd-1.5.5                 |       h4c53e97_0         517 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       122.7 MB

The following NEW packages will be INSTALLED:

  aom                conda-forge/linux-aarch64::aom-3.8.2-h0425590_0 
  av                 conda-forge/linux-aarch64::av-11.0.0-py39h645f32a_0 
  cairo              conda-forge/linux-aarch64::cairo-1.18.0-ha13f110_0 
  dav1d              conda-forge/linux-aarch64::dav1d-1.2.1-h31becfc_0 
  expat              conda-forge/linux-aarch64::expat-2.6.2-h2f0025b_0 
  ffmpeg             conda-forge/linux-aarch64::ffmpeg-6.1.1-gpl_h991a198_106 
  font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0 
  font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0 
  font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0 
  font-ttf-ubuntu    conda-forge/noarch::font-ttf-ubuntu-0.83-h77eed37_1 
  fontconfig         conda-forge/linux-aarch64::fontconfig-2.14.2-ha9a116f_0 
  fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0 
  fonts-conda-forge  conda-forge/noarch::fonts-conda-forge-1-0 
  freetype           conda-forge/linux-aarch64::freetype-2.12.1-hf0a5ef3_2 
  fribidi            conda-forge/linux-aarch64::fribidi-1.0.10-hb9de7d4_0 
  gettext            conda-forge/linux-aarch64::gettext-0.21.1-ha18d298_0 
  gmp                conda-forge/linux-aarch64::gmp-6.3.0-h2f0025b_1 
  gnutls             conda-forge/linux-aarch64::gnutls-3.7.9-hb309da9_0 
  graphite2          conda-forge/linux-aarch64::graphite2-1.3.13-h2f0025b_1003 
  harfbuzz           conda-forge/linux-aarch64::harfbuzz-8.3.0-hebeb849_0 
  icu                conda-forge/linux-aarch64::icu-73.2-h787c7f5_0 
  lame               conda-forge/linux-aarch64::lame-3.100-h4e544f5_1003 
  lcms2              conda-forge/linux-aarch64::lcms2-2.16-h922389a_0 
  lerc               conda-forge/linux-aarch64::lerc-4.0.0-h4de3ea5_0 
  libabseil          conda-forge/linux-aarch64::libabseil-20240116.1-cxx17_h2f0025b_2 
  libass             conda-forge/linux-aarch64::libass-0.17.1-h36b5d3b_1 
  libblas            conda-forge/linux-aarch64::libblas-3.9.0-21_linuxaarch64_openblas 
  libcblas           conda-forge/linux-aarch64::libcblas-3.9.0-21_linuxaarch64_openblas 
  libdeflate         conda-forge/linux-aarch64::libdeflate-1.20-h31becfc_0 
  libexpat           conda-forge/linux-aarch64::libexpat-2.6.2-h2f0025b_0 
  libgfortran-ng     conda-forge/linux-aarch64::libgfortran-ng-13.2.0-he9431aa_5 
  libgfortran5       conda-forge/linux-aarch64::libgfortran5-13.2.0-h582850c_5 
  libglib            conda-forge/linux-aarch64::libglib-2.80.0-h9d8fbc1_1 
  libhwloc           conda-forge/linux-aarch64::libhwloc-2.9.3-default_hda148da_1009 
  libiconv           conda-forge/linux-aarch64::libiconv-1.17-h31becfc_2 
  libidn2            conda-forge/linux-aarch64::libidn2-2.3.7-h31becfc_0 
  libjpeg-turbo      conda-forge/linux-aarch64::libjpeg-turbo-3.0.0-h31becfc_1 
  liblapack          conda-forge/linux-aarch64::liblapack-3.9.0-21_linuxaarch64_openblas 
  libopenblas        conda-forge/linux-aarch64::libopenblas-0.3.26-pthreads_h5a5ec62_0 
  libopenvino        conda-forge/linux-aarch64::libopenvino-2024.0.0-h3e0449b_4 
  libopenvino-arm-c~ conda-forge/linux-aarch64::libopenvino-arm-cpu-plugin-2024.0.0-h3e0449b_4 
  libopenvino-auto-~ conda-forge/linux-aarch64::libopenvino-auto-batch-plugin-2024.0.0-hd429f41_4 
  libopenvino-auto-~ conda-forge/linux-aarch64::libopenvino-auto-plugin-2024.0.0-hd429f41_4 
  libopenvino-heter~ conda-forge/linux-aarch64::libopenvino-hetero-plugin-2024.0.0-hc6dd956_4 
  libopenvino-ir-fr~ conda-forge/linux-aarch64::libopenvino-ir-frontend-2024.0.0-hc6dd956_4 
  libopenvino-onnx-~ conda-forge/linux-aarch64::libopenvino-onnx-frontend-2024.0.0-h81208d3_4 
  libopenvino-paddl~ conda-forge/linux-aarch64::libopenvino-paddle-frontend-2024.0.0-h81208d3_4 
  libopenvino-pytor~ conda-forge/linux-aarch64::libopenvino-pytorch-frontend-2024.0.0-h2f0025b_4 
  libopenvino-tenso~ conda-forge/linux-aarch64::libopenvino-tensorflow-frontend-2024.0.0-h5177828_4 
  libopenvino-tenso~ conda-forge/linux-aarch64::libopenvino-tensorflow-lite-frontend-2024.0.0-h2f0025b_4 
  libopus            conda-forge/linux-aarch64::libopus-1.3.1-hf897c2e_1 
  libpng             conda-forge/linux-aarch64::libpng-1.6.43-h194ca79_0 
  libprotobuf        conda-forge/linux-aarch64::libprotobuf-4.25.3-h648ac29_0 
  libstdcxx-ng       conda-forge/linux-aarch64::libstdcxx-ng-13.2.0-h9a76618_5 
  libtasn1           conda-forge/linux-aarch64::libtasn1-4.19.0-h4e544f5_0 
  libtiff            conda-forge/linux-aarch64::libtiff-4.6.0-hf980d43_3 
  libunistring       conda-forge/linux-aarch64::libunistring-0.9.10-hf897c2e_0 
  libvpx             conda-forge/linux-aarch64::libvpx-1.14.0-h2f0025b_0 
  libwebp-base       conda-forge/linux-aarch64::libwebp-base-1.3.2-h31becfc_0 
  libxcb             conda-forge/linux-aarch64::libxcb-1.15-h2a766a3_0 
  libxml2            conda-forge/linux-aarch64::libxml2-2.12.6-h3091e33_1 
  nettle             conda-forge/linux-aarch64::nettle-3.9.1-h9d1147b_0 
  numpy              conda-forge/linux-aarch64::numpy-1.26.4-py39h91c28bb_0 
  openh264           conda-forge/linux-aarch64::openh264-2.4.1-h2f0025b_0 
  openjpeg           conda-forge/linux-aarch64::openjpeg-2.5.2-h0d9d63b_0 
  p11-kit            conda-forge/linux-aarch64::p11-kit-0.24.1-h9f2702f_0 
  pcre2              conda-forge/linux-aarch64::pcre2-10.43-hd0f9c67_0 
  pillow             conda-forge/linux-aarch64::pillow-10.2.0-py39h8ce38d7_0 
  pixman             conda-forge/linux-aarch64::pixman-0.43.4-h2f0025b_0 
  pthread-stubs      conda-forge/linux-aarch64::pthread-stubs-0.4-hb9de7d4_1001 
  pugixml            conda-forge/linux-aarch64::pugixml-1.14-h2f0025b_0 
  python_abi         conda-forge/linux-aarch64::python_abi-3.9-4_cp39 
  snappy             conda-forge/linux-aarch64::snappy-1.1.10-he8610fa_0 
  svt-av1            conda-forge/linux-aarch64::svt-av1-1.8.0-h2f0025b_0 
  tbb                conda-forge/linux-aarch64::tbb-2021.11.0-h2a328a1_1 
  x264               conda-forge/linux-aarch64::x264-1!164.3095-h4e544f5_2 
  x265               conda-forge/linux-aarch64::x265-3.5-hdd96247_3 
  xorg-kbproto       conda-forge/linux-aarch64::xorg-kbproto-1.0.7-h3557bc0_1002 
  xorg-libice        conda-forge/linux-aarch64::xorg-libice-1.1.1-h7935292_0 
  xorg-libsm         conda-forge/linux-aarch64::xorg-libsm-1.2.4-h5a01bc2_0 
  xorg-libx11        conda-forge/linux-aarch64::xorg-libx11-1.8.7-h055a233_0 
  xorg-libxau        conda-forge/linux-aarch64::xorg-libxau-1.0.11-h31becfc_0 
  xorg-libxdmcp      conda-forge/linux-aarch64::xorg-libxdmcp-1.1.3-h3557bc0_0 
  xorg-libxext       conda-forge/linux-aarch64::xorg-libxext-1.3.4-h2a766a3_2 
  xorg-libxrender    conda-forge/linux-aarch64::xorg-libxrender-0.9.11-h7935292_0 
  xorg-renderproto   conda-forge/linux-aarch64::xorg-renderproto-0.11.1-h3557bc0_1002 
  xorg-xextproto     conda-forge/linux-aarch64::xorg-xextproto-7.3.0-h2a766a3_1003 
  xorg-xproto        conda-forge/linux-aarch64::xorg-xproto-7.0.31-h3557bc0_1007 
  zlib               conda-forge/linux-aarch64::zlib-1.2.13-h31becfc_5 
  zstd               conda-forge/linux-aarch64::zstd-1.5.5-h4c53e97_0 

The following packages will be UPDATED:

  ca-certificates    c4aarch64::ca-certificates-2018.03.07~ --> conda-forge::ca-certificates-2024.2.2-hcefe29a_0 

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done                                                                                                                           
Verifying transaction: done                                                                                                                           
Executing transaction: done                                                                                                                           
(av) ubuntu@jetson:~/PyAV$ python                                                                                                                     
Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 13:51:08)                                                                               
[GCC 12.3.0] on linux                                                                                                                                 
Type "help", "copyright", "credits" or "license" for more information.                                                                                
>>> import av                                                                                                                                         
Traceback (most recent call last):                                                                                                                    
  File "<stdin>", line 1, in <module>                                                                                                                 
  File "/home/ubuntu/PyAV/av/__init__.py", line 31, in <module>                                                                                       
    from av.audio.resampler import AudioResampler                                                                                                     
  File "av/audio/resampler.pyx", line 1, in init av.audio.resampler                                                                                   
    cimport libav as lib                                                                                                                              
  File "/home/ubuntu/PyAV/av/filter/__init__.py", line 1, in <module>                                                                                 
    from .filter import Filter, FilterFlags, filter_descriptor, filters_available                                                                     
  File "av/filter/filter.pyx", line 1, in init av.filter.filter                                                                                       
    cimport libav as lib                                                                                                                              
  File "av/filter/graph.pyx", line 1, in init av.filter.graph                                                                                         
    import warnings                                                                                                                                   
  File "av/filter/context.pyx", line 1, in init av.filter.context                                                                                     
    from av.audio.frame cimport alloc_audio_frame                                                                                                     
  File "av/filter/link.pyx", line 1, in init av.filter.link                                                                                           
    cimport libav as lib                                                                                                                              
ImportError: /home/ubuntu/PyAV/av/filter/pad.cpython-39-aarch64-linux-gnu.so: undefined symbol: avfilter_filter_pad_count                             
>>>                                                                                                                                                   
(av) ubuntu@jetson:~/PyAV$ ffmpeg                                                                                                                     
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers                                                                                    
  built with gcc 12.3.0 (conda-forge gcc 12.3.0-5)
  configuration: --prefix=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-cc --cxx=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-c++ --nm=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-nm --ar=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --enable-cross-compile --arch=aarch64 --target-os=linux --cross-prefix=aarch64-conda-linux-gnu- --host-cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/x86_64-conda-linux-gnu-cc --enable-gnutls --enable-libmp3lame --enable-libvpx --enable-libass --enable-pthreads --enable-libopenvino --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/pkg-config
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
(av) ubuntu@jetson:~/PyAV$ 

Investigation

Tried to make it work on several ways.

Reproduction

Versions

- PyAV build:

(av) ubuntu@jetson:~/PyAV$ python -m av --version Traceback (most recent call last): File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error) File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/ubuntu/PyAV/av/init.py", line 31, in from av.audio.resampler import AudioResampler File "av/audio/resampler.pyx", line 1, in init av.audio.resampler cimport libav as lib File "/home/ubuntu/PyAV/av/filter/init.py", line 1, in from .filter import Filter, FilterFlags, filter_descriptor, filters_available File "av/filter/filter.pyx", line 1, in init av.filter.filter cimport libav as lib File "av/filter/graph.pyx", line 1, in init av.filter.graph import warnings File "av/filter/context.pyx", line 1, in init av.filter.context from av.audio.frame cimport alloc_audio_frame File "av/filter/link.pyx", line 1, in init av.filter.link cimport libav as lib ImportError: /home/ubuntu/PyAV/av/filter/pad.cpython-39-aarch64-linux-gnu.so: undefined symbol: avfilter_filter_pad_count


- FFmpeg:

ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.3.0 (conda-forge gcc 12.3.0-5) configuration: --prefix=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-cc --cxx=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-c++ --nm=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-nm --ar=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --enable-cross-compile --arch=aarch64 --target-os=linux --cross-prefix=aarch64-conda-linux-gnu- --host-cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/x86_64-conda-linux-gnu-cc --enable-gnutls --enable-libmp3lame --enable-libvpx --enable-libass --enable-pthreads --enable-libopenvino --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/pkg-config libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100



## Research

I have done the following:

- [ ] Checked the [PyAV documentation](https://pyav.org/docs)
- [ ] Searched on [Google](https://www.google.com/search?q=pyav+how+do+I+foo)
- [ ] Searched on [Stack Overflow](https://stackoverflow.com/search?q=pyav)
- [ ] Looked through [old GitHub issues](https://github.com/PyAV-Org/PyAV/issues?&q=is%3Aissue)
- [ ] Asked on [PyAV Gitter](https://app.gitter.im/#/room/#PyAV-Org_User-Help:gitter.im)
- [ ] ... and waited 72 hours for a response.

## Additional context

{{ Add any other context about the problem here. }}
neilyoung commented 4 months ago

Source install also fails:

(Linux.4.9.337-tegra.cpython3.9) (av) ubuntu@jetson:~/PyAV$ make
CFLAGS="-O0" LDFLAGS="" python3 setup.py build_ext --inplace --debug
running build_ext
building 'av.codec.codec' extension
gcc -pthread -B /home/ubuntu/archiconda3/envs/av/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -fPIC -O3 -isystem /home/ubuntu/archiconda3/envs/av/include -fPIC -O3 -isystem /home/ubuntu/archiconda3/envs/av/include -O0 -fPIC -g -I/usr/local/include -I/home/ubuntu/PyAV/venvs/Linux.4.9.337-tegra.cpython3.9/include -I/home/ubuntu/archiconda3/envs/av/include/python3.9 -c src/av/codec/codec.c -o build/temp.linux-aarch64-cpython-39/src/av/codec/codec.o
src/av/codec/codec.c: In function ‘__pyx_pymod_exec_codec’:
src/av/codec/codec.c:8353:48: error: ‘AV_CODEC_CAP_OTHER_THREADS’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_SLICE_THREADS’?
   __pyx_t_8 = __Pyx_PyInt_From___pyx_anon_enum(AV_CODEC_CAP_OTHER_THREADS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 104, __pyx_L1_error)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                AV_CODEC_CAP_SLICE_THREADS
src/av/codec/codec.c:8353:48: note: each undeclared identifier is reported only once for each function it appears in
error: command '/usr/bin/gcc' failed with exit code 1
Makefile:14: recipe for target 'build' failed
make: *** [build] Error 1

Whatsoever...

neilyoung commented 4 months ago

but works with ffmpeg 6.x