Project

General

Profile

Actions

Bug #5887

closed

AAC Audio Tracks Tagged Incorrectly

Added by Adam W about 5 years ago. Updated almost 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-05-02
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1857~g221c29b40
Affected Versions:

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

Radio_Regenbogen_ADTS.png (90.3 KB) Radio_Regenbogen_ADTS.png ADTS being flagged as AAC-LATM Adam W, 2020-05-02 00:31
BBC_ONE_HD_LATM.png (146 KB) BBC_ONE_HD_LATM.png LATM being flagged as AAC (ADTS) Adam W, 2020-05-02 00:31
Actions

Also available in: Atom PDF