ExoPlayer
ExoPlayer copied to clipboard
Video subtitles not displaying correctly (overlapping) if there are overlapping time codes
ExoPlayer Version
2.18.1
Devices that reproduce the issue
All android devices. Tested on Samsung S22 Ultra, Oneplus 7 Pro
Devices that do not reproduce the issue
NA
Reproducible in the demo app?
Not tested
Reproduction steps
Play any media with overlapping media codes like some narrator speaking with background music then subtitles overlap with each other as depicted in image
Expected result
When there are subtitles with overlapping time codes, expected behaviour should be to display both subtitles at the same time, just stacked above/below each other.

Actual result

Media
NA
Bug Report
- [ ] You will email the zip file produced by
adb bugreportto [email protected] after filing this issue.
Correct presentation in this case depends on the subtitle format and data. Can you provide the source subtitle file?
For SSA/ASS subtitles sideloaded from a file this should work.
For SSA/ASS subtitles in MKV this is known not to work, implementing it is tracked by https://github.com/google/ExoPlayer/issues/10295.
For Subrip subtitles this is known not to work, implementing it is tracked by https://github.com/google/ExoPlayer/issues/4794.
I believe this should work for both WebVTT and TTML subtitles (though I haven't double checked).
As @nigelmegitt says, please clarify what format subtitles you're asking about and provide a source file we can use to reproduce what you're seeing.
Related data point: Overlapping regions and therefore text is permitted by the specification in generic TTML, but not in the IMSC or EBU-TT-D profiles that are commonly used for subtitles and captions. (this is not a comment on the implementation in ExoPlayer)
Hey @BobbyJWhjr. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@BobbyJWhjr if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.