Closed YanzheL closed 5 years ago
Curious, why keep the subtitle file out of order? You're kind of asking for trouble there because we feed the subtitles directly to the video player, and if the video player doesn't support this then it will not work.
Your suggest of re-ordering, I suppose that makes sense, but that means we have to start processing user subtitle files now. There is a strong chance that it will just end up creating new problems.
These subtitles are downloaded from the internet, some translation team will insert some extra information such as team member info and some ads at the beginning of SRT file. However, the time of this extra info does not start at 00:00, which cause this ordering problem.
I solved this by writing a python script to preprocess these files manually, but I think it would be better if this procedure can be done by Emby.
Maybe this feature can be implemented as an advanced option in subtitle menu? So users are able to choose whether to do the preprocessing.
For what it's worth, i just tested this in Vlc and i can't even get those subs to show up, and Vlc usually handles everything.
I'm going to close this as I don't think we'll be adding workarounds for this. Thanks.
Description
Example SRT file (Src: House of Cards)
We can see that this file is not ordered by time, it starts at 00:02:38,890 (Line 7), then back to 00:00:06,780 (Line 9), which causes a problem that there are no subtitles on TV before 00:02:38,890(Line 7). After 00:02:38,890, everything works fine except these subtitles before this time are lost.
This problem doesn't exist on other devices that have emby client, such as browser, PC, smart phones. It only related to direct DLNA devices.
I think the reason is that emby reads the subtitle file line by line, ignoring its time sequence, then streamming to TV. TV finds that the current subtitle time doesn't match current time, so refuse to display it...
So the suggestion is that before streamming to TV, Emby reorder the SRT file content by time, then TV will receive a correctly ordered subtitle.
Emby Version
4.1.0.6 beta