Skip to content

Commit

Permalink
DeckLink disp.: print video time when scheduled
Browse files Browse the repository at this point in the history
for debugging
  • Loading branch information
MartinPulec committed Nov 27, 2023
1 parent 9ebb942 commit f9d888f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ void PlaybackDelegate::ScheduleNextFrame()
(uint32_t) (f->timestamp - frameRateDuration * schedSeq *
90000 / frameRateScale);
}
LOG(LOG_LEVEL_DEBUG)
<< MOD_NAME
<< "video streamTime: " << schedSeq * frameRateDuration
<< "; scale: " << frameRateScale << "\n";
m_deckLinkOutput->ScheduleVideoFrame(
f, schedSeq * frameRateDuration, frameRateDuration,
frameRateScale);
Expand Down Expand Up @@ -1627,9 +1631,9 @@ void PlaybackDelegate::ScheduleAudio(const struct audio_frame *frame,
((int64_t) frame->timestamp - m_adata.last_sync_ts) *
bmdAudioSampleRate48kHz / 90000;

LOG(LOG_LEVEL_DEBUG) << MOD_NAME << "streamTime: " << streamTime
LOG(LOG_LEVEL_DEBUG) << MOD_NAME << "audio streamTime: " << streamTime
<< "; samples: " << *samples
<< "; RTP timestamp: " << frame->timestamp
<< "; RTP TS: " << frame->timestamp
<< "; sync TS: " << m_audio_sync_ts << "\n";
const HRESULT res = m_deckLinkOutput->ScheduleAudioSamples(
frame->data, *samples, streamTime, bmdAudioSampleRate48kHz,
Expand Down

0 comments on commit f9d888f

Please sign in to comment.