Change default language and subtitles

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
CodeKiller
Posts: 4
Joined: Mon Nov 18, 2019 1:06 am

Change default language and subtitles

Post by CodeKiller »

Hello,

I want to force the audio to eng and subtitles to fre.
I have these settings :
Audio : eng,fre,jpn,ger,und
ST: fre,eng,jpn,ger,und and fre,off;*,fre;*,und

But the mkv are still playing in french by default with no subtitles.

So I guess all these settings are totally useless ? :shock:

If you have any lead...

Thanks.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Change default language and subtitles

Post by Nadahar »

They aren't useless, but that aren't exactly intuitive.

The subtitles and audio language priorities only apply if there are multiple valid choices (*) in the "combined" configuration. Thus, the one you should focus on is the "combined" one:

Code: Select all

fre,off;*,fre;*,und
What this setting says is: If available, use French audio without subtitles. If French audio isn't available, use ANY (* - which means that the audio language priority comes into play) audio language with French subtitles. If no French subtitles are available, use ANY audio language with subtitles whose language hasn't been detected.

As such, this configuration will never give you English audio with French subs. If that's your first choice, you should try:

Code: Select all

eng,fre;fre,off;*,fre;*,und
CodeKiller
Posts: 4
Joined: Mon Nov 18, 2019 1:06 am

Re: Change default language and subtitles

Post by CodeKiller »

Ok, in the logs I saw that :

20:34:51 WARN Ignoring invalid audio/subtitle language configuration "fre"
20:34:51 WARN Ignoring invalid audio/subtitle language configuration "off"
20:34:51 WARN Ignoring invalid audio/subtitle language configuration "fre"
20:34:51 WARN Ignoring invalid audio/subtitle language configuration "off"
20:34:51 WARN Ignoring invalid audio/subtitle language configuration "fre"
20:34:51 WARN Ignoring invalid audio/subtitle language configuration "off"

Current setting : eng,fre;fre,off;*,fre
For me it is written correctly.

So "fre" is not correct for a language settings but still load by default in fre with fre sub ???
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Change default language and subtitles

Post by Nadahar »

"fre" isn't the problem, the problem is that it expects "pairs" but for some reason only finds one language.

Here is what the code accepts for French:

Code: Select all

putCode("French", "fr", "fra", "fre");
I can't see anything wrong with what you say is the setting, a full (trace) log is needed to figure out what is really going on.
CodeKiller
Posts: 4
Joined: Mon Nov 18, 2019 1:06 am

Re: Change default language and subtitles

Post by CodeKiller »

Hello,
Thanks for the reply.
I will try to provide you the debug trace asap.
Post Reply