Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Can AAC change sampling rate w/in file/stream? Do decoders support it? (Read 8111 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can AAC change sampling rate w/in file/stream? Do decoders support it?

AAC encoded data can come in many container formats . Like Mp4 ,adts etc., . In any of these are the sampling rates allowed to change inbetween  a file ?If so are there any decoders which support it ?

Can AAC change sampling rate w/in file/stream? Do decoders support it?

Reply #1
The sampling rate is fixed at encode time.

However for aac-he files a decoder can optionally downsample by 2 if it does not support he. This is because he files are actually encoded at half sample rate and then upsampled by the decoder to the original rate.

 

Can AAC change sampling rate w/in file/stream? Do decoders support it?

Reply #2
Also note that lossy encoders only encode as little as possible, so even if a sample rate was 192KHz, but there was only audio (or a lowpass filter) under 16000 Hz then that would be effectively the same as a sampling rate of 32KHz.