ErsatzTV icon indicating copy to clipboard operation
ErsatzTV copied to clipboard

Preferred Audio Option

Open Artiume opened this issue 3 years ago • 6 comments

I've noticed that with files with dual audio, it defaults to the first audio track. The ability to have a preferred language option in the settings would be nice. I'm using Jellyfin and it'd be nice if it synced it via the metadata sync but I'm not sure if that'd be feasible or not.

Artiume avatar Jun 27 '21 00:06 Artiume

There are two preferred language settings: one global setting in the Settings page, and one for each channel to override the global setting.

jasongdove avatar Jun 28 '21 10:06 jasongdove

ah gotcha. So it looks like the global isn't working for me and I must use the local channel audio preference

Artiume avatar Jun 28 '21 11:06 Artiume

Also note that if your channels are configured as HLS Direct all audio streams will be sent to allow the client to select the desired stream. Stream selection using the preferred language is only performed when transcoding is used in either MPEG-TS or HLS Hybrid modes.

jasongdove avatar Jun 28 '21 11:06 jasongdove

Hmm, so in all 3 modes, setting the local channel preference to English worked, even in HLS-Direct mode. I was just testing one video so I'll need to test it some more.

Artiume avatar Jun 28 '21 11:06 Artiume

I just double checked the code and it's a little more nuanced than I thought. HLS Direct will ignore the global language preference, but not the channel preference, so if you were using HLS Direct originally that might explain the behavior you observed. The logs should also give some clues.

jasongdove avatar Jun 28 '21 12:06 jasongdove

Yeah, I'm using Direct for my channels

Artiume avatar Jun 28 '21 12:06 Artiume

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

github-actions[bot] avatar Feb 06 '24 04:02 github-actions[bot]

This issue was closed due to inactivity.

github-actions[bot] avatar Feb 28 '24 02:02 github-actions[bot]