ErsatzTV icon indicating copy to clipboard operation
ErsatzTV copied to clipboard

Request: Set subtitles on collections, not on channel (or in addition to)

Open lenaxia opened this issue 2 years ago • 4 comments

I have a mix of multi lingual media that I would like to play on the same channel. But I may not want subtitles on all programs that play.

I'd like to be able to create collections of language similar media and set subtitles settings for each of these. I could then aggregate these into multi collections and create playouts from there.

In terms of experience, just moving the subtitle settings into a collections settings page would suffiice. I understand this would be a significant change because there isn't really any confguration you can currently do on a collection.

lenaxia avatar Jan 12 '23 20:01 lenaxia

Currently, you can have custom audio track selection by copying and tweaking this JavaScript file (it's extracted to config/scripts/audio-stream-selector)

https://github.com/jasongdove/ErsatzTV/blob/ab1c67e60ed5a0045505f9038aed2ad4ef9cbae1/ErsatzTV/Resources/Scripts/_episode.js#L1-L22

Would a similar script for custom subtitle selection logic work for you?

jasongdove avatar Jan 22 '23 18:01 jasongdove

I'm also happy to work with you on some specific examples that could be added to the extracted script template.

jasongdove avatar Jan 22 '23 18:01 jasongdove

Hi @jasongdove, Revisiting this, as I dropped off the ersatz train for a while.

Re: the script you're describing above, just to make sure I'm understanding what you're suggesting, basically I'd populate this with a list of episodes that I want to custom set, and define the subtitle mapping manually?

If that's the case, I don't think that's scalable. I have 11,000+ TV episodes and around 7000 anime episodes.

In which case I'd prefer to see a feature where subtitles, (internal or external) are surfaced for selection from the player.

lenaxia avatar Jan 14 '24 09:01 lenaxia

I will see about opening a PR that allows ffmpeg to copy all subtitles over to the final m3u8 stream to allow user selection of subtitles.

lenaxia avatar Jan 15 '24 01:01 lenaxia