You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect Recognition of Multi-Channel Audio Tracks #6300
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.
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.
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).
Activity
galad87 commentedon Sep 15, 2024
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?
avenged110 commentedon Sep 15, 2024
Here's a very brief snippet with 5.1 audio. Shows up for me with "12 channels" in Handbrake.
GithubTest.mov
galad87 commentedon Sep 23, 2024
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.
avenged110 commentedon Sep 25, 2024
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).
libhb: cli: ui: support custom channels order
libhb: cli: ui: support custom channels order (#7265)