Skip to content Skip to sidebar Skip to footer

Corrupted Aac Files Recorded From Online Stream

I'm recording audio from an AAC radio stream the simplest way I know: r = requests.get('http://someradio.net:someport/stream.aac', stream=True) self.new_filename() with open(self.

Solution 1:

The core of the problem seems to be Adobe (AE, PP, ME) failing to properly handle HE-AACv2 format in ADTS container, one apparently being a standard for online radio streams. Wiki notes Adobe Flash Player has issues with it and it seems that all other Adobe products do.

Adobe treats such files as 48000Hz mono's while they are really 24000Hz mono's with additional parametric channel for Parametric Channel decoding (which is HE-AACv2 major feature). Looks like Adobe does something unnatural to this mono channel stretching to make a 48000Hz file with the same duration. But that's just my guess, no idea what exactly does Adobe do.

The natural walkaround is a conversion to another format. For instance, AAC-LC even if in ADTS works just fine with Adobe.


Just for the record:

What sound waves look like

What sound waves look like.

Post a Comment for "Corrupted Aac Files Recorded From Online Stream"