Skip to content

pyav编译失败 #554

Description

@xiaotan277
  av/filter/loudnorm_impl.c: In function ‘loudnorm_get_stats’:
  av/filter/loudnorm_impl.c:86:5: warning: implicit declaration of function ‘av_channel_layout_describe’; did you mean ‘av_get_channel_layout_string’? [-Wimplicit-function-declaration]
       av_channel_layout_describe(&codecpar->ch_layout, ch_layout_str, sizeof(ch_layout_str));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
       av_get_channel_layout_string
  av/filter/loudnorm_impl.c:86:43: error: ‘AVCodecParameters {aka struct AVCodecParameters}’ has no member named ‘ch_layout’; did you mean ‘channel_layout’?
       av_channel_layout_describe(&codecpar->ch_layout, ch_layout_str, sizeof(ch_layout_str));
                                             ^~~~~~~~~
                                             channel_layout
  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
Failed to build av
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> av如果各位遇到这个问题,说明是ffmpeg版本过低,可以预先装好aiortc。使用下面的命令:
conda install -c conda-forge "ffmpeg>=6.0" "av>=14,<17" aiortc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions