essentia icon indicating copy to clipboard operation
essentia copied to clipboard

MonoWriter doesn't work (Mac OS X Big Sur, ffmpeg 4.4_2)

Open seffka opened this issue 3 years ago • 1 comments

There's a error if I attempt to write an audio with MonoWriter (wav in particular).

'./waf run_python_tests' failed:

[   INFO   ] resizing buffer to 36040/4505
[wav @ 0x7f8ae9099600] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
ERROR
testAiff (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming) ... [aiff @ 0x7f8aeab13400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
ERROR
testEmpty (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming) ... [AVIOContext @ 0x7f8ae1a943c0] Statistics: 54 bytes read, 0 seeks
[aiff @ 0x7f8aed750600] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[AVIOContext @ 0x7f8ae1a898c0] Statistics: 1 seeks, 1 writeouts
ok
testMp3 (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming) ... [mp3 @ 0x7f8aed6cc400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
failed to run python tests. Check test output

I suppose it's related to #1154 Indeed, 'waf run_tests' runs ok (maybe it just doesn't test MonoWriter?)

Details: Mac OS X X Big Sur 11.4, essentia from github master branch ffmpeg just installed with brew (version 4.4_2).

seffka avatar Jul 21 '21 13:07 seffka

A workaround: install ffmpeg2.8, i.e.:

brew uninstall --ignore-dependencies ffmpeg
brew install [email protected]
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
./waf clean
./waf configure ...

My code is working now, but python tests are still failing (with slightly different error):

testMp3 (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming) ... [mp3 @ 0x7f91d9995a00] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
failed to run python tests. Check test output

seffka avatar Jul 21 '21 13:07 seffka