from Hacker News

Ask HN: What's the root cause of audio and video mismatch?

by mrbirddev on 8/11/24, 3:27 AM with 4 comments

Just watching some olympic games and it occurred to me almost all video players has the issue of audio & video mismatch.

Is it because of floating point issue? What's the root cause?

  • by subject4056 on 8/11/24, 4:24 AM

    Audio and video are encoded, compressed, and transmitted differently because of how humans audially/visually decode them. We fare better dropping late video frames than degrading their quality, where the opposite is true for audio. As we transmit the two as separate, asynchronous signals, it's unsurprising that they are frequently out of sync.
  • by pestatije on 8/11/24, 6:08 AM

    they follow different channels and at some point the sync is lost...youll get this, for instance, when a synced stream is diverted for additional commentators audio...the commentator and you see the original video, the commentator hears the original audio, you hear the delayed original audio mixed with the commentators audio
  • by talldayo on 8/11/24, 5:01 AM

    Latency