avdevice/decklink_enc: print preroll and buffer size
authorGyan Doshi <ffmpeg@gyani.pro>
Wed, 22 Aug 2018 10:53:58 +0000 (16:23 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Fri, 24 Aug 2018 04:45:32 +0000 (10:15 +0530)
Helpful in diagnosing latency issues.

libavdevice/decklink_enc.cpp

index 28ab928..ee4c962 100644 (file)
@@ -193,6 +193,9 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st)
     pthread_cond_init(&ctx->cond, NULL);
     ctx->frames_buffer_available_spots = ctx->frames_buffer;
 
+    av_log(avctx, AV_LOG_DEBUG, "output: %s, preroll: %d, frames buffer size: %d\n",
+           avctx->url, ctx->frames_preroll, ctx->frames_buffer);
+
     /* The device expects the framerate to be fixed. */
     avpriv_set_pts_info(st, 64, st->time_base.num, st->time_base.den);