Open waster opened 6 years ago
strictly speaking, what you are seeing is correct. Icecast only detects the details at the ADTS level which for the stream you are talking about is 22050hz. The AACv2 profile (specifically SBR), which involves some further decoding, simulates the 44.1khz signal based on information within 22khz. It would require some further decoding work to extract that correctly.
karl
Yes, I agree with that, but the end samplerate after SBR is 44100, and according to http://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC#HE-AAC.2FSBR :
The end result is an apparent full bandwidth transmission (as if no low-pass filter was applied)
I guess the right thing is to get end sample rate for the source? Please correct me if I'm wrong.
indeed. Assuming you know the specifics of decoding the profile/SBR setting then it could be added to the aac parsing routine. There is also the channel aspect as well, PS doing a similar thing for the channels.
karl
Hello,
OS: Ubuntu 16.04 server Icecast 2.4.0-kh6-2-gddfd9c5
We're using liquidsoap to send stream on test moutn point "/test.aacp":
Problem is that sample rate displayed on http://82.202.236.188:10000/ has 22050 value.
So the corresponding tag in http://82.202.236.188:10000/admin/stats value is:
ffrpobe for the same stream displays correct value 44100:
Can it be fixed?
Regards, Andrey.