Skip to content

Audio/Subtitle Track order not consistent/preserved when added automatically (as compared to previous version 1.2.2 or manual addition) #2545

Closed

Description

@RupeeClock

Description of the problem

In HandBrake v1.3.0, when audio or subtitle tracks are automatically added to a job according to a preset's track selection behaviour, the added tracks are sorted alphabetically ascending by detected language name.

This is not consistent with HandBrake v1.2.2, or the manual action of Adding All Remaining Tracks, where added tracks are sorted numerically ascending by the source's item order.

This is an issue if you want the preset to preserve the order of audio/subtitle tracks from the original source. This current behaviour will result in tracks being re-ordered alphabetically, with the first track likely being a different language.

HandBrake version (e.g., 1.0.0)

HandBrake v1.3.0

Operating system and version (e.g., Ubuntu 18.04 LTS, macOS 10.14 Mojave, Windows 10 1809)

Windows 10 Pro build 1909

Error message text or screenshot

HandBrake 1 3 0 Audio Track Selection Behaviour
HandBrake 1 3 0 Subtitle Selection Behaviour
HandBrake 1 2 2 Audio Track Selection Behaviour
HandBrake 1 2 2 Subtitle Selection Behaviour

Activity

  1. changed the title [-]Audio/Subtitle Track order not consistent/preserved when added automatically/manually (as compared to previous version 1.2.2)[/-] [+]Audio/Subtitle Track order not consistent/preserved when added automatically (as compared to previous version 1.2.2 or manual addition)[/+] on Dec 30, 2019
  2. sr55 commented on Dec 30, 2019

    @sr55
    Contributor

    Yup this is expected behaviour. I'm afraid there is no way to change this behaviour. All you can do is manually re-order with drag/drop post.

    Language order is honoured correctly now.

  3. heliosyne commented on Apr 16, 2020

    @heliosyne

    I get that it makes sense to sort tracks by language, and that's a nice option to have, but it's also counterproductive in a lot of cases. Much of my use of Handbrake is transcoding sources where the content authoring tools set the desired track order, so I need to preserve it in the Handbrake stage.

    Is it possible to add an option to sort the tracks by index/language? Surely if Handbrake can sort by language it can sort by other track information?

    A "Sort added tracks by..." option in the Selection Behaviour dialogue would be great. Alternatively, a "Sort by..." drop-down menu button on the track list next to the "Add Track" and "Clear" buttons) paired with the ability to set a default in the main preferences?

  4. heliosyne commented on Apr 23, 2020

    @heliosyne

    Another note about the sorting order: it sorts by the English name for the language, but displays the native name. A particularly striking one is seeing "English, suomi, Francais" because it sorted the list as "English, Finnish, French".

    Why sort by English but not display in English?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions