mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
avdevice/decklink_enc: print preroll and buffer size
Helpful in diagnosing latency issues.
This commit is contained in:
parent
35c84ae834
commit
d0b48a9604
@ -193,6 +193,9 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st)
|
|||||||
pthread_cond_init(&ctx->cond, NULL);
|
pthread_cond_init(&ctx->cond, NULL);
|
||||||
ctx->frames_buffer_available_spots = ctx->frames_buffer;
|
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. */
|
/* The device expects the framerate to be fixed. */
|
||||||
avpriv_set_pts_info(st, 64, st->time_base.num, st->time_base.den);
|
avpriv_set_pts_info(st, 64, st->time_base.num, st->time_base.den);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user