Invalid audio track info for TS/HLS (Parametric Stereo)
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### [REQUIRED] Issue description
ExoPlayer identifies audio track incorrectly (mono/24kHz vs stereo/48kHz):
**ExoPlayer**:
```
mimeType=audio/mp4a-latm, channels=1, sample_rate=24000
```
**MediaInfo**
```
Audio
ID : 257 (0x101)
Format : AAC LC SBR PS
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication and Parametric Stereo
Commercial name : HE-AACv2
Format version : Version 4
Format settings : Implicit
Muxing mode : ADTS
Codec ID : 15-2
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
```
**VLC**:
```
ADTS, Stereo, 48kHz, 32bps, SBR
```
### [REQUIRED] Reproduction steps
Start demo with local TS file provided below
```
decoderEnabled [eventTime=0.11, mediaPos=0.00, window=0, period=0, audio]
tracks [eventTime=0.11, mediaPos=0.00, window=0, period=0,
Renderer:0 [
Group:0, adaptive_supported=N/A [
[X] Track:0, id=1/256, mimeType=video/avc, codecs=avc1.4D4028, res=1920x1080, supported=YES
]
]
Renderer:1 [
Group:0, adaptive_supported=N/A [
[X] Track:0, id=1/257, mimeType=audio/mp4a-latm, channels=1, sample_rate=24000, supported=YES
]
]
Renderer:2 [
Group:0, adaptive_supported=N/A [
[ ] Track:0, id=1/8448, mimeType=application/cea-608, supported=YES
]
]
]
downstreamFormat [eventTime=0.13, mediaPos=0.00, window=0, period=0, id=1/257, mimeType=audio/mp4a-latm, channels=1, sample_rate=24000]
decoderInitialized [eventTime=0.13, mediaPos=0.00, window=0, period=0, audio, OMX.google.aac.decoder]
decoderInputFormat [eventTime=0.13, mediaPos=0.00, window=0, period=0, audio, id=1/257, mimeType=audio/mp4a-latm, channels=1, sample_rate=24000]
```
### [REQUIRED] Link to test content
* https://drive.google.com/open?id=1ZKyV4RovkirTNFiP58p_X77d-AiwkLSQ
### [REQUIRED] A full bug report captured from the device
not device-specific
### [REQUIRED] Version of ExoPlayer being used
* 8da0e27d2e71266838f8685825ff096da79bf8a2 from `dev-v2`
```
I/ExoPlayerImpl: Init 24c3884 [ExoPlayerLib/2.11.2] [generic_x86, sdk_google_atv_x86, unknown, 28]
```
### [REQUIRED] Device(s) and version(s) of Android being used
```
I/ExoPlayerImpl: Init 24c3884 [ExoPlayerLib/2.11.2] [generic_x86, sdk_google_atv_x86, unknown, 28]
```
Tested on emulator API 28, reproduced on Sony TV (SVPDTV15_EU, API 24)
Contributor guide
Assessment
This issue has not been assessed yet.