Skip to content

Incorrect Recognition of Multi-Channel Audio Tracks #6300

Closed

Description

@avenged110

Problem Description

When I export a video with multichannel (5.1) audio from FCPX, the resultant file contains a 5.1 channel, 16-bit LPCM audio track which plays back just fine. If I import this file into Handbrake 1.8.x for compression, HB reports some wildly inaccurate number of audio channels (usually 13-30, see screenshot) and only allows a "stereo” mixdown. The output appears to sound fine, but, again, is improperly limited to stereo.

I’m not sure if I’m possibly doing something dumb to cause this or if this could manifest with non-FCPX-produced videos, but the version of FCPX does not seem to matter, and the issue appears to have been introduced in Handbrake 1.8.x. I’ve included logs and screenshots from HB 1.7.3 and 1.8.2 for an encode with each using the same file and the same custom preset. Nothing else about my process has changed outside of the Handbrake version. Please let me know if there’s anything else you need.

AudioTest_HB17
AudioTest_HB18

Handbrake activity logs:
AudioTest_HB17 2024-09-14 14-53-29.txt
AudioTest_HB18 2024-09-14 14-58-25.txt

Activity Log, Crash Log or any other details

You'll find the activity logs in the description below the screenshots.

What Operating System are you running?

macOS 14.6.1

What version of HandBrake are you running?

1.8.2

Where did you download HandBrake from?

Github releases

Activity

  1. galad87 commented on Sep 15, 2024

    @galad87
    Contributor

    Probably it broke when support for pcm in mp4 was added. Can you provide a short sample file we can use to reproduce the issue?

  2. avenged110 commented on Sep 15, 2024

    @avenged110
    Author

    Here's a very brief snippet with 5.1 audio. Shows up for me with "12 channels" in Handbrake.

    GithubTest.mov
  3. galad87 commented on Sep 23, 2024

    @galad87
    Contributor

    Unfortunately the solution it's not easy.
    1.7.3 read the correct number of channels, but it used an incorrect channel layout, so the output was wrong. 1.8.2 reads the correct channel layout initially, but there was a bug and things went quite wrong.
    However, even after fixing the bug, the resample we use doesn't yet support that channel layout, so the output is still wrong.

  4. avenged110 commented on Sep 25, 2024

    @avenged110
    Author

    Interesting that even with an incorrect channel layout from 1.7.x, I never had any issues with the output. Nonetheless, wishing you guys all the best in getting it sorted out (hopefully).

  5. added a commit that references this issue on Sep 13, 2025
    0c6071c
  6. added a commit that references this issue on Sep 13, 2025
    94c8b3e
  7. added this to the 1.11.0 milestone on Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions