[FFmpeg-devel] [PATCH] tools/graph2dot: show input and output pad names in the link label

Stefano Sabatini stefasab at gmail.com
Tue Jun 5 18:49:41 CEST 2012


---
 tools/graph2dot.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index c000c4c..0a2f627 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -71,10 +71,12 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
                         filter_ctx_label, dst_filter_ctx_label);
                 if (link->type == AVMEDIA_TYPE_VIDEO) {
                     fprintf(outfile,
-                            " [ label= \"fmt:%s w:%d h:%d tb:%d/%d\" ]",
+                            " [ label= \"inpad:%s fmt:%s w:%d h:%d tb:%d/%d outpad:%s\" ]",
+                            link->srcpad->name,
                             av_pix_fmt_descriptors[link->format].name,
                             link->w, link->h, link->time_base.num,
-                            link->time_base.den);
+                            link->time_base.den,
+                            link->dstpad->name);
                 } else if (link->type == AVMEDIA_TYPE_AUDIO) {
                     char buf[255];
                     av_get_channel_layout_string(buf, sizeof(buf), -1,
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list