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

Lag between audio and video when playing video in firefox-53 using apulse-0.1.9 #51

Closed
powerman opened this issue May 2, 2017 · 3 comments

Comments

@powerman
Copy link

powerman commented May 2, 2017

The lag is small and thus hard to measure and prove, but looks like at least two people noticed it, so I decide to open issue here anyway - either @i-rinat may have an idea how to debug/fix it or more people will notice it too and report here more details which may helps fixing it.

@i-rinat
Copy link
Owner

i-rinat commented May 3, 2017

This is most probably related to latency handling. Since PulseAudio API is designed to be remote, it has latency estimation here and there. I actually had no idea how to calculate it, so there are some arbitrary numbers currently.

The first point to look at is /src/apulse-context.c. Search for string latency = 100000, there should be four places. I'd try to decrease the values (the are in microseconds) to, say, 10000 us as a start.

Again, I currently have no idea how to do this in a correct way. Some additional research on PA API is required.

@i-rinat
Copy link
Owner

i-rinat commented Jun 6, 2017

I stumbled upon the video test for audio sync: https://www.youtube.com/watch?v=ucZl6vQ_8Uo.

Looks like on my machine, audio is synchronized just fine when using Firefox + apulse.

@powerman
Copy link
Author

I've no idea is it still actual, but it's anyway too outdated and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants