mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Chosen audio track suboptimal on Chrome #3293
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brianjmurrell on GitHub (Oct 3, 2021).
Describe the bug
When playing media on Chrome that has both an AAC media track as well as a surround sound track such as AC3, the AAC track is not chosen by default, incurring an unnecessary transcode at playback time.
Additionally, the audio track selector shows Default for all tracks.
System (please complete the following information):
To Reproduce
Expected behavior
Should automatically choose the AAC track
Also, should not show Default on every track in the track list
Server Logs
N/A
FFmpeg Logs
N/A
Browser Console Logs
N/A
Screenshots

Default playback without explicitly selecting an audio track:
Available tracks:

(Notice how both say Default, as an aside)
Playback data when AAC track is explicitly chosen:

Additional context
None
@Shadowghost commented on GitHub (Oct 3, 2021):
Except the fact that the default track is the intended track to be played alongside the video we don't know what the other tracks are meant for.
Automagically choosing the track based on best compatibility and language could lead to e.g. using a commentary track. If the track languages aren't properly tagged this could also lead to choosing a track with a totally different language than the intended one on movies with more than one audio language.
I understand why choosing the most compatible track may seem like a good idea but I think it'd lead to way more problems than it solves.
@Artiume commented on GitHub (Oct 3, 2021):
For 10.8 (or Jellyfin Media Player), we have an algorithm for selecting the best audio or subs. Try it to see if you think this bug is still an issue.
https://github.com/jellyfin/jellyfin-web/pull/2621
@brianjmurrell commented on GitHub (Oct 5, 2021):
Ahhh. So are you saying that all tracks that are just different encodings (6ch, 2ch, etc.) of the actual sound track will all say Default and that it's not intended that Default to be applied to just one those different encodings of the same track?
Yes, if my understanding of what you are saying above is correct. So my desired behaviour then is to automatically choose, among the different tracks marked as Default, the one that is encoded to match the output hardware.
Am I misunderstanding that this only affects multiple media items played one after another and has no benefit to the first/initial item played?
@Artiume commented on GitHub (Oct 5, 2021):
Correct, so it's for Shows and not movies. I personally encode the stereo track first and the 5.1 second so you have to manually select the 5.1 if you want surround sound. There really isn't a good way to 'assume' what is the best track to play. Based on experience, the stereo tracks that are listed last are typically the commentary tracks. I feel like if we tried to make Jellyfin smarter than it really is, it would cause people to complain about audio preference because of odd-case encoded media.
@jellyfin-bot commented on GitHub (Feb 3, 2022):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.