brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: dots in a subtitle file name tell Jellyfin the language, default and forced flags

Arr-suite
~/tips/tip-jellyfin-external-subtitle-flags

Film (1986)/

Sets language, default, forced and hearing-impaired flags of an external subtitle through its file name.

Jellyfin picks up subtitle files that sit next to a video, and the file name does more work than I expected. The extra dot-separated pieces can set the language, mark a track as default or forced, and flag it for the hearing impaired. I like this because it needs no editing inside the video at all.

This is the example layout from the Jellyfin docs:

Film (1986)/
  Film.mkv
  Film.default.srt
  Film.default.en.forced.ass
  Film.forced.en.dts
  Film.en.sdh.srt
  Film.English Commentary.en.mp3

Each piece after the video name is either a language code or a flag, and a file can carry several flags. The flags are default, forced (or foreign), and sdh, cc or hi for hearing impaired. Text that is neither a language nor a flag becomes the track title, so the last file above shows up as an English audio track called English Commentary. The same naming works for external audio files.

For a series the same pattern goes behind the episode name, for example Series Name A (2021) S01E01 Title.ja.ass inside the season folder.

One trap: hi is also the code for Hindi. On its own it resolves to a Hindi track. Only next to another language, as in title.en.hi.srt, does Jellyfin read it as English for the hearing impaired. I would use sdh and skip the confusion. Also note that flags are ignored on containers with more than one stream, so they only apply to single-stream files.

Further reading: Movies: external subtitles and audio tracks (Jellyfin docs)

Going deeper: Guide: the Bazarr settings that matter, from languages to the minimum score

More Arr-suite tips Scene S01E01-E02-E03 Minimum Seeders Add {edition-{Edition Tags}} to the Radarr movie format for director's cuts Sonarr: None, Local Release, UTC Release Date Prowlarr does not sync download clients, so add one only for searches inside Prowlarr All Arr-suite tips (56) All topics

Link