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

fix(CEA): reset PTS on new init segment #6606

Merged
merged 1 commit into from
May 14, 2024

Conversation

tykus160
Copy link
Contributor

Fixes #6605
Resets cache (including last used presentation timestamp) of CEA Decoder on every init segment append.
Adds few debug logs to easify investigations in the future.

@avelad avelad 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 May 14, 2024
@avelad avelad added this to the v4.9 milestone May 14, 2024
@avelad avelad self-requested a review May 14, 2024 09:10
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@avelad avelad merged commit 024cb9b into shaka-project:main May 14, 2024
19 checks passed
avelad pushed a commit that referenced this pull request May 14, 2024
Fixes #6605
Resets cache (including last used presentation timestamp) of CEA Decoder
on every init segment append.
Adds few debug logs to easify investigations in the future.
@tykus160 tykus160 deleted the wt-cea-clear-init branch May 14, 2024 14:36
shaka.log.debug('Passing new init segment to CEA parser');
// Reset underlying decoder when new init segment arrives
// to clear stored pts values.
this.reset();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this cause undesirable behavior on a bit-rate change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you be more specific? It seems to be the explicit intent of the author to reset CEA decoding when we switch bitrates (append init segment). What undesirable behavior are you seeing / anticipating?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issues addressed is "Closed Captions from main content appear in the end of midroll" which indicates to me a concern with period changes, not bitrate changes. I think this change might cause captions to disappear earlier than they should on a bitrate change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think they need to distinguish period change from bitrate change.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right. @caridley can you send a PR to fix it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I will have time to do that. Sorry

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a fix for it, #6671

avelad added a commit that referenced this pull request May 24, 2024
avelad added a commit that referenced this pull request May 27, 2024
joeyparrish pushed a commit that referenced this pull request May 31, 2024
Fixes #6605
Resets cache (including last used presentation timestamp) of CEA Decoder
on every init segment append.
Adds few debug logs to easify investigations in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closed Captions from main content appear in the end of midroll
6 participants