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

av-sync finer tuning #1164

Closed
totaam opened this issue Apr 13, 2016 · 5 comments
Closed

av-sync finer tuning #1164

totaam opened this issue Apr 13, 2016 · 5 comments
Labels
Milestone

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 13, 2016

Follow up from #835.

Things that we want to quantify because they may need to be taken into account when calculating the video sync delay:

  • operating system / driver output buffering: how long it takes from the moment we send bytes to the soundcard until they actually come out of the speakers
  • gstreamer internal buffering its sink element, different on each OS
  • application specific internal processing delay (which we should probably ignore - the application should submit sound and video in sync to the server OS)
  • picture decoding time: this is small, but should have been substracted from the total already
  • opengl double-buffering vs single-buffering and framerate (we do have a value for vsync we export) - also needs to be substracted from the total
  • any other display specific delay: 4k vs 1080p should not make any difference, at least I can't think of how it would - maybe related to sync paint updates to the video #981

From what I've heard, the audio is a bit late, especially on non-Linux platforms.
If that's the case, we can quite easily add per-OS tweaks.

@totaam
Copy link
Collaborator Author

totaam commented Jun 19, 2016

Edit: ignore comment, reverted in r12870.

See also #1261 for multiple b-frames support, r12868 takes delayed frames into account when calculating the delay.

@totaam
Copy link
Collaborator Author

totaam commented Aug 10, 2016

There may also be differences between codecs, see #1075#comment:10 : Mp3, on the other hand, seemed to be about 6-8 frames audio late.

@totaam
Copy link
Collaborator Author

totaam commented Nov 6, 2017

As of r17223, users can tune the av-sync from the system tray.

@totaam
Copy link
Collaborator Author

totaam commented Feb 12, 2020

See also #2517.

@totaam
Copy link
Collaborator Author

totaam commented Jan 26, 2021

r17223 should be enough for now.

@totaam totaam closed this as completed Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant