ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Video subtitles not displaying correctly (overlapping) if there are overlapping time codes

Open BobbyJWhjr opened this issue 3 years ago • 3 comments
trafficstars

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.

pxl_20220816_183726420

Actual result

Screen Shot 2022-08-16 at 12 02 36 PM

Media

NA

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

BobbyJWhjr avatar Sep 07 '22 08:09 BobbyJWhjr

Correct presentation in this case depends on the subtitle format and data. Can you provide the source subtitle file?

nigelmegitt avatar Sep 07 '22 09:09 nigelmegitt

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.

icbaker avatar Sep 08 '22 15:09 icbaker

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)

nigelmegitt avatar Sep 08 '22 15:09 nigelmegitt

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!

google-oss-bot avatar Sep 28 '22 01:09 google-oss-bot

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.

google-oss-bot avatar Oct 06 '22 01:10 google-oss-bot