Skip to content

BUG: Wrong Channel Mapping during Audio Encode to AAC #671

@Wontell

Description

@Wontell

Hello,
I noticed this bug for YEARS, since I started using NVEnc to encode videos back on 2080ti.

The issue:
Randomly, during audio encode, usually in movies where more than Single audio track encoded, the outputing AAC will get wrong channel mapping.

LFE channel turns into Cb channel
Ls and Rs turn into Lb and Rb

This is a movie with 4 audio tracks, 2 encoded, 2 left alone

Track #1:

Format/Info : | Digital Theater Systems
Codec ID : | A_DTS
Bit rate mode : | Constant
Bit rate : | 768 kb/s
Channel(s) : | 6 channels
Channel layout : | **C L R Ls Rs LFE**

Came out as this:

Format/Info : | Advanced Audio Codec Low Complexity
Codec ID : | A_AAC-2
Channel(s) : | 6 channels
Channel layout : | **L R C Cb Lb Rb**

Track #2:

Format : | DTS XLL
Format/Info : | Digital Theater Systems
Commercial name : | DTS-HD Master Audio
Codec ID : | A_DTS
Duration : | 2 h 2 min
Bit rate mode : | Variable
Bit rate : | 4 188 kb/s
Channel(s) : | 6 channels
Channel layout : | **C L R Ls Rs LFE**

Came out as this:

Format : | AAC LC
Format/Info : | Advanced Audio Codec Low Complexity
Codec ID : | A_AAC-2
Duration : | 2 h 2 min
Channel(s) : | 6 channels
Channel layout : | **L R C Cb Lb Rb**

This is a TV series, with 2 audio tracks, one streo not encoded and one 5.1 DTS That encoded into AAC, comes out allright

This:

Format/Info : | Digital Theater Systems
Commercial name : | DTS-HD Master Audio
Codec ID : | A_DTS
Duration : | 44 min 40 s
Bit rate mode : | Variable
Bit rate : | 4 153 kb/s
Channel(s) : | 6 channels
Channel layout : | **C L R Ls Rs LFE**

Comes out as this:

Format : | AAC LC
Format/Info : | Advanced Audio Codec Low Complexity
Codec ID : | A_AAC-2
Duration : | 44 min 40 s
Channel(s) : | 6 channels
Channel layout : | **C L R Ls Rs LFE**
Sampling rate : | 48.0 kHz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions