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

A/V sync problem on both multi-period DASH and HLS after SSAI ad break #5007

Closed
jolytv2 opened this issue Feb 16, 2023 · 6 comments
Closed
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@jolytv2
Copy link

jolytv2 commented Feb 16, 2023

Have you read the FAQ and checked for duplicate open issues?
Yes, possible (closed) duplicate 4589

What version of Shaka Player are you using?
Tested with both 4.3.2 (custom build) and 4.3.4

Can you reproduce the issue with our latest release version?
Yes

Can you reproduce the issue with the latest code from main?
Yes

Are you using the demo app or your own custom app?
Both custom and demo app (demo app integrated in a Tizen demo app)

For embedded devices (smart TVs, etc.), what model and firmware version are you using?
Tizen 3.0 - 7.0 (2017 - 2023)
WebOS 3.x - 8.x (2016 - 2023)

Seemingly all models are equally affected.

What are the manifest and license server URIs?
DASH

HLS

What configuration are you using? What is the output of player.getConfiguration()?
default

What did you do?

  • Start playback of one of the above streams in an app on a Tizen or WebOS TV with latest Shaka
  • Let it run 3-4 ad breaks or more

What did you expect to happen?
Audio / video to remain in sync over extended play across ad breaks

What actually happened?

  • After 3-4 ad breaks sync is (estimated) 500ms out of sync or more

** Additional information **
We have attempted running the latest Shaka, created an HLS version of the stream and running with the yo.pdt=sync setting as mentioned in 4589 - but we still have the issue.

@jolytv2 jolytv2 added the type: bug Something isn't working correctly label Feb 16, 2023
@github-actions github-actions bot added this to the v4.4 milestone Feb 16, 2023
@joeyparrish
Copy link
Member

Please confirm that your playlists have EXT-X-PROGRAM-DATE-TIME, and that the timestamps in them are accurate. That is the basis for HLS AV sync, both in Shaka and according to the HLS spec.

Please let us know what you find.

@jolytv2
Copy link
Author

jolytv2 commented Mar 3, 2023

Hi @joeyparrish

HLS
Regarding your question, on HLS we are running with the yo.pdt parameter from Yospace that inserts the EXT-X-PROGRAM-DATE-TIME - I am not sure how to tell the accuracy of them though. It did seem however that the stream went significantly out of sync with Shaka and yo.pdt=sync, but sometimes went back into sync. Without yo.pdt=sync it didn't seem to recover, at least not as much.

DASH
It should be noted though, that HLS was something we tested, due to the 4589 ticket, but we normally run multiperiod DASH on our SmartTVs.

Recent observations on DASH is:

a) It seems out timescale is different for content and ads, ads are 12800 and content 180000. This would appear to present problems for SmartTVs, that don't handle changes in timescale well. We haven't the option of aligning the timescale on Yospace and changing our timescale on content isn't trivial either. We have in another player seen that having the player do a remapping of the timescale to match our contents timescale, removes a part of the de-sync issue.

b) We have also seen that small gaps and overlaps in segments seem to be the second cause of sync problems. When we look at the media internals on web in Chrome, we can sometimes see that the player handles these gaps/overlaps without issue, but on SmartTV this is not the case. In the other player adjustments were made to handle this better on SmartTVs, and combined with regular re-syncs, and the above timescale thing, we can keep the sync down to a few frames, which is within reasonable boundaries.

@avelad avelad modified the milestones: v4.4, v4.5 Aug 31, 2023
@avelad
Copy link
Member

avelad commented Sep 27, 2023

Can you test again with the latest release (4.4.2)? Thanks!

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 27, 2023
@jolytv2
Copy link
Author

jolytv2 commented Sep 28, 2023

Hi Álvaro, thank you, we will test and get back!

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 28, 2023
@avelad avelad modified the milestones: v4.5, v4.6 Oct 5, 2023
@avelad avelad modified the milestones: v4.6, v5.0 Nov 16, 2023
@avelad
Copy link
Member

avelad commented Nov 30, 2023

Can you test again with the latest release (4.6.3)? Thanks!

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Nov 30, 2023
@avelad avelad modified the milestones: v4.7, v5.0 Dec 4, 2023
@shaka-bot
Copy link
Collaborator

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Dec 7, 2023
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Feb 5, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

4 participants