Bug #5887
closedAAC Audio Tracks Tagged Incorrectly
0%
Description
This is leading on from another issue (#5697) regarding streaming raw AAC audio (using the raw audio profile) from programmes that use it in TVHeadend.
The stream types for AAC audio in TVHeadend are flagged incorrectly in the GUI (and I think internally too).
ADTS AAC audio (the norm for channels using AAC-LC stereo in MPEG-TS) is flagged incorrectly as 'AAC-LATM' in the stream type by TVHeadend. (e.g. in attached image for the Radio station Radio Regenbogen on Astra 1 12633H).
On the flipside, actual AAC LATM audio (usually used for HE-AAC tracks in MPEG-TS) is being flagged as just 'AAC' (e.g. attached image for TV channel BBC ONE HD on DVB-T2).
These are the wrong way round, AAC LATM should be flagging as AAC-LATM (as you'd expect!), and I think ADTS being flagged as 'AAC' would be correct too (this is how ADTS gets flagged by ffmpeg/avconv).
I'm not sure if this is just a labelling issue or it's causing other confusion in TVH too, but it's definitely the wrong way round.
As an aside, for the raw audio stream filter, it would be great if the AVConv/FFMPEG bitstream filter (-bsf:a aac_adtstoasc) could be applied to ADTS (AAC) streams to repackage them as LATM (without re-encoding the actual AAC audio data) - AAC LATM is the format that is supported for 'regular' AAC web streams, in internet radios and speakers. ADTS isn't so widely supported (it won't play on my Sonos devices or my internet radio for example). I guess this could be done either automatically or as a tickbox in the raw audio stream filter settings. Basically I think raw AAC audio output should be with LATM headers as standard for maximum compatibility.
Files