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
Audio track selection behavior not working as expected #6666
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."
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.
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.
Activity
github-actions commentedon Feb 24, 2025
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.
Tip
For HandBrake documentation, please see https://handbrake.fr/docs
Thank You,
The HandBrake Bot
sr55 commentedon Feb 24, 2025
Can you screenshot your windows please.
I can't seem to reproduce this:
hnsteyding commentedon Feb 25, 2025
@sr55:
Maybe you use a sample video file which has 2 audio tracks ?!
But I can't reproduce this too:

My sample file has 1 english audio track
Silberfische bekämpfen-original-english-track.mp4.txt
I use the setting from Scott and after conversion english audio track are still available:
Silberfische bekämpfen-converted-english-track.mkv.txt
AngelKing86 commentedon Feb 28, 2025
Sorry for my late answer, now this is with only "Deutsch" selected

And now with also "English" selected

It seems to be a bug in the Linux version; the same settings work in the Windows application.
sr55 commentedon Feb 28, 2025
I'd wager it's just an inconsistency in the Linux UI. The UI's are not all the same.
robxnano commentedon Mar 3, 2025
I'm trying to fix this, but I just want to clarify the intended behavior first.
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.
libhb: Fallback to first audio language
libhb: Fallback to first audio track
libhb: Fallback to first audio track
libhb: Fallback to first audio track
libhb: Fallback to first audio track