diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2021-04-01 18:09:25 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-04-04 10:46:57 +0530 |
commit | aff23c3474f93d7f08422755a55da4ba3ce1e800 (patch) | |
tree | 63643d99fec1cb794e4b64703695e14d98e86c83 /libavfilter/vf_find_rect.c | |
parent | e93875b756b575438d7b825332739719d4fbc600 (diff) | |
download | ffmpeg-aff23c3474f93d7f08422755a55da4ba3ce1e800.tar.gz |
avfilter/find_rect: improve logging
Log now indicates timestamps of frames where a match is made.
Loglevel is changed to INFO since the user specifically wants this info.
Diffstat (limited to 'libavfilter/vf_find_rect.c')
-rw-r--r-- | libavfilter/vf_find_rect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c index b5f8fbcba6..ea3b7aeee5 100644 --- a/libavfilter/vf_find_rect.c +++ b/libavfilter/vf_find_rect.c @@ -209,7 +209,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) return ff_filter_frame(ctx->outputs[0], in); } - av_log(ctx, AV_LOG_DEBUG, "Found at %d %d score %f\n", best_x, best_y, best_score); + av_log(ctx, AV_LOG_INFO, "Found at n=%lld pts_time=%f x=%d y=%d with score=%f\n", + inlink->frame_count_out, TS2D(in->pts) * av_q2d(inlink->time_base), + best_x, best_y, best_score); foc->last_x = best_x; foc->last_y = best_y; |