[FFmpeg-cvslog] avdevice/decklink_enc: print preroll and buffer size

Gyan Doshi git at videolan.org
Fri Aug 24 07:46:33 EEST 2018


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Wed Aug 22 16:41:58 2018 +0530| [d0b48a960448cc8eb0e2c86e0804b14bdcb3e751] | committer: Gyan Doshi

avdevice/decklink_enc: print preroll and buffer size

Helpful in diagnosing latency issues.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0b48a960448cc8eb0e2c86e0804b14bdcb3e751
---

 libavdevice/decklink_enc.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index 28ab928cd5..ee4c962add 100644
--- a/libavdevice/decklink_enc.cpp
+++ b/libavdevice/decklink_enc.cpp
@@ -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);
 



More information about the ffmpeg-cvslog mailing list