ErsatzTV
ErsatzTV copied to clipboard
Request: Set subtitles on collections, not on channel (or in addition to)
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.
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?
I'm also happy to work with you on some specific examples that could be added to the extracted script template.
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.
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.