Bug #5697
openRaw Audio Output for ADTS vs LATM
0%
Description
Firstly, AAC audio inside MPEG-TS all seems a bit complex to begin with, so apologies if I'm understanding this completely wrong!
Basically, I use the TVHeadend 'audio' stream profile to stream satellite radio stations from TVHeadend on my Sonos speakers/internet radios in my home. As this profile is just supposed to give the raw audio track, like a webstream would, this usually works great and allows listening to the channels in full quality without transcoding.
The problem I have is with some AAC stations streamed in this way:-
- If the stream type of the AAC in the MPEG-TS is 'LATM', everything works OK and Sonos/Internet radios will play the TVH Audio profile stream perfectly. VLC reports these streams as LATM audio in TS format and then "MPEG AAC Audio (mp4a)" in raw audio profile format (see attached screenshots for "LATM RDP Antena 1" and sample TS/raw audio files 'rdpa1').
- However, if the stream type of the AAC in the MPEG-TS is 'ADTS', the demuxed raw audio version of the stream fails to play on any internet radio/Sonos speaker. VLC will play it, reporting the codec as ADTS in TS format, but also ADTS in raw audio profile format (see attached screenshots for "ADTS Los 40" and sample TS/raw audio files 'los40').
It seems to be that the raw audio profile turns LATM encapsulated AAC into pure AAC but leaves ADTS untouched, which makes it unplayable in a lot of players.
What I'm wondering is would there possibly be a way of getting the raw audio profile to give the raw AAC streams for both formats for maximum compatibility?
Thanks!
Files