- Posts: 39
- Joined: Tue Jun 17, 2014 7:04 pm
Hi Jonas,
How are you handling the start of scheduled output (IDeckLinkOutput::StartScheduledPlayback)? Are you waiting until you have prerolled sufficient video + audio samples before calling start of scheduled playback?
I wonder if your video source begins with large number of video frames and few audio samples when prerolling and you are starting scheduled playback with insufficient audio samples in scheduled buffer?
Ideally during preroll, keep a count of scheduled video frames. Call IDeckLinkOutput::GetBufferedAudioSampleFrameCount within IDeckLinkAudioOutputCallback::RenderAudioSamples callback to get audio sample count. Only commence scheduled playback when video and audio preroll sizes have reached your predefined waterlevels.
Regards
Cameron