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.filename, 'wb') as f: try: for block in r.iter_content(self.chunk_size): f.write(block) except KeyboardInterrupt: pass The resulting audio files are not properly encoded (as I guess) causing Adobe applications like Premiere Pro to treat them a funny way. For instance, they import them as mono while they should be