question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

video stream and audio stream out of sync

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues? Yes, I search with keyword sync, didn’t find related issue

What version of Shaka Player are you using? v3.0.2

Are you using the demo app or your own custom app? Custom app

What browser and OS are you using? GoogleChrome, Ubuntu

Sometimes, when watching long movie, video and audio (using DASH) going out of sync, just half a second or a second (but I can realize that - because character lip movement), fix it by click on the seeking bar, audio and video will sync itself.

I’ve experience this a number times, don’t know how to reliably reproduce them.

On the otherhand, youtube seem to have this problem as well, but they cleverly fix that by either pausing video or speed up the video until it match. (it happen really fast, like in 0.2s - anyone else experience this ?)

Just want to ask is it possible for our library to out of sync video and audio? And we currently don’t have mechanism to periodic autosync, is that right ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
joeyparrishcommented, Aug 20, 2020

Thanks for the information!

Based on my experience with content issues in general, I would say this is bad content. Even if Firefox plays it, that doesn’t mean it’s necessarily in-spec. Some players or platforms are more forgiving or flexible about their interpretations of things.

My suggestion is to check if you’re using a recent, stable release version of ffmpeg. For example, I see good results with v4.3.1, which I installed from a Debian package. That appears to be the latest release as of August 2020. Before that, I was running v4.2.1 built from source.

Then I would suggest you check that you have a recent stable version of libvpx. I have seen many, varied issues with VP9 content encoded with old versions of libvpx. I’m currently using libvpx v1.8.2 from a Debian package. There’s a newer release out as well, v1.9.0. I have created bad VP9 content before that was fixed by upgrading libvpx, even without upgrading ffmpeg. So I would suggest upgrading if your copy is older than v1.8.2.

With these versions, our own demo and test content seems to be in sync. We encode everything in both H264/AAC and VP9/Opus in the same MPD (using Shaka Streamer).

I hope that helps!

0reactions
joeyparrishcommented, Sep 21, 2020

@kocoten1992, thank you for posting the solution! I’m sure this will benefit others in the community having AV sync issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix OBS Live Stream Audio That's Out Of Sync. PERMANENTLY
Fix OBS Live Stream Audio That's Out Of Sync. PERMANENTLYAudio Sync issues are the most common complaint you find for OBS.
Read more >
Why are My Streaming Video and Audio Out of Sync? - Dacast
It is quite common for encoders to get out of sync when streaming both video and audio feeds if the CPU of the...
Read more >
TV Audio Out of Sync: How to Fix in seconds
Check your Internet for Audio Sync Issues While Streaming.
Read more >
How to fix video sync problems - Tech Advisor
If you're streaming video from Netflix or another service and you haven't had problems with out-of-sync audio before, then it's likely ...
Read more >
How to fix Audio and Video out of Sync in Windows 10
Streaming services can be one of the biggest culprits. It's important to use streaming services that are reliable. Poor streaming service quality can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found