[FFmpeg-devel] [PATCH 2/9] Make graph2dot print information related to the pads timebase.

Stefano Sabatini stefano.sabatini-lala
Wed Oct 6 20:23:52 CEST 2010


On date Wednesday 2010-10-06 20:09:45 +0200, Stefano Sabatini encoded:
> ---
>  tools/graph2dot.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/graph2dot.c b/tools/graph2dot.c
> index 57a25a7..cd00e03 100644
> --- a/tools/graph2dot.c
> +++ b/tools/graph2dot.c
> @@ -67,8 +67,10 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
>                           dst_filter_ctx->filter->name);
>  
>                  fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filter_ctx_label);
> -                fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d\"];\n",
> -                        av_pix_fmt_descriptors[link->format].name, link->w, link->h);
> +                fprintf(outfile, " [ label= \"stb:%d/%d fmt:%s w:%d h:%d dtb:%d/%d\" ];\n",
> +                        link->srcpad->time_base.num, link->srcpad->time_base.den,
> +                        av_pix_fmt_descriptors[link->format].name, link->w, link->h,
> +                        link->dstpad->time_base.num, link->dstpad->time_base.den);

ALternatively we may have: "itb" or "otb" or even "srctb" and
"dsttb", the latter being more clear but somehow wasting some of the
space in the graph (as rendered by dot).

I'll apply in few days if noone hase better ideas.

Regards.
-- 
FFmpeg = Fundamental & Freak Minimal Power Erudite Guru



More information about the ffmpeg-devel mailing list