Tue Mar 31, 2015 12:31 am
Hi,
I am writing an applicaiton that uses decklink to display the audio and video frames. Occasionally I get frame drop from decklink and I am trying to understand as how does decklink SDK decides which frame to drop.
I am using schedule callback mechanism to schedule audio and video frames. In the callback there are 3 possible cases
1. Frame dropped
2. Frame delayed
3. Frame displayed Successful
I am scheduling the video frames using the video frame counter which schedules the frame at (count * rameDuration) value where count is incremented after a frame is scheduled. Now how do I handle cases 1 & 2 above so that I dont loose Av sync. I am facing problme that after running for about 2-3 hours the audio and video drifts apart.
Any sample code will be appreciated.