Skip to content

Audio track selection behavior not working as expected #6666

Closed

Description

@AngelKing86

Problem Description

The issue occurs even during the selection of audio tracks for the preset.

The option "First Matching selected language" is selected, with "Deutsch" set as the selected language.

It works as expected when both a German and an English track are available.
However, it does not work as expected when only an English track is present.

According to the documentation, in this case, the first available track should be automatically selected, even if it does not match the chosen language.

"First matching selected Language The first track that matches each of the languages in the 'Chosen Languages,' otherwise the first track will be selected."

Activity Log, Crash Log or any other details

n/a

What Operating System are you running?

Linux

What version of HandBrake are you running?

1.9.0

Where did you download HandBrake from?

No response

Activity

  1. github-actions commented on Feb 24, 2025

    @github-actions

    Hello,

    Welcome to the HandBrake repository.

    Warning

    Please be cautious of any non-members suggesting that you download a "DLL" or any other files from 3rd party websites.
    These are likely malicious!
    Members of the HandBrake team can be identified by the "(Member)" label in the top right of any response from them.

    Thank You,
    The HandBrake Bot

  2. sr55 commented on Feb 24, 2025

    @sr55
    Contributor

    Can you screenshot your windows please.

    I can't seem to reproduce this:

    Image

  3. hnsteyding commented on Feb 25, 2025

    @hnsteyding
    Contributor

    @sr55:

    I can't seem to reproduce this

    Maybe you use a sample video file which has 2 audio tracks ?!

    Image

    But I can't reproduce this too:
    My sample file has 1 english audio track
    Silberfische bekämpfen-original-english-track.mp4.txt
    Image

    I use the setting from Scott and after conversion english audio track are still available:
    Silberfische bekämpfen-converted-english-track.mkv.txt

  4. AngelKing86 commented on Feb 28, 2025

    @AngelKing86
    Author

    Sorry for my late answer, now this is with only "Deutsch" selected
    Image

    And now with also "English" selected
    Image

    Image

    It seems to be a bug in the Linux version; the same settings work in the Windows application.

    Image

  5. sr55 commented on Feb 28, 2025

    @sr55
    Contributor

    I'd wager it's just an inconsistency in the Linux UI. The UI's are not all the same.

  6. robxnano commented on Mar 3, 2025

    @robxnano
    Contributor

    I'm trying to fix this, but I just want to clarify the intended behavior first.

    • Should there also be a fallback for the 'All matching selected languages' option?
    • What should happen if more than one language is selected? Currently in the Windows UI, the behavior changes depending on the order of the languages, e.g. if French and Spanish are selected but the input video has English and Spanish tracks, both the English and Spanish tracks are added, but if the selected languages are Spanish and French, only the Spanish track is added. To me that seems like a mistake, and the fallback should be applied only if none of the selected languages are found.
    • Should the fallback be applied to subtitles as well?

    It looks like the macOS version doesn't have a fallback either. I think the functionality can be added in libhb, rather than having separate implementations for Linux and macOS.

  7. added a commit that references this issue on Jul 30, 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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions