Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Issues
  • #1102
Closed
Open
Issue created Mar 14, 2023 by Matěj Cepl@mcepl5 of 6 checklist items completed5/6 checklist items

Multiple tests fail not able to find certainly present codecs

Overview

When packaging this package for openSUSE (version 10.0.0 from the tarball from PyPI, with ffmpeg limited to the unencumbered codecs, the full log) I get 24 tests failed including beauties like:

[  478s] ______________________ TestCodecs.test_codec_opus_decoder ______________________
[  478s] 
[  478s] self = <tests.test_codec.TestCodecs testMethod=test_codec_opus_decoder>
[  478s] 
[  478s]     def test_codec_opus_decoder(self):
[  478s] >       c = Codec("opus")
[  478s] 
[  478s] tests/test_codec.py:68: 
[  478s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  478s] av/codec/codec.pyx:184: in av.codec.codec.Codec.__cinit__
[  478s]     ???
[  478s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  478s] 
[  478s] >   ???
[  478s] E   av.codec.codec.UnknownCodecError: opus
[  478s] 
[  478s] av/codec/codec.pyx:193: UnknownCodecError

which doesn’t make any sense whatsoever (of course, opus is free and libopusenc is present, see the log). Any ideas, what’s going on?

Expected behavior

Tests should pass.

Actual behavior

See the log

Build report:

Again, see the log.

Investigation

I would hope that the test suite is build with isolated tests already.

Reproduction

Just run the test suite with the packages enlisted in the log (I cannot find any limitations on the versions of packages used).

Versions

  • OS: Linux, openSUSE/Tumbleweed as of 2023-03-14
  • PyAV runtime:
PyAV v10.0.0
library configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g' --optflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g' --disable-htmlpages --disable-stripping --disable-x86asm --disable-static --enable-shared --enable-pic --enable-gpl --enable-version3 --disable-muxers --disable-demuxers --disable-encoders --disable-decoders --disable-programs --disable-doc
library license: GPL version 3 or later
libavcodec     59. 37.100
libavdevice    59.  7.100
libavfilter     8. 44.100
libavformat    59. 27.100
libavutil      57. 28.100
libswresample   4.  7.100
libswscale      6.  7.100
  • PyAV build: no output
abuild@stitny:~/rpmbuild/BUILD/av-10.0.0> python3.8 setup.py config --verbose
running config
abuild@stitny:~/rpmbuild/BUILD/av-10.0.0> 
  • FFmpeg:
I don’t have full ffmpeg installed

Research

I have done the following:

  • Checked the PyAV documentation
  • Searched on Google
  • Searched on Stack Overflow
  • Looked through old GitHub issues
  • Asked on PyAV Gitter (I don’t think it is relevant, the test suite should just work)
  • ... and waited 72 hours for a response.
Assignee
Assign to
Time tracking