Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-source_avcodec autotest fails with ffmpeg 7.0 #397

Open
berolinux opened this issue Apr 10, 2024 · 1 comment
Open

test-source_avcodec autotest fails with ffmpeg 7.0 #397

berolinux opened this issue Apr 10, 2024 · 1 comment

Comments

@berolinux
Copy link

The auto tests fail when using ffmpeg 7.0:

  tests that fail 1/52 
    /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/test-source_avcodec 
stdout:
read a wave file as a mono vector
usage: /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/test-source_avcodec <source_path> [samplerate] [hop_size]
examples:
 - read file.wav at original samplerate
       /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/test-source_avcodec file.wav
 - read file.wav at 32000Hz
       /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/test-source_avcodec file.aif 32000
 - read file.wav at original samplerate with 4096 blocks
       /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/test-source_avcodec file.wav 0 4096 

stderr:
AUBIO-TESTS ERROR: not enough arguments, running tests
AUBIO ERROR: source_avcodec: Aborted opening null path
AUBIO ERROR: source_avcodec: Failed opening  (No such file or directory)
AUBIO ERROR: source_avcodec: Can not open /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/44100Hz_44100f_sine441_stereo.wav with samplerate -1
AUBIO ERROR: source_avcodec: Can not open /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/44100Hz_44100f_sine441_stereo.wav with hop_size 0
[SWR @ 0x55e22c88e500] Input channel layout "" is invalid or unsupported.
AUBIO ERROR: source_avcodec: Could not open resampling context for /home/bero/abf/aubio/BUILD/aubio-master-x86_64/aubio-master/build/tests/44100Hz_44100f_sine441_stereo.wav (Invalid argument)

Looks like something is wrong with input channel layout detection using the new ffmpeg APIs for this.

@drscotthawley
Copy link

drscotthawley commented May 19, 2024

Seeing this as well on MacOS when running make: many things compile but then it gets to this test, generates those errors above, and aborts with

make: *** [build] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants