[vdr] FF card AV sync problems, possible fix to VDR

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Wed Jan 31 18:26:58 CET 2007

Ville Rannikko wrote:
> Hi!
> The newest firmware for FF cards did not completely fix the AV desync
> problems for me. According to information from Werner the problem
> happens when small video frames fill the decoder buffer with over 2
> seconds of data. So I made this patch for dvbplayer.c to stop it from
> uploading more PES frames to decoder when STC/PTS difference is more
> than 2 seconds. This seems to fix the remaining problems for me, but I
> have not tested it much. The PTS/STC-code has been mostly taken from the
> dvb-subtitles plugin. Comments, please

While this may actually help in your case, I'm not particularly fond
of this. The cDvbPlayer shouldn't have to worry about this. It takes care
that data is sent to the player device fast enough to avoid underruns,
but that's all it should have to care about. It's the device's (driver
and firmware) job to play the data correctly.


More information about the vdr mailing list