xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
212 stars 78 forks source link

opusdec 0.2 is 6-7x slower than 0.1.10 #81

Open ozancaglayan opened 9 months ago

ozancaglayan commented 9 months ago

Hi

I was debugging an issue and found out the following between opus-tools versions:

opus-tools 0.1.10 (using libopus 1.3.1)

$ time opusdec /tmp/foo.opus --rate 16000 --float /dev/null
Decoding to 16000 Hz (1 channel)
Encoded with Lavf59.27.100
encoder=Lavc59.37.100 libopus
Decoding complete.

real    0m0.627s
user    0m0.623s
sys     0m0.004s

$ opusdec --version
opusdec opus-tools 0.1.10 (using libopus 1.3.1)
Copyright (C) 2008-2017 Xiph.Org Foundation

$ head -n1 /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

opus-tools 0.2 (using libopus 1.3.1)

$ time opusdec /tmp/foo.opus --rate 16000 --float /dev/null
Decoding to 16000 Hz (1 channel)
Encoded with Lavf59.27.100
encoder=Lavc59.37.100 libopus
Decoding complete.

real    0m4.250s
user    0m4.245s
sys     0m0.004s
vadimkantorov commented 7 months ago

Maybe the reason is also the resampler speed degradation?

I made a repro at https://github.com/xiph/opus-tools/issues/87

Do you still see degradation if you decode to --rate 48000?

ozancaglayan commented 3 months ago

Hi,

I think it was only happening when resampling, you are right. Appreciate that you follow this up at different places but the develops of the whole thing do not seem to react and the tools themselves look pretty unmaintained for quite some time..