HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: poochi on 2013-08-27 11:58:44

Title: Can AAC change sampling rate w/in file/stream? Do decoders support it?
Post by: poochi on 2013-08-27 11:58:44
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 ?
Title: Can AAC change sampling rate w/in file/stream? Do decoders support it?
Post by: saratoga on 2013-08-27 17:32:16
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.
Title: Can AAC change sampling rate w/in file/stream? Do decoders support it?
Post by: Rescator on 2013-08-28 19:25:11
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.