Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBU subtitles regression in 4.1.3 - duplicate line on screen #4631

Closed
david-hm-morgan opened this issue Oct 28, 2022 · 6 comments · Fixed by #4798
Closed

EBU subtitles regression in 4.1.3 - duplicate line on screen #4631

david-hm-morgan opened this issue Oct 28, 2022 · 6 comments · Fixed by #4798
Assignees
Labels
component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@david-hm-morgan
Copy link
Contributor

david-hm-morgan commented Oct 28, 2022

Have you read the FAQ and checked for duplicate open issues?
yes

What link can we use to reproduce this?
https://shaka-player-demo.appspot.com/demo/#audiolang=en;textlang=en;uilang=en;asset=https://otvplayer.nagra.com/demo/content/bbc/bbc_ebu-tt-d_subtitle_fragmented/dash/ondemand/elephants_dream/1/client_manifest-all-minus-1080p.mpd;panel=CUSTOM%20CONTENT;build=uncompiled

What version of Shaka Player are you using?
v4.2.2-uncompiled

also seen in 4.2.3, 4.2.1, 4.2.0, 4.1.5, 4.1.4, 4.1.3

Its OK in 4.1.2

What browser and OS are you using?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

What did you do?

  1. Play this stream
  2. enable captions
  3. monitor the text that is rendered

What did you expect to happen?
At around 3 mins we should see the line
You - I mean we - we could easily die out here
There are several other examples of duplication in the text during this stream, this is just one example.

What actually happened?
The line is repeated. Two copies.

image

@david-hm-morgan
Copy link
Contributor Author

@Wayne-Morgan FYI

@joeyparrish joeyparrish added type: bug Something isn't working correctly component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release labels Oct 28, 2022
@github-actions github-actions bot added this to the v4.3 milestone Oct 28, 2022
@theodab
Copy link
Contributor

theodab commented Oct 28, 2022

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Oct 31, 2022
@github-actions github-actions bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Nov 1, 2022
@david-hm-morgan
Copy link
Contributor Author

david-hm-morgan commented Nov 6, 2022

I've been debugging this a little and comparing to v4.1.2 where you can see in the DOM the subtitle text is actually duplicated, so this is not literally a regressiom with v4.1.3 because the issue was there but it was not visible
image

However, with 4.1.3 due to perhaps 4412 it becomes visible.
3018 introduced the checking for duplicates with a view to efficiency, but unfortunately in this case the duplications appear at different places in the cue/nestedCue tree so are not eliminated as duplicates.

@david-hm-morgan
Copy link
Contributor Author

Currently I am looking into adding some code to check for existence of nested duplicates in the ui_text_displayer's append() function. My idea is to check for cues that have been split across segments i.e. where there is an overlap between the cues being added and those already in the list. Then looking deeper into them to see if the last child of the existing list contents matches the first child of the one being added, if they match, discard the second copy.
I have something working but its not an elegant solution yet.

@joeyparrish
Copy link
Member

Thank you for working on a fix!

@avelad avelad modified the milestones: v4.3, v4.4 Nov 11, 2022
joeyparrish added a commit to joeyparrish/shaka-player that referenced this issue Dec 8, 2022
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Feb 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
4 participants