]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/find_rect: improve logging
authorGyan Doshi <ffmpeg@gyani.pro>
Thu, 1 Apr 2021 12:39:25 +0000 (18:09 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Sun, 4 Apr 2021 05:16:57 +0000 (10:46 +0530)
Log now indicates timestamps of frames where a match is made.
Loglevel is changed to INFO since the user specifically wants this info.

libavfilter/vf_find_rect.c

index b5f8fbcba6dfba9d21a04ec67caaf85641eb664c..ea3b7aeee50108280707bfe059b335295a34d0e4 100644 (file)
@@ -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;