Jellyfin Forum
Default subtitle language is not respected - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Default subtitle language is not respected (/t-default-subtitle-language-is-not-respected)



Default subtitle language is not respected - maxiu - 2024-01-13

Hello,
I am running jellyfin in docker, using version 10.8.13 (but this issue has been happening for at least a year now) and I have an issue with default subtitle/language selection. 
I have everything set to English

Code:
Preferred subtitle language: English
Code:
Preferred audio language: English

yet when starting any video file it seems jellyfin is actively avoiding selecting English, when there are only 2 subs to pick from it will always pick the other not English one. Same with audio, I'm getting Czech, French, Italian, Spanish but never English (unless its the only one).
An example file structure where English was not picked:

Code:
-rw-r--r-- 1 jellyfin jellyfin  27K 10 Jan  13:44  Lost.S02E02.Adrift.Bluray-1080p.RARBG.x265.AAC.en.srt
-rw-rw-r-- 1 jellyfin jellyfin 679M 10 Jan  11:42  Lost.S02E02.Adrift.Bluray-1080p.RARBG.x265.AAC.mp4
-rw-r--r-- 1 jellyfin jellyfin  26K 10 Jan  13:44  Lost.S02E02.Adrift.Bluray-1080p.RARBG.x265.AAC.pl.srt

When I navigate to the episode in jellyfin UI the incorrect sub language is already selected.
I'm using jellyfin client for Windows 1.9.1, iOS, Google TV - everywhere the same problem.
Log when starting the file:

Code:
[2024-01-13 23:03:13.111 +01:00] [INF] [42] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "max". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-01-13 23:03:13.111 +01:00] [INF] [42] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 999000000, RemoteIp: "xxx", IsInLocalNetwork: False
[2024-01-13 23:03:13.111 +01:00] [INF] [42] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Jellyfin Media Player", Path="/media/tv_shows/Lost/Season 2/Lost.S02E02.Adrift.Bluray-1080p.RARBG.x265.AAC.mp4", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/87fc4675-fa1d-6c6a-90fc-dc9151e183e1/stream.mov?MediaSourceId=87fc4675fa1d6c6a90fcdc9151e183e1&Static=true&VideoCodec=hevc&AudioCodec=aac&AudioStreamIndex=3&api_key=<token>&Tag=11914c61cf552c91b25a2ad635c0f615"
[2024-01-13 23:03:36.138 +01:00] [INF] [62] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Webhook Item Added Notifier"
[2024-01-13 23:03:36.138 +01:00] [INF] [62] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "ItemAddedScheduledTask"
[2024-01-13 23:03:36.138 +01:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Webhook Item Added Notifier"
[2024-01-13 23:03:36.138 +01:00] [DBG] [10] Jellyfin.Plugin.Webhook.Notifiers.ItemAddedNotifier.ItemAddedManager: ProcessItemsAsync
[2024-01-13 23:03:36.138 +01:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2024-01-13 23:03:36.138 +01:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-01-13 23:04:06.140 +01:00] [INF] [42] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Webhook Item Added Notifier"
[2024-01-13 23:04:06.140 +01:00] [INF] [42] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "ItemAddedScheduledTask"
[2024-01-13 23:04:06.140 +01:00] [INF] [53] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Webhook Item Added Notifier"
[2024-01-13 23:04:06.140 +01:00] [DBG] [53] Jellyfin.Plugin.Webhook.Notifiers.ItemAddedNotifier.ItemAddedManager: ProcessItemsAsync

Thanks


RE: Default subtitle language is not respected - TheDreadPirate - 2024-01-13

Are any of the other subtitle tracks tagged as "Default" or "Forced"? If so, that tag will override any language preference you have.


RE: Default subtitle language is not respected - maxiu - 2024-01-13

Nope, this particular video file came without any subtitles included.
The subtitles are displayed as <language> - SUBRIP - External
However the list is not alphabetically sorted, English is the last one in the dropdown, the automatically selected sub is the first one after "Off"