]> git.sesse.net Git - ffmpeg/commitdiff
lavfi: decrease logging level of message showing initial parameters
authorStefano Sabatini <stefasab@gmail.com>
Sat, 14 Jul 2012 16:26:04 +0000 (18:26 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 15 Jul 2012 13:07:03 +0000 (15:07 +0200)
Reduce log clutter, consistent with 1a49a169eb74a97.

23 files changed:
libavfilter/af_aconvert.c
libavfilter/af_amerge.c
libavfilter/af_aresample.c
libavfilter/af_asetnsamples.c
libavfilter/af_pan.c
libavfilter/af_volume.c
libavfilter/asrc_aevalsrc.c
libavfilter/avf_showwaves.c
libavfilter/buffersrc.c
libavfilter/vf_blackdetect.c
libavfilter/vf_boxblur.c
libavfilter/vf_colormatrix.c
libavfilter/vf_delogo.c
libavfilter/vf_deshake.c
libavfilter/vf_removelogo.c
libavfilter/vf_scale.c
libavfilter/vf_super2xsai.c
libavfilter/vf_thumbnail.c
libavfilter/vf_tinterlace.c
libavfilter/vsrc_cellauto.c
libavfilter/vsrc_life.c
libavfilter/vsrc_mptestsrc.c
libavfilter/vsrc_testsrc.c

index dc9cf455a36cd7ca70ae5f5d69ef3a5dea2bc6e7..6dd845259e3bd9ef67466ba400bfcb58b829f72e 100644 (file)
@@ -127,7 +127,7 @@ static int config_output(AVFilterLink *outlink)
                                  -1, inlink ->channel_layout);
     av_get_channel_layout_string(buf2, sizeof(buf2),
                                  -1, outlink->channel_layout);
-    av_log(ctx, AV_LOG_INFO,
+    av_log(ctx, AV_LOG_VERBOSE,
            "fmt:%s cl:%s -> fmt:%s cl:%s\n",
            av_get_sample_fmt_name(inlink ->format), buf1,
            av_get_sample_fmt_name(outlink->format), buf2);
index 660ae5dc9db9d53b5eb5ef436d7bc70188d010c6..b810f73b3886196ce4599a0e74d2c87a5e87a456 100644 (file)
@@ -157,7 +157,7 @@ static int config_output(AVFilterLink *outlink)
     }
     av_bprintf(&bp, " -> out:");
     av_bprint_channel_layout(&bp, -1, ctx->outputs[0]->channel_layout);
-    av_log(ctx, AV_LOG_INFO, "%s\n", bp.str);
+    av_log(ctx, AV_LOG_VERBOSE, "%s\n", bp.str);
 
     return 0;
 }
index cf1d8df0ce7ad641120175c8e69d5beae8305028..422194508ba8ff9e5c3395e394c67d5b5b2ae54f 100644 (file)
@@ -162,7 +162,7 @@ static int config_output(AVFilterLink *outlink)
     av_get_channel_layout_string(inchl_buf,  sizeof(inchl_buf),  -1, inlink ->channel_layout);
     av_get_channel_layout_string(outchl_buf, sizeof(outchl_buf), -1, outlink->channel_layout);
 
-    av_log(ctx, AV_LOG_INFO, "chl:%s fmt:%s r:%dHz -> chl:%s fmt:%s r:%dHz\n",
+    av_log(ctx, AV_LOG_VERBOSE, "chl:%s fmt:%s r:%dHz -> chl:%s fmt:%s r:%dHz\n",
            inchl_buf,  av_get_sample_fmt_name(inlink->format),  inlink->sample_rate,
            outchl_buf, av_get_sample_fmt_name(outlink->format), outlink->sample_rate);
     return 0;
index 95fd507d4d1080359abe6dd576a4d5a7b5905fae..8805d53a9714831d42c3a634698537c8c35a3144 100644 (file)
@@ -68,7 +68,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     }
 
     asns->next_out_pts = AV_NOPTS_VALUE;
-    av_log(ctx, AV_LOG_INFO, "nb_out_samples:%d pad:%d\n", asns->nb_out_samples, asns->pad);
+    av_log(ctx, AV_LOG_VERBOSE, "nb_out_samples:%d pad:%d\n", asns->nb_out_samples, asns->pad);
 
     return 0;
 }
index bb96ad0511592c37596db7434511081ac068f6c3..13bb5c3a65196cfed9e650dc5fd53f2fce5fcf6e 100644 (file)
@@ -327,7 +327,7 @@ static int config_props(AVFilterLink *link)
                          j ? " + " : "", pan->gain[i][j], j);
             cur += FFMIN(buf + sizeof(buf) - cur, r);
         }
-        av_log(ctx, AV_LOG_INFO, "o%d = %s\n", i, buf);
+        av_log(ctx, AV_LOG_VERBOSE, "o%d = %s\n", i, buf);
     }
     // add channel mapping summary if possible
     if (pan->pure_gains) {
index 09302ee5d972666cd93fd69895fa76bf62b2d228..1aca7d95ba59c5f8f3b683813132f9bc83d48c5e 100644 (file)
@@ -75,7 +75,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     }
 
     vol->volume_i = (int)(vol->volume * 256 + 0.5);
-    av_log(ctx, AV_LOG_INFO, "volume=%f\n", vol->volume);
+    av_log(ctx, AV_LOG_VERBOSE, "volume=%f\n", vol->volume);
     return 0;
 }
 
index dfb6b5a7dae31e18399c1c59e798d7f9e23bdd18..fb7151bd74c5f8bb4f50070ccaa367f794b4cd20 100644 (file)
@@ -181,7 +181,7 @@ static int config_props(AVFilterLink *outlink)
 
     av_get_channel_layout_string(buf, sizeof(buf), 0, eval->chlayout);
 
-    av_log(outlink->src, AV_LOG_INFO,
+    av_log(outlink->src, AV_LOG_VERBOSE,
            "sample_rate:%d chlayout:%s duration:%f\n",
            eval->sample_rate, buf, eval->duration);
 
index 9a267a6b71f5b66aa9b94134ae54eeaaa38fd1b7..2494a7088f76da07df73e5478dcb85a0e57180cc 100644 (file)
@@ -145,7 +145,7 @@ static int config_output(AVFilterLink *outlink)
     outlink->frame_rate = av_div_q((AVRational){inlink->sample_rate,showwaves->n},
                                    (AVRational){showwaves->w,1});
 
-    av_log(ctx, AV_LOG_INFO, "s:%dx%d r:%f n:%d\n",
+    av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d r:%f n:%d\n",
            showwaves->w, showwaves->h, av_q2d(outlink->frame_rate), showwaves->n);
     return 0;
 }
index 2592cfb64ac9fd7cc484dc06e48ffaa7c365ba4d..72ee268e1b3a5af9756dde50528c5c3d803d2746 100644 (file)
@@ -268,7 +268,7 @@ static av_cold int init_video(AVFilterContext *ctx, const char *args)
         goto fail;
     }
 
-    av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d sws_param:%s\n",
+    av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d sws_param:%s\n",
            c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name,
            c->time_base.num, c->time_base.den, c->frame_rate.num, c->frame_rate.den,
            c->pixel_aspect.num, c->pixel_aspect.den, (char *)av_x_if_null(c->sws_param, ""));
@@ -328,7 +328,7 @@ static av_cold int init_audio(AVFilterContext *ctx, const char *args)
     if (!s->time_base.num)
         s->time_base = (AVRational){1, s->sample_rate};
 
-    av_log(ctx, AV_LOG_INFO,
+    av_log(ctx, AV_LOG_VERBOSE,
            "tb:%d/%d samplefmt:%s samplerate:%d chlayout:%s\n",
            s->time_base.num, s->time_base.den, s->sample_fmt_str,
            s->sample_rate, s->channel_layout_str);
index bb9567d0b964cdde8b024b8f41c9d18e6e045f9f..85a13f284413d40dd4088cb70cd63939433bc8bd 100644 (file)
@@ -109,7 +109,7 @@ static int config_input(AVFilterLink *inlink)
              blackdetect->pixel_black_th *  255 :
         16 + blackdetect->pixel_black_th * (235 - 16);
 
-    av_log(blackdetect, AV_LOG_INFO,
+    av_log(blackdetect, AV_LOG_VERBOSE,
            "black_min_duration:%s pixel_black_th:%f pixel_black_th_i:%d picture_black_ratio_th:%f\n",
            av_ts2timestr(blackdetect->black_min_duration, &inlink->time_base),
            blackdetect->pixel_black_th, blackdetect->pixel_black_th_i,
index d9ef7e6a3a42c826d6b4c47e2b2fe227a362e7f6..6e6949efb02aba523fd3c0252768c1b01f1637b8 100644 (file)
@@ -175,7 +175,7 @@ static int config_input(AVFilterLink *inlink)
     EVAL_RADIUS_EXPR(chroma);
     EVAL_RADIUS_EXPR(alpha);
 
-    av_log(ctx, AV_LOG_INFO,
+    av_log(ctx, AV_LOG_VERBOSE,
            "luma_radius:%d luma_power:%d "
            "chroma_radius:%d chroma_power:%d "
            "alpha_radius:%d alpha_power:%d "
index 0784c82835aa499662cea1d66814da0516d53f0b..3c142056e749684f78fe0ca958822aeb30d2ee62 100644 (file)
@@ -313,7 +313,7 @@ static int config_input(AVFilterLink *inlink)
     color->hsub = pix_desc->log2_chroma_w;
     color->vsub = pix_desc->log2_chroma_h;
 
-    av_log(ctx, AV_LOG_INFO, "%s -> %s\n", color->src, color->dst);
+    av_log(ctx, AV_LOG_VERBOSE, "%s -> %s\n", color->src, color->dst);
 
     return 0;
 }
index ae9d2a3bb1344cfc5322876af320d0f9178bea00..996609da4ac2bbf5126917d3241479b1e37112d5 100644 (file)
@@ -198,7 +198,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     if (delogo->show)
         delogo->band = 4;
 
-    av_log(ctx, AV_LOG_INFO, "x:%d y:%d, w:%d h:%d band:%d show:%d\n",
+    av_log(ctx, AV_LOG_VERBOSE, "x:%d y:%d, w:%d h:%d band:%d show:%d\n",
            delogo->x, delogo->y, delogo->w, delogo->h, delogo->band, delogo->show);
 
     delogo->w += delogo->band*2;
index 10d789fd8d0038ab1696d1400075da2b1c221607..45da72b0799b460b614d7c99338c353a19bcad09 100644 (file)
@@ -377,7 +377,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
         deshake->cx &= ~15;
     }
 
-    av_log(ctx, AV_LOG_INFO, "cx: %d, cy: %d, cw: %d, ch: %d, rx: %d, ry: %d, edge: %d blocksize: %d contrast: %d search: %d\n",
+    av_log(ctx, AV_LOG_VERBOSE, "cx: %d, cy: %d, cw: %d, ch: %d, rx: %d, ry: %d, edge: %d blocksize: %d contrast: %d search: %d\n",
            deshake->cx, deshake->cy, deshake->cw, deshake->ch,
            deshake->rx, deshake->ry, deshake->edge, deshake->blocksize * 2, deshake->contrast, deshake->search);
 
index fdfe5bda592c06ac0d8e9680a8d64b38a33988bb..2e395c7eea47ed920282079e807e99ccfec881c6 100644 (file)
@@ -326,7 +326,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     ff_calculate_bounding_box(&removelogo->half_mask_bbox, removelogo->half_mask_data, w/2, w/2, h/2, 0);
 
 #define SHOW_LOGO_INFO(mask_type)                                       \
-    av_log(ctx, AV_LOG_INFO, #mask_type " x1:%d x2:%d y1:%d y2:%d max_mask_size:%d\n", \
+    av_log(ctx, AV_LOG_VERBOSE, #mask_type " x1:%d x2:%d y1:%d y2:%d max_mask_size:%d\n", \
            removelogo->mask_type##_mask_bbox.x1, removelogo->mask_type##_mask_bbox.x2, \
            removelogo->mask_type##_mask_bbox.y1, removelogo->mask_type##_mask_bbox.y2, \
            mask_type##_max_mask_size);
index 3717da231b09b7b5faf22d82f2196fb233a91ef8..7df03fc9bb50667f01663baba541f6b90d6612fc 100644 (file)
@@ -256,7 +256,7 @@ static int config_props(AVFilterLink *outlink)
     } else
         outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
 
-    av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s sar:%d/%d -> w:%d h:%d fmt:%s sar:%d/%d flags:0x%0x\n",
+    av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d fmt:%s sar:%d/%d -> w:%d h:%d fmt:%s sar:%d/%d flags:0x%0x\n",
            inlink ->w, inlink ->h, av_pix_fmt_descriptors[ inlink->format].name,
            inlink->sample_aspect_ratio.num, inlink->sample_aspect_ratio.den,
            outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name,
index adfc41db3733d6077bd4c9163d22ff397dfd250d..b941358c72bab87ba6c1c64b15c96b0d2255862c 100644 (file)
@@ -295,7 +295,7 @@ static int config_output(AVFilterLink *outlink)
     outlink->w = inlink->w*2;
     outlink->h = inlink->h*2;
 
-    av_log(inlink->dst, AV_LOG_INFO, "fmt:%s size:%dx%d -> size:%dx%d\n",
+    av_log(inlink->dst, AV_LOG_VERBOSE, "fmt:%s size:%dx%d -> size:%dx%d\n",
            av_get_pix_fmt_name(inlink->format),
            inlink->w, inlink->h, outlink->w, outlink->h);
 
index 02354f26232a10092aa9bd55adaecd4396cd6aad..dda1a5dbf623f5e14f33dd7dc162ddfc21f75209 100644 (file)
@@ -64,7 +64,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
                "Allocation failure, try to lower the number of frames\n");
         return AVERROR(ENOMEM);
     }
-    av_log(ctx, AV_LOG_INFO, "batch size: %d frames\n", thumb->n_frames);
+    av_log(ctx, AV_LOG_VERBOSE, "batch size: %d frames\n", thumb->n_frames);
     return 0;
 }
 
index 402eecacfbea0869a7355ea123464855d96c58db..d511d72667e95e87094db525a849e5f420b60a17 100644 (file)
@@ -155,7 +155,7 @@ static int config_out_props(AVFilterLink *outlink)
                    tinterlace->black_linesize[i] * h);
         }
     }
-    av_log(ctx, AV_LOG_INFO, "mode:%s h:%d -> h:%d\n",
+    av_log(ctx, AV_LOG_VERBOSE, "mode:%s h:%d -> h:%d\n",
            tinterlace_mode_str[tinterlace->mode], inlink->h, outlink->h);
 
     return 0;
index e064c2c1418df8ec95ebc004194e87f6562bc703..b2c9d5867b1e89f8b54615a6a15c5da4b8b66db7 100644 (file)
@@ -213,7 +213,7 @@ static int init(AVFilterContext *ctx, const char *args)
         }
     }
 
-    av_log(ctx, AV_LOG_INFO,
+    av_log(ctx, AV_LOG_VERBOSE,
            "s:%dx%d r:%d/%d rule:%d stitch:%d scroll:%d full:%d seed:%u\n",
            cellauto->w, cellauto->h, frame_rate.num, frame_rate.den,
            cellauto->rule, cellauto->stitch, cellauto->scroll, cellauto->start_full,
index 7a62f63a96607ebbb6511be5c5dcc4db7586b3d3..c71291f2717b6d7089d7324b2a8b6d5dc32a2719 100644 (file)
@@ -291,7 +291,7 @@ static int init(AVFilterContext *ctx, const char *args)
             return ret;
     }
 
-    av_log(ctx, AV_LOG_INFO,
+    av_log(ctx, AV_LOG_VERBOSE,
            "s:%dx%d r:%d/%d rule:%s stay_rule:%d born_rule:%d stitch:%d seed:%u\n",
            life->w, life->h, frame_rate.num, frame_rate.den,
            life->rule_str, life->stay_rule, life->born_rule, life->stitch,
index fd33acfd44ba2944ffcccc259cc01805a3a1b322..6a4df1efa4dfceec7da735e37f3f8bd13b2ef89d 100644 (file)
@@ -288,7 +288,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     test->frame_nb = 0;
     test->pts = 0;
 
-    av_log(ctx, AV_LOG_INFO, "rate:%d/%d duration:%f\n",
+    av_log(ctx, AV_LOG_VERBOSE, "rate:%d/%d duration:%f\n",
            frame_rate_q.num, frame_rate_q.den,
            duration < 0 ? -1 : test->max_pts * av_q2d(test->time_base));
     init_idct();
index 0c07f060483aa51380f2401e2bb37d0cd0369161..a920314d1bb072efb07cbac08256307ca0b7c89f 100644 (file)
@@ -111,7 +111,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     test->nb_frame = 0;
     test->pts = 0;
 
-    av_log(ctx, AV_LOG_INFO, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
+    av_log(ctx, AV_LOG_VERBOSE, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
            test->w, test->h, frame_rate_q.num, frame_rate_q.den,
            duration < 0 ? -1 : test->max_pts * av_q2d(test->time_base),
            test->sar.num, test->sar.den);