I've recently started using libvlc and like it a lot - thanks for the devs for such a great work!
My question is: I use libvlc_audio_set_callbacks to organize custom audio output. But for some videos, there's a/v sync problem (audio comes about a second earlier). When played through VLC player, they play fine, and in the message log I see entries like
Code: Select all
main warning: playback way too early (-700451): playing silence
I see there's "pts" parameter in libvlc_audio_play callback, but so far I've failed to understand how to use it. Comparing it to the value returned by "libvlc_clock" gives nothing as the difference is always about the same for videos with and without a/v sync problems.
Any help on the matter is appreciated.